# A Little Guidance

**URL:** <https://forum.kirupa.com/t/a-little-guidance/222355>\
**Category:** Uncategorized\
**Created:** [April 12, 2007, 5:46pm UTC](https://forum.kirupa.com/t/a-little-guidance/222355 "2007-04-12T17:46:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brachford](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@brachford](https://forum.kirupa.com/u/brachford)\
**Post date:** [April 12, 2007, 5:46pm UTC](https://forum.kirupa.com/t/a-little-guidance/222355/1 "2007-04-12T17:46:52Z")

</div>

Hi Guys,

I have attached I file that I’ve been battling with for a bit. It’s a pretty simple file. As the file loads there is a basic animation eventually turning into a menu. The onRelease event for the “Click Here” button animates “\_off” the current selection menu (select\_mc movie clip) before animating “\_on” the new movie clip (called ‘owner\_mc’).

My goal is simply to have the onRelease event for the “Click here.” button within the ‘owner\_mc’ to animate “\_off” the ‘owner\_mc’ before animating “\_on” the ‘select\_mc’.

[COLOR=blue]Keep in mind the “\_on” and “\_off” are labels within the movie clips that have already been created.[/COLOR]

[COLOR=red]‘owner\_mc’ resides within Frame 16 on the ‘Home Owner’ layer on the main timeline.[/COLOR]

* * *

The attached file works to a point.  
[LIST=1]  
[_]The initial menu (select\_mc) is loaded fine.  
[_]The onRelease event for the “Click Here” button (located within ‘select\_mc’) animates “\_off” the ‘select\_mc’ before animating “\_on” the ‘owner\_mc’.  
[\*]The onRelease event for the “Click here.” button (located within [COLOR=blue]‘owner\_mc[/COLOR]’) animates “\_off” the ‘owner\_mc’ but WILL NOT animate [COLOR=red][COLOR=black]"[/COLOR] **\_on** [/COLOR]" the ‘[COLOR=red]select\_mc[/COLOR]’.[/LIST]\*\*\*\*\*\*\*\*\*\*\*  
You will see from the code below that I’m using ‘onEnterFrame’ to control the “\_off” and “\_on” animations.

```auto
owner_back_mc.onRelease = function (){
 gotoAndPlay("_off");
 
 owner_mc.onEnterFrame = function (){
  if (owner_mc._currentframe == 15){
   _root.select_mc.gotoAndPlay("_on"); // select_mc refers to the 'selection menu'
   delete (owner_mc.onEnterFrame);
  }
 }
}

```

I’m not sure where exactly on the main timeline (frame-wise) “\_root” takes me - to Frame 1 or the last frame that was accessed?

This could really play a factor because ‘select\_mc’ does not come into play on the main timeline until the initial animation plays through and stops … on Frame [COLOR=red]16[/COLOR]. My guess is it is a scope/targeting issue of some sort … but I’m not sure where.

One thing that really interests me is if a ‘stop’ action is placed in Frame 1 of ‘select\_mc’ movie clip … the call below (on Frame 16, ‘Actions’ layer of the main timeline - that is part of the initial animation) never takes place:

```auto
select_mc.gotoAndPlay("_start");

```

That makes no sense to me … a label is used. It should simply move to the frame labeled ‘\_start’ and play. Between this and the fact that ‘select\_mc’ is sitting on the main timeline and the code above (\_root.select\_mc.gotoAndPlay("\_on") doesn’t work - leads to believe there are issues within the ‘select\_mc’ movie clip. Some code likely either needs to be added or moved to the Actions layer within ‘select\_mc’.

I’ve attached a ‘scaled-down’ version of my real FLA file. It’s not zipped or anything. It will truly only take a moment for anyone out there willing to lend a hand to take a look. Anyone that is willing to do so - I would very much appreciate. It’s likely something simple that I’m overlooking.

If by chance, a solution is found - will you please describe what steps should be taken to fix it rather than simply uploading the revised file? Reason being, as stated previously … this is a ‘scaled-down’ version and I will need to apply necessary changes to my real FLA file.

Thanks in advance for anyone willing to lend a hand.

[COLOR=red]DO NOT USE THE FILE ATTACHED TO THIS POST … (Almost.fla)[/COLOR]  
[COLOR=red][/COLOR]  
[COLOR=red]**USE THE FILE IN THE NEXT POST … (Almost-rev.fla)**[/COLOR]
