Re: [Flashcoders] Event Listeners

2010-05-13 Thread John R. Sweeney Jr
I KNEW that was comingĀŠ ;) on 5/13/10 1:56 PM, Merrill, Jason at jason.merr...@bankofamerica.com wrote: > OK, then you're AllDone(). :) John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellul

[Flashcoders] FocusManager

2010-05-13 Thread Elia Morlin
I needed to know which object was in Focus, so I imported the FocusManager from the fl.managers package which is not included in AS projects in Flex. The whole library is rather bloated, and contains loads of warnings. Is there some other FocusManager I should be using for an AS3 project in Flex?

RE: [Flashcoders] Event Listeners

2010-05-13 Thread Merrill, Jason
OK, then you're AllDone(). :) Jason Merrill Bank of America Global Learning Learning & Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Messag

Re: [Flashcoders] Event Listeners

2010-05-13 Thread John Singleton
- Original Message > From: "Merrill, Jason" > To: Flash Coders List > Sent: Thu, May 13, 2010 2:11:39 PM > Subject: RE: [Flashcoders] Event Listeners > > To answer your question, it's a matter of a where and a when which are not > apparent in your sample code. Where is the event > E

Re: [Flashcoders] Event Listeners

2010-05-13 Thread Glen Pike
Remember that events happen in the future - so you want to set up all your listeners on an object before you ask it to do something - in the code below, you call "loader.load" before adding the listeners - that may not work if the thing loaded is small / cached. Also, you might want to be care

Re: [Flashcoders] Buggy Tween

2010-05-13 Thread John R. Sweeney Jr
No problem. :) My example was just an external AS file, not a class. Later, John on 5/13/10 11:17 AM, Lehr, Theodore at ted_l...@federal.dell.com wrote: > Indeed - that seems to be it thanks > > Thanks John also! John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interacti

RE: [Flashcoders] Event Listeners

2010-05-13 Thread Merrill, Jason
To answer your question, it's a matter of a where and a when which are not apparent in your sample code. Where is the event Event.COMPLETE dispatched from container_middle2? When does that event fire? Are you possibly assigning the listener after the event has already fired? Jason Merrill

[Flashcoders] Event Listeners

2010-05-13 Thread John Singleton
Hi; I struggle with event listeners and knowing to what objects to attach them. I have the following code: function SpinMiddle() { big_container.addChild(container_middle2) var path:String = "images/mid" + j + ".png"; var req:URLRequest = new UR

[Flashcoders] Re: Reusing a Mask

2010-05-13 Thread John Singleton
Oops. Just realized could make a master container and just apply the mask to that <:-} John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Reusing a Mask

2010-05-13 Thread John Singleton
Hi; Possible? How? Here's the mask I'd like to reuse. I can obviously pull it out and put it in the general function for the class so it is available for all other functions, but that ain't good enough: var square:Sprite = new Sprite(); addChild(square); squar

RE: [Flashcoders] Buggy Tween

2010-05-13 Thread Lehr, Theodore
Indeed - that seems to be it thanks Thanks John also! From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik (MIN - WSW) [ematth...@webershandwick.com] Sent: Thursday, May 13, 2010 11:0

RE: [Flashcoders] Buggy Tween

2010-05-13 Thread Mattheis, Erik (MIN - WSW)
Could it be you have var tween_handler:Tween inside of a function? If it's a class variable it won't get garbage collected, if it within a function it's eligible for garbage collection when the function is complete. YES: class myClass { var tween_handler:Tween; function myFunction() { tween_h

Re: [Flashcoders] Buggy Tween

2010-05-13 Thread John R. Sweeney Jr
First thing are you tweening the swf you just loaded? If so, make sure its loaded before you start the tween. Second the // do your stuff - is what ever you want to happen next. In my example I was moving a one menu off the stage (left) and another one into view (from the right). I didn't want the

Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-13 Thread Eric E. Dolecki
ServerSocket is sweet - I just whipped up a nice AIR 2 socket server app and then have a regular socket app talking back and forth with it. Rockin'! Eric On Wed, May 12, 2010 at 11:07 PM, Eric E. Dolecki wrote: > Has anyone tried this ServerSocket yet? > > > On Wed, May 12, 2010 at 8:28 PM, eri

RE: [Flashcoders] Buggy Tween

2010-05-13 Thread Lehr, Theodore
Thanks - for to need such hand holding I tried what you said but get the same results... What should be in the //do your stuff here? as far as I have it now - the tween is still handled in the original tween (tween_handler in your example) From:

Re: [Flashcoders] Modifying a already defined tween

2010-05-13 Thread kennethkawam...@gmail.com
I recommend TweenMax, which you can just call updateTo() to change the end value of the tween on the fly. If you need to use your Tween, then I'd imagine you would call continueTo(), but then you have to determine how much time left to complete the tween to new goal. Messy. -- Kenneth Kawamoto ht

Re: [Flashcoders] Modifying a already defined tween

2010-05-13 Thread Glen Pike
Tween.stop() and Tween.fforward() should do it. On 13/05/2010 09:50, Fahim Akhter wrote: Hi, I have a tween like this : new Tween(myObject, "x",null,nowPosition,finalPosition,time,true); sometween.start(); Now when the tween has not finished and is somewhere in the middle and the fi

[Flashcoders] Modifying a already defined tween

2010-05-13 Thread Fahim Akhter
Hi, I have a tween like this : new Tween(myObject, "x",null,nowPosition,finalPosition,time,true); sometween.start(); Now when the tween has not finished and is somewhere in the middle and the final position changes. I want this tween to be modified so instead of moving to its already def