target is a movieclip, this helps me to instantiate the class in the place I
desire
for example:
var upsApp:Application = new Application(this);
var upsApp:Application = new Application(movie1);
var upsApp:Application = new Application(movie2);
Learned that this week :)
On 4/4/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
Also, you are casting the same variable twice:
var target : Application;
public function Application ( target:MovieClip )
mc = target;
is target an application or a movieclip?
Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Helmut Granda
>>Sent: Wednesday, April 04, 2007 5:14 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Combined Classes fail Tween Class
>>
>>I have a main class that will act as a holder for the rest of
>>my classes, somethig like this:
>>
>>//start sample
>>import com.views.*;
>>
>>class com.Application {
>>
>> var menuL : MovieClip;
>> var contentLL : MovieClip;
>> var footerL : MovieClip;
>> var mc : MovieClip;
>>
>> var target : Application;
>>
>> public function Application ( target:MovieClip ) {
>>
>> mc = target;
>> menuL = mc.createEmptyMovieClip("menuL",
>>mc.getNextHighestDepth() );
>> contentLL = mc.createEmptyMovieClip("contentL",
>>mc.getNextHighestDepth());
>> contentLL._y = 73;
>>
>> init();
>>
>> }
>>
>> private function init() {
>>
>> contentLL.loadMovie("intro.swf");
>> menuL.loadMovie("menu.swf");
>> }
>>}
>>
>>//end sample
>>The content load perfectly but only the latest movie plays as
>>if the latest movie stealed all the motion Tweens and used
>>them leaving the first movie "naked".
>>
>>Is this something common?
>>_______________________________________________
>>[email protected]
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com http://training.figleaf.com
>>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com