dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Actionscript acting odd

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Actionscript acting odd

    I have a flash file that works perfectly until I try to add a link.

    There's a movie that has text swooping in and out. To keep the text still for a few seconds I added this on certain keyframes:

    function wait() {
    stop();
    var myInterval = setInterval(function () {
    play();
    clearInterval(myInterval);
    }, 2*1000); // stop for 2 seconds
    }

    wait();

    And then at the end of the movie I told it to stop entirely.

    Everything works perfect until I try to add a transparent box with a link on a completely different layer. The text no longer pauses for a few seconds and the movie will perpetually loop.

    This is what I use for the link:

    on(release)
    {
    getURL("http://www.google.com");
    }

    It's pretty typical stuff. I can't imagine what's going on. Anyone have an idea?

    Thanks!

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Wrong forum, moved to Actionscript.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center