[Flashcoders] Loader.close() bug
I'm dealing with a bug that I've seen some references to on the web, but no solutions. Using the Loader.unload() method will unload an object that has completed loading, but to stop a load process that's in progress, the Loader.close() method is specified. However, when trying to use this, I receive a URLStream does not exist error. Has anyone experienced this and possibly found a workaround? Thanks, Paul -- Paul Chang, Ph.D. [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Hand Cursor for Slider Component
I have a rather simple dilemma. I've been trying to get the hand cursor to appear when rolling over the thumb dragger of the Slider component. For other components, setting buttonMode and/or useHandCursor to true seams to take care of that. With the Slider Component, it's not the case. I was able to see a hand cursor if I set the mouseChildren to false, but of course then I can't slide the thumb dragger. Any ideas? Thanks, Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Developer Forums
Hello, I realize that this list is for discussing code, so I'll make this brief. My San Francisco based company is looking to hire an in-house Flash developer and I would appreciate any pointers to lists or url's that might help me find high quality people. Anyone on this list who wants to inquire further should email me directly rather than responding to this list ([EMAIL PROTECTED]). Regards, Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Problem printing html page with embedded swf
Hi All, I am attempting to print an html page with an embedded swf. However, the page prints except for the embedded swf which is just a blank white area. Can someone please suggest the setting that controls this? Thanks in advance, Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Type Coercion Failed: Odd behavior.
Thanks Keith. That worked. On Jun 20, 2007, at 9:29 PM, keith wrote: Maybe this will help the coerce: for (var i:int=0;iparent.numChildren;i++) { if(parent.getChildAt(i) is LiquidObject){ trace(LiquidObject (parent.getChildAt(i)).selected); } } -- Keith H -- Paul Chang wrote: Hello, I've created a custom class: LiquidObject extends Sprite I then create several instances of LiquidObject and add them as children to a parent Sprite. If I cycle through and trace the children as such: for (var i:int=0;iparent.numChildren;i++) { trace(parent.getChildAt(i)); } Each trace shows the correct type of object: [object LiquidObject] When I tried to access a property specific to LiquidObject (LiquidObject.selected) it does not recognize this to be a property because it thinks it's dealing with a general Sprite. So, I attempt to coerce to type LiquidObject as such: for (var i:int=0;iparent.numChildren;i++) { trace(LiquidObject(parent.getChildAt(i)).selected); } Unfortunately, I receive an error stating that I can't coerce type Sprite to LiquidObject. I would think that this would be allowed since (a) LiquidObject extends Sprite and (b) parent.getChildAt(i) is already presenting a type LiquidObject in the trace. Any suggestions would be appreciated. Thanks in advance. Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Type Coercion Failed: Odd behavior.
Thanks for this reference. I performed a simple test and it works. However, for my particular example, I receive an error. var liquidObject:LiquidObject = parent.getChildAt(i) as LiquidObject; assigns null to liquidObject. The only thing that has worked for me so far is: if (parent.getChildAt(i) is LiquidObject) { trace(LiquidObject(parent.getChildAt(i))); } My only explanation is that I'm attempting to perform this cast WITHIN the LiquidObject class itself. I currently have the stated workaround, but any further insights would be of interest to me. Best, Paul On Jun 21, 2007, at 6:19 AM, Muzak wrote: You should always use the new as operator. This article might help: http://www.darronschall.com/weblog/archives/000211.cfm regards, Muzak - Original Message - From: Amir T Rocker [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, June 21, 2007 11:39 AM Subject: Re: [Flashcoders] Type Coercion Failed: Odd behavior. Hi, i experienced the same behaviour using this type of cast var somVar = Caster( Castee ); sometimes it works and sometimes it doesnt ... I tried to use the 'as' operator and that suddenly works where above coed failed. var someVar = list.getItemAt( i ) as TypeToCast; I hope maybe that works for you too. I havent figured the casting rules quite yet. So if anybody can explain it its really appreciated :) Best of luck Amir Am 04:07 AM 6/21/2007 schrieben Sie: Hello, I've created a custom class: LiquidObject extends Sprite I then create several instances of LiquidObject and add them as children to a parent Sprite. If I cycle through and trace the children as such: for (var i:int=0;iparent.numChildren;i++) { trace(parent.getChildAt(i)); } Each trace shows the correct type of object: [object LiquidObject] When I tried to access a property specific to LiquidObject (LiquidObject.selected) it does not recognize this to be a property because it thinks it's dealing with a general Sprite. So, I attempt to coerce to type LiquidObject as such: for (var i:int=0;iparent.numChildren;i++) { trace(LiquidObject(parent.getChildAt(i)).selected); } Unfortunately, I receive an error stating that I can't coerce type Sprite to LiquidObject. I would think that this would be allowed since (a) LiquidObject extends Sprite and (b) parent.getChildAt (i) is already presenting a type LiquidObject in the trace. Any suggestions would be appreciated. Thanks in advance. Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Type Coercion Failed: Odd behavior.
First, scratch my hypothesis about problems occurring within the class itself. To answer your question, a mouse event (MOUSE_UP) on the particular LiquidObject prompts it to access its siblings. On Jun 21, 2007, at 11:21 AM, elibol wrote: As I understand, each child attempts to access their siblings via the parent. What triggers the children to access their siblings? On 6/21/07, Paul Chang [EMAIL PROTECTED] wrote: Thanks for this reference. I performed a simple test and it works. However, for my particular example, I receive an error. var liquidObject:LiquidObject = parent.getChildAt(i) as LiquidObject; assigns null to liquidObject. The only thing that has worked for me so far is: if (parent.getChildAt(i) is LiquidObject) { trace(LiquidObject(parent.getChildAt(i))); } My only explanation is that I'm attempting to perform this cast WITHIN the LiquidObject class itself. I currently have the stated workaround, but any further insights would be of interest to me. Best, Paul On Jun 21, 2007, at 6:19 AM, Muzak wrote: You should always use the new as operator. This article might help: http://www.darronschall.com/weblog/archives/000211.cfm regards, Muzak - Original Message - From: Amir T Rocker [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, June 21, 2007 11:39 AM Subject: Re: [Flashcoders] Type Coercion Failed: Odd behavior. Hi, i experienced the same behaviour using this type of cast var somVar = Caster( Castee ); sometimes it works and sometimes it doesnt ... I tried to use the 'as' operator and that suddenly works where above coed failed. var someVar = list.getItemAt( i ) as TypeToCast; I hope maybe that works for you too. I havent figured the casting rules quite yet. So if anybody can explain it its really appreciated :) Best of luck Amir Am 04:07 AM 6/21/2007 schrieben Sie: Hello, I've created a custom class: LiquidObject extends Sprite I then create several instances of LiquidObject and add them as children to a parent Sprite. If I cycle through and trace the children as such: for (var i:int=0;iparent.numChildren;i++) { trace(parent.getChildAt(i)); } Each trace shows the correct type of object: [object LiquidObject] When I tried to access a property specific to LiquidObject (LiquidObject.selected) it does not recognize this to be a property because it thinks it's dealing with a general Sprite. So, I attempt to coerce to type LiquidObject as such: for (var i:int=0;iparent.numChildren;i++) { trace(LiquidObject(parent.getChildAt(i)).selected); } Unfortunately, I receive an error stating that I can't coerce type Sprite to LiquidObject. I would think that this would be allowed since (a) LiquidObject extends Sprite and (b) parent.getChildAt (i) is already presenting a type LiquidObject in the trace. Any suggestions would be appreciated. Thanks in advance. Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FileReference
I was happy to see a FileReference Class finally in Flash so that the upload of basic files could be accomplished without the use of backend scripts. However, I want to use FileReference in a slightly different way and I feel like it should be possible but can't quite get there. Here's the goal: Allow the user to select a text file from their local file system to populate a text field on the stage. Solution?: I used FileReference.browse() to allow the user to find the file of interest, once selected, I have access to the FileReference properties including file name. If I had the path to the file in addition to name, I could use URLLoader to pull in the text file, but I only have name. Questions: Is there a way to get at the full qualified path for the file? Or better, since I have the FileReference object, is there a way to access its contents? Thanks in advance, Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Type Coercion Failed: Odd behavior.
Hello, I've created a custom class: LiquidObject extends Sprite I then create several instances of LiquidObject and add them as children to a parent Sprite. If I cycle through and trace the children as such: for (var i:int=0;iparent.numChildren;i++) { trace(parent.getChildAt(i)); } Each trace shows the correct type of object: [object LiquidObject] When I tried to access a property specific to LiquidObject (LiquidObject.selected) it does not recognize this to be a property because it thinks it's dealing with a general Sprite. So, I attempt to coerce to type LiquidObject as such: for (var i:int=0;iparent.numChildren;i++) { trace(LiquidObject(parent.getChildAt(i)).selected); } Unfortunately, I receive an error stating that I can't coerce type Sprite to LiquidObject. I would think that this would be allowed since (a) LiquidObject extends Sprite and (b) parent.getChildAt(i) is already presenting a type LiquidObject in the trace. Any suggestions would be appreciated. Thanks in advance. Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Can I read XML before it is loaded?
I don't have the original post for this thread, but if you're in AS3, perhaps the URLStream class would be what you want. Paul -- Paul Chang, Ph.D. PCD. On May 15, 2007, at 7:34 AM, Smeets, Ben wrote: Try the onData event handler of the XML object. Needs some extra magic I think though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alistair Colling Sent: dinsdag 15 mei 2007 16:07 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Can I read XML before it is loaded? Hi there, I am sure I remember coming across a way of reading an XML file before it is fully loaded though I can't find it. What I would like to do is load all the information from an XML file but only if an attribute in the first node has changed (this is like an ID that the Flash app can use to decide whether or not to load all of the XML unless it is a new version). Has anyone else heard of this of or is this wishful thinking? Thanks :) Ali ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http:// www.figleaf.com http://training.figleaf.com 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@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] popup blockers and flash
Here are a couple of button actions: import flash.external.*; mcEI.onRelease = function() { if (ExternalInterface.available) { ExternalInterface.call(window.open, http://www.paulchang.com/;, win, height=600,width=800,toolbar=no,scrollbars=yes); } } mcGetURL.onRelease = function() { getURL(javascript:newWindow('http://www.paulchang.com/','Test Popup','center',800,600,'yes','no','no','no','no','no');,_self); } The first is calling window.open directly. The second calls a custom js. I believe the code is correct since FireFox executes both. But perhaps there's a nuance that I'm missing. Thanks, Paul -- Paul Chang, Ph.D. PCD. On May 10, 2007, at 1:04 AM, Muzak wrote: show us some code. - Original Message - From: Paul Chang [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, May 10, 2007 6:07 AM Subject: [Flashcoders] popup blockers and flash I've been experiencing some inconsistent behaviors using ExternalInterface (AS2) to call JavaScript to launch a customized popup window. FireFox works seamlessly for both platforms. Safari on Mac and IE on PC are inconsistent. For example, when I call a custom JavaScript function, IE will choke, but it will work calling the window.open command. Mixed in with all of this is the popup blocker issue. Can someone speak to this issue and suggest a dependable approach? Thanks in advance, Paul -- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] popup blockers and flash
I've been experiencing some inconsistent behaviors using ExternalInterface (AS2) to call JavaScript to launch a customized popup window. FireFox works seamlessly for both platforms. Safari on Mac and IE on PC are inconsistent. For example, when I call a custom JavaScript function, IE will choke, but it will work calling the window.open command. Mixed in with all of this is the popup blocker issue. Can someone speak to this issue and suggest a dependable approach? Thanks in advance, Paul -- Paul Chang, Ph.D. [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Missing fl.* AS3 Packages in Flash CS3
Hello, I recently purchased Flash CS3 as part of CS3. To start, I wanted to use the following packages: fl.video.FLVPlayback fl.controls.Button When I tried to import these, I was surprised to get an error that these classes could not be found. I looked in the directories to see why (Mac OSX). I found the directory: Adobe Flash CS3:Configuration:ActionScript 3.0:Classes:fl In here, I found the following packages: lang, livepreview, motion, transitions but no video or controls. I don't know if these other ones are built in, but it doesn't appear so as a simple import statement causes a compile error. Has anyone encountered this issue? Thanks in advance, Paul -- Paul Chang, Ph.D. PCD. [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Missing fl.* AS3 Packages in Flash CS3
Thanks David. I'm aware of this package. The FLVPlayback class, located in fl.video package is supposed to wrap the Video object that you're referring to and it also gives you playback controls automatically. So it's a handy add-on rather than building your own controls. Even simpler than this is the fl.controls package that contains the fl.controls.Button class. I'm not able to access that either. Thanks for your assistance. Paul -- Paul Chang, Ph.D. PCD. 2412 Harrison Street, #103 San Francisco, CA 94110 415-550-7230 415-358-5614 (Fax) [EMAIL PROTECTED] On May 3, 2007, at 5:41 PM, David Ngo wrote: I believe the video classes are sitting under flash.media.*. A quick look at livedocs should give you all the packages: http://livedocs.adobe.com/flex/201/langref/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Chang Sent: Thursday, May 03, 2007 8:26 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Missing fl.* AS3 Packages in Flash CS3 Hello, I recently purchased Flash CS3 as part of CS3. To start, I wanted to use the following packages: fl.video.FLVPlayback fl.controls.Button When I tried to import these, I was surprised to get an error that these classes could not be found. I looked in the directories to see why (Mac OSX). I found the directory: Adobe Flash CS3:Configuration:ActionScript 3.0:Classes:fl In here, I found the following packages: lang, livepreview, motion, transitions but no video or controls. I don't know if these other ones are built in, but it doesn't appear so as a simple import statement causes a compile error. Has anyone encountered this issue? Thanks in advance, Paul -- Paul Chang, Ph.D. PCD. [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Switch back
Somehow I was switched to receiving individual messages rather than in a group. How do I switch back? Thanks, Paul -- Paul Chang, Ph.D. PCD. 2412 Harrison Street, #103 San Francisco, CA 94110 415-550-7230 415-358-5614 (Fax) [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Encryption Packages
I'm looking for an encryption package for Flash, particularly one that uses the Blowfish algorithm. Does anyone have knowledge if such a package exists? Thanks, Paul [EMAIL PROTECTED] -- Paul Chang, Ph.D. PCD. 2412 Harrison Street, #103 San Francisco, CA 94110 415-550-7230 415-358-5614 (Fax) [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com