5 Replies Latest reply on Jul 13, 2008 10:28 AM by Newsgroup_User

    Pop ups from link

    Alec2998
      Hi,

      I am extremely new to creating websites, I knew nothing three weeks ago. The site I have built is www.alecq.com the problem I am having is that after much trouble I managed to create a button in flash CS3 and export it to Dreamweaver CS3. The links work, however when pressed they open in a new window. How can I do this so that when a link is pressed it opens in the same window.
      I hope this makes sense. Below is the code I used in Flash for one of the buttons:

      import flash.events.MouseEvent;
      var getportfolio:URLRequest = new URLRequest("Untitled Document");
      addEventListener(MouseEvent.CLICK,pclick);
      function pclick(event:MouseEvent):void{
      navigateToURL(getportfolio);
      }

      I will now show the relevant code from dreamweaver:

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/s...rsion=9,0,28,0" width="62" height="27" title="About Alec Quinton Male Model Bristol">
      <param name="movie" value="Buttons/About.swf" />
      <param name="allowScriptAccess" value="always">
      <param name="quality" value="high" />
      <embed src="Buttons/About.swf" quality="high" pluginspage=" http://www.adobe.com/shockwave/downl...ShockwaveFlash" type="application/x-shockwave-flash" width="62" height="27"
      allowScriptAccess="always"></embed>
      </object>

      I would be so very grateful of some help, please keep it simple though, my knowledge is minimal! Many thanks in advance.
        • 1. Re: Pop ups from link
          Level 7


          > create a button in flash CS3 and export it to Dreamweaver
          > CS3. The links work, however when pressed they open in a new window.

          Does the page use frames?

          Does it work as you intend when it's uploaded to a web server?
          FlashPlayer has a security restriction, local pages will use a random target
          attribute and always open in a new frame instead of using the actual target
          frame name.

          --
          Alan
          Adobe Community Expert, dreamweaver

          http://www.adobe.com/communities/experts/



          • 2. Re: Pop ups from link
            Alec2998 Level 1
            My page doesn't use frames, I haven't learnt those yet.

            Everything works as intended except the links opening in new windows. I just recieved this advice:

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/s...rsion=9,0,28,0" width="62" height="27" title="About Alec Quinton Male Model Bristol">
            <param name="movie" value="Buttons/About.swf" />
            <param name="allowScriptAccess" value="always">
            <param name="quality" value="high" />
            <embed src="Buttons/About.swf" quality="high" pluginspage=" http://www.adobe.com/shockwave/downl...ShockwaveFlash" type="application/x-shockwave-flash" width="62" height="27"
            allowScriptAccess="always"></embed>
            </object>

            The new bits of script are:
            <param name="allowScriptAccess" value="always">
            allowScriptAccess="always"></embed>

            I'll try it now, thanks for your time. Do these alterations mean anything to you?
            • 3. Re: Pop ups from link
              Level 7


              > My page doesn't use frames, I haven't learnt those yet.

              they have limited usefulness except in narrow applications imho.

              >
              > Everything works as intended except the links opening in new windows. I just
              > recieved this advice:

              try it uploaded.

              --
              Alan
              Adobe Community Expert, dreamweaver

              http://www.adobe.com/communities/experts/



              • 4. Re: Pop ups from link
                Alec2998 Level 1
                No luck. Set allowscript to always in Dreamweaver and set as3 to navigateToURL(getportfolio, "_self");
                Still opens in pop upss. What a nightmare. Do you believe this is unsolvable?
                • 5. Re: Pop ups from link
                  Level 7
                  > My page doesn't use frames, I haven't learnt those yet.

                  Wait until you've been at it for 3 years to do that. It's not worth the
                  effort at this point.

                  > I'll try it now, thanks for your time. Do these alterations mean anything
                  > to
                  > you?

                  Only that you shouldn't use Flash buttons. Ever. Please reconsider this.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  ==================


                  "Alec2998" <webforumsuser@macromedia.com> wrote in message
                  news:g5dad1$5m0$1@forums.macromedia.com...
                  > My page doesn't use frames, I haven't learnt those yet.
                  >
                  > Everything works as intended except the links opening in new windows. I
                  > just
                  > recieved this advice:
                  >
                  > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                  > codebase=" http://download.macromedia.com/pub/s...rsion=9,0,28,0"
                  > width="62"
                  > height="27" title="About Alec Quinton Male Model Bristol">
                  > <param name="movie" value="Buttons/About.swf" />
                  > <param name="allowScriptAccess" value="always">
                  > <param name="quality" value="high" />
                  > <embed src="Buttons/About.swf" quality="high"
                  > pluginspage=" http://www.adobe.com/shockwave/downl...ShockwaveFlash"
                  > type="application/x-shockwave-flash" width="62" height="27"
                  > allowScriptAccess="always"></embed>
                  > </object>
                  >
                  > The new bits of script are:
                  > <param name="allowScriptAccess" value="always">
                  > allowScriptAccess="always"></embed>
                  >
                  > I'll try it now, thanks for your time. Do these alterations mean anything
                  > to
                  > you?
                  >