Re: [Flashcoders] Strange Button Behavior
You could try a LocalConnection with a crossdomain policy, and an allowDomain set, (I know you can do it with two different open webpages, haven't tested web 2 desktop, but as long as both are open, they should talk. But I could stand corrected.) I think LocalConnection is just AS2 though. Not sure of the equiv. in AS3. Might be a less hacky work-around though. If I understand your situation that is.. :) HTH, Best, Karl On Jun 13, 2011, at 12:26 PM, Steve Abaffy wrote: It is not an exe. I am accessing the swf file via webpage. I tried adding Security.LOCAL_TRUSTED; to the code but that didn't work either. Tried making it a exe file but then it won't run from the CD because the link to it is via a web page and the browser objects as the exe file does not have a digital signature. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike Sent: Monday, June 13, 2011 4:03 AM To: Flash Coders List Subject: Re: [Flashcoders] Strange Button Behavior Hmm, an exe should be exempt from the local vs network restrictions, but maybe something else is failing. Have you tried tracing the error? I vaguely rememeber having problems with _blank, etc. in the past. See if it works without those? Here are some links I found that may help. http://probertson.com/articles/2006/10/11/geturl-flash-projector- firefox-pro blem/ http://www.adobe.com/devnet/flash/articles/local_network_playback.html http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ flash/net /package.html#navigateToURL%28%29 Glen On 11/06/2011 19:35, Steve Abaffy wrote: Hello, After some more investigation I have found that the buttons not working problem I was having is not a browser malfunction. I have found that when I put the site on a web server all works well regardless of the browser. But when I put the site on a CD a run it from there, all calls to outside sources do not work. All calls to local sources such as url:String = /Documents/ some.pdf in the below function works just fine. And insight to this problem would be appreciated. function GotoURLAustinMopac(e:MouseEvent):void{ var url:String = http://maps.google.com/maps?f=qhl=engeocode=q=6836+Austin+Center +Blvd.+A ustin+TX+78731; var request:URLRequest = new URLRequest(url); try { navigateToURL(request,'_blank'); } catch (e:Error) { //Do Nothing } } ___ 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 Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTMLLoader not loading
Hi list... I'm *desperately* trying to figure out why an AIR project's HTMLLoader won't load any pdfs, just showing blank. Web pages load fine. Based on documented known limitations (below): scaleX, scaleY, and alpha of the HTMLLoader are all 1, and rotation is 0. The window isn't transparent. The htmlLoader instance is at the top of the displayList. I set scaleMode to NO_SCALE. A simple test AIR file worked fine. It's got to be something about my file, but what can I double check? Any help is tremendously appreciated! Thanks, - Michael M. From the docs: Known limitations for PDF content in AIR PDF content in Adobe AIR has the following limitations: PDF content does not display in a window (a NativeWindow object) that is transparent (where the transparent property is set to true). The display order of a PDF file operates differently than other display objects in an AIR application. Although PDF content clips correctly according to HTML display order, it will always sit on top of content in the AIR application's display order. If certain visual properties of an HTMLLoader object that contains a PDF document are changed, the PDF document will become invisible. These properties include the filters, alpha, rotation, and scaling properties. Changing these properties renders the PDF content invisible until the properties are reset. The PDF content is also invisible if you change these properties of display object containers that contain the HTMLLoader object. PDF content is visible only when the scaleMode property of the Stage object of the NativeWindow object containing the PDF content (the window.nativeWindow.stage property) is set to air.StageScaleMode.NO_SCALE. When it is set to any other value, the PDF content is not visible. Clicking links to content within the PDF file update the scroll position of the PDF content. Clicking links to content outside the PDF file redirect the HTMLLoader object that contains the PDF (even if the target of a link is a new window). PDF commenting workflows do not function in AIR. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: HTMLLoader not loading [SOLVED]
OK, after two days of total stress, I figured I'd document the solution I just found, for the public good: The HTMLLoader instance gets listener Event.COMPLETE prior to the load() call. // rootReference is my document class, extending Sprite // works: rootReference[stage][addChild](rootRef[docViewer]); // does NOT work: rootReference[addChild](rootRef[docViewer]); It turns out the HTMLLoader needs to be added in the topmost possible order, so add it to the stage, not just the doc class. Time for a nap, - MM I'm *desperately* trying to figure out why an AIR project's HTMLLoader won't load any pdfs, just showing blank. Web pages load fine. Based on documented known limitations (below): scaleX, scaleY, and alpha of the HTMLLoader are all 1, and rotation is 0. The window isn't transparent. The htmlLoader instance is at the top of the displayList. I set scaleMode to NO_SCALE. A simple test AIR file worked fine. It's got to be something about my file, but what can I double check? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 exploding and reassemble bitmap
You might be able to adopt my script to do that: http://www.unfocus.com/2010/06/29/the-bunny-video-eplodes-explodes/ Probably is more manual than you are looking for though. That script draws everything into a bitmap. You could probably transition that to the new location during the explode/implode. Kevin N. On 6/13/11 9:26 AM, Eric E. Dolecki wrote: Hey all - I am looking for a class that basically explodes a bitmap (each pixel) and then reassembles it at another x,y location. I've been googling but have come up empty so far. Any ideas? Thanks, Eric Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net ___ 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: HTMLLoader not loading [SOLVED]
I think that this is likely due to the quoted requirements. It can not be scaled, rotated, filtered, color transformed or anything of that fun stuff. Somehow the root had something on that list. Mendelsohn, Michael skriver: OK, after two days of total stress, I figured I'd document the solution I just found, for the public good: The HTMLLoader instance gets listener Event.COMPLETE prior to the load() call. // rootReference is my document class, extending Sprite // works: rootReference[stage][addChild](rootRef[docViewer]); // does NOT work: rootReference[addChild](rootRef[docViewer]); It turns out the HTMLLoader needs to be added in the topmost possible order, so add it to the stage, not just the doc class. Time for a nap, - MM I'm *desperately* trying to figure out why an AIR project's HTMLLoader won't load any pdfs, just showing blank. Web pages load fine. Based on documented known limitations (below): scaleX, scaleY, and alpha of the HTMLLoader are all 1, and rotation is 0. The window isn't transparent. The htmlLoader instance is at the top of the displayList. I set scaleMode to NO_SCALE. A simple test AIR file worked fine. It's got to be something about my file, but what can I double check? ___ 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] AS3 exploding and reassemble bitmap
Thanks a lot for showing that to me - I managed to get something working which is both quick and relatively cool. I don't ever do a pixel by pixel explosion to save speed, smallest I go is 2px segments, but it's very quick that way and looks nearly as cool. I am working on the explosion physics at the moment (instead of just coming out from the displayObject, working in spirals, etc. for each piece). Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Tue, Jun 14, 2011 at 4:16 PM, Kevin Newman capta...@unfocus.com wrote: You might be able to adopt my script to do that: http://www.unfocus.com/2010/06/29/the-bunny-video-eplodes-explodes/ Probably is more manual than you are looking for though. That script draws everything into a bitmap. You could probably transition that to the new location during the explode/implode. Kevin N. On 6/13/11 9:26 AM, Eric E. Dolecki wrote: Hey all - I am looking for a class that basically explodes a bitmap (each pixel) and then reassembles it at another x,y location. I've been googling but have come up empty so far. Any ideas? Thanks, Eric Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net ___ 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] AS3 exploding and reassemble bitmap
Hmm. I don't seem to have the source up for that (thought I did), you can use a slightly older set of files from here: (This one has source) http://www.unfocus.com/2010/06/23/the-pixels-explode-explode/ If you are interested in the newer faster one (fast enough to work with video - and a blur filter), I'd be happy to zip up the source and post it somewhere. Quick note on the video example - it's sloow in content debugger builds. I don't know why. Kevin N. On 6/14/11 4:25 PM, Eric E. Dolecki wrote: Thanks a lot for showing that to me - I managed to get something working which is both quick and relatively cool. I don't ever do a pixel by pixel explosion to save speed, smallest I go is 2px segments, but it's very quick that way and looks nearly as cool. I am working on the explosion physics at the moment (instead of just coming out from the displayObject, working in spirals, etc. for each piece). Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Spark BorderContainer.borderColor inconsistency?
Are there some properties of Spark components you can only set with MXML? Why is it I can do this: s:BorderContainer borderColor=0x99 / but when I do this: var borderContainer:BorderContainer = new BorderContainer; I can't then do this: borderContainer.borderColor = 0x99; ? Using Flashbuilder 4, code hinting does not show a borderColor property of the BorderContainer instance, and you get the compiler error: 1119: Access of possibly undefined property borderColor through a reference with static type spark.components:BorderContainer. Can you not set the borderContainer.borderColor property via Actionscript? Seems nuts - unless it's a known bug or I am missing something obvious. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 exploding and reassemble bitmap
that would be very nice of you - for me and those lurking too. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Tue, Jun 14, 2011 at 4:43 PM, Kevin Newman capta...@unfocus.com wrote: Hmm. I don't seem to have the source up for that (thought I did), you can use a slightly older set of files from here: (This one has source) http://www.unfocus.com/2010/06/23/the-pixels-explode-explode/ If you are interested in the newer faster one (fast enough to work with video - and a blur filter), I'd be happy to zip up the source and post it somewhere. Quick note on the video example - it's sloow in content debugger builds. I don't know why. Kevin N. On 6/14/11 4:25 PM, Eric E. Dolecki wrote: Thanks a lot for showing that to me - I managed to get something working which is both quick and relatively cool. I don't ever do a pixel by pixel explosion to save speed, smallest I go is 2px segments, but it's very quick that way and looks nearly as cool. I am working on the explosion physics at the moment (instead of just coming out from the displayObject, working in spirals, etc. for each piece). Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net ___ 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] AS3 load and unload swf from different movies
You're welcome. Also, if anyone gets word Adobe has solved this, I'd love to know. On Tuesday, 14 June 2011, Matt Perkins nudoru.m...@gmail.com wrote: Thanks for sharing all of that Ben! I think this addresses some issues that I'm having on a project now. Matt Perkins - http://www.nudoru.com http://udon.nudoru.com On Mon, Jun 13, 2011 at 6:57 PM, Ben Sand b...@bensand.com wrote: While the below shows it is technically unfeasible to completely unload a flex app, that doesn't mean you shouldn't try loading and unloading. It just means if you can't limit the total number of times that it is done, you have to be prepared for the flash player and/or browser to crash / lock up. It Is Impossible To Unload A Flex Application! http://www.dz015.com/?p=166 Also see: These guys report some success by replacing the loaded swf: http://forums.adobe.com/thread/26128 This says unloadAndStop won't do all that's needed to reclaim the memory: http://forums.adobe.com/message/3645431 Here's some other references: http://www.moock.org/blog/archives/000279.html http://gskinner.com/blog/archives/2008/07/additional_info.html http://www.dz015.com/?p=139 http://symmetri.blogsome.com/2010/07/28/unloadandstop-memory-problems/ http://www.kirupa.com/forum/archive/index.php/t-360573.html On 14 June 2011 08:22, Bassam M sense...@gmail.com wrote: Hi Ben pls give me the link let me go through it may help, I also had problem with memory when i try to load movie into another because I still didn't get the logic of AS3 for load and unload. On Tue, Jun 14, 2011 at 1:32 AM, Ben Sand b...@bensand.com wrote: Looked into this a while ago. Bottom line was you can never guarantee an unload, so repeated load/unload always have the potential for memory leaks. In the case of Flex apps it was never possible to completely clear them from memory. Our solution was to load other swfs in another window, though I appreciate this won't suit everyone. It may be possibleto load them on the same page with JavaScript communication between apps. If there is a physical overlap between the display areas, eg using z-index of CSS you may give up the option of 3d acceleration in flash 11 and there may be issues with display on some operating systems/ browsers On my phone now, but I can give links if you're interested On Tuesday, 14 June 2011, Bassam M sense...@gmail.com wrote: hi guys I'm try to move from AS2 to AS3 I did some work with AS3 it seems to be easy anyway i have problem with load and unload swf, in AS2 I use to use loadMovie(movie.swf,level) then from the movie.swf I can use back button to load the main movie again or unload the movie if the level more the 0 in AS3 I use code menu.movieBtn.addEventListener(MouseEvent.CLICK,loadMovieSwf); function loadMovieSwf(event:Event) { var requestURL:URLRequest = new URLRequest(movie.swf) var loader:Loader = new Loader() loader.load(requestURL) addChildAt(loader) } the problem I'm not able to unload movie from movie.swf I can unload movie.swf from the main movie by this code ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 is it possbile to show a movieclip before its all frames loaded
I think the easiest answer is yes - if you use a Loader object to load a streamable MovieClip based swf, you can just add that Loader object to the display list and it'll start streaming the swf, just like if it was embedded in an HTML object tag. Kevin N. On 6/13/11 4:36 AM, B Shankar PEDANA wrote: Hi, Is it possible to show a movieclip before all its frames(say 100 frames) or when its first frame is loaded? Thanks Shankar ___ 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