Flash MX 2004 Prof - Form application function call question

Posted: 01-26-2004, 04:39 PM
I have a flashmx 2004 professional application using forms. I am able to call methods on my application form from child forms with no problem. However, when I try to call a method on a child form from the application or any other form I have no luck. Any ideas? Thanks.


Reply With Quote

Responses to "Flash MX 2004 Prof - Form application function call question"

Ed Skwarecki
Guest
Posts: n/a
 
Re: Flash MX 2004 Prof - Form application function call question
Posted: 01-26-2004, 05:22 PM
How are you trying to refer to the child forms from the parent? Can you give a little
example?

If you are trying to refer to the child in an on(load) event handler of the parent, that
won't work because the parent loads before the children load. You can't in general refer
to children until the object is fully created, either in the first frame of the parent's
timeline, or perhaps in an on(reveal) handler.


--
Ed Skwarecki
Principal Architect
eLearning
Macromedia
Reply With Quote
ShellyA webforumsuser@macromedia.com
Guest
Posts: n/a
 
Re: Flash MX 2004 Prof - Form application function call question
Posted: 01-26-2004, 09:05 PM
Ed,

Thanks for the reply. After working with it for a while, I figured out that I was using the wrong path to get to the form. The path you take to get to a form sometimes seems to vary. I have found that by going to the root form and them putting in the complete path to the form I wish to use I have the most success. For instance:

Application
--- Form1
-------- Form1_child
--- Form2

When calling form1_child from Form2 I would use this.rootForm.Form1.Form1_child.method() and it works fine.

Thanks again for your help.


Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CF8 Flash form and Rich text Editor Question siriiven Coldfusion Flash Integration 3 03-25-2008 06:37 PM
Coldfusion mail script and flash form question Henrikson Coldfusion Flash Integration 1 01-17-2006 06:17 PM
MX Prof 2004 - Unable to stop movie from looping Chris Pion webforumsuser@macromedia.com Macromedia Flash Actionscript 0 01-13-2004 05:51 PM
Can a web application call methods on a webservice running in the same application Ron Vecchi ASP.NET Web Services 0 08-04-2003 09:08 PM
How to inherit a base form in all application forms of an asp.net application varun varun ASP.NET General 0 07-03-2003 08:58 AM