RE: [Flashcoders] Seeking example: pop up div with greyed outbackground
Thanks, Matt. I suspected that Flash would always want to be in the front. Thanks for the heads up. Much appreciated. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3]
many thanks i should be able to sort the problem now! :o) - Original Message - From: Cédric Tabin To: Flash Coders List Sent: Sunday, April 06, 2008 8:18 PM Subject: Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3] Hi Stuart, I you're using a URLRequest directly to upload your file, then you can retrieve it directly if your PHP file echo the file contents :) If you're using the FileReference API, once the upload is finisthed, you'll need to reload your picture file within a Loader or a URLLoader ! Regards, Cedric On Sun, Apr 6, 2008 at 6:30 PM, Stuart Moir [FunkDaWeb] < [EMAIL PROTECTED]> wrote: > Hi Cedric > > Its currently an XML value with the file name i.e. MYIMAGE01 > > then in flash the path is hard coded i.e. "uploadedimage/" + > xmlClass.xmlData.ImageURL + ".jpg" > > So i presume i would need to reload the XML file? > > SM > - Original Message - > From: Cédric Tabin > To: Flash Coders List > Sent: Sunday, April 06, 2008 5:06 PM > Subject: Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3] > > > Hi Stuart, > > Once your ASP file has retrieved the uploaded image, then it can simply > display it as binary. The URLLoader object that you use after that will > retrieve a BINARY data that you can load into a Loader instance :) How do > you proceed to upload your picture for now ? > > Regards, > Cedric > > On Sun, Apr 6, 2008 at 5:55 PM, Stuart Moir [FunkDaWeb] < > [EMAIL PROTECTED]> wrote: > > > Hi can you point me to any examples/tutorials for the following > problem... > > > > I want to upload an image through a flash app via ASP (the asp part is > not > > a problem) and then have it displayed in the flash application. > > > > I know how to send the image to ASP but don't know how to wait for it > to > > be uploaded then display it in flash. This might be really simple but I > just > > can not figure it out in my head! > > > > SM > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3]
Hi Stuart, I you're using a URLRequest directly to upload your file, then you can retrieve it directly if your PHP file echo the file contents :) If you're using the FileReference API, once the upload is finisthed, you'll need to reload your picture file within a Loader or a URLLoader ! Regards, Cedric On Sun, Apr 6, 2008 at 6:30 PM, Stuart Moir [FunkDaWeb] < [EMAIL PROTECTED]> wrote: > Hi Cedric > > Its currently an XML value with the file name i.e. MYIMAGE01 > > then in flash the path is hard coded i.e. "uploadedimage/" + > xmlClass.xmlData.ImageURL + ".jpg" > > So i presume i would need to reload the XML file? > > SM > - Original Message - > From: Cédric Tabin > To: Flash Coders List > Sent: Sunday, April 06, 2008 5:06 PM > Subject: Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3] > > > Hi Stuart, > > Once your ASP file has retrieved the uploaded image, then it can simply > display it as binary. The URLLoader object that you use after that will > retrieve a BINARY data that you can load into a Loader instance :) How do > you proceed to upload your picture for now ? > > Regards, > Cedric > > On Sun, Apr 6, 2008 at 5:55 PM, Stuart Moir [FunkDaWeb] < > [EMAIL PROTECTED]> wrote: > > > Hi can you point me to any examples/tutorials for the following > problem... > > > > I want to upload an image through a flash app via ASP (the asp part is > not > > a problem) and then have it displayed in the flash application. > > > > I know how to send the image to ASP but don't know how to wait for it > to > > be uploaded then display it in flash. This might be really simple but I > just > > can not figure it out in my head! > > > > SM > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] haXe Physics Engine
Hi list, I'm please to announce the 1.0 release of Physaxe, the haXe Physics Engine. You can watch the demo on http://blog.haxe.org Physaxe uses many of the recent haXe optimizations for Flash9, such as inlining and generated generics. It should then be one of most fast physics engine around. Full sourcecode is available on Google project page on http://code.google.com/p/physaxe Enjoy ! Nicolas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3]
Hi Cedric Its currently an XML value with the file name i.e. MYIMAGE01 then in flash the path is hard coded i.e. "uploadedimage/" + xmlClass.xmlData.ImageURL + ".jpg" So i presume i would need to reload the XML file? SM - Original Message - From: Cédric Tabin To: Flash Coders List Sent: Sunday, April 06, 2008 5:06 PM Subject: Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3] Hi Stuart, Once your ASP file has retrieved the uploaded image, then it can simply display it as binary. The URLLoader object that you use after that will retrieve a BINARY data that you can load into a Loader instance :) How do you proceed to upload your picture for now ? Regards, Cedric On Sun, Apr 6, 2008 at 5:55 PM, Stuart Moir [FunkDaWeb] < [EMAIL PROTECTED]> wrote: > Hi can you point me to any examples/tutorials for the following problem... > > I want to upload an image through a flash app via ASP (the asp part is not > a problem) and then have it displayed in the flash application. > > I know how to send the image to ASP but don't know how to wait for it to > be uploaded then display it in flash. This might be really simple but I just > can not figure it out in my head! > > SM > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Uploading Image & Displaying in Flash [AS3]
Hi Stuart, Once your ASP file has retrieved the uploaded image, then it can simply display it as binary. The URLLoader object that you use after that will retrieve a BINARY data that you can load into a Loader instance :) How do you proceed to upload your picture for now ? Regards, Cedric On Sun, Apr 6, 2008 at 5:55 PM, Stuart Moir [FunkDaWeb] < [EMAIL PROTECTED]> wrote: > Hi can you point me to any examples/tutorials for the following problem... > > I want to upload an image through a flash app via ASP (the asp part is not > a problem) and then have it displayed in the flash application. > > I know how to send the image to ASP but don't know how to wait for it to > be uploaded then display it in flash. This might be really simple but I just > can not figure it out in my head! > > SM > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Uploading Image & Displaying in Flash [AS3]
Hi can you point me to any examples/tutorials for the following problem... I want to upload an image through a flash app via ASP (the asp part is not a problem) and then have it displayed in the flash application. I know how to send the image to ASP but don't know how to wait for it to be uploaded then display it in flash. This might be really simple but I just can not figure it out in my head! SM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Calling Listener Functions
mm, well guys, when it comes to a long function that handles an event, It wouldn't be convenient to REWRITE it another time to be used manually. Anyways, I'll give a try on that, and feedback. Cheers and thanks for the help. On Sun, Apr 6, 2008 at 2:11 PM, Matt S. <[EMAIL PROTECTED]> wrote: > True. But then again, if at the start you already find yourself > needing to call a function outside of the context of a mouse event, > doesnt that indicate that locking it in as such, and then finding > workarounds, might be more trouble than its worth? > > 2¢ > > .m > > On Sat, Apr 5, 2008 at 11:06 PM, Steven Sacks <[EMAIL PROTECTED]> > wrote: > > I disagree with this approach. It's unnecessary and makes code less > > manageable. It's cleaner to set the argument as optional (event = null) > > than write another subroutine. > > > > > > Matt S. wrote: > > > > > > > > You might want to separate the functions, so you would have > > > myFunction(), which you could call from anywhere, and myClickHandler, > > > which would handle the mouse event specifically. So: > > > > > > fancyButton.addEventListener(MouseEvent.CLICK, myClickHandler); > > > > > > private function myClickHandler(e:MouseEvent):void { > > >myFunction(); > > > } > > > > > > private function myFunction():void{ > > > //blah blah... > > > } > > > > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Calling Listener Functions
True. But then again, if at the start you already find yourself needing to call a function outside of the context of a mouse event, doesnt that indicate that locking it in as such, and then finding workarounds, might be more trouble than its worth? 2¢ .m On Sat, Apr 5, 2008 at 11:06 PM, Steven Sacks <[EMAIL PROTECTED]> wrote: > I disagree with this approach. It's unnecessary and makes code less > manageable. It's cleaner to set the argument as optional (event = null) > than write another subroutine. > > > Matt S. wrote: > > > > > You might want to separate the functions, so you would have > > myFunction(), which you could call from anywhere, and myClickHandler, > > which would handle the mouse event specifically. So: > > > > fancyButton.addEventListener(MouseEvent.CLICK, myClickHandler); > > > > private function myClickHandler(e:MouseEvent):void { > >myFunction(); > > } > > > > private function myFunction():void{ > > //blah blah... > > } > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Calling Listener Functions
Downside of not going through event dispatching is that the argument (e:MouseEvent) will not always be there. So in your function you'll have to take that into consideration if you're relying on it: private function myClickHandler(e:MouseEvent):void { e.currentTarget // etc.. } Will throw an error if the argument is null. Passing a "dummy" mouse event will have the event point to the "wrong" currentTarget. And so on.. Easiest way is to just dispatch the event on the button as I previously posted (version 1). - Original Message - From: "Steven Sacks" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Sunday, April 06, 2008 5:06 AM Subject: Re: [Flashcoders] Calling Listener Functions I disagree with this approach. It's unnecessary and makes code less manageable. It's cleaner to set the argument as optional (event = null) than write another subroutine. Matt S. wrote: You might want to separate the functions, so you would have myFunction(), which you could call from anywhere, and myClickHandler, which would handle the mouse event specifically. So: fancyButton.addEventListener(MouseEvent.CLICK, myClickHandler); private function myClickHandler(e:MouseEvent):void { myFunction(); } private function myFunction():void{ //blah blah... } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders