A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [CS3] stop () won't work on main timeline (CS3 + AS2)

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    2

    [CS3] stop () won't work on main timeline (CS3 + AS2)

    (Running AS 2.0 in Flash CS3)

    I'm creating an animation as an SWF file that is then being loaded into another SWF. The first problem I noticed is that for some reason, after loading the SWF into a movie clip and playing it, I can't stop it with the stop () function. Other functions work, such as gotoAndPlay (), but stop () doesn't do anything. Furthermore, gotoAndStop () will jump to the specified frame, but then fails to actually stop playing. So the MC is definitely responding to my function calls, and some of the functions work partially, but it won't actually stop.

    I then tried simply sticking a stop () or gotoAndStop () call at various points within the original animation itself (instead of loading it into another SWF and calling stop () externally). Again, stop () doesn't do anything, and gotoAndStop () will jump to the specified frame but then keep playing.

    The ONLY time I can get it to stop is when I call stop () from within an onEnterFrame handler. Obviously this doesn't solve my problem, since what I really need is to be able to call stop () externally when the SWF is loaded dynamically.

    I've made other test clips and stop ()/gotoAndStop () work fine for them. It's just this particular animation that's giving me trouble.

    Unfortunately it's for a client under an NDA so I can't post anything, but does anyone know of any common reasons why this occurs? I'm really at a loss here.

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    well im assuming this isn't a scope issue if you are able to gotoAndStop.. try using the movie explorer on the loaded swf and only show code, then look around for something strange, probably an onEnterFrame. sounds weird hehe
    Evolve Designs Interactive Media
    the natural selection

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