Re: [Flashcoders] Color to black white

2008-03-18 Thread Sidney de Koning
Oh and to reset an image to its normal color again you apply an new matrix like this: var originalColour:Array = [ 1,0,0,0,0, 0,1,0,0,0,

Re: [Flashcoders] Color to black white

2008-03-18 Thread Sidney de Koning
You can use a color matrix like this: // Flash Imports import flash.filters.ColorMatrixFilter; var greys:Array = [ 0.3086,0.6094,0.082,0,0, 0.3086,0.6094,0.082,0,0,

[Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Hi Is there a way to apply to som text added with as3 some motion or alpha? I've got this working well: import flash.text.TextField; import flash.text.TextFormat; var myTextField:TextField = new TextField(); addChild(myTextField); myTextField.text = Križev pot;

Re: [Flashcoders] TextField motion

2008-03-18 Thread Adrian Park
Hi Pedro. You can't set alpha on TextFields which use device fonts - you'll have to embed the font if you want to be able to set alpha. I think myTextField.x++; probably works but since you only do it once it isn't apparent. You'll have to set up a timer or frame event to do this repeatedly in

[Flashcoders] swc

2008-03-18 Thread Dwayne Neckles
I am gettign long compile times witha papervision project im doing.. i have a hunch that if i use somethign called a swc that has the pv3dclasses precompiled already.. then i can save massive times... anyone know of a way to create them.. and i dont have flex

Re: [Flashcoders] TextField motion

2008-03-18 Thread Allandt Bik-Elliott (Receptacle)
you could put it into a sprite and apply alpha / transformations to that code: import flash.text.TextField; import flash.text.TextFormat; import flash.display.Sprite; var myTextField:TextField = new TextField(); myTextField.text = Križev pot;

Re: [Flashcoders] TextField motion

2008-03-18 Thread Matt S.
if you use a tweening Library like Tweener you can apply fancy-pants tweens directly to the TextField. 2¢... .m On Tue, Mar 18, 2008 at 9:36 AM, Adrian Park [EMAIL PROTECTED] wrote: Hi Pedro. You can't set alpha on TextFields which use device fonts - you'll have to embed the font if you

Re: [Flashcoders] swc

2008-03-18 Thread Glen Pike
You can reduce compile times by using the Flex Compiler Shell. If you are using Flash Develop or similar it works as well. http://www.google.co.uk/search?hl=enq=fcsh+compilerbtnG=Searchmeta= http://www.google.co.uk/search?hl=enq=fcsh+compilerbtnG=Searchmeta= This is not a Papervision thing,

Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Yep you are right. myTextField.x++ should work, but when i put it on a timer i get an error : access of undefined property myTextField Here's the code import flash.text.TextField; import flash.text.TextFormat; var myTextField:TextField = new TextField();

Re: [Flashcoders] TextField motion

2008-03-18 Thread Glen Pike
You might want to try the newbie list, as these questions are getting very basic. Pedro Kostelec wrote: And aprt form that textFiel motion i have another prblem I was vreating a short movie with as3, nothing on the stage No, i want to add something on the stage on Frame 1000 and when i press

Re: [Flashcoders] TextField motion

2008-03-18 Thread Matt S.
Do you need to name your textField, eg say myTextField.name = foo, and then say : private function onTimer2(timer2:TimerEvent):void { var moveme = this.getChildByName(foo); moveme.y++; } On Tue, Mar 18, 2008 at 10:04 AM, Pedro Kostelec [EMAIL PROTECTED] wrote: Yep you

Re: [Flashcoders] TextField motion

2008-03-18 Thread Allandt Bik-Elliott (Receptacle)
you should import the Timer and TimerEvent classes On 18 Mar 2008, at 14:04, Pedro Kostelec wrote: Yep you are right. myTextField.x++ should work, but when i put it on a timer i get an error : access of undefined property myTextField Here's the code import flash.text.TextField;

Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Yes i know this questions are very basic, so don't need to reply them,. I am not gonna do it like this i will leave this part for another day Thanks to all On Tue, Mar 18, 2008 at 3:34 PM, Glen Pike [EMAIL PROTECTED] wrote: You might want to try the newbie list, as these questions are getting

[Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
Hi All, I have a small dilema with calling an event from a loaded SWF, either through a direct call or dispatching an event. Basically my main application loads different SWFs to a container and there is about 20 of them but one (and only one) needs to interact with the application. I tried to

Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Sidney de Koning
AS2, AS3, AIR? Tell us more! On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote: Hi All, I have a small dilema with calling an event from a loaded SWF, either through a direct call or dispatching an event. Basically my main application loads different SWFs to a container and there is about

Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
AS3, compiled with Flash IDE. On 3/18/08, Sidney de Koning [EMAIL PROTECTED] wrote: AS2, AS3, AIR? Tell us more! On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote: Hi All, I have a small dilema with calling an event from a loaded SWF, either through a direct call or dispatching an

RE: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Merrill, Jason
Does the event in the .swf bubble? If so, you should be able to detect it's event as it travels up the display list. If not, can you make it bubble? Jason Merrill Bank of America GTO and Risk LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer

Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Sidney de Koning
In AS3 your dynamic loaded content is placed in a sanbox, where you have limited functionality. Can you show the code of how you are loading that specific item? S. On Mar 18, 2008, at 5:27 PM, Helmut Granda wrote: AS3, compiled with Flash IDE. On 3/18/08, Sidney de Koning [EMAIL PROTECTED]

Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
time to read on event bubbling.. currently I just have the call on the timeline frame5: callParentMethod(); so, i would need to investigate how to make it bubble Would that be the only way to access this method? On 3/18/08, Merrill, Jason [EMAIL PROTECTED] wrote: Does the event in the

[Flashcoders] Setting buttonMode=true for all movieclips

2008-03-18 Thread Berkay Unal
Hi Coders, Is there a way to set buttonMode=true for all movieclips without extending MovieClip class with overwriting? Best -- Berkay UNAL ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Merrill, Jason
hmmm... reading Sydney's post, reminds me that events bubbling up the display list from loaded assets might not be possible, not sure if events are turned off or not from loaded .swfs... Jason Merrill Bank of America GTO and Risk LLD Solutions Design Development eTools Multimedia Bank of

Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
sure... it is as simple as this: // gets the loaded SWF var theContent:MovieClip = bulkLoader.getMovieClip(path); // creates a movieclip that will hold the loaded content var movieHolder:MovieClip = new MovieClip; // add the content to the movieHolder clip movieHolder.addChild(theContent); //

Re: [Flashcoders] dictionary vs array

2008-03-18 Thread Leandro Ferreira
There's also a performance issue there, since some array operations(ie. splice) are more expensive than in dictionaries and some dictionaries operations(ie. for in) are more expensive than array ones. Leandro Ferreira On 3/11/08, Hans Wichman [EMAIL PROTECTED] wrote: On a sidenote, it's

Re: [Flashcoders] dictionary vs array

2008-03-18 Thread Steven Sacks
If you want the best performance you can get: http://lab.polygonal.de/2007/11/26/data-structures-more-on-linked-lists/ His doubly linked list is insanely fast. What I mean is, I had some code that moved non-sequential items around a list. Using an Array, I could easily cause Flash to timeout

[Flashcoders] AS3 preloader access...or getDefinition ??

2008-03-18 Thread laurent
I have a index.swf from a Main.as Class, that load a Preloader.swf made from a Preloader.as class. the Main class load is throught a Loader Class. Then the Preloader throw Event when loading is own stuff so from the Main I have EventListener on the Preloader. I can't find the way to reach

Re: [Flashcoders] Setting buttonMode=true for all movieclips

2008-03-18 Thread Helmut Granda
Could you elaborate on your question? On 3/18/08, Berkay Unal [EMAIL PROTECTED] wrote: Hi Coders, Is there a way to set buttonMode=true for all movieclips without extending MovieClip class with overwriting? Best -- Berkay UNAL ___ Flashcoders

Re: [Flashcoders] AS3 preloader access...or getDefinition ??

2008-03-18 Thread laurent
ho gosh...how many hours...I had the lxl variable PRIVATE...! laurent a écrit : I have a index.swf from a Main.as Class, that load a Preloader.swf made from a Preloader.as class. the Main class load is throught a Loader Class. Then the Preloader throw Event when loading is own stuff so