dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: control a loaded movie?

  1. #1
    Senior Member willi-jay's Avatar
    Join Date
    Sep 2000
    Posts
    116
    Is there a way to control a loaded swf (no matter what it is) like a vcr?

  2. #2
    Junior Member
    Join Date
    Oct 2000
    Posts
    22
    Yes... A loaded movie is like amovie clip... but to use gotoAndPlay.. you have to label all the frames in the loaded movie, even across scenes. When you load a movie, scenes dont matters. Then use gotoandplay with frame label instead of frame number

    Hope that helps

  3. #3
    Senior Member willi-jay's Avatar
    Join Date
    Sep 2000
    Posts
    116
    ok, I think I understand but can I make buttons to play, rewind, fast forward and pause too?

  4. #4
    Master Poo Flinger
    Join Date
    Sep 2000
    Posts
    318
    huh? labels? can't use frame numbers? i don't get it. from what i've experienced, a movieclip is a movieclip. just because you loaded a swf doesn't make it any different. you can still use frame numbers blah blah blah movieclip. you just have make sure the frames you want to affect are loaded before you try to do anything with them.

    and yes you can make buttons rew, ff, play and what not on loaded swf's. look up some tutorials on this site. they're abundant here.

  5. #5
    Junior Member
    Join Date
    Oct 2000
    Posts
    22
    yes labels are a better way to do it... cause if you have more than one scene in the loaded movie .swf, I thin kframe labels make the job easier

  6. #6
    Denim Demon
    Join Date
    Jun 2002
    Location
    Outside of society
    Posts
    514
    To target (assing actions to) a loaded movie, you will need to address it by its level number or target name.
    If you use loadMovieNum, you would target the loaded swf like this:

    _level1.gotoAndPlay ("someLabel"); //any level greater than 0 will be above the root level.

    You can use labels, numbers, strings, whatever.

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