Re: [Flashcoders] Giving all objects new methods ...

2008-05-17 Thread Paul Andrews
You're already using inheritance, but probably should be using interfaces, which would allow you to add the tracer method to any class regardless of it's inheritance MyClass implements tracer rather than MyClass extends TracingClass. I can't help but wonder if you're confusing a class having

[Flashcoders] open pdf file or doc from flash

2008-05-17 Thread sense co moh
Hello Guys I need to know how can I open pdf file or MSword file from flash projector I tried fscommand but it dosent . Thanks Bassam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] open pdf file or doc from flash

2008-05-17 Thread Ibrahim Y
you want to open it inside your player or in its application? On Sat, May 17, 2008 at 1:16 PM, sense co moh [EMAIL PROTECTED] wrote: Hello Guys I need to know how can I open pdf file or MSword file from flash projector I tried fscommand but it dosent . Thanks Bassam

Re: [Flashcoders] Giving all objects new methods ...

2008-05-17 Thread EECOLOR
I created a file called dump.as within the fly.utils package: *package fly.utils { public function dump(obj:Object, maxSuperClasses_int:int = 0):void { }; };* This way, I can just call* dump(something)*. Greetz Erik On 5/17/08, Stephen Ford [EMAIL PROTECTED] wrote: AS3 Question:

[Flashcoders] need help.. switch statement parameters

2008-05-17 Thread rlyn ben
its giving me 1120 error on switch statement parameters.. switch(event.target.selection.name) { what am i missing on the code?... import flash.events.Event; import fl.events.ComponentEvent; import fl.controls.RadioButtonGroup; stop(); var gRB:RadioButtonGroup =

Re: [Flashcoders] open pdf file or doc from flash

2008-05-17 Thread sense co moh
I want to in its application - Original Message From: Ibrahim Y [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, May 17, 2008 2:41:22 PM Subject: Re: [Flashcoders] open pdf file or doc from flash you want to open it inside your player or in its

Re: [Flashcoders] need help.. switch statement parameters

2008-05-17 Thread Rob Romanek
Try changing this line: switch(event.target.selection.name) { to this: switch(e.target.selection.name) { hth, Rob On 17-May-08, at 11:35 AM, rlyn ben wrote: its giving me 1120 error on switch statement parameters.. switch(event.target.selection.name) { what am i missing on the

Re: [Flashcoders] open pdf file or doc from flash

2008-05-17 Thread Glen Pike
With fscommand you have to be careful where you put the folder with the batch files in - if I remember rightly (check the documentation) it is supposed to be in the same directory as the SWF / projector, e.g. projector.exe | + fscommand\ - open-pdf-1.bat - open-doc-1.bat -

Re: [Flashcoders] open pdf file or doc from flash

2008-05-17 Thread Mike Chabot
Can you just display a URL to a file on a server and have the user click on the URL? That would be easy. -Mike Chabot On Sat, May 17, 2008 at 12:39 PM, Glen Pike [EMAIL PROTECTED] wrote: With fscommand you have to be careful where you put the folder with the batch files in - if I remember

[Flashcoders] Play MOV in flash

2008-05-17 Thread Scott Wilhelm (HireAWebGeek.com)
Is it possible to play a MOV file within flash? Thanks, Scott ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Flash Player 10 BETA

2008-05-17 Thread laurent
I'm looking for the Flash.display::Shader and ShaderData class from the new API. When can we get them ? L Glen Pike a écrit : From the release notes... _Dynamic Sound Generation_ — Dynamic sound generation extends the Sound class to play back dynamically created audio content through the

Re: [Flashcoders] Flash Player 10 BETA

2008-05-17 Thread laurent
ok they all are in the flex_sdk not in the intrinsic AS3 classes : http://www.flashdevelop.org/community/viewtopic.php?t=3039 L laurent a écrit : I'm looking for the Flash.display::Shader and ShaderData class from the new API. When can we get them ? L Glen Pike a écrit : From the

[Flashcoders] FP10 demo (w/ source code)

2008-05-17 Thread Eduardo Omine
This is a simple Cover Flow demo I made today for FP10: http://blog.omine.net/2008/05/17/flash-player-10-cover-flow/ -- Eduardo Omine http://blog.omine.net/ http://www.omine.net/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] help again.. NaN

2008-05-17 Thread rlyn ben
need to display number to the resultTxt but when i press the first number it displays NaN.. when i enter the second number.. it display the number but with the NaN.. :( stop(); ageField.addEventListener(TextEvent.TEXT_INPUT, convertAge); function convertAge (event:TextEvent):Number {  var

Re: [Flashcoders] help again.. NaN

2008-05-17 Thread Steven Sacks
Your textfield is probably set to multiline or something like that. Anything like a carriage return will cause parseInt to break. rlyn ben wrote: need to display number to the resultTxt but when i press the first number it displays NaN.. when i enter the second number.. it display the number

Re: [Flashcoders] help again.. NaN

2008-05-17 Thread Juan Pablo Califano
It seems like the TEXT_INPUT event is fired before the .text property is set with the user's input. So, when you try to read the value from the text input, it returns an empty string; which, parsed as an integer, returns NaN. So, you have get the current input char from the event.text field, and

Re: [Flashcoders] help again.. NaN

2008-05-17 Thread Juan Pablo Califano
PD: Actually, the parseInt part is not needed if you are going to manipulate the input as text... So, you can change this line: resultTxt.text = (parseInt(ageField.text) + inputChar).toString(); to: resultTxt.text = ageField.text + inputChar; Since parseInt(ageField.text) is converted to a

Re: [Flashcoders] StageDisplayState.FULL_SCREEN

2008-05-17 Thread Allandt Bik-Elliott (Receptacle)
anyone have any ideas about this please? is it maybe throwing up an issue with the get method? On 16 May 2008, at 18:48, Allandt Bik-Elliott (Receptacle) wrote: okay - i'm trying to get this to work but Capabilities.screenResolutionX is a strange beast when i run the following traces, i

Re: [Flashcoders] StageDisplayState.FULL_SCREEN

2008-05-17 Thread Zeh Fernando
screenResX:Number = Capabilities.screenResolutionX; Are you really doing this? Does it have a var in front of the code? Zeh ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] help again.. NaN

2008-05-17 Thread Steven Sacks
You can just cast it as int and it will resolve as 0 if it's empty string or contains non-numeric characters. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] need help.. switch statement parameters

2008-05-17 Thread Paul Andrews
- Original Message - From: rlyn ben [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, May 17, 2008 4:35 PM Subject: [Flashcoders] need help.. switch statement parameters its giving me 1120 error on switch statement parameters..

Re: [Flashcoders] help again.. NaN

2008-05-17 Thread rlyn ben
yes.. thank you so much.. this helps alot.. (^_^).. i do need to convert the string to number coz i have to add it up with values from radiobuttons.. and oh yea.. i got one more problem then im done.. sorry if i ask novice questions.. im just new to as3.. and willing to learn more.. enhance