6 Replies Latest reply on Apr 20, 2006 8:39 AM by I_am_Ryan

    it's about "get URL" problem

    I_am_Ryan
      I have a urgent problem. My english not good, hope everyone can understand what i said...

      well, i have made a flash icon for other website show out... when other user click that icon it should be link to my website. so i added the code as the follows.
      -----------------------------------------------------------------------------
      on(release)
      {
      _root.getURL(" http://www.website.com","_blank");
      }
      -----------------------------------------------------------------------------
      when i use the flash player(SAFlashPlayer.exe) open that swf file, that's code work!!

      but, the problem is.... when i open the html+ swf by IE.... it's not work.....>_<....

      can anyone give me a hand? tell me what's wrong on that script??

      Thanks a lot....
        • 1. Re: it's about &quot;get URL&quot; problem
          Level 7
          Should be;

          on (release) {
          getURL(" http://www.website.com","_blank");
          }


          "I_am_Ryan" <webforumsuser@macromedia.com> wrote in message
          news:e25rgg$88i$1@forums.macromedia.com...
          > I have a urgent problem. My english not good, hope everyone can
          > understand
          > what i said...
          >
          > well, i have made a flash icon for other website show out... when other
          > user
          > click that icon it should be link to my website. so i added the code as
          > the
          > follows.
          > -----------------------------------------------------------------------------
          > on(release)
          > {
          > _root.getURL(" http://www.website.com","_blank");
          > }
          > -----------------------------------------------------------------------------
          > when i use the flash player(SAFlashPlayer.exe) open that swf file, that's
          > code
          > work!!
          >
          > but, the problem is.... when i open the html+ swf by IE.... it's not
          > work.....>_<....
          >
          > can anyone give me a hand? tell me what's wrong on that script??
          >
          > Thanks a lot....
          >


          • 2. Re: it's about &quot;get URL&quot; problem
            I_am_Ryan Level 1
            Thanks, but still not work...

            anyotherway can open a new ie windows and jump to my web?

            i just search this forum last night, and find many script.... but all not work fine on my flash...
            • 3. Re: it's about &quot;get URL&quot; problem
              Level 7
              May not work if you are loading in the browser from the local drive due to
              player security. You may need to use http://.

              --
              Lon Hosford
              www.lonhosford.com
              May many happy bits flow your way!
              "I_am_Ryan" <webforumsuser@macromedia.com> wrote in message
              news:e25rgg$88i$1@forums.macromedia.com...
              I have a urgent problem. My english not good, hope everyone can
              understand
              what i said...

              well, i have made a flash icon for other website show out... when other
              user
              click that icon it should be link to my website. so i added the code as the
              follows.
              ----------------------------------------------------------------------------- on(release) { _root.getURL(" http://www.website.com","_blank"); } ----------------------------------------------------------------------------- when i use the flash player(SAFlashPlayer.exe) open that swf file, that'scodework!! but, the problem is.... when i open the html+ swf by IE.... it's notwork.....>_<.... can anyone give me a hand? tell me what's wrong on that script?? Thanks a lot....

              • 4. Re: it's about &quot;get URL&quot; problem
                I_am_Ryan Level 1
                http://?
                coz my getURL script link is already have http://.........
                or
                u means that not have to add script, just type in http://............?
                • 5. Re: it's about &quot;get URL&quot; problem
                  Level 7
                  I was referring to the web browser line for your HTML document holding the
                  Flash movie based on this comment you made:

                  >> but, the problem is.... when i open the html+ swf by IE.... it's not
                  >> work.....>_<....

                  It was not clear how you are testing the movie from the local drive in a web
                  browser or from a web server. If from the local drive in a web browser there
                  are security blocks on requests to the network which getURL does.

                  Perhaps you can clarify how you are testing the swf when you have the
                  problem and that can better direct the analysis.

                  --
                  Lon Hosford
                  www.lonhosford.com
                  May many happy bits flow your way!
                  "I_am_Ryan" <webforumsuser@macromedia.com> wrote in message
                  news:e274a4$q5i$1@forums.macromedia.com...
                  http://?
                  coz my getURL script link is already have http://.........
                  or
                  u means that not have to add script, just type in http://............?


                  • 6. Re: it's about &quot;get URL&quot; problem
                    I_am_Ryan Level 1
                    sry that my english so bad.... ><... let me try to say it more clearly.

                    my all test is test on my own pc, with ie...

                    and that movie have many layer, i put that btn or mc (i tried both) on the top layer,

                    that "on (Release)....................." script put on the that btn or mc object....

                    then i press CTRL+ ENTER. in that preview player window, it's work.

                    if i just double click the swf, use the flashplayer to play it...

                    before "open that popup new ie" script work, always show out a "confirm or setting" alert message....

                    if i open that html+swf file by ie, that's script not work...

                    well... today i made that script work on html+swf too.... but still have some problem,

                    i used a so stupid method to make it work... it's work now, but still don't know why...

                    my method:
                    not use btn anymore, use mc...
                    at the main timeline, use script"onRelease = function() { [that mc].gotoAndPlay("[that getURL script frame]")} "
                    when i press and release that mc, this script make that mc jump to other frame in that mc...
                    in that frame, only have " getURL(" http://www.website.com","_blank") "

                    well, don't know why, but it's work....

                    i just said have a new problem, what's that?....

                    that's if i use a html format web page, link so many this type of swf icon,

                    all other company icon can do that open pop up windows.... but only my icon not work.........

                    then .... here the new question.... why it's not work when it put in to web page with other icon.......


                    sry again for my poor english....... >_< pls help...