[Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Jiri Heitlager
Does somebody now if it is possible to get the name of a function from the scope of that function. function doSomething():void { trace('the name of this function is ' , $$name$$) } Where the trace would be : the name of this function is doSomething In Java one has acces to stack

[Flashcoders] (Another) quick Delegate question

2008-09-16 Thread Alistair Colling
Hiya, my onLoadProgress / onLoadInit Delegate events won't fire. I've compared this class with other examples and I can't see where I'm going wrong. Any help really really appreciated :) Here's my code: import PreLoader; import Display; import mx.utils.Delegate; class LoadManager {

[Flashcoders] (Another) quick AS2 Delegate question

2008-09-16 Thread Ali Drongo
Hiya, my onLoadProgress / onLoadInit Delegate events won't fire. I've compared this class with other examples and I can't see where I'm going wrong. Any help really really appreciated :) Ali Here's my code: import PreLoader; import Display; import mx.utils.Delegate; class LoadManager {

Re: [Flashcoders] (Another) quick AS2 Delegate question

2008-09-16 Thread Glen Pike
Hi, You should just be able to add yourself as a listener without creating the extra object: initLoader.addListener(this); Then make sure you implement all the listener functions for MCL Glen Ali Drongo wrote: Hiya, my onLoadProgress / onLoadInit Delegate events won't fire.

Re: [Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Meinte van't Kruis
to have a stack trace the easiest way would be: try{ throw new Error(Stack trace); }catch(e:Error){ trace(e.getStackTrace(); } On Tue, Sep 16, 2008 at 1:24 PM, Jiri Heitlager [EMAIL PROTECTED] wrote: Does somebody now if it is possible to get the name of a function from the scope of

Re: [Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Hans Wichman
Hi, here is an as2 method, maybe it's portable: http://objectpainters.com/blog/2007/07/16/argumentscallee_name/ greetz JC On Tue, Sep 16, 2008 at 1:24 PM, Jiri Heitlager [EMAIL PROTECTED] wrote: Does somebody now if it is possible to get the name of a function from the scope of that function.

Re: [Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Juan Pablo Califano
A rather dirty way is to enumerate all methods in a given object (the current timeline, for instance) and compare that to the self-reference that a function holds in arguments.callee. function test():void { trace(getName(arguments.callee,this)); } function

[Flashcoders] Mac Webkit / Flash app fails on 10.5

2008-09-16 Thread Tony P
I've got a game app that happily displays Flash full-screen in a WebKit WebView (using a Special Protocol handler for Flash communication) on OS X 10.4 (kicking off from some HTML). I posted this on the WebKit mailing list back in July. Running on Leopard (10.5.4 and earlier) the Flash

Re: [Flashcoders] (Another) quick AS2 Delegate question

2008-09-16 Thread Ali Drongo
Sweet as a nut. Thankyou Glen! On 16 Sep 2008, at 12:46, Glen Pike wrote: Hi, You should just be able to add yourself as a listener without creating the extra object: initLoader.addListener(this); Then make sure you implement all the listener functions for MCL Glen Ali

[Flashcoders] [OT] Director Next Roadmap Survey

2008-09-16 Thread Charles Parcell
Dean asked that I post this to this list in hopes that previous Director users who now use Flash, would take the time to fill out this survey. Likewise, Flash developers who have interest in other multimedia tools by Adobe are also asked to take part in this survey. Adobe is listening. :)

[Flashcoders] Testing

2008-09-16 Thread Charles Parcell
Testing my messages are not getting through I think. Charles P. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Testing

2008-09-16 Thread Ian Thomas
Yes they are. This is a common issue with Gmail - it is 'clever' enough not to show you your own emails to a mailing list unless they're replied to. Ian On Tue, Sep 16, 2008 at 3:54 PM, Charles Parcell [EMAIL PROTECTED] wrote: Testing my messages are not getting through I think. Charles

Re: [Flashcoders] Testing

2008-09-16 Thread Charles Parcell
Hmm I just never noticed it before. :) Thanks. Charles P. On Tue, Sep 16, 2008 at 11:00 AM, Ian Thomas [EMAIL PROTECTED] wrote: Yes they are. This is a common issue with Gmail - it is 'clever' enough not to show you your own emails to a mailing list unless they're replied to. Ian On

RE: [Flashcoders] Testing

2008-09-16 Thread Romuald Quantin
I didn't know that, I've got the same issue. Any way to solve it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 16 September 2008 16:01 To: Flash Coders List Subject: Re: [Flashcoders] Testing Yes they are. This is a common issue with

Re: [Flashcoders] Testing

2008-09-16 Thread Ian Thomas
Not that I know of. It's not really a problem, is it? If you really think your email didn't get through (I haven't had it happen, but you never know), you could always check the archives of the appropriate mailing list... Ian On Tue, Sep 16, 2008 at 4:35 PM, Romuald Quantin [EMAIL PROTECTED]

[Flashcoders] OT - Detecting flash versions for a large site

2008-09-16 Thread Lord, Susan, CTR, DSS
Hi everyone, I am in a bit of a quandary... I need to do 2 things. First of all, I need to convince my gov't client that AS3 and flash 9 are the way to go for new development. Does anyone know of a good list of benefits I might be able to share with my client? My second task... I need to

Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Ian Thomas
Ali, You need to set the visible _after the clip has loaded_ - because a load replaces a bunch of properties on a MovieClip, including _visible. Take a look at the MovieClipLoader class, which dispatches a callback called onComplete when the clip is loaded. An alternative is to create a

Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Juan Pablo Califano
When you use loadMovie (or loadClip, for that matter), the target clip is replaced by the loaded clip (or swf) and loses all of its properties. So, when you do this: initLoader.loadClip(assets.swf, tmpContainer); tmpContainer will have all its default values reset. And so, _visible will be

Re: [Flashcoders] Can't set mc._visible property

2008-09-16 Thread Ali Drongo
Thanks Ian and Juan, I had forgotten about that! Cheers, Ali On 16 Sep 2008, at 17:25, Juan Pablo Califano wrote: When you use loadMovie (or loadClip, for that matter), the target clip is replaced by the loaded clip (or swf) and loses all of its properties. So, when you do this:

Re: [Flashcoders] OT - Detecting flash versions for a large site

2008-09-16 Thread Bob Wohl
Well, the most important reason for people to have the latest FP is the security fix(fixed in 9.0.124). But, Adobe does not supply that version's penetration as of yet:

Re: [Flashcoders] OT - Detecting flash versions for a large site

2008-09-16 Thread sebastian
Hi Susan, This might help you a little: http://www.adobe.com/products/player_census/flashplayer/version_penetration.html In google you can find more stats by using some or all of these words: flash player penetration version statistics and to make your own stats:

[Flashcoders] Resizing Flash Windows with Loaded JPGs?

2008-09-16 Thread Doug Coning
Greetings everyone, I have a Flash web site in which I need flash to resize depending on the user's browser window size. However, the flash file dynamically loads images and FLVs. Is there a simple way to have flash automatically take a 950 X 600 size file and reduce it to fit in a smaller

Re: [Flashcoders] Resizing Flash Windows with Loaded JPGs?

2008-09-16 Thread Bob Wohl
Hi Doug, you can change the code in the html to width/height = 100%. As long as you haven't set the Stage.scalemode in the swf then it will scale to fit the embed height/width. It should work for dynamic content, but I've never had to do this due to image quality on scaling. you can do this in the

[Flashcoders] RE: Resizing Flash Windows with Loaded JPGs?

2008-09-16 Thread Doug Coning
Nevermind. Figured out that I was using a class that was overriding the Stage.scaleMode and thus, the resize wouldn't work... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Tuesday, September 16, 2008 1:35 PM To:

[Flashcoders] HTTP Status Events

2008-09-16 Thread Ketan Anjaria
I am working with Twitter's API which returns various status codes for different calls.Some of the status codes indicate an error http://apiwiki.twitter.com/REST+API+Documentation#HTTPStatusCodes I am tracking these errors using the HTTPStatus events but I can't seem to get the xml returned. Is

Re: [Flashcoders] OT - Detecting flash versions for a large site

2008-09-16 Thread Glen Pike
Hi, Google Analytics will report the Flash version down to the revision if you have this installed already, you are laughing. It's tucked under Visitors-Browser Capabilities-Flash Versions on the Analytics page. Glen Lord, Susan, CTR, DSS wrote: Hi everyone, I am in a bit of a

Re: [Flashcoders] OT - Detecting flash versions for a large site

2008-09-16 Thread Bob Wohl
That's pretty hot Glen. I didn't know that was there! Thanks, learned something new! =) B. On Tue, Sep 16, 2008 at 12:50 PM, Glen Pike [EMAIL PROTECTED]wrote: Hi, Google Analytics will report the Flash version down to the revision if you have this installed already, you are laughing. It's

Re: [Flashcoders] OT - Detecting flash versions for a large site

2008-09-16 Thread Glen Pike
Hi, It's quite nice and I have used Flash with Analytics for tracking too - just by calling the javascript functions (bit of a fiddle in AS3), but straightforward in AS2 and you can set up Goals too for your site to measure your targets and see how people got there. As much as I have

Re: [Flashcoders] Retreive name of function within scope of that function

2008-09-16 Thread Jiri Heitlager
Thank you all for the helpfull reply. JIri Juan Pablo Califano wrote: A rather dirty way is to enumerate all methods in a given object (the current timeline, for instance) and compare that to the self-reference that a function holds in arguments.callee. u function test():void {