Skip to main content
February 10, 2012
Question

Document Class to Start from Frame 2 Instead of Default(frame1)

  • February 10, 2012
  • 1 reply
  • 948 views

Hi guys, I'm having a problem with my school final project so I need some help.

I'm using AMFPHP do connect Flash to PHP and to my database.

However, I'm having a problem with the document class.

I have only 2 layers on my flash file, each consisting of two keyframe.

Layer 2: Actions

Layer 1: User Interface

In my User Interface Layer :  my first frame consists of only an imported logo and a button.

In my Actions Layer, my first frame consists of actions to display an external SWF for splash introduction, an external XML into a dynamic text box and lastly an event listener and function to proceed to frame 2 upon clicking the button.

In my User Interface Layer, my second frame consists of one data grid and one button.

What I want to accomplish here is that upon clicking of the button, it will populate the data grid with values from the database.

In my Actions Layer, my second frame consists of actions to remove the external SWF that is still playing by calling removeChild.

As you can see, my "problem" lies in frame 2 because when I call the document class, it reads only frame 1. When I moved my data grid and button to frame 1, everything else works fine. But since it's on frame 2, I'm getting error #1009.

I tried googling for solutions to call a custom class on frame 2 actions but when i do that, it cannot find my button and data grid.

Any solutions to this?

This topic has been closed for replies.

1 reply

Participant
February 10, 2012

the problem is ............. actions get called first without getting the instances.......

you shoud try a timer of 300 ms ... .and then after completion of the timer ... call all the actions in the second frame...

I think this shoud do..........

February 10, 2012

Sorry bro but how do I do that?

  

the problem is ............. actions get called first without getting the instances....... you shoud try a timer of 300 ms ... .and then after completion of the timer ... call all the actions in the second frame... I think this shoud do..........