# AS3 troubles!

**URL:** <https://forum.kirupa.com/t/as3-troubles/268901>\
**Category:** Uncategorized\
**Created:** [August 20, 2008, 6:12am UTC](https://forum.kirupa.com/t/as3-troubles/268901 "2008-08-20T06:12:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjkasten](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bjkasten](https://forum.kirupa.com/u/bjkasten)\
**Post date:** [August 20, 2008, 6:12am UTC](https://forum.kirupa.com/t/as3-troubles/268901/1 "2008-08-20T06:12:47Z")

</div>

I’m very new to Flash and AS3, but I’m getting by after completing Todd Perkins’ training book.  
I’ve come across my first obstacle that I’m not able to solve.  
I’ve created a simple animation.  
Here is the basic skeleton:  
Main Timeline:nested movieclip:multiple nested movieclips.  
I have a button on the main timeline to control one of the movieclips in the ‘multiple nested movieclips’ branch. The code I have in place is :

stop();  
function stopbiomovie(event:MouseEvent):void  
{  
bio\_mov.gotoAndStop(1);  
}  
function playbiomovie(event:MouseEvent):void  
{  
bio\_mov.gotoAndPlay(1);  
}  
bio\_but.addEventListener(MouseEvent.MOUSE\_OVER, stopbiomovie);  
bio\_but.addEventListener(MouseEvent.MOUSE\_OUT, playbiomovie);

where bio\_mov is the movieclip I want to control. The first nested movieclip is in a keyframe on frame 1 with just a stop(); code in frame 1. When the movieclip finishes, I have code in place to advance the maintimeline to frame 2 and the movieclip remains, looping on its final frame. Everything runs smoothly … until I add the above code in frame 2. When I add this code and attempt to play the project, the first nested movieclip just skips through, and keeps doing so. No button control. I get the following error messages:

1120: Access of undefined property bio\_mov.  
1120: Access of undefined property bio\_mov.  
1120: Access of undefined property bio\_but.  
1120: Access of undefined property bio\_but.

with the following sources respective:

bio\_mov.gotoAndStop(1);  
bio\_mov.gotoAndPlay(1)  
bio\_but.addEventListener(MouseEvent.MOUSE\_OVER, stopbiomovie);  
bio\_but.addEventListener(MouseEvent.MOUSE\_OUT, playbiomovie);

Okay, I hope this is a thorough enough description of the problem and what I’m trying to accomplish. Any help would be great. Thanks.

---

<div class="post-metadata">

**Author:** ![bjkasten](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bjkasten](https://forum.kirupa.com/u/bjkasten)\
**Post date:** [August 24, 2008, 2:31am UTC](https://forum.kirupa.com/t/as3-troubles/268901/2 "2008-08-24T02:31:36Z")

</div>

REALLY new to AS3 so most of this is over my head. If I post two files, one pre-error and one post-error, would you be able to diagnose my problem?

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [August 24, 2008, 7:55am UTC](https://forum.kirupa.com/t/as3-troubles/268901/3 "2008-08-24T07:55:00Z")

</div>

[QUOTE=bjkasten;2377588]REALLY new to AS3 so most of this is over my head. If I post two files, one pre-error and one post-error, would you be able to diagnose my problem?[/QUOTE]

Go ahead and post the fla.
