Button and loadMovie questions . again.

  • LongHairRkr
  • Newbie
  • Newbie
  • LongHairRkr
  • Posts: 13

Post 3+ Months Ago

Hey guys,

Thanks so much for all the help on the last problem I had ...

I have ANOTHER piece of the puzzle that is tricky to me now.

HOW do I get a button from level 4 of my movie to move another movie clip on level 2?

Here's the scenario:

I have a BACK button that does three things:
1. It advances the movie clip on level 4 (Index.swf) to another scene.
2. it unloads a movie on level 3 (News.swf).
3. it's SUPPOSED to move another movie clip on level 2. (ShowsMovie)

I've gotten it to move the clip on level 4, AND to unload the movie on level three, but I can't get it to move the movie on level 2. Could you give me a hand in what commands I should be using in that button?

Thanks yet again for bailing me out.
  • LongHairRkr
  • Newbie
  • Newbie
  • LongHairRkr
  • Posts: 13

Post 3+ Months Ago

Oh ... one more thing. My BACK button resides on level 4 (Index.swf)
  • dhonsvick
  • Beginner
  • Beginner
  • dhonsvick
  • Posts: 49

Post 3+ Months Ago

If the movie clips are created with AS and generated dynamically, I would simply during the creation of the instances save the path to the movie clip to a readily accessable variable.


If drawn by hand you need to know the exact path of the clip...to do this go to the movie clip click on it and add this bit of code to it to make it say its path


on(release){
trace(this);
}

test movie and clik on clip .. output area should state something like _level0.youmovie

go to the button and put the action to look something like on(release){
_level0.youmovie._x += 300;
}

if done in AS i find it easy.

Put this where accessable .. like _root Actions Layer
var my_Movie:MovieClip

_root.my_Movie = this.createEmptyMovieClip(yadda Yadda);

Later
say you crete a button name my_butt

my_butt.onRelease = function(){
_root.my_Movie._x = _root.my_Movie._x + 300;
}

Also it's important to note that apparently, this works accross swfs loaded with LoadClip also. this enables simple communication accross swf files.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.