[Flashcoders] Interface for displayObjects
Hi! I have a tiny little problem with the following: I have two classes that should have the same dataType in order to use them in a third class. So I created an Interface that both of them implement. The two classes extend Sprite because they have a visual representation. However, when I try to add them to the displayList flash doesn't recognise them as a displayObject. I read that many people at this moment cast them back to a displayObject but that to me feels like a workaround. Anybody any suggestions? Thanks! Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading FLV with NetStream
Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should be walking around randomly. I was thinking about something like this: * each person gets 4 flv's: (or 2 if i mirror them): turn right, walk right, turn left, walk left * all the flv's get preloaded * a player class plays 'walk right' for x times, then 'turn left', 'walk left' for y times (x y are random), 'turn right' and repeat Is this feasible? Can I put 6 video objects on stage without any problems? And concerning the preloading, I was thinking about simply setting bufferTime to a very high value or is that naive? Is preloading all the flv's in the cache and keeping the bufferTime as normal a better option? What happens if the user has disabled his/her browser cache? Another option would be to load the walk cycles as still images, not sure what the better option, your opinion is appreciated:) regards JC On Wed, Apr 4, 2007 at 6:49 PM, Jack Doyle j...@greensock.com wrote: The PreloadAssetManager class simply preloads your assets into your browser's cache; it is not meant to be used for playback or managing your FLVs once they're preloaded. There's nothing special that you need to do in order to access the preloaded FLVs - just call them as you normally would either using a NetStream object of your own or an FLVPlayback component or whatever. The user's browser will be smart enough to used the cached FLVs instead of going out to the web and downloading them again. You might want to search the Flash Help files for NetStream or FLVPlayback. Jack -Original Message- Date: Wed, 04 Apr 2007 10:59:02 -0400 From: leolea pou...@videotron.ca Subject: Re: [Flashcoders] Preloading FLV with NetStream To: flashcoders@chattyfig.figleaf.com Message-ID: c2393576.e280%pou...@videotron.cac2393576.e280%25pou...@videotron.ca Content-Type: text/plain; charset=US-ASCII Preloading works super fine! Thank you very much for this class. I am preloading a bunch of FLVs. Once they get at 100%, how do I access them using a NetStream object (or other) ? (I need to implement something that initates the playback of the first one, when it reaches the end I must start the second one, so on...) On 4/3/07 6:42 PM, Jack Doyle j...@greensock.com wrote: Yep, you can preload FLVs with the NetStream. Check out the PreloadAssetManager class which will handle it all for you: http://www.greensock.com/ActionScript/PreloadAssetManager Jack -Original Message- Date: Tue, 03 Apr 2007 16:04:35 -0400 From: leolea pou...@videotron.ca Subject: [Flashcoders] Preloading FLV with NetStream To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: c2382b93.e226%pou...@videotron.cac2382b93.e226%25pou...@videotron.ca Content-Type: text/plain; charset=US-ASCII Hi, Is it possible, using the NetStream object, to preload a FLV. I have multiple FLV videos that I need to play back-to-back smoothly. I want all of them to be preloaded so that when I start playback it doesn't buffer or lag in any way. I can't seem to find a way so my next alternative would be to use SWF with MovieClipLoader. I'd like to avoid that. Thanks ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Preloading FLV with NetStream
Hmm Jack is there an as3 version of that cool PreloadManager as well:)? greetz JC On Fri, Aug 7, 2009 at 10:13 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should be walking around randomly. I was thinking about something like this: * each person gets 4 flv's: (or 2 if i mirror them): turn right, walk right, turn left, walk left * all the flv's get preloaded * a player class plays 'walk right' for x times, then 'turn left', 'walk left' for y times (x y are random), 'turn right' and repeat Is this feasible? Can I put 6 video objects on stage without any problems? And concerning the preloading, I was thinking about simply setting bufferTime to a very high value or is that naive? Is preloading all the flv's in the cache and keeping the bufferTime as normal a better option? What happens if the user has disabled his/her browser cache? Another option would be to load the walk cycles as still images, not sure what the better option, your opinion is appreciated:) regards JC On Wed, Apr 4, 2007 at 6:49 PM, Jack Doyle j...@greensock.com wrote: The PreloadAssetManager class simply preloads your assets into your browser's cache; it is not meant to be used for playback or managing your FLVs once they're preloaded. There's nothing special that you need to do in order to access the preloaded FLVs - just call them as you normally would either using a NetStream object of your own or an FLVPlayback component or whatever. The user's browser will be smart enough to used the cached FLVs instead of going out to the web and downloading them again. You might want to search the Flash Help files for NetStream or FLVPlayback. Jack -Original Message- Date: Wed, 04 Apr 2007 10:59:02 -0400 From: leolea pou...@videotron.ca Subject: Re: [Flashcoders] Preloading FLV with NetStream To: flashcoders@chattyfig.figleaf.com Message-ID: c2393576.e280%pou...@videotron.cac2393576.e280%25pou...@videotron.ca Content-Type: text/plain; charset=US-ASCII Preloading works super fine! Thank you very much for this class. I am preloading a bunch of FLVs. Once they get at 100%, how do I access them using a NetStream object (or other) ? (I need to implement something that initates the playback of the first one, when it reaches the end I must start the second one, so on...) On 4/3/07 6:42 PM, Jack Doyle j...@greensock.com wrote: Yep, you can preload FLVs with the NetStream. Check out the PreloadAssetManager class which will handle it all for you: http://www.greensock.com/ActionScript/PreloadAssetManager Jack -Original Message- Date: Tue, 03 Apr 2007 16:04:35 -0400 From: leolea pou...@videotron.ca Subject: [Flashcoders] Preloading FLV with NetStream To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: c2382b93.e226%pou...@videotron.cac2382b93.e226%25pou...@videotron.ca Content-Type: text/plain; charset=US-ASCII Hi, Is it possible, using the NetStream object, to preload a FLV. I have multiple FLV videos that I need to play back-to-back smoothly. I want all of them to be preloaded so that when I start playback it doesn't buffer or lag in any way. I can't seem to find a way so my next alternative would be to use SWF with MovieClipLoader. I'd like to avoid that. Thanks ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Interface for displayObjects
Hi, when you declare them like this: var myObj1:MyInterface addChild (myObj1) wont work if you do var myObj1:Sprite = ... addChild (myObj1) it probably will. The thing is that you essentially provide two different interfaces for your object. By extending Sprite you satisfy the DisplayObject requirement for addChild(). By implementing your interface you satisfy the requirement for your own class that the objects have to of a certain interface. Telling your own class, here is a display object isn't going to work, since it needs the interface, vice versa telling the display list here is my own interface isn't going to work either, you have to pass the objects in the form expected in both cases. hth, JC On Fri, Aug 7, 2009 at 10:00 AM, Tom Huynen tomhuy...@gmail.com wrote: Hi! I have a tiny little problem with the following: I have two classes that should have the same dataType in order to use them in a third class. So I created an Interface that both of them implement. The two classes extend Sprite because they have a visual representation. However, when I try to add them to the displayList flash doesn't recognise them as a displayObject. I read that many people at this moment cast them back to a displayObject but that to me feels like a workaround. Anybody any suggestions? Thanks! Tom ___ 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] Preloading FLV with NetStream
Hi Paul, ok thanks cool. Meanwhile I've whipped up a sample using flv's but I might have to switch to images like you said! If anyone would care to see if this works okay on their browsers it'd be appreciated: http://www.wichman-media.com/misc/bin/ The awesome floor texture:) will become a 3d background, the arrows will become persons walking to and fro, the line will become a microphone allowing you to interview people. And yes its a prototype and looks like crap ;) player 10 required btw tia! Hans On Fri, Aug 7, 2009 at 11:42 AM, Paul Andrews p...@ipauland.com wrote: Hans Wichman wrote: Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should be walking around randomly. I was thinking about something like this: * each person gets 4 flv's: (or 2 if i mirror them): turn right, walk right, turn left, walk left * all the flv's get preloaded * a player class plays 'walk right' for x times, then 'turn left', 'walk left' for y times (x y are random), 'turn right' and repeat Is this feasible? Can I put 6 video objects on stage without any problems? And concerning the preloading, I was thinking about simply setting bufferTime to a very high value or is that naive? Is preloading all the flv's in the cache and keeping the bufferTime as normal a better option? What happens if the user has disabled his/her browser cache? Another option would be to load the walk cycles as still images, not sure what the better option, your opinion is appreciated:) I have done this for people silhouettes using walk cycles generated with poser! Basically it was used to build a pseudo crowd-scene (lots of instances of the movieclips) with the movement of the people controlled with actionscript. No video, just frame by frame walk cycles playing in a movieclip controlled by actionscript. Given your application I would use that exact same technique again, or at least experiment with it. Paul regards JC ___ 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] Preloading FLV with NetStream
Hans Wichman wrote: Hi Paul, ok thanks cool. Meanwhile I've whipped up a sample using flv's but I might have to switch to images like you said! If anyone would care to see if this works okay on their browsers it'd be appreciated: http://www.wichman-media.com/misc/bin/ The awesome floor texture:) will become a 3d background, the arrows will become persons walking to and fro, the line will become a microphone allowing you to interview people. And yes its a prototype and looks like crap ;) Seems to work OK. The sound man is already ready - I can see his mike at the top of the movie! ;-) Just one thing to be careful about when doing this kind of thing where the feet are visible (this is an old walk cycle problem). If the feet are visible and the character is moving, the speed at which the character can be moved without looking as though they are doing some variant of a MJ moonwalk will be determined by the walkcycle animation. Move too fast and they look like they are being dragged along the ground. Too slow and the moonwalk springs to mind. Paul player 10 required btw tia! Hans On Fri, Aug 7, 2009 at 11:42 AM, Paul Andrews p...@ipauland.com wrote: Hans Wichman wrote: Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should be walking around randomly. I was thinking about something like this: * each person gets 4 flv's: (or 2 if i mirror them): turn right, walk right, turn left, walk left * all the flv's get preloaded * a player class plays 'walk right' for x times, then 'turn left', 'walk left' for y times (x y are random), 'turn right' and repeat Is this feasible? Can I put 6 video objects on stage without any problems? And concerning the preloading, I was thinking about simply setting bufferTime to a very high value or is that naive? Is preloading all the flv's in the cache and keeping the bufferTime as normal a better option? What happens if the user has disabled his/her browser cache? Another option would be to load the walk cycles as still images, not sure what the better option, your opinion is appreciated:) I have done this for people silhouettes using walk cycles generated with poser! Basically it was used to build a pseudo crowd-scene (lots of instances of the movieclips) with the movement of the people controlled with actionscript. No video, just frame by frame walk cycles playing in a movieclip controlled by actionscript. Given your application I would use that exact same technique again, or at least experiment with it. Paul regards JC ___ 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] flash forms problem
As far as I know, the loader.dataFormat refers to the loaded data, not the one you are about to send. My guess is that the error is on trying to decode the variables name/value pair on the loaded data (see that the error is triggered by URLLoader/onComplete()) Leandro Ferreira Sent from Brasilia, DF, Brazil On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders, I have this code for a flash form import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; this.sent.addEventListener(MouseEvent.CLICK, sendMessage); function sendMessage(e:Event):void { var variables:URLVariables=new URLVariables(); variables.nombre=nombre.text; variables.email=email.text; variables.phone=phone.text; variables.address= address.text; variables.eventos=eventos.text; variables.details=details.text; var request:URLRequest=new URLRequest(); request.url='sendMail.cfm'; request.method=URLRequestMethod.POST; request.data=variables; var loader:URLLoader=new URLLoader(); loader.dataFormat=URLLoaderDataFormat.VARIABLES; try { loader.load(request); } catch (error:Error) { trace('Unable to load requested document.'); } } the fields are on the stage and those are input text. when I click on the button, suddenly it sends this message Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() does anyone knows what this means? help here pls. Gustavo ___ 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] Preloading FLV with NetStream
lol it's the vanishing point actually:) but thanks for checking and the tip about the feet! On Fri, Aug 7, 2009 at 1:22 PM, Paul Andrews p...@ipauland.com wrote: Hans Wichman wrote: Hi Paul, ok thanks cool. Meanwhile I've whipped up a sample using flv's but I might have to switch to images like you said! If anyone would care to see if this works okay on their browsers it'd be appreciated: http://www.wichman-media.com/misc/bin/ The awesome floor texture:) will become a 3d background, the arrows will become persons walking to and fro, the line will become a microphone allowing you to interview people. And yes its a prototype and looks like crap ;) Seems to work OK. The sound man is already ready - I can see his mike at the top of the movie! ;-) Just one thing to be careful about when doing this kind of thing where the feet are visible (this is an old walk cycle problem). If the feet are visible and the character is moving, the speed at which the character can be moved without looking as though they are doing some variant of a MJ moonwalk will be determined by the walkcycle animation. Move too fast and they look like they are being dragged along the ground. Too slow and the moonwalk springs to mind. Paul player 10 required btw tia! Hans On Fri, Aug 7, 2009 at 11:42 AM, Paul Andrews p...@ipauland.com wrote: Hans Wichman wrote: Hi, I stumbled on this thread and kind of need to do the same thing. I have an area where a number of persons should be walking around randomly. I was thinking about something like this: * each person gets 4 flv's: (or 2 if i mirror them): turn right, walk right, turn left, walk left * all the flv's get preloaded * a player class plays 'walk right' for x times, then 'turn left', 'walk left' for y times (x y are random), 'turn right' and repeat Is this feasible? Can I put 6 video objects on stage without any problems? And concerning the preloading, I was thinking about simply setting bufferTime to a very high value or is that naive? Is preloading all the flv's in the cache and keeping the bufferTime as normal a better option? What happens if the user has disabled his/her browser cache? Another option would be to load the walk cycles as still images, not sure what the better option, your opinion is appreciated:) I have done this for people silhouettes using walk cycles generated with poser! Basically it was used to build a pseudo crowd-scene (lots of instances of the movieclips) with the movement of the people controlled with actionscript. No video, just frame by frame walk cycles playing in a movieclip controlled by actionscript. Given your application I would use that exact same technique again, or at least experiment with it. Paul regards JC ___ 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] How to Exit/Close the Web Browser from Flash Applications?
Hello, How to Exit/Close the Web Browser from Flash Applications? Could anyone suggest a code to exit the flash application and close the web browser window? I realize, the solution might be using ExternalInterface with JS. The question is how? The user can exit the flash application by clicking on an exit button or he/she can click on the Window “X”. When clicking either on the “exit” button or on the Window “X”, the flash application will show an alert message, asking the user whether he/she really want to exit. Upon clicking “yes” the application and web browser will close. Therefore, when the user clicks on the Window “X” the flash application needs to detect this click. Thanks, Daniel Abramovich **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1222846709x1201493018/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072hmpgID=115bcd =JulystepsfooterNO115) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to Exit/Close the Web Browser from Flash Applications?
Here's a simple example. Note that if you don't own the window your flash is running in -- you opened it with window.open(...) -- this code will again prompt the user if they really want to close the window in IE, or do nothing (Firefox, chrome, etc). There are ways around that, but I can't bring myself help others be evil. ;-) Anyway: -- in the flash: import flash.external.ExternalInterface; function onUserConfirmedTheyWantToExit():void { ExternalInterface.call(closeWindowAsync, ) ; } in the HTML page script type=javascript function closeWindowAsync() { setTimeout(closeWindowCallback(), 500) ; } function closeWindowCallback() { window.close() ; } /script The use of setTimeout in the javascript is there because of some problems we had calling window.close directly in IE6 (very weird IE-locking bugs if there were other browser windows open). Jer On Fri, Aug 7, 2009 at 8:38 AM, it...@aol.com wrote: Hello, How to Exit/Close the Web Browser from Flash Applications? Could anyone suggest a code to exit the flash application and close the web browser window? I realize, the solution might be using ExternalInterface with JS. The question is how? The user can exit the flash application by clicking on an exit button or he/she can click on the Window “X”. When clicking either on the “exit” button or on the Window “X”, the flash application will show an alert message, asking the user whether he/she really want to exit. Upon clicking “yes” the application and web browser will close. Therefore, when the user clicks on the Window “X” the flash application needs to detect this click. Thanks, Daniel Abramovich **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! ( http://pr.atwola.com/promoclk/100126575x1222846709x1201493018/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072hmpgID=115bcd =JulystepsfooterNO115) ___ 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] How to Exit/Close the Web Browser from Flash Applications?
The timeout is a good idea, I realized I stopped doing that somewhere along the way, but especially macs as well had a knack for crashing if the calling object was destroyed in the process of the call. On Fri, Aug 7, 2009 at 4:15 PM, Jer Brand thejhe...@gmail.com wrote: Here's a simple example. Note that if you don't own the window your flash is running in -- you opened it with window.open(...) -- this code will again prompt the user if they really want to close the window in IE, or do nothing (Firefox, chrome, etc). There are ways around that, but I can't bring myself help others be evil. ;-) Anyway: -- in the flash: import flash.external.ExternalInterface; function onUserConfirmedTheyWantToExit():void { ExternalInterface.call(closeWindowAsync, ) ; } in the HTML page script type=javascript function closeWindowAsync() { setTimeout(closeWindowCallback(), 500) ; } function closeWindowCallback() { window.close() ; } /script The use of setTimeout in the javascript is there because of some problems we had calling window.close directly in IE6 (very weird IE-locking bugs if there were other browser windows open). Jer On Fri, Aug 7, 2009 at 8:38 AM, it...@aol.com wrote: Hello, How to Exit/Close the Web Browser from Flash Applications? Could anyone suggest a code to exit the flash application and close the web browser window? I realize, the solution might be using ExternalInterface with JS. The question is how? The user can exit the flash application by clicking on an exit button or he/she can click on the Window “X”. When clicking either on the “exit” button or on the Window “X”, the flash application will show an alert message, asking the user whether he/she really want to exit. Upon clicking “yes” the application and web browser will close. Therefore, when the user clicks on the Window “X” the flash application needs to detect this click. Thanks, Daniel Abramovich **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! ( http://pr.atwola.com/promoclk/100126575x1222846709x1201493018/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072hmpgID=115bcd =JulystepsfooterNO115) ___ 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] Flash full screen examples
Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flash full screen examples
How about this one? http://www.gettheglass.com/ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Friday, August 07, 2009 11:11 AM To: Flash Coders List Subject: [Flashcoders] Flash full screen examples Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ 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] RE: Flash full screen examples
Thanks Brian, I think I've seen that one before, but the swfObject isn't writing it to my browser. :-/ How about this one? http://www.gettheglass.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] button overlay appearing under textfield?
hey guys this is probably a silly bug but i've got a very strange occurance i've got a method that is supposed to create a textfield with an invisible button on top but, even tho the traces come out correctly, i can't seem to stop the textfield obscuring the button if they're added to the same sprite. I'd rather know why that was rather than simply creating another sprite to sit the button in here's the method private function createItem():void { var w:Number= _nWidth - (BasketItem.PADDING * 2); _tfItem = AssetFactory.createTextField(0, 0, w, 20); _tfItem.autoSize= TextFieldAutoSize.LEFT; _tfItem.wordWrap= true; _tfItem.x = BasketItem.PADDING; _tfItem.background = true; _tfItem.backgroundColor = 0xFF; _sprHitArea = AssetFactory.createButtonOverlay(0, 0, _nWidth); _sprHitArea.addEventListener(MouseEvent.CLICK, itemClickHandler, false, 0, true); _sprItemLayer.addChild(_tfItem); _sprItemLayer.addChild(_sprHitArea); trace(i + _sprItemLayer.getChildIndex(_tfItem)); // traces as i0 trace(ha + _sprItemLayer.getChildIndex(_sprHitArea)); // traces as ha1 } the AssetFactory.createTextField method is here - AssetFactory is a static class that i use to create a lot of the common items throughout my ria public static function createTextField(nX:Number = 0, nY:Number = 0, nWidth:Number = 100, nHeight:Number = 100):TextField { var tf:TextField= new TextField(); tf.x= nX; tf.y= nY; tf.width= nWidth; tf.height = nHeight; tf.multiline= true; tf.embedFonts = true; tf.selectable = false; tf.antiAliasType= AntiAliasType.ADVANCED; tf.sharpness= 200; tf.styleSheet = SiteData.instance.cssStyle; return tf; } and here is the AssetFactory.createButtonOverlay method public static function createButtonOverlay(nX:Number = 0, nY:Number = 0, nWidth:Number = 100, nHeight:Number = 100):Sprite { var sp:Sprite = new Sprite(); sp.graphics.beginFill(0xff9900, 0); sp.graphics.drawRect(nX, nY, nWidth, nHeight); sp.graphics.endFill(); sp.buttonMode = true; return sp; } i've set the background of the textfield to white and the button overlay to orange so i can see what is overlapping what and the white seems to be on top of the orange even though their indices indicate that the textfield is below the button i'm very confused about this as it's a fairly simple operation thanks in advance a ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RE: Flash full screen examples
seems like a very popular trend, therefore if you look on the fwa you'll find that many if not most of the sites on there implement this. On Fri, Aug 7, 2009 at 8:40 AM, Mendelsohn, Michaelmichael.mendels...@fmglobal.com wrote: Thanks Brian, I think I've seen that one before, but the swfObject isn't writing it to my browser. :-/ How about this one? http://www.gettheglass.com/ ___ 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] RE: Flash full screen examples
Those California Milk Processors are loaded. :) Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kurt Dommermuth Sent: Friday, August 07, 2009 12:38 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] RE: Flash full screen examples http://www.gettheglass.com/ Really nice. I can't believe there was a budget for that. None of my clients ever want to pay for something that elaborate. Do you think the agency cut their rates to do the job or that they are just amazing salesmen? Anyway, cool stuff. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Boerner, Brian J Sent: Friday, August 07, 2009 11:30 AM To: Flash Coders List Subject: [Flashcoders] RE: Flash full screen examples How about this one? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Friday, August 07, 2009 11:11 AM To: Flash Coders List Subject: [Flashcoders] Flash full screen examples Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ 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] RE: Flash full screen examples
http://www.gettheglass.com/ Really nice. I can't believe there was a budget for that. None of my clients ever want to pay for something that elaborate. Do you think the agency cut their rates to do the job or that they are just amazing salesmen? Anyway, cool stuff. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Boerner, Brian J Sent: Friday, August 07, 2009 11:30 AM To: Flash Coders List Subject: [Flashcoders] RE: Flash full screen examples How about this one? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Friday, August 07, 2009 11:11 AM To: Flash Coders List Subject: [Flashcoders] Flash full screen examples Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ 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] RE: Flash full screen examples
Merrill, Jason wrote: Those California Milk Processors are loaded. :) Fortunately they didn't go for a cheesy website.. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kurt Dommermuth Sent: Friday, August 07, 2009 12:38 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] RE: Flash full screen examples http://www.gettheglass.com/ Really nice. I can't believe there was a budget for that. None of my clients ever want to pay for something that elaborate. Do you think the agency cut their rates to do the job or that they are just amazing salesmen? Anyway, cool stuff. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Boerner, Brian J Sent: Friday, August 07, 2009 11:30 AM To: Flash Coders List Subject: [Flashcoders] RE: Flash full screen examples How about this one? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Friday, August 07, 2009 11:11 AM To: Flash Coders List Subject: [Flashcoders] Flash full screen examples Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ 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] RE: Flash full screen examples
Wow, the FWA site is great. Thanks for the tip Jared. That's all the inspiration I need. - MM seems like a very popular trend, therefore if you look on the fwa you'll find that many if not most of the sites on there implement this. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] button overlay appearing under textfield?
i've taken to putting the button overlay into a separate sprite but i would be interested if anyone has any insights as to why this happened as it seemed a bit random to me ta a On 7 Aug 2009, at 17:32, Allandt Bik-Elliott (Receptacle) wrote: hey guys this is probably a silly bug but i've got a very strange occurance i've got a method that is supposed to create a textfield with an invisible button on top but, even tho the traces come out correctly, i can't seem to stop the textfield obscuring the button if they're added to the same sprite. I'd rather know why that was rather than simply creating another sprite to sit the button in here's the method private function createItem():void { var w:Number= _nWidth - (BasketItem.PADDING * 2); _tfItem = AssetFactory.createTextField(0, 0, w, 20); _tfItem.autoSize= TextFieldAutoSize.LEFT; _tfItem.wordWrap= true; _tfItem.x = BasketItem.PADDING; _tfItem.background = true; _tfItem.backgroundColor = 0xFF; _sprHitArea = AssetFactory.createButtonOverlay(0, 0, _nWidth); _sprHitArea.addEventListener(MouseEvent.CLICK, itemClickHandler, false, 0, true); _sprItemLayer.addChild(_tfItem); _sprItemLayer.addChild(_sprHitArea); trace(i + _sprItemLayer.getChildIndex(_tfItem)); // traces as i0 trace(ha + _sprItemLayer.getChildIndex(_sprHitArea)); // traces as ha1 } the AssetFactory.createTextField method is here - AssetFactory is a static class that i use to create a lot of the common items throughout my ria public static function createTextField(nX:Number = 0, nY:Number = 0, nWidth:Number = 100, nHeight:Number = 100):TextField { var tf:TextField= new TextField(); tf.x= nX; tf.y= nY; tf.width= nWidth; tf.height = nHeight; tf.multiline= true; tf.embedFonts = true; tf.selectable = false; tf.antiAliasType= AntiAliasType.ADVANCED; tf.sharpness= 200; tf.styleSheet = SiteData.instance.cssStyle; return tf; } and here is the AssetFactory.createButtonOverlay method public static function createButtonOverlay(nX:Number = 0, nY:Number = 0, nWidth:Number = 100, nHeight:Number = 100):Sprite { var sp:Sprite = new Sprite(); sp.graphics.beginFill(0xff9900, 0); sp.graphics.drawRect(nX, nY, nWidth, nHeight); sp.graphics.endFill(); sp.buttonMode = true; return sp; } i've set the background of the textfield to white and the button overlay to orange so i can see what is overlapping what and the white seems to be on top of the orange even though their indices indicate that the textfield is below the button i'm very confused about this as it's a fairly simple operation thanks in advance a ___ 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] RE: Flash full screen examples
wow that site is the cows udders - you might say it was moo-velous a On 7 Aug 2009, at 17:57, Paul Andrews wrote: Merrill, Jason wrote: Those California Milk Processors are loaded. :) Fortunately they didn't go for a cheesy website.. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kurt Dommermuth Sent: Friday, August 07, 2009 12:38 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] RE: Flash full screen examples http://www.gettheglass.com/ Really nice. I can't believe there was a budget for that. None of my clients ever want to pay for something that elaborate. Do you think the agency cut their rates to do the job or that they are just amazing salesmen? Anyway, cool stuff. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Boerner, Brian J Sent: Friday, August 07, 2009 11:30 AM To: Flash Coders List Subject: [Flashcoders] RE: Flash full screen examples How about this one? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Friday, August 07, 2009 11:11 AM To: Flash Coders List Subject: [Flashcoders] Flash full screen examples Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: Flash full screen examples
Yeah thanks Jared, that's a great site. Lots of great high-end/budget stuff on FWA -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jared stanley Sent: Friday, August 07, 2009 12:34 PM To: Flash Coders List Subject: Re: [Flashcoders] RE: Flash full screen examples seems like a very popular trend, therefore if you look on the fwa you'll find that many if not most of the sites on there implement this. On Fri, Aug 7, 2009 at 8:40 AM, Mendelsohn, Michaelmichael.mendels...@fmglobal.com wrote: Thanks Brian, I think I've seen that one before, but the swfObject isn't writing it to my browser. :-/ How about this one? http://www.gettheglass.com/ ___ 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] RE: Flash full screen examples
was it the cream of the crop? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: Flash full screen examples
Got budget? I imagine that's first question developer asked... -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Friday, August 07, 2009 2:04 PM To: Flash Coders List Subject: Re: [Flashcoders] RE: Flash full screen examples wow that site is the cows udders - you might say it was moo-velous a On 7 Aug 2009, at 17:57, Paul Andrews wrote: Merrill, Jason wrote: Those California Milk Processors are loaded. :) Fortunately they didn't go for a cheesy website.. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kurt Dommermuth Sent: Friday, August 07, 2009 12:38 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] RE: Flash full screen examples http://www.gettheglass.com/ Really nice. I can't believe there was a budget for that. None of my clients ever want to pay for something that elaborate. Do you think the agency cut their rates to do the job or that they are just amazing salesmen? Anyway, cool stuff. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Boerner, Brian J Sent: Friday, August 07, 2009 11:30 AM To: Flash Coders List Subject: [Flashcoders] RE: Flash full screen examples How about this one? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Friday, August 07, 2009 11:11 AM To: Flash Coders List Subject: [Flashcoders] Flash full screen examples Hi list... Can anyone point out some amazing examples of Flash content taking up the entire window? (StageDisplayState.NORMAL, not StageDisplayState.FULL_SCREEN) I can offer these examples, but I'm looking for examples applicable to an eventual holiday greeting card. http://rb.hi-res.net/index.html (drag the earth) http://www.pushhere.com/ http://www.oringe.com/flashSite/ (click some of the links) http://gskinner.com/site2_5/ Looking for inspiration, thanks! - Michael M. ___ 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 ___ 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] RE: Flash full screen examples
was it the cream of the crop? It was until they started skimming the profits. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] RE: Flash full screen examples
the milk of human kindness is running thin with these puns :D On 7 Aug 2009, at 19:21, Kerry Thompson wrote: was it the cream of the crop? It was until they started skimming the profits. ___ 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] RE: Flash full screen examples
the milk of human kindness is running thin with these puns :D These are getting a bit cheesy. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] what is the current 3D best-practice?
Hello everyone, Long time no speak! I've been out of the flash loop for about 9 months, and I'm about to work on a new flash project which requires some 3D animation. I need to make 3D polygons that spin and can morph from one shape to another. I also need to be able to skin each side of the polygon with a different image [loaded via XML form outside files] With my know-how form 9 months ago, I would either work this out in pure 3D code I would write from scratch or from a library, or I would try and look into something like papervision3D which I think does something like this already. I'm still on CS3 My question is: Is there a new, better and more elegant / pre-made way for working in 3D? Is there now a better package than papervision? Does flash CS4 make this in anyway easier? Thanks for any guidance and general direction answers you can provide. Kindly, Sebastian. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: Flash full screen examples
These are getting a bit cheesy. No whey! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to Exit/Close the Web Browser from Flash Applications?
Hello, http://www.actionscript.org/resources/articles/638/1/Basics-of-using-the-ExternalInterface/Page1.html http://www.actionscript.org/resources/articles/745/1/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page1.html The above links may be useful to you; yet, keep in mind that with popup blockers being installed automatically and recommended to users in new browsers, that what you want to do may not work 100% of the time, even with user interaction, because calls to open and close are heavily scrutinized. Thanks, Anthony it...@aol.com wrote: Hello, How to Exit/Close the Web Browser from Flash Applications? Could anyone suggest a code to exit the flash application and close the web browser window? I realize, the solution might be using ExternalInterface with JS. The question is how? The user can exit the flash application by clicking on an exit button or he/she can click on the Window “X”. When clicking either on the “exit” button or on the Window “X”, the flash application will show an alert message, asking the user whether he/she really want to exit. Upon clicking “yes” the application and web browser will close. Therefore, when the user clicks on the Window “X” the flash application needs to detect this click. Thanks, Daniel Abramovich **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1222846709x1201493018/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072hmpgID=115bcd =JulystepsfooterNO115) ___ 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] flash forms problem
Hi Leandro so getting rid of this part would be ok then and the error wouldn't appear again. var loader:URLLoader=new URLLoader(); loader.dataFormat=URLLoaderDataFormat.VARIABLES; try { loader.load(request); } catch (error:Error) { trace('Unable to load requested document.'); } Gustavo On Aug 7, 2009, at 7:23 AM, Leandro Ferreira wrote: As far as I know, the loader.dataFormat refers to the loaded data, not the one you are about to send. My guess is that the error is on trying to decode the variables name/value pair on the loaded data (see that the error is triggered by URLLoader/onComplete()) Leandro Ferreira Sent from Brasilia, DF, Brazil On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders, I have this code for a flash form import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; this.sent.addEventListener(MouseEvent.CLICK, sendMessage); function sendMessage(e:Event):void { var variables:URLVariables=new URLVariables(); variables.nombre=nombre.text; variables.email=email.text; variables.phone=phone.text; variables.address= address.text; variables.eventos=eventos.text; variables.details=details.text; var request:URLRequest=new URLRequest(); request.url='sendMail.cfm'; request.method=URLRequestMethod.POST; request.data=variables; var loader:URLLoader=new URLLoader(); loader.dataFormat=URLLoaderDataFormat.VARIABLES; try { loader.load(request); } catch (error:Error) { trace('Unable to load requested document.'); } } the fields are on the stage and those are input text. when I click on the button, suddenly it sends this message Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() does anyone knows what this means? help here pls. Gustavo ___ 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] flash forms problem
Getting rid of loader.dataFormat, that is. Leandro Ferreira On Fri, Aug 7, 2009 at 20:27, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi Leandro so getting rid of this part would be ok then and the error wouldn't appear again. var loader:URLLoader=new URLLoader(); loader.dataFormat=URLLoaderDataFormat.VARIABLES; try { loader.load(request); } catch (error:Error) { trace('Unable to load requested document.'); } Gustavo On Aug 7, 2009, at 7:23 AM, Leandro Ferreira wrote: As far as I know, the loader.dataFormat refers to the loaded data, not the one you are about to send. My guess is that the error is on trying to decode the variables name/value pair on the loaded data (see that the error is triggered by URLLoader/onComplete()) Leandro Ferreira Sent from Brasilia, DF, Brazil On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas gdue...@leftandrightsolutions.com wrote: Hi coders, I have this code for a flash form import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; this.sent.addEventListener(MouseEvent.CLICK, sendMessage); function sendMessage(e:Event):void { var variables:URLVariables=new URLVariables(); variables.nombre=nombre.text; variables.email=email.text; variables.phone=phone.text; variables.address= address.text; variables.eventos=eventos.text; variables.details=details.text; var request:URLRequest=new URLRequest(); request.url='sendMail.cfm'; request.method=URLRequestMethod.POST; request.data=variables; var loader:URLLoader=new URLLoader(); loader.dataFormat=URLLoaderDataFormat.VARIABLES; try { loader.load(request); } catch (error:Error) { trace('Unable to load requested document.'); } } the fields are on the stage and those are input text. when I click on the button, suddenly it sends this message Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() does anyone knows what this means? help here pls. Gustavo ___ 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