Re: [Flashcoders] Delegate question...

2008-02-02 Thread EECOLOR
class fly.Delegate extends Object { static function create(obj:Object, func:Function):Function { var returnFunction = function() { var self:Function = arguments.callee; var target_obj:Object = self.target_obj; var func:Function = self.func; var

RE: [Flashcoders] LoadVars and SQL Query issue

2008-02-02 Thread Pete Hotchkiss
Omar This is the least of your worries google SQL injection attacks before you waste too much more development time trying to resolve this issue. Pete -Original Message- From: [EMAIL PROTECTED] on behalf of Omar Fouad Sent: Sat 2/2/2008 1:07 AM To: Flash Coders List Subject:

Re: [Flashcoders] Delegate question...

2008-02-02 Thread [p e r c e p t i c o n]
you guys are indeed the best many thanks p On Feb 2, 2008 5:28 AM, EECOLOR [EMAIL PROTECTED] wrote: class fly.Delegate extends Object { static function create(obj:Object, func:Function):Function { var returnFunction = function() { var self:Function =

Re: [Flashcoders] Delegate question...

2008-02-02 Thread Randy Troppmann
You can use an event proxy such as Grant Skinner's: http://www.gskinner.com/blog/archives/2004/05/source_code_eve.html - Randy On Feb 2, 2008 10:52 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: you guys are indeed the best many thanks p On Feb 2, 2008 5:28 AM, EECOLOR [EMAIL

[Flashcoders] Save MC as JPG

2008-02-02 Thread Dave Mennenoh
Does this make sense to anyone - I have a jpeg outputter working for the most part. However, I just swapped out my test clip, for a different image and it seems any other image (MC) I try to use just shows up as solid white - with the correct dimensions though. I tried a couple different ones

Re: [Flashcoders] Event Handling in ActionScript 3

2008-02-02 Thread EECOLOR
just can't think of one now. The most common case where you do not extend the EventDispatcher is when you need to extend the Proxy class in order to catch dynamic method and property calls. In that case you need to extend a class that does not extend EventDispatcher itself you can do something

Re: [Flashcoders] Bundle swf's on server for transport to client

2008-02-02 Thread EECOLOR
With AS2 this indeed seems tricky. With AS3 you could just zip the stuff, unzip within your Flash application and load the bytes. Your best guess is a tool like swfmill that has the ability to create swf's on the server. I only know of a library in java that has the ability to generate swf's

[Flashcoders] Resizing a background image only.And keeping aspect ratio.

2008-02-02 Thread Vlado Krempl
Hello everyone, Question: (Using actionscript 3) How to scale just the background image (photograph) fullscreen in the browser but still keep it's aspect ratio. All the solutions on the internet seem to still be in Actionscript 2. I'm using the code below -

Re: [Flashcoders] Catching an error from a component

2008-02-02 Thread EECOLOR
I am not sure how it is possible that the item has been removed from the display list. I however take your word for it :) Since you can not put a try / catch block (or check) around error area the solutions are limited. My first thought was to extend the component and override the

Re: [Flashcoders] Video has no mouseEnabled, help (AS3)

2008-02-02 Thread EECOLOR
In case this doesnt help you could also check out the property: mouseChildren and do something like parent.mouseChildren = false; Greetz Erik On 1/25/08, Matthias Dittgen [EMAIL PROTECTED] wrote: Hi! oh, I found a solution. I have to do a parent.mouseEnabled = false, too, because parent is

Re: [Flashcoders] How to call custom method on loaded AS3 swf?

2008-02-02 Thread EECOLOR
This is the perfect example as to where you would use an interface: Interface definition: public interface MyFrameworkInferface { function startup():void }; Class in the swf that is loaded in: public class MyLoadedClass { public function startup():void { /stuff }; };

Re: [Flashcoders] Question about Arrays

2008-02-02 Thread EECOLOR
I believe it's type * so you should cast it. This has nothing to do with that, hehe. There is a tiny difference beween ClassToCastTo(value) and (value as ClassToCastTo). In the first case a compiler error will be thrown. In the second case the cast will be tried. If it fails the resulting value

Re: [Flashcoders] AS3 type coercion error

2008-02-02 Thread EECOLOR
The only thing I can think of is that it is most likely a problem concerning the ApplicationDomain. You probably load the swf into its own application domain, which means it will use the AbstractPreloader class of the swf instead of the one in your main application. The solution here would be to