|
Breaking up code into components like that
is good practice. It will be easier to maintain and it will help avoid
the 32k issue. At first look the code seems ok. I’ll
try to run it and see if I see anything. Tracy From: How do you have an mxml file that has two .as files and one
.as file has a function in it that calls the method in the other .as file. Let
me show you what I want to do, here is the mxml file What I want to do is to
have someone press the testouttwo button then have it call the acivatetwo()
method in testouttwo which in turn calls the press method in testout one.
Is this possible to do? I know an mxml file with two .as files is not
neccessary I am just wanting to learn to handle it because I ran in to the 32k
error.: <?xml version="1.0"
encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns="*" width="550"> </mx:HBox> Here is the first .as file class testoutone { function testoutone() { public function activate(){
Now here is the second .as file class testouttwo { public var tview:Object; } }
|
- [flexcoders] Communication betwen two .as files nostra72
- RE: [flexcoders] Communication betwen two .as files Tracy Spratt
- RE: [flexcoders] Communication betwen two .as files Gordon Smith
- RE: [flexcoders] Communication betwen two .as files Tracy Spratt
- Re: [flexcoders] Communication betwen two .as files nostra72

