Re: [flexcoders] Re: date problem?
I'm suspicious I think that the person that wrote the Date class is from Venus. Cheers, Rick Winscot From: John Fletcher fletch...@gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Fri, 13 Jan 2012 10:03:28 +0100 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: date problem? Months start at 0 and go up to 11. Don't ask me why. John 2012/1/12 luvfotography ygro...@all-digital-links.com http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html#m ethodSummary says: If you pass two or more arguments, the Date object is assigned a time value based on the argument values passed, which represent the date's year, month, date, hour, minute, second, and milliseconds. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , luvfotography ygroups@... wrote: Why does: trace((new Date(2012,01,15)).toString()); and trace((new Date('2012','01','15')).toString()); return: Wed Feb 15 00:00:00 GMT-0800 2012 February?? -- John You're old enough to make your own decisions about the environment without me telling you what you should and shouldn't print. But if you do print, I hope this signature doesn't cause the message to go onto an additional page. Because that would be kind of stupid, wouldn't it?
Re: [flexcoders] Timed Progress bar for 2 minutes.
You'll need to implement a polling mechanism that ties into your server-side process that can update your progress control. If you are using something like BlazeDS or sockets and can retrieve the that value in realtime you just need to figure ( current / total ) = percent complete. From a user point of view I'd hate to have to sit and look at something running for 2 minutes at a time; just saying'. Cheers, Rick Winscot From: Paul Andrews p...@ipauland.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Tue, 10 Jan 2012 08:19:40 + To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] Timed Progress bar for 2 minutes. On 10/01/2012 01:09, Venkat M wrote: Hi, I have a scenario in my application. I know that the wait time for the response is 2 minutes. Can someone let me know how we can run a progress bar for 2 minutes loading from 0% to 100% in the same 2 minutes? Or Is there a better way to indicate the wait for 2 minutes? (This is a fixed wait time) Cheers, Venkat.
Re: [flexcoders] FlexPMD / cut and paste detector - is it alive ?
I'm a heavy PMD / CPD user I'll do what I can. Cheers, Rick Winscot From: tom.chiverton ya...@falkensweb.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Fri, 06 Jan 2012 14:34:54 - To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: [flexcoders] FlexPMD / cut and paste detector - is it alive ? Does anyone else use the FlexPMD / FlexCPD tools ? There's a bunch of unanswered questions over at http://forums.adobe.com/community/opensource/flexpmd (not all from me !) including one from the start of November. Tom
Re: [flexcoders]
Sounds like you've copied a Flex 4.0 project into a Flex 4.5.1 workspace this link is for Flex 3-4 but the principles apply. http://www.adobe.com/devnet/flex/articles/flexbuilder3_to_flashbuilder4.html Cheers, Rick Winscot From: Wemerson Couto Guimarães wemerso...@gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Sat, 31 Dec 2011 09:08:47 -0200 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: [flexcoders] Hi everyone. I'm having problems with FB 4 PHP 4.5.1 ... After running a project once, when trying to run it again, I get the following message: C:\Program Files (x86)\Zend\Apache2\htdocs\crud-php\public\bin-debug\Main.swf (access deined) crud-flexUnknownFlex Problem Then I try, I try and I can not work ... even running a Project-:Clean or even restarting the FB. Does anyone know what this is? complementing ... When run with a Project- Clean I get the message below: Errors occurred during the build. Errors running builder 'Flex' on project 'crud-flex'. Problems encountered while deleting resources. Could not delete 'C:\Program Files (x86)\Zend\Apache2\htdocs\crud-php\public\bin-debug\textLayout_2.0.0.232.swf '. Problems encountered while deleting files. Could not delete: C:\Program Files (x86)\Zend\Apache2\htdocs\crud-php\public\bin-debug\textLayout_2.0.0.232.swf . Problems encountered while deleting resources. Could not delete 'C:\Program Files (x86)\Zend\Apache2\htdocs\crud-php\public\bin-debug\textLayout_2.0.0.232.swf '. Problems encountered while deleting files. Could not delete: C:\Program Files (x86)\Zend\Apache2\htdocs\crud-php\public\bin-debug\textLayout_2.0.0.232.swf . -- Wemerson Guimarães Rio Verde - Go - Brazil
Re: [flexcoders] Re: Flex with bluetooth input data
If you're talking barcode scanners, mag stripe readers, etc then just use one that is HID compliant (keyboard emulation). Give the field where the data needs to go focus scan your tag and voi-la. Done deal. No need for native extensions or any other fancy footwork. I did a blog post on just such a topic a couple months back. http://www.quilix.com/node/84 and here is a sexy barcode scanner that acts like an external keyboard. http://ww1.socketmobile.com/products/bluetooth-scanners.aspx Cheers, Rick Winscot From: Haykel BEN JEMIA hayke...@gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Fri, 30 Dec 2011 16:38:34 +0100 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex with bluetooth input data I'm not sure but it should be possible by writing a native extension. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Fri, Dec 30, 2011 at 3:10 PM, markflex2007 markflex2...@yahoo.com wrote: Hi, I need to use blue tooth scanner to input bar code to Flex application.do you think if it is possible. Please give me a idea. Thanks Mark --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markflex2007 markflex2007@... wrote: Hi, How to make Flex (or Air) application can receive bluetooth device's input? Thanks Mark
Re: [flexcoders] You are the product
Hmm if Falcon is 10x faster than the previous compiler could you incrementally feed it and have it emit to the browser? Kind of like a progressive download? From: ganaraj p r ganara...@gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Mon, 19 Dec 2011 10:17:54 + To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] You are the product All that adobe needs to do is, start attempting to replace the current JS with AS3. Currently AS3 is a compiled language and JS is an interpreted language. Now can adobe come up with an interpreter for as3? On Mon, Dec 19, 2011 at 9:40 AM, Peter Ginneberge p.ginnebe...@telenet.be wrote: I really don't want to take a step back when I was in fact hoping to be getting a new version of action script that moved the main language even further forward. I feel the same way. I just dislike JS and going from ActionScript to JavaScript is a step back.. a big one. If you know Java, you're in luck 'cos with GWT you can just write Java apps and they get compiled to JS (with html/css) and you still get to use Maven/Spring/Hibernate and do all the OOP stuff and whatnot. You don't have to look at javascript at all, let alone write a single line of it ! As I mentioned earlier, if FlashBuilder would do something similar, I'd be all over it. And it can be done, haXe already does that. http://haxe.org/ regards, Peter - Original Message - From: Glenn Williams gl...@tinylion.co.uk mailto:glenn%40tinylion.co.uk To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Sunday, December 18, 2011 6:45 PM Subject: RE: [flexcoders] You are the product The samples are ok, but it's the actual langue I dislike. I just doesn't feel very complete to me. I really don't want to take a step back when I was in fact hoping to be getting a new version of action script that moved the main language even further forward. The whole situation just feels like a regression to me. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Rick Winscot Sent: 18 December 2011 01:29 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] You are the product The charts? The dashboard? The app as a whole? Yes. I'd recommend looking into the ExtJS samples at Sencha. http://www.sencha.com/products/extjs/ -- Regards, Ganaraj P R
Re: [flexcoders] You are the product
Uh the original question is pretty simple - can you do anything [ like the link provided ] in HTML / CSS? The short answer is, yes. Since you opened a can of worms I'll bite. Specs not yet finished blah blah blah. If you're looking for a language to get carved in stone before you write a line of code good luck. There are plenty of apps out there that are working just fine on 'draft' technology. Innovation typically drives change not the other way around. Newer features bah! If you find a browser that supports the features you must have try to standardize on that browser if you can. If you can't then cross that bridge if you have to come to it and not before. Getting your panties in a wad over something that isn't on your plate is a waste of time. One code-base everywhere Urk. Really? I thought that was what Flash was supposed to do! Seriously I don't know what you're trying to say here. If you need an HTML/CSS app that runs just about anywhere wrap it in AIR and move on. Did he even state that it needs to run on desktop, mobile, tablets, and the voyager I spacecraft? Any good programmer barf. I do get sick of pious comments like this. I mean the guy just asked a simple question. Architecture is a subject best served after a developer has a chance to get cozy with the technology. I mean I appreciate your desire to go deep on this question but really milk before meat. The question was simple if he needs more let the subject blossom. From: Robert VanCuren Jr robert.vancuren...@gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Sun, 18 Dec 2011 01:01:27 -0500 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] You are the product There is no one size fits all solution if you want to build a complex application. Flash might be a good choice for one and HTML for another and you might need to go native depending on what you are trying to do. Maybe you even want to use Java or Silverlight! When you ask if you can do something in HTML5/JS/CSS you need to keep in mind that many of the specs are not yet finished. It will be several more years before they are even in the recommendation phase. So while it may be possible to do some things in some browsers HTML5/JS/CSS is far from being cross platform ready. Standards move slow by their nature and because of that browser vendors will release features before the standards are finished, many times that means that each browser will have a different API or implementation for the same feature. If you are going to use newer html features it is recommended that you only use the ones that are relatively stable. May of the really cool features that you will want to use are not yet production ready and should be avoided for a real project. Of course if you can limit your scope to a couple browsers there is a lot more you can do. All of that said you can make some really kick ass stuff using the HTML5, CSS3, and JavaScript. There are tons of libraries that will abstract out the browser specific things and attempt to make one code base work everywhere. Things like Modernizr, Three.js, Dojo, jQuery, EaselJS ,ect, ect. Even when using these libraries there are performance differences across devices and even browser versions. Making a web application that really works across platforms and devices is not a trivial task. Take a look at some of the stuff you can do https://developer.mozilla.org/en-US/demos/ http://www.chromeexperiments.com/ As any good developer knows you should always choose your technology on a per project basis and not because one tech is cooler than the other. In many cases it may be require to have multiple versions of your application to cover your whole target market. The project I am currently working on has a native Android and iOS app, along with an HTML5 and Flash version so that we could get as much coverage as possible. Sure its a pain but if you really want cross platform that is whats required. Some things are not even possible with out a native app on certain devices. Things like file I/O and Audio are very lacking in most browsers. Sometimes you just have to go native. Do not be afraid to learn a new language or two it will be good for you. Also make sure to pick the right tech for what you are trying to build. Again there is no holy grail that will let you write code once and work absolutely everywhere, it just does not exist. Choose your tech wisely! On Sat, Dec 17, 2011 at 8:29 PM, Rick Winscot rick.wins...@zyche.com wrote: The charts? The dashboard? The app as a whole? Yes I'd recommend looking into the ExtJS samples at Sencha. http://www.sencha.com/products/extjs/ From: Dave Glasser dglas...@pobox.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Sat, 17 Dec 2011 17:22:39 -0800 (PST) To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] You
Re: [flexcoders] You are the product
The charts? The dashboard? The app as a whole? Yes I'd recommend looking into the ExtJS samples at Sencha. http://www.sencha.com/products/extjs/ From: Dave Glasser dglas...@pobox.com Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Sat, 17 Dec 2011 17:22:39 -0800 (PST) To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] You are the product Can you do something comparable to this with HTML5/JS/CSS? http://examples2.idashboards.com/idashboards/?guestuser=wputil1dashID=260 If so, do you have any links to examples? From: Guy Morton g...@alchemy.com.au mailto:guy%40alchemy.com.au Using HTML/JS/CSS you CAN do apps that look every bit as nice as Flash apps, and they run everywhere.
Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?
Exactly my point... It shouldn¹t. Which leaves me scratching my head why adding the AIR2 SDK bits made the errors go away. Cheers, Rick Winscot www.quilix.com On 4/7/10 3:32 PM, Oleg Sivokon olegsivo...@gmail.com wrote: Ah, sorry, I see now. Well, bugs are expected in beta software... but why would you think it has anything to do with AIR - FP interaction? If you have different runtime versions there may be conflicts, especially, if one of the runtimes is still in beta...:S Best. Oleg
Re: [flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?
Jeffry, This is exactly what caused the concern. I got excited with the Flash Player 10.1 pre-release and installed it... not three minutes later I was staring at runtime errors (no code was changed / prior to this the app was working fine). I understand that the Flash Player is designed in such a way that code compiled against version 9.0.124 will continue to execute as 9.0.124 even if a newer version is present (correct me if I¹m wrong). There might be some issues with modules (related to version skew) but that is another topic... I guess I¹m a little hyper-sensitive when I see something break. I would expect some conflict / errors when swapping out a Flex SDK... but am a little less forgiving when I see Flash Player 10.1 hang (explode?) on a cast that was working without issue in version 10. So... what I¹m looking for is a little assurance (hey Rob Christensen!) that when AIR 3 and Flash Player 14 are released old applications written for AIR 1.5.3 and Flash Player 10 will continue to run without issue. Cheers, Rick Winscot www.quilix.com On 4/7/10 7:19 AM, Jeffry Houser j...@dot-com-it.com wrote: With Flextras components, I've eeen tons of runtime errors in Flex due to version mismatch with betas and official releases. Basically, SWCs compiled with Flex 4 Beta 2 have issues running against the Flex 4 release version. The solution was to recompile the app against the release version of Flex 4 SDK. I have no idea how that would relate to Flash Player 10.1 problems, though. It would be my expectation that the Flash Player is embedded in the AIR runtime and that installing a browser based pluging [even a beta one] would have no affect on AIR applications. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Oleg Sivokon olegsivo...@... wrote: You probably want to mention the kind of errors you saw. I'm not implying anything, but, in most cases that I can think, the runtime errors are the developer's fault and not the runtime fault... Best. Oleg
Re: [flexcoders] Re: Will Flash Player 10.1 Break AIR Apps?
Oleg, Thanks for the help I do appreciate it! I followed the instructions outlined ( http://labs.adobe.com/technologies/flashplayer10/ ) on labs... and my expectation is that updating to a more recent version of the Flash Player should be, more or less, transparent. In working through this, there seems to be some interdependency between Flash Player 10.1 and AIR 2 (this is an AIR app). I can¹t confirm this... but for posterity, I was able to eliminate the runtime errors I was experiencing by compiling against a patched (I merged AIR 2 bits with the latest) 3.5 Flex SDK. This resolves my first question mark... now just to confirm that each version of AIR is an island unto itself.¹ For that, I¹m satisfied with J.Housers explanation. Thanks again to all for taking the time to calm my nerves. Cheers, Rick Winscot www.quilix.com On 4/7/10 9:58 AM, Oleg Sivokon olegsivo...@gmail.com wrote: Hi. You must be seeing RSL conflicts (the classes built into FlashPlayer won't behave in that way, since they aren't actually loaded from SWF), and if that's the RSL conflict, like you've loaded a newer version of RSLs into oldish application, then, well, that's the developer's problem, he should've specify the correct RSL url, or, if we are talking about AIR, shouldn't have used RSLs at all. Best. Oleg
Re: [flexcoders] Will Flash Player 10.1 Break AIR Apps?
I wouldn¹t either but... I have a VM save point before and after the mentioned SDK change the code being compiled in each is exactly the same. One produces runtime errors (before) and one doesn¹t (after). [ shrugs ] I¹ve had more than a few head scratchers¹ as I¹ve tested 10.1... a good example would be FileReference issues (FP-3238,FP-2118,FP-2785,FP-2674); code that works in FP 10.0 exploded in 10.1. Trying to test¹ the viability of 10.1 hasn¹t been easy. Cheers, Rick Winscot www.quilix.com On 4/7/10 2:32 PM, Alex Harui aha...@adobe.com wrote: I would not expect any interaction between the two. On 4/6/10 9:01 PM, Rick Winscot rick.wins...@zyche.com wrote: I just installed the pre-release of Flash Player 10.1 and a few minutes later ran an AIR app... and to my surprise I started getting runtime errors. Is this a fluke or is there a possibility that when 10.1 goes live we might see some AIR apps breaking? Anyone from Adobe got the low-down? Cheers, Rick Winscot www.quilix.com
Re: [flexcoders] FileReferenceList
You¹ll need to pull a swip-swap-frip-frop (code is a cut and paste below). Cheers, Rick Winscot www.quilix.com ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=ccomp(); layout=absolute minWidth=955 minHeight=600 mx:Script ![CDATA[ private var slave:FileReferenceList = new FileReferenceList(); private var master:FileReferenceList = new FileReferenceList(); private function ccomp():void { master.addEventListener(Event.SELECT, handleSelect ); slave.addEventListener(Event.SELECT, handleSelect ); } protected function handleClick(event:MouseEvent):void { ( master.fileList == null ? master.browse() : slave.browse() ); } private function handleSelect( event:Event ):void { if ( slave.fileList == null ) { master.removeEventListener(Event.SELECT, handleSelect ); } else { for each ( var fr:FileReference in slave.fileList ) master.fileList.push( fr ); } debug(); } private function debug():void { trace(FileReferenceList Contains:); for each ( var fr:FileReference in master.fileList ) trace(fr.name); } ]] /mx:Script mx:Button id=btnBrowse x=573 y=389 label=browse click=handleClick(event)/ /mx:Application On 4/7/10 10:33 AM, sderamon sdera...@yahoo.com wrote: Hi, I want to upload files with FileReferenceList with Flex. I know that is not possible to get the path. Because we have this limitation, I want to add files to the fileReferenceList several times, but every time that I add files, it deletes the previous files. Is possible to add files to the FileReferenceList and keep the previous ones. Thanks
[flexcoders] Will Flash Player 10.1 Break AIR Apps?
I just installed the pre-release of Flash Player 10.1 and a few minutes later ran an AIR app... and to my surprise I started getting runtime errors. Is this a fluke or is there a possibility that when 10.1 goes live we might see some AIR apps breaking? Anyone from Adobe got the low-down? Cheers, Rick Winscot www.quilix.com
[flexcoders] Flex 4 Upgrade Price?
Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 - Flex 3 upgrade and four weeks later they dropped the price to $250. I¹d like to avoid that if possible does anyone have any info on what the Flex 4 upgrade is going to cost and when it might be available? Also... when are we going to see (Eclipse) support for Carbon dropped or Cocoa added for the Mac folks? It would really be nice to be cruising at 64 bit. Cheers, Rick Winscot www.quilix.com
Re: [flexcoders] Flex 4 Upgrade Price?
Amen brother. It¹s crazy expensive to run 32bit Flexbuilder on a 64bit machine for anyone. Matt to refresh your memory on the pricing changes. The upgrade price at the time of Ted¹s post went from $499 to $249 for pro ppl that bought Flex 2 within the free-upgrade window paid $250 less than the rest of us and got a free ride to Flex 3. I remember explaining the expense to my wife who wasn¹t happy... and when she isn¹t happy ain¹t nobody happy. http://onflash.org/ted/2007/10/flex-3-beta-2-lower-price-flex-builder.php Cheers, Rick Winscot www.quilix.com On 12/15/09 2:55 PM, Nick Collins ndcoll...@gmail.com wrote: Us Windows folks don't have 64 bit love yet, either. On Tue, Dec 15, 2009 at 12:55 PM, Rick Winscot rick.wins...@zyche.com wrote: Not to sound harsh on Adobe... but I shelled out $500 for the Flex 2 - Flex 3 upgrade and four weeks later they dropped the price to $250. I¹d like to avoid that if possible does anyone have any info on what the Flex 4 upgrade is going to cost and when it might be available? Also... when are we going to see (Eclipse) support for Carbon dropped or Cocoa added for the Mac folks? It would really be nice to be cruising at 64 bit. Cheers, Rick Winscot www.quilix.com http://www.quilix.com
[flexcoders] Debug Flash Player 10.0.42.34 ?
Any ETA or information from Adobe-ites when we might expect to see debug packages? Cheers, Rick Winscot www.quilix.com
Re: [flexcoders] Re: Delay / Pause between script executions
Angelo, The source code on this post provides a means to setup recurring timed events. In fact, the sample does exactly what you describe (updating a label every 5 seconds). Timers in your app... there can be only one. http://www.quilix.com/node/65 Cheers, Rick Winscot www.quilix.com On 10/23/09 3:23 PM, Angelo Anolin angelo_ano...@yahoo.com wrote: Hi Steve, Thanks for the sample code. I was able to come up with something quite similar to what you have posted. One question still remains, though. I tried to issue a timer.stop() command when for example, all the text values have been displayed in the label control, but the timer event does not seem to stop. How to specifically stop the timer once all the messages have been displayed? Thanks. Angelo From: valdhor valdhorli...@embarqmail.com To: flexcoders@yahoogroups.com Sent: Saturday, 24 October, 2009 2:07:16 Subject: [flexcoders] Re: Delay / Pause between script executions Here is a simple example: ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http: //www.adobe. com/2006/ mxml layout=vertical creationComplete= onCreationCompl ete() mx:Script ![CDATA[ private var labelTimer:Timer; private var messages:Array = [This is my first message, This is my second message, This is my last message]; private function onCreationComplete( ):void { labelTimer = new Timer(5000); // 5 Seconds labelTimer.addEvent Listener( TimerEvent. TIMER, labelTimerTriggered ); labelTimer.start( ); } private function labelTimerTriggered (event:TimerEven t):void { timerLabel.text = messages[labelTimer .currentCount % messages.length] ; } ]] /mx:Script mx:Label id=timerLabel text=This is my first message/ /mx:Application HTH Steve --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Hi Flexcoders, I know this may sound very elementary but I cannot figure the hell out of me how to achieve this. I have a label control. I want to display different messages after every 5 seconds, such as: myLabel.text = This is my first message // Need to delay for about 5 seconds here myLabel.text = This is my second message // Need to delay for about 5 seconds here myLabel.text = This is my last message I cannot figure out how to properly use the pause or timer utilities in achieving this. Any idea would be appreciated. Thanks. Regards, Angelo
Re: [flexcoders] switch images at runtime
Swapping out stuff at runtime involves getting a handle on a compatible asset... like: [Embed(another_image.png)] private var foo:Class; The exchange would be something like: this.setStyle( backgroundImage, foo ); // where this¹ is your Application context The key is getting familiar with the BitmapAsset class. Copy and paste this code and swap the image names as needed. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute minWidth=1024 minHeight=768 mx:Style Application { background-image:Embed(original_image.png); } /mx:Style mx:Script ![CDATA[ [Embed(another_image.png)] private var foo:Class; private function doExchange():void { this.setStyle( backgroundImage, foo ); } ]] /mx:Script mx:Button x=10 y=10 label=exchange asset width=140 height=43 click=doExchange()/ /mx:Application Cheers, Rick Winscot www.quilix.com On 10/14/09 7:27 PM, [p e r c e p t i c o n] percepti...@gmail.com wrote: Hi all, in my css i set the background image like this.. background-image: Embed('somedirectory/someimagefile.png'); however...there's no way to scale it or change it's width so i'm wondering how i can swap it with another image while the app is running.. thanks percy
Re: [flexcoders] Module and Application Communication.
Have you tested to see if this is a security / app domain issue? Cheers, Rick Winscot On 8/17/09 1:24 PM, cuttenv cutt...@yahoo.com wrote: I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
Re: [flexcoders] Singletons and Modules - Application domain problem
Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator- with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance.
Re: [flexcoders] Flash Player 10 | FileReference.Save
Your download needs to be executed within the function that processes/handles user input... even calling another function will result in the same error. Your only other alternative is to use navigateToUrl... or a servlet call that sends back a stream. I¹m guessing that you have a compelling use case or that auto-download is a requirement typically this kind of behavior is frowned upon by the IT peeps. Would copying the data to the clipboard be an option? Cheers, Rick Winscot On 7/31/09 5:28 PM, ilikeflex ilikef...@yahoo.com wrote: Hi I have scenario in which the user clicks the 1.Click the button. 2.Make a call to server using Remote Object 3.Show the popup to save the data in file. But i came through Flash Player 10 Security Model which says that Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. Does it mean that the user has to view the data in the datagrid and then click save button (User Interaction according to Flash Player 10 Security Model) to save the data in the file. Is there way user can save the data directly after server response. Any pointer is highly appreciated Thanks ilikeflex
[flexcoders] Spring Security Bounty - call for ninja assassins!
If you are an experienced Spring-ite with experience in handling conditional NT Authentication and want to make some extra money please reply off-list for details. We have a requirement on the plate to add NT authentication to a Flex application and we¹ve only been marginally successful. The solution needs to support environments with a mix of Win/Mac/Linux clients and servers on and off domain. Cheers, Rick Winscot
[flexcoders] ANN: Hardware Hijinks @ Adobe MAX 2009
If you are attending Adobe MAX 2009... and are interested in Flash / hardware connectivity and communication I¹m collecting data to help drive a Bird of a Feather¹ session proposal. The survey link is at the bottom of the post your input is greatly appreciated! http://www.quilix.com/node/43 Cheers, Rick Winscot
Re: [flexcoders] communicate between air app and browser?
There is a grundle of information in the Flex 3 Cookbook by O¹Reilly. http://digitalmedia.oreilly.com/helpcenter/flex3cookbook/chapter20.html Depending on your implementation you might be able to use cookies, SharedObject, web services, BlazeDS, or... there are quite a few options. As far as opening AIR apps goes... Rich Tretola¹s post from earlier today is a good start. http://blog.everythingflex.com/2009/06/08/open-an-air-application-from-a-2nd -air-application/ Which will lead you to his LocalConnection stuffs. http://blog.everythingflex.com/2009/05/27/localconnection-maintaining-connec tions/ Cheers, Rick Winscot On 6/8/09 1:15 PM, luvfotography ygro...@all-digital-links.com wrote: What's the best way to communicate between a flex app in a browser and an air app?? local connection? If the Air app isn't running, can you start it from the browser somehow? thanks,
Re: [flexcoders] flex app on losing focus...
Flash/Flex/AIR don¹t stop running when a window or browser loose focus... It might appear this way if the only thing that drives your application refresh is user input. That is to say, that when the application looses focus there is nothing to cause the application to redraw / update. You have quite a few options to keep things brewing: you could use window-to-window communication via JavaScript, the Flash LocalConnection object, cookies, a SharedObject, etc. You could even use a timer and a global mouse/keyboard handler to establish inactivity that could drive UI refresh as needed. If you are running a server product like BlazeDS, WebORB, etc... Interaction in a single window could drive updates just about anywhere you want. Cheers, Rick Winscot On 6/4/09 9:50 AM, grimmwerks gr...@grimmwerks.com wrote: I've got an application I created for a chain of stores, that when losing focus for a moment - ie when the admin flips to another interface -- upon return/getting focus, it draws it's entire interface again and basically takes a few seconds of receiving event dispatches to get into shape again. I'm not sure how best to handle this as it seems it's something happening at the core of a flex app; but is there a way to 'force' flex/flash to keep getting updates while even in the background?
Re: [flexcoders] AIR Computer Locking
What are your couple ways around this problem.¹ Are you thinking of using system idle? Is there a direct (easy) way to do this? None that I know of... typically these kinds of operations require a system call which would be OS specific and wouldn¹t be available to AIR without significant effort. Is there any reason you can¹t capture that point when the application starts and then re-use it for subsequent notifications? Cheers, Rick Winscot On 6/1/09 3:37 PM, Jake Churchill j...@cfwebtools.com wrote: Anyone know how to recognize if a computer is locked or not (Windows XP) in AIR? I have an app that runs on the taskbar by the time. It periodically displays notifications which are placed at the bottom right of the screen. I get that position using Screen.mainScreen.visibleBounds. This works just fine when the computer is unlocked. However, when the computer is locked, the visibleBounds does not recognize the existence of the taskbar, so when I unlock the computer, half the notification is below the task bar. I can think of a couple ways around this problem, I just wanted to know if there was an easy way to find out if the computer is currently locked or not. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
Re: [flexcoders] How does one implement IBitmapDrawable
IBitmapDrawable is implementd by flash.display.DisplayObject... of which Flex mx.core.UIComponet extends. So... If you want to create something that you can groggle BitmapData with that¹s a pretty good place to start. http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html Cheers, Rick Winscot On 6/1/09 4:39 PM, Stephen More stephen.m...@gmail.com wrote: Given this code: var bitmapData:BitmapData; bitmapData.draw( IBitmapDrawable( target ) ); What method(s) does target need to implement so that bitmapData will have valid data in it ? Can anyone provide an example ? -Thanks
Re: [flexcoders] Need help writing alorithm
In order for a filter function to eliminate unwanted items everything in your data provider will have to pass through that function... which probably won¹t perform well as the number of records increase. If you aren¹t dealing with large amounts of data it probably isn¹t a concern (just a thought). On the flip-side you could use a paged ArrayCollection. There is a good example on Adobe Developer Connection written by Peter Molgaard if you¹re interested. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspro ductId=2postId=11083 Cheers, Rick Winscot On 5/29/09 10:59 AM, fumeng5 fume...@yahoo.com wrote: Hi, I'm looking for help writing an algorithm in a filter function I am using. Here's the situation: Based on a page number and a number of records per page, I want to return all indexes that fall within a certain range. There are 4 records per page. For example; - page 1 will return indexes 0-4 - page 2 will return indexes 5 - 9 - page 3 will return indexes 10 - 14 etc, etc... So, here are the vars: var index:int = myCollection.getItemIndex( item ); var recordsPerPage:int = 4; It's embarrassing, but this is what I have so far if( page = index (page * page + recordsPerPage) ) return true Can anyone offer some helpful insight, please? Thank you for any help.
Re: [flexcoders] Ideas / input greatly appreciated
Screen sharing / remote control is a tall order for Flash based technologies at the present time. You might want to take a look at the Acrobat Connect Collaboration Builder SDK. http://www.adobe.com/devnet/acrobatconnect/articles/intro_sync_swf.html Cheers, Rick Winscot On 5/29/09 12:53 PM, Allan Pichler dreamc...@gmail.com wrote: Hi all. I¹m trying to find a low cost solution to do 1-1 screen sharing/remote control, preferably inside a flex application, alternatively as a popup window. The application also need some other collaboration widgets, so I was looking at Acrobat Connect, but I can¹t find any information about customization of the user interface and adding new pods. Any help You can give is much appreciated! Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI
Re: [flexcoders] Ideas / input greatly appreciated
You can create an account that allows 3 people to connect... for free (has this changed?). By tall order¹ I mean... 1. You cannot view a users desktop from Flash, Flex, or AIR 2. You cannot control the users computer (keyboard/mouse) from Flash, Flex, or AIR The only exception to this is Acrobat Connect which uses a custom plugin to accomplish that feat. The only other alternative is to roll your own solution with a wrapper like Merapi to give you access to OS screen/input hooks which could be passed to AIR. A serious engineering effort to be sure. Flash - flash sharing (i.g. whiteboard) is possible if that is what you are trying to do... other than that you are out of luck. Have you looked at Flash VNC? http://www.darronschall.com/weblog/2005/11/flashvnc-released.cfm Alternatively, you could roll a hybrid solution: use Teamviewer for the remote viewing / control and then create a flex app that does all your custom pod stuffs. Cheers, Rick Winscot On 5/29/09 1:13 PM, Allan Pichler dreamc...@gmail.com wrote: But I was under the impression that connect pro is pretty expensive ??? Anyone know of an AIR app for the screen sharing that is launched from the main app??? --a From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rick Winscot Sent: Friday, May 29, 2009 10:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Ideas / input greatly appreciated Screen sharing / remote control is a tall order for Flash based technologies at the present time. You might want to take a look at the Acrobat Connect Collaboration Builder SDK. http://www.adobe.com/devnet/acrobatconnect/articles/intro_sync_swf.html Cheers, Rick Winscot On 5/29/09 12:53 PM, Allan Pichler dreamc...@gmail.com wrote: Hi all. I¹m trying to find a low cost solution to do 1-1 screen sharing/remote control, preferably inside a flex application, alternatively as a popup window. The application also need some other collaboration widgets, so I was looking at Acrobat Connect, but I can¹t find any information about customization of the user interface and adding new pods. Any help You can give is much appreciated! Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI
Re: [flexcoders] High CPU usage redux
Tom, Just a few quick points... you might already know but would be wise to cover for sake of maintaining history. Resources are allocated as components/controls/whatnot come into view. Your observation that your application footprint increased when touching creationPolicy is what one should expect. The best rule of thumb is to show what you need... need what you show and wait as long as you possibly can before showing anything. With regard to skining. Using a skin in your application will, by its nature, cause the application footprint to increase. Here footprint¹ being memory consumption and not necessarily cpu usage. So, an increased footprint when adding skins into the mix is also something you will probably see. The part that has me scratching my head is that you are seeing high cpu usage - which is something that is typically linked to refresh/redraw rates. How many frame per second are you running at? Have you tried the right click - show redraw regions? If the whole app has a red box around it... That is a good indicator that you are hitting the displaylist / refresh too hard. Do you have any source we can take a look at? Cheers, Rick Winscot On 5/28/09 9:10 AM, Tom McNeer tmcn...@gmail.com wrote: A couple of days ago, I posted a message regarding extremely high CPU usage in an application I was building. Eventually, I concluded that the problem was not the Flex app, but some other processes on the same machine. However, I have since found out that I was incorrect -- the problem was the Flex app after all. So for anyone who read the original post and wondered what might be happening -- in particular, Rick Fotis, who attempted to help -- here's what was going on: The issue was caused by the combination of a creationPolicy setting and the use of a set of skins called iCandy, from the ScaleNine site. Now -- I'm not criticizing the developer of the skins. I don't know enough about what really went on. But I do know this: I had set the creationPolicy on a TabNavigator to all. When I removed this, the CPU usage dropped markedly. But when I went into one of the tabs, the usage picked back up, although not as much. I removed the reference to the skin stylesheet. The CPU usage did what it was supposed to do: spike occasionally, then drop to nothing. So I can only conclude that the skins were causing continual redraws in the background. I've found some blog posts from the folks at EffectiveUI discussing performance problems with stateful skins, so I'm not the only one who's encountered it. Here's one of the posts: http://patrickhansen.com/blog/index.php/2009/03/05/flex-stateful-skins-vs-stat eless. Moral is: be careful of stateless skins, even though they seem to be recommended by Adobe. The use of a large number of skinned components (checkboxes, text inputs, etc.) can evidently be a problem -- and I didn't even have that many. I don't know enough to make a technical analysis of the issue; but I hope this may save someone else a few hours (or in my case, days) of pain.
Re: [flexcoders] High CPU usage redux
Tom, After a little more poking around I found this issue in the Adobe bug-base for the Flash Player. http://bugs.adobe.com/jira/browse/FP-1149 ...and... https://bugs.adobe.com/jira/browse/FP-2009 It looks like the root cause isn¹t with skinning but rather frame rate handling which could be triggered in many different ways; one of them being stateful skins. Nice. I downloaded the example at Effective UI for reference and witnessed the problem first hand. I was able to get it to behave (kind of) using a technique outlined by the masterful Grant Skinner. http://www.gskinner.com/blog/archives/2009/05/idle_cpu_usage.html The problem is that while the application has focus cpu usage will be higher... So, I guess the real question is if cpu consumption while the application is active is justifiable / manageable. Cheers, Rick Winscot On 5/28/09 1:57 PM, Tom McNeer tmcn...@gmail.com wrote: Rick, On Thu, May 28, 2009 at 9:54 AM, Rick Winscot rick.wins...@zyche.com wrote: Your observation that your application footprint increased when touching creationPolicy is what one should expect. Actually, I wasn't very clear: it wasn't that the application footprint increased (though it did, minimally); rather it was that by having a TabNavigator with a creationPolicy of all (which I have now managed to work around), five components were created immediately, each of which added to the CPU load because of the skinning issue that was common to all of them. an increased footprint when adding skins into the mix is also something you will probably see. Sure. But this is CPU usage caused by the stateful skins. The part that has me scratching my head is that you are seeing high cpu usage - which is something that is typically linked to refresh/redraw rates. Do you have any source we can take a look at? The source wouldn't help you, Rick. It's very typical forms-in-a-tab navigator stuff. Yes, the issue must be redrawing -- pretty constant redrawing I'd say. If you look at the blog post I referenced, you'll get a better view of the problem. Effective UI did a good deal of testing when they ran into the same issue, and concluded that it had to be a result of the use of stateful skins -- although they didn't seem to be able to determine the underlying cause. They documented some pretty impressive CPU usage by simply adding more skinned elements. I'm just kinda surprised more people haven't run into it.
Re: [flexcoders] High CPU usage
Tom no problem. If you find that this is highly reproducible I¹d be interested to know how the operating system drag¹ is generated. Rick Winscot On 5/27/09 9:00 AM, Tom McNeer tmcn...@gmail.com wrote: Rick and Fotis, Thanks for your suggestions. It was the fact that none of the visual/redrawing actions you discuss were going on that mystified me. The problem was elsewhere. And Rick, I didn't post code because the problem seemed to involve the interaction of a whole stack of view components. The problem, however, was not in the Flex application at all, but rather in some other things that were going on with the machine. What appeared to be a rather constant high usage from Flex was in fact a rather normal spike in CPU usage from the Flex app, that under normal conditions would be momentary. Other processes were causing the Flex app to hang fire, making it seem as if Flex was creating a constant load. Thanks again for your suggestions. And I apologize for misinterpreting the problem. But ... it was a messy problem. Just glad I finally figured out what was happening.
Re: [flexcoders] High CPU usage
How often are you calling invalidateDisplayList()? Are you using effects, filters, or skins and if so... to what extent. Is there data involved? What kind and how much? Are the components custom? If so... can you post some code for us to look at? Obviously, all we can do is stab in the dark¹ and hope to hit something that resonates. The best would be to post some code for us to take a look at. Rick Winscot On 5/26/09 4:00 PM, Tom McNeer tmcn...@gmail.com wrote: Hi, Can anyone direct me to resources on how to track/profile/explore CPU usage in a Flex app? I've googled without any real success. In an app I'm developing, the CPU usage seemed to suddenly shoot up to near 100%. Now, I'm sure that it didn't happen suddenly; I'm sure I just wasn't paying attention. But there's nothing apparent going on that should create high usage -- no video, no effects -- just some simple forms. I've spent the day commenting out pieces to boil the app down to its essence, to try to see where this problem is creeping in. But it seems to come from multiple components, all of which are fairly simple forms, with some validations, some bindings to properties on an object being edited -- pretty much, the usual stuff. Yet, I'm sitting here looking at the app, trimmed down to where only one of these form elements exists within a tabNavigator, and I'm seeing almost 40% usage with (apparently) nothing happening. There's no memory problem -- the profiler shows maybe 15Mb going to the application. But the CPU is going crazy. I've tested on several machines, and the high CPU usage is consistent, although, of course, the actual percentage varies. I don't expect an answer (though I'd love one); I'm just hoping for some pointers on how to troubleshoot this.
Re: [flexcoders] Zoom on an Image
There is a really nice implementation over at the Adobe Developer Connection... http://www.adobe.com/devnet/flex/samples/fig_panzoom/ Rick Winscot On 5/25/09 4:19 AM, Kenneth Sutherland kenneth.sutherl...@realise.com wrote: I¹ve done a basic example of zooming. Check out http://kennethsutherland.com/2009/05/01/zooming-example/ It¹s not a component but you can look at the source code and then make your own component to fit your own needs. HTH Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: 25 May 2009 08:37 To: flexcoders@yahoogroups.com Subject: [flexcoders] Zoom on an Image Hello, I want to make a zoom function on an image. I am searching a component of an image with scrolling. What can I use ? Thank you, Christophe, Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast.
Re: [flexcoders] Print examples?
If you want to print a sub-set of you text... You are going to need to select the appropriate text transfer to a temporary container and use the temporary container as an argument for the PrintJob.addObject(). Remember that in order to print what you see you must see what to print. This is essentially the context of the first paragraph in livedocs... http://livedocs.adobe.com/flex/3/html/help.html?content=printing_3.html Rick Winscot On 5/23/09 4:17 AM, Tony Obermeit t...@tamborine.to wrote: I'm looking for examples of how to print a single paragraph of text in flex where I can chose the font and rely on word wrap on page margins. The few examples I've found show grids, anyone help really appreciated. tony
Re: [flexcoders] Apply SDK changes
In the Flex SDKs source? Are you monkey patching (underridding) a control / class? ...a little more info about your setup would be helpful. Rick Winscot On 5/11/09 9:49 AM, markgoldin_2000 markgoldin_2...@yahoo.com wrote: If I change a line or two in SDKs source code how do I apply these changes to my project? Thanks
[flexcoders] Flashcamp East Coast?
Just wondering if ppl at Adobe are planning on spreading some Flashcamp sweetness on the East Coast any time soon... are our only option(s) May 29th in San Francisco? Rick Winscot
Re: [flexcoders] Flex help system
Doc-to-help baby... produce your help files from a Word doc and link from your app via contexts exposed by D2H. http://www.doctohelp.com/ Rick Winscot On 4/29/09 10:06 PM, Tony Obermeit t...@tamborine.to wrote: I've created a help page for my flex application which is a htmlText component shown in a pop up. As I was using flex builder and using the dynamic help option, it became clear to me I need a more sophisticated help system within my flex applications. Any thing out there?
Re: [flexcoders] Migrate Flex to Flash Lite
What you are asking is a huge task... even the prospect of using classes in Flash Lite will cause huge performance issues not to mention the fact that you will have to translate/port any Flex framework bits you use in your Flex app to Flash Lite. This would not be a trivial task. I wouldn¹t recommend trying to create a Flash Lite product that maintains parity with a Flex app without serious contemplation on what your users actually¹ need and not what they think¹ they need. Rick Winscot On 4/23/09 2:28 AM, itdanny2002 itdann...@gmail.com wrote: We want to use a flex program (FP7) on mobile. However, not much mobile supports. Both Flex Builder (Output Flash) and Flash CS4 (ouput Flash Lite) support ActionScript. Can I change all code to ActionScript in Flex Builder and then use it in Flash CS4 ? Please show me the way. Thank you very much.
Re: [flexcoders] Re: loading swf's dynamically
Any chance the second load attempt is pulling from cache? http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14743 Rick Winscot On 4/21/09 9:21 AM, Jason B nos...@advancedonsite.com wrote: The alert box never shows loaded second swf either --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jason B nos...@... wrote: That sounds good so far i got this built from your suggestion, but the second swf never loads/plays now? public function init(){ vfc_guy.autoLoad = false; vfc_guy.source = vfcfaq.swf; vfc_guy.addEventListener(Event.COMPLETE, vfc_guy_play); } public function vfc_guy_play(){ Alert.show(LOADED second swf); vfc_guy.load(); } --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Kenneth Sutherland kenneth.sutherland@ wrote: Why don't you listen for the complete event. The swfloader will fire of the 'complete' event when its loaded. So you don't try to display it until it has fully loaded. At the same time you can listen to the 'progress' event to see how much has loaded and maybe inform the user that your app is loading something and give a % loaded message or similar.
Re: [flexcoders] OT: TV anyone?
When I found out that Flash Player 9 included H.264 playback... It was pretty obvious that they (Adobe) were moving heavily into the entertainment delivery market. There are still some pretty big obstacles to navigate but I think it¹s safe to say that if you have stock in Blockbuster, Netflix, or Direct TV it¹s time to refresh your portfolio. Rick Winscot ³He who dies with the most toys wins.² On 4/20/09 10:27 AM, Paul Andrews p...@ipauland.com wrote: Yay! http://news.bbc.co.uk/1/hi/technology/8008070.stm
Re: [flexcoders] Panel access
If ( userLogged == false ) myPanel.enabled = false; You could also take it completely out of view by setting the visible property false... Is there something more you are trying to accomplish? Rick Winscot On 4/2/09 11:40 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, I have a tab navigator with Panels. I want that the user access some panel only if he is logged. How to unvalidate the access to a Panel ? Thank you, Christophe,
Re: [flexcoders] Re: Flash player fails to install on vista!
I ran across this two weeks ago on a single system... out of 76 machines and posted here as well to see if anyone else was experiencing any esplosions. Long story short I ended up finding some wonky behavior in the JavaScript used for Flash version detection on just that machine. Go figure. So... I swapped out the HTML wrapper (generated in Flex from the default index.template.html w/express install) with SWFObject... BOOM BABY! Problemo solved. For those naysayers on the list that called me crazy,¹ stoopid,¹ noob,¹ and utterly delicious.¹ SEE! I¹m not the only one! There are two of us... in like... a couple million installs. awkward silence shuffles feet Rick Winscot On 4/2/09 3:28 PM, Cato Paus ca...@brannsikring.no wrote: There was no error, just a silent error. And when I went back to the page that requires the last version of flash player I get up again to installed --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sam Lai samuel@... wrote: This just sounds like the tech support calls I get from customers. Given you're a developer, I expected better - What was the error message, how is it not installing? 2009/4/2 Cato Paus ca...@...: Hi all, this is veard, I have a clean install(Windows Vista Ultimate) on my laptop and IExploer do not want to install the flash player (ActiveX) ! switching to FireFox, up yours MS! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62 079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Flash Player 10.0.22.87 Broken?
Yes, I have. This wasn’t a problem of a 9.0 - 10.0 transition... but a point release from 10.0.12.36 to 10.0.22.87. After the update, one of our machines fails to load certain Flash enabled sites now. We are trying to isolate the problem – and I thought that I would ask around to see if anyone had anything similar happen. Rick Winscot On 3/18/09 5:42 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Monday 16 Mar 2009, Rick Winscot wrote: I haz a little Œquirk¹ over the weekend - updating to Flash Player 10.0.22.87 has broken several apps. Anyone got any info? I found a post in the dreamweaver forums that pretty much sums it up. Have your read the paper from Adobe on the FP9 to FP10 security changes ?
Re: [flexcoders] Setting Focus on loading application
This ground may have been covered already but this is an IE fix only. Firefox doesn¹t doesn¹t let you set focus programmatically to embedded Flash content. It¹s been a long-standing issue with the people at Mozilla. http://groups.google.com/group/mozilla.dev.accessibility/browse_thread/threa d/360ba2fcb48de633/ec87ab6b4e30d822 Rick Winscot On 3/17/09 8:00 AM, sony antony pow_like_me...@yahoo.co.in wrote: Hey.. Thanks Toby... That worked.. It was really troubling stuff for me.. Now am almost relaxed.. --- On Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html-template/ index.template. html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi,Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs. adobe.com/ jira/browse/ FP-879 http://bugs.adobe.com/jira/browse/FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony Check out the all-new face of Yahoo! India. Click here. http://in.rd.yahoo.com/tagline_frontpage_1/*http://in.yahoo.com/?wm=n/ Toby Tremayne CEO Magic Industries http://www.magicind ustries.net http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1 Add more friends to your messenger and enjoy! Invite them now. http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite /
Re: [flexcoders] OS-dependent mxmlc behavior for fonts?
Did you move the fonts with you migration or are you relying on system fonts? Are you using TTF or OTF? Do you anticipate regular changes to your font(s)? As an alternative, you could compile your font .swf and then just include it as an asset in your app. Rick Winscot On 3/17/09 9:31 AM, pelducci pe...@peldi.com wrote: Hi there, I just recently moved my build machine from a windows box to a linux box, and now my app's fonts (both embedded and not embedded) look different (thicker and overall crappier). My build is done via mxmlc in an ANT script. What can I do about it, short of moving the build machine again? Any mxmlc option I could use? I don't really even know what to Google... TIA, Peldi
Re: [flexcoders] OS-dependent mxmlc behavior for fonts?
Do all of your fonts exhibit the same behavior? Trying to isolate an potential rogue elements... You might have figured this one out but Arial on Windows is probably not Arial on Linux. So, no matter what you do use... You need to make sure you are using the exact same .ttf font packages to generate your embedded fonts no matter what system/OS you are building on. If you don¹t anticipate changing your fonts... Then the recommendation about compiling once and including as a static asset in your project is a quick resolution to the problem. I can understand your hesitation though. R On 3/17/09 5:34 PM, Peldi Guilizzoni, Balsamiq Studios pe...@balsamiq.com wrote: Thanks for the reply Rick. I am using 2 TTF files for the embedded fonts, and a system font (Arial) as well. I do not anticipate any change to my fonts, no. Why? I don't really like the SWF option...do you or anyone else know why I'm getting these differences? What part of mxmlc is platform-dependent? Can it be tweaked/fixed? Peldi --- Giacomo 'Peldi' Guilizzoni Founder, Balsamiq Studios, LLC http://www.balsamiq.com ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq On Tue, Mar 17, 2009 at 5:14 PM, Rick Winscot rick.wins...@zyche.com mailto:rick.winscot%40zyche.com wrote: Did you move the fonts with you migration or are you relying on system fonts? Are you using TTF or OTF? Do you anticipate regular changes to your font(s)? As an alternative, you could compile your font .swf and then just include it as an asset in your app. Rick Winscot On 3/17/09 9:31 AM, pelducci pe...@peldi.com mailto:peldi%40peldi.com wrote: Hi there, I just recently moved my build machine from a windows box to a linux box, and now my app's fonts (both embedded and not embedded) look different (thicker and overall crappier). My build is done via mxmlc in an ANT script. What can I do about it, short of moving the build machine again? Any mxmlc option I could use? I don't really even know what to Google... TIA, Peldi
Re: [flexcoders] Re: FocusManager fun... Tab Loops redux
Even the PopUpManager suffers to a degree. As modules are loaded there seems to be some confusion as to which FocusManager they belong... as you press TAB focus will jump from one module to another as if they were connected. You can get around this by forcibly triggering activate/deactivate operations on the modules FocusManager --- as stated in the comments in FocusManager.as: ³The SystemManager activates and deactivates a FocusManager if more than one IFocusManagerContainer is visible at the same time. If the mouse is clicked in an IFocusManagerContainer with a deactivated FocusManager, the SystemManager will call the activate() method on that FocusManager. The FocusManager that was activated will have its deactivate() method called prior to the activation of another FocusManager.² I¹ll attach a sample project to the issue for clarity. Rick Winscot On 3/14/09 1:42 PM, aceoohay pa...@compuace.com wrote: Yes, Alex has been very generous with his time offline, and I will be trying his popup approach. However I believe the popup solution is a hack in the perjorative sense. I believe that the flex language should allow at a minimum the ability to define a separate tab loop for each module. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: Paul and I have discussed off line. He's got a bunch of module panels that we wants to overlap and drag around the screen and have tabbing stay within which ever panel was clicked in and moved on top of the others. Flex has all of this built-in. Once he gets his modules popped up, he should be all set. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jim.abbott45 Sent: Friday, March 13, 2009 3:21 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux Feeling less than ecstatic? Then please VOTE for fixing of bug #16897. See: https://bugs.adobe.com/jira/browse/SDK-16897 --Jim --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , aceoohay pauls@ wrote: Alex: Neither of these options are practical in the real world (at least my world) since we have over 135 modules currently, and up to 10 can be loaded at any one time. We cannot have the cursor willy nilly hopping from module to module going to panels that are partially obscured by other panels, etc. Does the mx.managers.FocusManager allow the ability to establish multiple tab loops within a single application? If so, how can this be used to define a tab loop for a single container? If not, is there anything that will allow defining a tab loop for a container?! With multiple tab loops available on the stage at one time. The user can use the mouse to jump from module to module. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Setting tabEnabled on anything you don't want to have focus is one answer. So is non-modal popups. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of aceoohay Sent: Wednesday, March 11, 2009 8:00 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux Alex: Let me restate my primary question; ! gt; ...has anyone else tried to create a flex component with ! a separa te tab loop, if so how did you make it work? Since the documentation seems to indicate that FocusManager will allow multiple tab loops that was the approach I was investigating. My primary goal, irrespective of how I do it is to create what I call a tab domain. Whatever it is called, what I need is the ability to define a captive group of objects from which focus will never leave by pressing the tab key. Paul
[flexcoders] Flash Player 10.0.22.87 Broken?
I haz a little quirk¹ over the weekend updating to Flash Player 10.0.22.87 has broken several apps. Anyone got any info? I found a post in the dreamweaver forums that pretty much sums it up. http://dreamweaverforum.info/flash/153268-swf-broken-10-0-22-87-a.html Rick Winscot
Re: [flexcoders] Re: Hiding Swf on a website
From the HTTP Track FAQ section... There are cases, however, that can not be (yet) handled: * Flash sites - no full support * Intensive Java/Javascript sites - might be bogus/incomplete * Complex CGI with built-in redirect, and other tricks - very complicated to handle, and therefore might cause problems So... there are are a lot of variables to reconcile but it boils down to what I said in the blog post. If your assets have either a relative or absolute path sooner or later they are candidates for copy. Nay you say? Check out he specs on Surf Offline - http://www.surfoffline.com/. The only thing that will be well out of reach for these types of applications is server-side scripts. Rick Winscot On 3/14/09 6:59 AM, triptonemeister triptonemeis...@gmail.com wrote: If you load swf files from javascript dinamically, width swfObject, the htttpTrack don't download it. Load swf like this: body onLoad=loadSwf() / div id=ic_fl / script type=text/javascript function loadSwf() { var params = { menu: false, allowScriptAccess: always, wmode: transparent }; swfobject.embedSWF(foo.swf, 'ic_fl', 100%, 100% , 9.0.0, expressInstall.swf, null, params); } /script /body --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , christophe_jacquelin christophe_jacque...@... wrote: Hello, How to hide swf files on a website, preventing their copy by a software like httptrack? Thank you, Christophe,
Re: [flexcoders] Hiding Swf on a website
Christophe not sure if this helps... but I put together a sample of one approach that might work for you. http://www.quilix.com/node/31 Rick Winscot On 3/13/09 7:08 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to hide swf files on a website, preventing their copy by a software like httptrack? Thank you, Christophe,
Re: [flexcoders] Hiding Swf on a website
Hmm I guess I could have used application/x-shockwave-flash as the content type. I'll change that - it looks sexier. An fyi though - Flash has supported progressive download via HTTP for some time. The browser is just the host/conduit - the wrapper is what hooks the stream up to the Flash Player. In fact, you really don't even need the headers in the php script (top three lines in the example). Rick Winscot On 3/13/09 7:18 PM, Guy Morton g...@alchemy.com.au wrote: Rick, I'm surprised setting the content-type to application/octet- stream worked...does it work in all browsers/OSes? Do you have to set the content type in the wrapper if you use that approach? If you don't it'd surprise me if all browsers were smart enough to do the right thing with the content. On 14/03/2009, at 10:01 AM, Rick Winscot wrote: Christophe not sure if this helps... but I put together a sample of one approach that might work for you. http://www.quilix.com/node/31 Rick Winscot On 3/13/09 7:08 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to hide swf files on a website, preventing their copy by a software like httptrack? Thank you, Christophe, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6207 9f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] XSLT Processor for AS3?
In Flex? I suppose you could include the AIR libraries... and then... http://blogs.adobe.com/briggs/2008/05/using_air_for_xslt_processing.html Rick Winscot On 3/12/09 11:05 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I¹ve asked this on several lists, and Twitter, never had a single reply yet. Hoping someone here knows. Is there an XSLT parser/processor for Actionscript 3? I would like an Actionscript native one to transform some XML client-side. I have the XSLT file for it already written, which I verified works fine transforming with Javascript and IE browser's DOM, but I'm looking for an Actionscript solution, not Javascript/IE, PHP or anything else. Does this kind of class exist for Actionscript 3? If not, I'm surprised nobody has written one - maybe just too much work? In an ideal world, I am imagining someone has a class (or component) that takes two arguments, an XML string or URL and an XSLT file, and returns the transformed XML in the new format. Anyone know if this thing exists or at least is being worked on by either Adobe or the os community? Thanks, Jason Merrill Bank of America | Learning Performance Solutions Instructional Technology Media Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx image.png
[flexcoders] IDE + Continuous integration == meh?
I¹m trying to trim a little more fat off an application that has half a dozen RSLs and a scad of modules. The application is being built out of a continuous integration process using Flex Ant Tasks. My first thoughts were to tune compiled targets in the IDE (which worked nicely) and then use dump-config to generate a config file that I would use in lieu of flex-config.xml. This didn¹t work RSL/module file size stayed the same (scratches head). I¹ve read a heaping plate-full of great posts by Ryan Steward, Ted Patrick, that guy Alex at Adobe (ROWR) and a few others... does anyone have any horror stories or success stories they could share about reducing your application footprint? Rick Winscot
Re: [flexcoders] Flex 3 Certification
If you are looking for something like a brain-dump of the exam... I can¹t help you. The Flex 3 Training from the Source¹ is a reasonable start... http://www.amazon.com/Adobe-Flex-3-Training-Source/dp/0321529189/ref=sr_1_1? ie=UTF8s=booksqid=1230168819sr=1-1 Rick Winscot On 12/24/08 1:15 AM, Ashish Verma verma.lu...@gmail.com wrote: I have this link but what I am asking about for demo papers with more questions. On Wed, Dec 24, 2008 at 10:43 AM, Rick Winscot rick.wins...@zyche.com wrote: The study guide for the exam: http://partners.adobe.com/public/en/ace/ACE_Exam_Guide_FlexAIR.pdf Rick Winscot On 12/23/08 11:38 PM, Ashish Verma verma.lu...@gmail.com http://verma.lu...@gmail.com wrote: Hello All, I want to give Flex 3 certification exam. I know the details about the promatic center and all. what I want to know from where I can download the sample question papares for flex 3 if not available could you tell me site for flex 2 at least. Regards, Ashish
Re: [flexcoders] MDIWindow modal
You can also use PopUpManager and set the modal flag as true. Rick Winscot On 12/23/08 8:57 AM, Bianconi febianc...@yahoo.com.br wrote: Hi everybody, Someone know how do i do modal in mdiwindow??? urgently... Tks, Felipe Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/ - Celebridades http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/c elebridades/ - Música http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m %C3%BAsica/ - Esportes http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/e sportes/
Re: [flexcoders] Flex 3 Certification
The study guide for the exam: http://partners.adobe.com/public/en/ace/ACE_Exam_Guide_FlexAIR.pdf Rick Winscot On 12/23/08 11:38 PM, Ashish Verma verma.lu...@gmail.com wrote: Hello All, I want to give Flex 3 certification exam. I know the details about the promatic center and all. what I want to know from where I can download the sample question papares for flex 3 if not available could you tell me site for flex 2 at least. Regards, Ashish
Re: [flexcoders] Re: Performance and UI failing to update?
It is true that Flash¹s default frame rate of 12 fps is overkill for most business applications and could be adjusted to help keep code bits in sync. However, this time between refresh operations is relative and doesn¹t include the time it takes to render a frame - and Flash is smart enough drop frames to keep things moving. So really... using frame rates and timers in your application probably isn¹t the best idea. The problem is that people (developers) get impatient and tend to want things to happen on their time and forget that the framework is doing a pretty good job... and that they just need to be better friends with rendering cycles and the display list. Rick Winscot On 12/23/08 11:13 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manish Jethani manish.jeth...@... wrote: On Wed, Dec 24, 2008 at 2:23 AM, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: A quick google indicates that, as Manish says, current thinking is to use timer for this type of work. I'm not sure I agree with this, since a timer can't react before the next frame anyway (i.e. the most accurate a timer can be is the frame rate). Agreed. The benefit of a timer-based thing is that you can slow it down further. To every other frame or every thidr frame or... ;-) Of course, you can change the frame rate to get a timer that's accurate to the timing you want. -Amy -- manishjethani.com
Re: [flexcoders] Re: Passing URLVariables from 1 Flex App to another?
I just saw this... and had to respond. Is there a reason you aren¹t using the Ajax approach to Spring Security? If you did you wouldn¹t have to be thinking of your app in pieces.¹ Rick Winscot On 9/22/08 11:37 AM, djohnson29 djohnso...@yahoo.com wrote: Thanks for your suggestions. The reason I want Login to be a separate application is because I am using Spring Security to secure the app. Therefore, Login.mxml I want to be accessible to everyone, but in order to access Main.mxml the user will have to have the required Spring Security ROLE to be able to access it. I was able to get this to work but not by passing the logged in values to the 2nd app. Instead, upon a successful login I load Main.mxml and in the 2nd app's creationComplete event I use an HTTP service to call a java delegate class which talks to Spring Security directly and fetches the login info again. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , djohnson29 djohnso...@... wrote: I have 2 Flex Applications, Login.mxml and Main.mxml. Login.mxml handles the use Login and upon a successful authentication (with Spring Security), I want to load Main.mxml (Main.html which contains Main.swf) After a successfully logging in with spring security, from Login.mxml I load the main app like so: var url:URLRequest = new URLRequest(Main.html); var uv:URLVariables = new URLVariables(); url.method = POST; uv.UserName = username; // string var navigateToURL(url,_self); Main.html (containing Main.swf) loads successfully, but I am unable to extract the desired parameters. I want to pass the logged in user info from Login to Main. How do I access these URLVariables from the newly loaded Application? What is the best (simplest!) way to do this? Thanks
Re: [flexcoders] Re: Best Practices: ArrayCollection of custom objects?
Have you been reading the articles in the replies? Seriously, they contain great bits of information that would guide you in the right direction. Reduce, reuse, and recycle... http://www.insideria.com/2008/03/flex-performance-memory-manage.html Array vs. ArrayCollection FIGHT! http://ectropic.com/wordpress/?p=59 James Ward gets Drunk on ArrayCollections (a.k.a Performance Pitfalls of Flex¹s ArrayCollection) http://www.jamesward.com/blog/2008/11/21/drunk-on-software-episode-3-perform ance-pitfalls-of-flex%E2%80%99s-arraycollection/ Obviously, one of the most difficult aspects of asking a question online is transferring context to the problem. My first reaction to your post is... why extend array collection? Is it because you are trying have something you can swap out (for performance/optimization?) without changing code? Are you addicted to addItem¹ - if you are there are probably some good counseling groups in your area and... doesn¹t the ArrayCollection already allow one to collect custom objects? All kidding aside your question about what to do... read the ASDocs on the Ilist interface and then prepare for the obvious response to your best practice question: ³Best practices for collections (read: Array, ArrayCollection, etc) is contextual.² That¹s right! There is no silver bullet answer best practices for your implementation will reveal itself after you have properly considered the recordset size, network traffic, db response times, interface response, encoding/decoding (if you are using anything like JSON) times, and whatnot. If the data¹ is small then I would have to say that even asking the question about performance is a waste of time... If you are talking about megalithic-data¹ I would have to say that your performance problem isprobably architectural. If your data is somewhere in the middle these guys have provided clear direction. Rick Winscot On 12/12/08 2:14 PM, burttram br...@2b-studios.com wrote: Is this such a trivial question that people are passing up replying in lieu of bringing light to my ignorance, or are there really no best practices to speak of here? The only way I've found so far to do this is to deprecate the overridden method, but even then from time to time we'll get a strange error (this doesn't happen all of the time): 1021: Duplicate function definition. Seems pretty obvious what's causing it, but we have other classes that use this same syntax that aren't generating the error... Is there any reason we shouldn't do this, or is there another, more acceptable way to accomplish what we're trying to do here? public class DataTypes extends ArrayCollection { public function DataTypes(){ } [Deprecated] override public function addItem(item:Object):void{ } public function addItem(item:DataType):void{ super.addItem(item); } }
Re: [flexcoders] Restrictions on non-visual component placement
Tracy / Michael, The parent/child relationship (post application root) in MXML is constrained to DisplayObjectContainer and DisplayObject relationships... this rule does not apply to components within an item renderer. http://www.adobe.us/livedocs/flex/2/langref/mxml/component.html So... The question really is what is the inheritance of the DetailPopUp? Does it trace back to UIComponent? If not... Then that is what is preventing him from using the component in both contexts. The simple solution would be to extend UIComponent, mark includeInLayout as false, and make sure his scripts are all playing nice. Rick Winscot On 12/12/08 2:18 PM, Tracy Spratt tspr...@lariatinc.com wrote: It IS, or at least was, the case that non-visual components must be at the root mxml scope. I will try to find it documented. If the component is non-visual, then it does not matter, functionally speaking, where in the DOM it goes. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rick Winscot Sent: Friday, December 12, 2008 1:25 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Restrictions on non-visual component placement It¹s difficult to determine what your problem is without knowing a little more about what your DetailPopUp does/is. If you post some code it would be far easier to determine why one context works and another doesn¹t. Generally... I wouldn¹t recommend mingling non-visual and visual components in mxml. Your error basically says that your non-visual component doesn¹t have an appropriate interface for the context you are placing it in. e.g. It should be a IUIComponent. http://livedocs.adobe.com/flex/201/langref/mx/core/IUIComponent.html Rick Winscot On 12/12/08 12:49 PM, Michael Prescott michael.r.presc...@gmail.com wrote: Short version: I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? Long version: I have an ActionScript non-visual component whose declaration looks like this: public class DetailPopup extends EventDispatcher implements IMXMLObject I've used this successfully inside an inline, MXML item renderer, like this: mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox !-- a bunch of other stuff, and then my: -- my:DetailPopUp/ mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn Now that I'm switching from a DataGrid to a Grid, the code ought to look like this: mx:GridItem mx:VBox !-- a bunch of other stuff, and then my: -- (X) my:DetailPopUp/ mx:VBox /mx:GridItem ..except that I'm getting an error, Component declarations are not allowed here. (Note: visual children must implement IUIComponent.) After trying out a bunch of scenarios, it looks like non-visual components can only be declared in the outermost scope of a component or application. Is this true? This is rather awkward, as I need a DetailPopUp for each griditem. Any tips would be very helpful! Michael
Re: [flexcoders] Re: SecurityError
Ok I think I get what you are doing... Which essentially amounts to cross-site scripting. Have you tried the allowscriptaccess parameter? What is your security configuration? Rick Winscot On 12/13/08 10:20 PM, dialogtmp dialog...@yahoo.com.tw wrote: thaks Rick :) About my flex page,at the first,it will wait another page development by javascript pass the parameter. And then the flex page accroding to the parameter to parse html . Finally, passing the result of html parsing back to the javascript page. dialogtmp --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rick Winscot rick.wins...@... wrote: There may be bad news on the horizon. There was a way to get around this a while ago by adjusting the allowscriptaccess?parameter in your html output to always.?If you¹ve already tried this without success... then you are probably hitting crossdomain issues. Flash knows what page?it is on and where it is being accessed from ?if what you are doing violates a crossdomain policy I can guarantee that any solution you find won ¹t work for everyone or for very long. Can you post a little bit about what you are trying to do? There might be a more creative?way to get around the error. What kinds of things have you already tried? Rick Winscot On 12/11/08 11:09 PM, dialogtmp dialog...@... wrote: hello all, I meet a big trouble. I use flex to development firefox addon. It's ok when I run the html which compliled by flex. But when I package it to a firefox addon, it occurs SecurityError: Error #2060. Could you tell how to process this error? I'm really nerver-racking thanks, dialogtmp
Re: [flexcoders] Re: SecurityError
So back to the second question your security? The kind of communication you describe requires crossdomain permissions is this in place? http://www.adobe.com/products/flashplayer/security/ Rick Winscot On 12/14/08 1:42 AM, dialogtmp dialog...@yahoo.com.tw wrote: I tried to set allowscriptaccess=always,but it still occured Error #2060. I try to search some information, but I don't find the solution until now. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rick Winscot rick.wins...@... wrote: Ok ?I think I get what you are doing... Which essentially amounts to cross-site scripting. Have you tried the allowscriptaccess parameter? What is your security configuration? Rick Winscot On 12/13/08 10:20 PM, dialogtmp dialog...@... wrote: thaks Rick :) About my flex page,at the first,it will wait another page development by javascript pass the parameter. And then the flex page accroding to the parameter to parse html . Finally, passing the result of html parsing back to the javascript page. dialogtmp --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Rick Winscot rick.winscot@ wrote: There may be bad news on the horizon. There was a way to get around this a while ago by adjusting the allowscriptaccess?parameter in your html output to always.?If you¹ve already tried this without success... then you are probably hitting crossdomain issues. Flash knows what page? it is on and where it is being accessed from ?if what you are doing violates a crossdomain policy I can guarantee that any solution you find won ¹t work for everyone or for very long. Can you post a little bit about what you are trying to do? There might be a more creative?way to get around the error. What kinds of things have you already tried? Rick Winscot On 12/11/08 11:09 PM, dialogtmp dialogtmp@ wrote: hello all, I meet a big trouble. I use flex to development firefox addon. It's ok when I run the html which compliled by flex. But when I package it to a firefox addon, it occurs SecurityError: Error #2060. Could you tell how to process this error? I'm really nerver-racking thanks, dialogtmp
Re: [flexcoders] Re: speed of the for each looping
Sometimes it makes sense to compare the total effect of one approach to another... like comparing your favorite cereal to a competing product. Nothing speaks better than hard and fast facts like... It would take over two and a half million bowls of your oat bran cereal to equal the fiber content of one bowl of Super Colon Blow. Yes... Arrays/Collections are like Frosty Coated Sugar Lumps and Dictionaries and Associative Arrays may rock your insides so hard that you¹ll have to take stock in depends. When all else fails cereal metaphors provide crystal clarity. http://www.nbc.com/Saturday_Night_Live/video/clips/colon-blow/229046/ http://www.insideria.com/2008/04/dictionaries-and-associative-a.html Rick Winscot On 12/11/08 6:19 PM, Alex Harui aha...@adobe.com wrote: You have too much time on your hands I would expect collections to iterate much faster by using getItemAt or cursors instead of array indexers or for..in. I swear someone published a comparison once. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Josh McDonald Sent: Thursday, December 11, 2008 2:57 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: speed of the for each looping I've spent a lot of time poking around inside the collections stack (it's just interesting), and I can't find a situation where you'll get a different order for for each..in over indexed looping at the moment (Fx 3). That could of course change without notice, but for now I think that where speed isn't important, you can safely pick the one that produces the prettier or more comprehensible code :) -Josh On Fri, Dec 12, 2008 at 5:32 AM, Alex Harui aha...@adobe.com wrote: Funny. I didn't realize we were talking about iterating arrays with for..in until just now. I don't think we do that in Flex code. If the docs say arrays will iterate via for..in in index order then I'd probably trust that, especially if you stuff your arrays in index order From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dave Cragg Sent: Thursday, December 11, 2008 3:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: speed of the for each looping Could you clarify this? Does this non-guarantee apply to numerically indexed arrays and ArrayCollections too? Or just to associative arrays and object properties? The docs imply that the order is maintained by for...in with numerically indexed arrays. It would be a big change if that were not the case. Cheers Dave On 10 Dec 2008, at 23:00, Gordon Smith wrote: So don't use for..in or for each in if you care about the enumeration order. It could very possibly change in future versions of the Flash Player. nbs! p; Gordon Smith Adobe Flex SDK
Re: [flexcoders] Restrictions on non-visual component placement
It¹s difficult to determine what your problem is without knowing a little more about what your DetailPopUp does/is. If you post some code it would be far easier to determine why one context works and another doesn¹t. Generally... I wouldn¹t recommend mingling non-visual and visual components in mxml. Your error basically says that your non-visual component doesn¹t have an appropriate interface for the context you are placing it in. e.g. It should be a IUIComponent. http://livedocs.adobe.com/flex/201/langref/mx/core/IUIComponent.html Rick Winscot On 12/12/08 12:49 PM, Michael Prescott michael.r.presc...@gmail.com wrote: Short version: I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? Long version: I have an ActionScript non-visual component whose declaration looks like this: public class DetailPopup extends EventDispatcher implements IMXMLObject I've used this successfully inside an inline, MXML item renderer, like this: mx:DataGridColumn mx:itemRenderer mx:Component mx:VBox !-- a bunch of other stuff, and then my: -- my:DetailPopUp/ mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn Now that I'm switching from a DataGrid to a Grid, the code ought to look like this: mx:GridItem mx:VBox !-- a bunch of other stuff, and then my: -- (X) my:DetailPopUp/ mx:VBox /mx:GridItem ..except that I'm getting an error, Component declarations are not allowed here. (Note: visual children must implement IUIComponent.) After trying out a bunch of scenarios, it looks like non-visual components can only be declared in the outermost scope of a component or application. Is this true? This is rather awkward, as I need a DetailPopUp for each griditem. Any tips would be very helpful! Michael
Re: [flexcoders] SecurityError
There may be bad news on the horizon. There was a way to get around this a while ago by adjusting the allowscriptaccess¹ parameter in your html output to always.¹ If you¹ve already tried this without success... then you are probably hitting crossdomain issues. Flash knows what page¹ it is on and where it is being accessed from if what you are doing violates a crossdomain policy I can guarantee that any solution you find won¹t work for everyone or for very long. Can you post a little bit about what you are trying to do? There might be a more creative¹ way to get around the error. What kinds of things have you already tried? Rick Winscot On 12/11/08 11:09 PM, dialogtmp dialog...@yahoo.com.tw wrote: hello all, I meet a big trouble. I use flex to development firefox addon. It's ok when I run the html which compliled by flex. But when I package it to a firefox addon, it occurs SecurityError: Error #2060. Could you tell how to process this error? I'm really nerver-racking thanks, dialogtmp
Re: [flexcoders] Flex and Java Communication
Directly? Indirectly? Server? Client? So many options... For direct client communication, if you can widen your delivery to include AIR you need to take a look at the Merapi project: http://www.merapiproject.net/. To be fair though client side communication from Flex to Java is likely going to happen over/through fragile and difficult to configure setups. Indirect server implementations like BlazeDS (already mentioned) are going to be more robust and less prone to bustage. With that Google is your friend! Rick Winscot On 12/3/08 5:29 AM, saritha [EMAIL PROTECTED] wrote: Hi, How to communicate between Flex and Java?
Re: [flexcoders] Displaying Yahoo Finance Data in Flex
One thing to keep in mind is that crossdomain policies are designed as a one-way contract where Flash honors the principle of least privilege. It is highly unlikely that Yahoo enforces this policy within its web services... so proxying requests could be an option and should be explored before throwing up the white flag. Rick Winscot On 12/3/08 12:20 AM, Nate Beck [EMAIL PROTECTED] wrote: If you look at the cross-domain file deployed on the yahoo site, it's not open unless you are hosting from one of their domains: http://download.finance.yahoo.com/crossdomain.xml ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=*.yahoo.com http://yahoo.com secure=false / allow-access-from domain=*.yimg.com http://yimg.com secure=false / /cross-domain-policy http://finance.yahoo.com/crossdomain.xml ?xml version=1.0? cross-domain-policy allow-access-from domain=*.yahoo.com http://yahoo.com / allow-access-from domain=us.js2.yimg.com http://us.js2.yimg.com / /cross-domain-policy So unless your flex app is being hosted from any yahoo.com http://yahoo.com domain or yimg.com http://yimg.com domain, you will be denied access to the data. HTH, Nate On Tue, Dec 2, 2008 at 7:09 PM, Kevin [EMAIL PROTECTED] wrote: I have a Flex application that reads stock data from download.finance.yahoo.com http://download.finance.yahoo.com/ , which takes various parameters and returns CSV formatted text. This is the site I used as a reference. (http://www.gummy-stuff.org/Yahoo-data.htm http://www.gummy-stuff.org/Yahoo-data.htm ). I have been hoping to improve upon an old classic ASP application that relies on a data file created nightly by a service that runs on one of our servers. I'd prefer to go right to the Yahoo source with the Flex application. The application runs on my desktop when accessed from the file system, but fails with a security error when I run it from a Web server. I suspect the issue may be a cross-domain issue, but I've read elsewhere on the Internet that Yahoo has a cross-domain file set up for that feed. Could I have been mislead by the Internet!? I've put this application with view source enable on my personal Website http://www.frontlinewebdev.com/StockQuotes/StockQuoteDisplay.html in case anyone can look at it and advise me about getting it working. I will appreciate any help that can be offered. Thanks, Kevin
Re: [flexcoders] Compiler errors from css file
Can you point us to or post some code? I¹m sure we could work this out if we had some context to go off of. Rick Winscot On 11/23/08 6:20 PM, Tom McNeer [EMAIL PROTECTED] wrote: @Rick, They are errors, not warnings. And my comment about HTML styles was simply to point out that styles which don't exist in valid HTML CSS, as well as styles written in ActionScript style (rather than HTML/CSS style) are causing the errors. @Ralf, I know I can write them in HTML/CSS style. But that doesn't explain why I'm getting errors. Nor will it stop the errors on attributes which do not exist in HTML. And no, I'm not talking about an external validator. I'm talking about compiler errrors. That's what is mysterious. Thanks to both of you for your suggestions. But I'm afraid neither of these solve the problem.
Re: [flexcoders] Compiler errors from css file
Are you getting Flex compiler errors or just warnings? If it¹s just warnings you can use the warnings=false compiler option. http://www.quilix.com/node/9 To be fair - I¹m not sure if I understand the true nature of your problem... You are talking about styles in Flex correct? If so... HTML styles aren¹t your problem. Rick Winscot On 11/22/08 3:46 PM, Tom McNeer [EMAIL PROTECTED] wrote: Hi, When using an external CSS file in my Flex apps, I receive compiler errors from attributes that are not valid for normal browser CSS ('property backgroundAlpha doesn't exist'), either because the attributes don't exist in HTML (fillAlphas) or because they are written in Actionscript style (fontSize rather than font-size). Is there a way to prevent this? Perhaps a preference setting in Eclipse, or a Flex project setting?
Re: [flexcoders] Re: Right click context menus
Can you post a sample of your code? It would help us find the root cause of the problem. I¹d be happy to do some work off-list as well if needed. Rick Winscot On 11/22/08 9:13 AM, cesarerocchi [EMAIL PROTECTED] wrote: This code is not working for me. Flex 3, tried both player 9 and 10. -c. Rick's code isn't working for you? That's weird. I double checked my code, and I'm adding the context menu to the textField's parent component. So I'm not sure what's going on here. What framework/player versions are you using? - Daniel Freiman On Mon, Jun 30, 2008 at 12:07 PM, sbx33 [EMAIL PROTECTED] wrote: Well, I'm not sure what I'm doing wrong, but when I put this code in exactly, and right click in the text area, all I see in the context menu are Cut, Copy, Paste, and Select All. The only way to see a context menu with BAR! in it, is to click the very edge of the text area. This really isn't what I'm looking for. I really need to add menu items to the Cut-Copy-Paste-Select All menu. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Rick Winscot rick.winscot@ wrote: The mechanism for adding a custom context menu item to a standard context menu is the same as adding it to a text sensitive context menu. 1. Create a context menu 2. Create a context menu item 3. Add the custom menu item to the context menu 4. Associate the context menu with the control (in this case the text whatnot control) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init(); layout=absolute mx:Script ![CDATA[ public function init():void { var ctx:ContextMenu = new ContextMenu(); var mit:ContextMenuItem = new ContextMenuItem( BAR! ); ctx.customItems.push( mit ); foo.contextMenu = ctx; } ]] /mx:Script mx:TextArea id=foo x=401 y=249/ /mx:Application Right click in the text area and - Voila! Foo bar baby! Rick Winscot From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of sbx33 Sent: Thursday, June 26, 2008 7:44 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Right click context menus Unfortunately, I'm not sure what to even try. If anyone else has any ideas, please let me know. Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: I can't find where in my code I am doing it, but I am. I don't remember caring about the distinction between the two types of context menus. So just try it and it will probably work. - Daniel Freiman On Tue, Jun 24, 2008 at 12:46 PM, sbx33 sbx33@ wrote: Hello! Per the Flex documentation: Flash Player has three types of context menus: the standard menu (which appears when you right-click in Flash Player), the edit menu (which appears when you right-click a selectable or editable text field), and an error menu (which appears when a SWF file has failed to load into Flash Player). Only the standard and edit menus can be modified with the ContextMenu class. I have been able to add custom menu items to the standard menu however, I'm wondering if anyone knows how to add custom menu items to the edit menu on a flex component, such as a TextArea. The code I am using to add items to the standard menu is: var newCM:ContextMenu = new ContextMenu(); var newCMI:ContextMenuItem = new ContextMenuItem(New Item); newCM.customItems.push(newCMI); TIA! -Mac
Re: [flexcoders] Re: Pageable data provider
I¹m sure that you are looking for something near-term... but just an fyi there are some exciting features getting rolled into gumbo. Some of the LCDS features for dataset management are getting partitioned for use in the framework without the LCDS requirement. Rick Winscot On 11/21/08 7:27 PM, erdal [EMAIL PROTECTED] wrote: I was looking for the same thing a couple of months ago and the this is the most close to Implicit Pagination solution I've stumbled upon http://www.badongers.com/blog/?p=73 --- In flexcoders@yahoogroups.com, Marco Catunda [EMAIL PROTECTED] wrote: Hi, Does anyone could point me how could I build a pageable data provider? I've just seen examples using RecordSet class which doesn't have anymore in flex. I'm bit amazed because pageable solution is very common problem/solution, Is there any easy way to implement it that I haven't figured it out yet? I'm young in Flex world... My idea is to write a class which implements IList interface. This class will support remote call in either getItemAt and getItemIndex methods throwing the ItemPendingError Exception when the item isn't in local client memory. Any other tips? -- Marco Catunda
Re: [flexcoders] IFrame, BrowserManager, HistoryManager errors.
It¹s always a good idea to do a quick null check + init before you start touching BrowserManager... if ( BrowserManager.getInstance().url == null ) BrowserManager.getInstance().init(); Are you following this pattern and still having the errors? Rick Winscot On 11/12/08 1:29 PM, Tracy Spratt [EMAIL PROTECTED] wrote: I am trying to use Alistair Rutherfords IFrame component in a Flex 3 app and have a a couple issues (one with fix). First, unless I enable history management in the wrapper, the IFrame component throws an error because BrowserManger.getInstance().url is null. Is this to be expected, that BrowserManager requires history enabled? I really do NOT want history management, but I see that History IS enabled on all of the Iframe examples. I think can solve this by modifying Iframe, but want to verify my observations first. Second, if I enable history, then the Iframe component works, but in IE 6, I get a script error from the history.js script at the line that calls ³getHistoryFrame()², because that returns null (return document.getElementById('ie_historyFrame');) For some reason the ie_history frame is not getting created. Firefox is ok. FIX FOR SCRIPT ERROR FOUND! There is a line in history.js that is commented out: iframe.src = historyFrameSourcePrefix; Uncommenting it fixes the problem. This appears to be an issue with IE6. Tracy
Re: [flexcoders] IFrame, BrowserManager, HistoryManager errors.
Yepper BrowserManager does depend on those JavaScript bits in the wrapper. It¹s kinda messy... I¹ve had to implement a fallback to a JavaScript include to smooth out those details. I feel your pain. Rick Winscot On 11/12/08 3:10 PM, Tracy Spratt [EMAIL PROTECTED] wrote: Hey, Rick. Yes, the IFrame component calls BrowserManger.init() before trying to get the url property. Actually it calls ³.initForHistoryManager()². I changed it to plain init(), but still, without history enabled in the wrapper, the .url property is always null. I need to create a simple test app, to verify that I do not have something else going on. I am going to hack the code in the short run, using Application.application.url, which should work as long as the wrapper and swf are in the same domain. I also must admit that I have not fully analyzed the functionality that the problem code is providing, something about cross-domain checking, which I do not think is important in my situation. Thanks Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Winscot Sent: Wednesday, November 12, 2008 2:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] IFrame, BrowserManager, HistoryManager errors. It¹s always a good idea to do a quick null check + init before you start touching BrowserManager... if ( BrowserManager.getInstance().url == null ) BrowserManager.getInstance().init(); Are you following this pattern and still having the errors? Rick Winscot On 11/12/08 1:29 PM, Tracy Spratt [EMAIL PROTECTED] wrote: I am trying to use Alistair Rutherfords IFrame component in a Flex 3 app and have a a couple issues (one with fix). First, unless I enable history management in the wrapper, the IFrame component throws an error because BrowserManger.getInstance().url is null. Is this to be expected, that BrowserManager requires history enabled? I really do NOT want history management, but I see that History IS enabled on all of the Iframe examples. I think can solve this by modifying Iframe, but want to verify my observations first. Second, if I enable history, then the Iframe component works, but in IE 6, I get a script error from the history.js script at the line that calls ³getHistoryFrame()², because that returns null (return document.getElementById('ie_historyFrame');) For some reason the ie_history frame is not getting created. Firefox is ok. FIX FOR SCRIPT ERROR FOUND! There is a line in history.js that is commented out: iframe.src = historyFrameSourcePrefix; Uncommenting it fixes the problem. This appears to be an issue with IE6. Tracy
[flexcoders] Re: Flex Maintenance Agreements
So, I¹m just trying to save a buck or two. Does anyone have any feelings¹ on Flex Maintenance Agreements? I¹m thinking that... If Flex 4 isn¹t going to appear for 12-18 months one might as well wait and just pay upgrade prices. Anyone have any success stories to share? (ahem) Release date schedules? Rick Winscot
Re: [flexcoders] Re: 3.1 changelog?
Any progress on the 3.1 changelog? ...or just the Jira filter would be fine. We are getting close to a product release... and I¹m a control freak. There I said it. Rick Winscot On 8/18/08 12:07 PM, Matt Chotin [EMAIL PROTECTED] wrote: Release notes and whatnot are going live in a few hours. I have a short article that will be live on the Dev Center as well. The primary differences are support for AIR 1.1 along with bug fixes. 3.1 is mostly a rollup of bug fixes and we have a filter in JIRA where you can see all of them. Matt On 8/17/08 11:00 PM, Josh McDonald [EMAIL PROTECTED] mailto:dznuts%40gmail.com wrote: Problem isn't what's in the release notes, it's where are the release notes? :) I guess I sorta expected a post here with a link to some release notes or something. All I got was a popup from Adobe Updater when I got into work this morning. -Josh On Mon, Aug 18, 2008 at 3:48 PM, Alex Harui [EMAIL PROTECTED] mailto:aharui%40adobe.com wrote: Sorry, we need to update that. Marshall Plan is 3.2, it was going to be 3.1 when we published that page but something came up and we had to bump Marshall plan. The release notes don't have any info on bug fixes? A JIRA search might also yield some information. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Bjorn Schultheiss Sent: Sunday, August 17, 2008 10:16 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: 3.1 changelog? Quote from the doc The Marshall Plan will only support 3.1 Flex applications working in Flex 4 and beyond. http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan In terms of bug-fixes, haven't seen one yet.. Mind you haven't look much either. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh McDonald [EMAIL PROTECTED] wrote: Yeah just found that :) That's pretty much only API changes though, I was wondering if there's anything official listing bugfixes / changes in builder (if any), etc... Did the Marshall Plan stuff go into 3.1 or is it 3.2? -Josh On Mon, Aug 18, 2008 at 2:54 PM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: I saw this blog post the other day. differences between Flex 3.1.0 and Flex 3.0.0 http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Flex310- and-Flex300 Bjorn --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh McDonald dznuts@ wrote: Hey Guys, Is there a changelog for 3.1? I can't seem to find anything via google. -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Curses Adobe
Also... when architecting a solution over research what approach will work end-to-end. Just because you are using rest in everything else... doesn¹t mean that it is the¹ candidate for the next project. If rest is beings pushed on you leverage project costing to your advantage... tell management that it will take 5x longer to implement... when they ask why shoot straight and don¹t compromise on the timeline. I have to echo Josh the status code problem is a long standing issue. If you don¹t know what you are up against... http://www.fngtps.com/2007/06/flex-can-t-do-rest At the bottom of the page there is a link to a sourceforge project that has promise... just remember to cast you IExpectations to an IReality before you spend another day messing with this. Rick Winscot On 8/26/08 11:08 AM, Josh McDonald [EMAIL PROTECTED] wrote: How about less cursing, and 10 minutes with the google? It's a limit with the browser API for plugins. Flash Player never gets to see the result, becuase the browser makes HTTP requests, not Player. And the plugin API hides *all* non-200 results from plugins. IOW, call Microsoft / Mozilla and complain to them, Flex/Flash is not the problem. On Tue, Aug 26, 2008 at 10:12 AM, djhatrick [EMAIL PROTECTED] wrote: Give us real http status codes in flex. You are killing us developers out here. Instead of going home and being with my family, i have to deal with these kludge work arounds to handle the lack of having our services handle status codes. Please, tell the flashplayer team to get off their butts and implement this, so we can use rest data services. I implore you!?! Thanks for listening. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Need Help and Guidance desperately
Problem is... There is no such thing as empty.¹ If an Hbox has 5 items in it it has 5 items in it. If an Hbox has 2 items in it it has 2 items in it. Also, the default behavior of the Hbox is to accommodate and resize as needed. It sounds to me like what you need to do is either make the illusion of empty spaces or use a layout that facilitates your drag drop operation. http://www.quilix.com/node/3 http://www.darronschall.com/weblog/archives/000263.cfm Rick Winscot On 8/25/08 8:18 PM, anuj181 [EMAIL PROTECTED] wrote: Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an empty space within the 2nd HBOX. Is there any way I can calculate which space is empty in the HBOX and let my objects (images) to be placed only in the empty spaces within the HBOX (not the sapce already occupied by the placed images).Once the HBOX is full then I need to code in a way that images starts shrinking(upto some level) to accommodate more images. Please help me out in figuring out this problem. Any type of help/documentation/links in this direction will be highly appreciated. Thanks Anuj
Re: [flexcoders] Need Help and Guidance desperately
The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution we could throw some code around. Rick Winscot On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote: Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an empty space within the 2nd HBOX. Is there any way I can calculate which space is empty in the HBOX and let my objects (images) to be placed only in the empty spaces within the HBOX (not the sapce already occupied by the placed images).Once the HBOX is full then I need to code in a way that images starts shrinking(upto some level) to accommodate more images. Please help me out in figuring out this problem. Any type of help/documentation/links in this direction will be highly appreciated. Thanks Anuj
[flexcoders] Introspection Recommendations
What would any of you all say to a client who wants to implement, in Flex, an extensible plug-in framework through pure introspection? This would include things like property and event management. To help frame this - with the right framework in place one could create a property explorer to manage bits a runtime. Anyway... Initially I recommended the use of a manifest and interfaces to help keep / track target properties, and manage event life cycles and such... but they are concerned about having to manage 'files' in addition to the swf. If possible, I would like to find a balance somewhere between using 'describeType' and something that is too restrictive. Any recommendation? Am I missing something? Rick Winscot
Re: [flexcoders] Template architecture
Just a .02 clink... Alex is recommending a hallmark architectural pattern for building an application from constituent parts (http://tinyurl.com/9js2e). One of the hurdles in implementing this in Flex has to deal with how creation policy plays with loosely tied models; if it hasn¹t been touched yet it doesn¹t exist, visual updates fail, and runtime errors usually follow. On a couple occasions I had to resort to have the template base listen for any data changes on the model and when data change events fire to pull those changes local and update internal bindable variables that are used in the template and drive the UI. Duplication you say? Yes... sadly there is duplication involved. Why do it this way? I¹ve found that no matter how late¹ you try and capture a data event... That there are times when controls like the view stack just don¹t play nice. Fiddling with creationPolicy can help but doesn¹t address the root cause. So... tight coupling within the template with loose coupling to the model was a reasonable approach. Rick Winscot On 8/22/08 12:27 AM, Alex Harui [EMAIL PROTECTED] wrote: creationCOmplete is a better bet, but pushing stuff into the template is potentially bad design. It means you know something about the template and have broken encapsulation. Other designs like model/view would have the template pull from a data model. Other designs would have an interface to the template that abstracts what children do what. That¹s how many of our components work and they use the lifecycle events and methods to validate properties ³later² From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Thursday, August 21, 2008 2:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Template architecture I'm prototyping a system where a view is built dynamically from an XML description (converted to VOs). The description refers to a template (hard-coded in MXML). The dynamic view observes the description (which is a part of its model) , and creates a child (the template) and adds it as a child. However, it also needs to fill in the template which involves accessing some of its children by id (eg. template[slot1], template[slot2] ). If I construct the template via new Template1(), the children are not yet created. Their ids show up in the debugger, but the values are null. Should I add a listener for creationComplete, or is this a case where callLater() could be put to good effect?
Re: [flexcoders] Intriguing AMFPHP sample
On the loader complete event... The content¹ ._is_. The swf. var foo:Object = loader.content; What this looks like... Is that someone is saying that hitting a page like foo.php could actually provide Flex with foo.swf. So... The url request target would probably be ³foo.php.² Rick Winscot On 8/21/08 7:27 PM, Jim Hayes [EMAIL PROTECTED] wrote: How would you convert that ByteArray of the swf file back to a MovieClip/SWFLoader/something displayable ?? I guess use Loader.loadBytes and type the resultant contents as a MovieClip? But that is guessing, I hasten to add. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Kevin Aebig Sent: Thu 21/08/2008 21:10 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Intriguing AMFPHP sample If it's going to an Air application, than it can write the bytes temporarily, load the Movie and delete the temporary file. I did that years ago with C# and Flash and it worked really well. !k From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Nik Derewianka Sent: Wednesday, August 20, 2008 9:22 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Intriguing AMFPHP sample Hi, Was just looking through some blogs on AMFPHP and came across a php snippet that showed: function getSwf() { return new ByteArray(file_get_contents(my.swf)); } But no sample of what to do on the Flex side to turn it back into something useable. How would you convert that ByteArray of the swf file back to a MovieClip/SWFLoader/something displayable ?? Thanks, Nik __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] Flexbuilder 3.0.1 Update
Yeah... Uh... If the compiler has lost the link to the sdk... Compile + clean = gaseous emanations. Rick Winscot On 8/18/08 8:17 PM, Sherif Abdou [EMAIL PROTECTED] wrote: You should have did Project--Clean All - Original Message - From: Rick Winscot mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 18, 2008 6:06 PM Subject: Re: [flexcoders] Flexbuilder 3.0.1 Update After the auto-updater finished... I pointed at my Flex install directory, then the Eclipse directory and proceeded with install. Post install I started up eclipse and all of my projects were pointed to the 3.0 SDK (unknown). I had to edit the compiler settings on each project in order to fix it... Rick Winscot On 8/18/08 5:38 PM, Matt Chotin [EMAIL PROTECTED] wrote: Can you explain how it broke the link to the 3.0 SDK? On 8/18/08 2:35 PM, Rick Winscot [EMAIL PROTECTED] mailto:rick.winscot%40zyche.com wrote: Just a note... Flexbuilder 3.0.1 is out in the frey today. It will install the Flex 3.1 SDK and may mess up your projects (as it did mine) by breaking the link on the current 3.0 SDK. Other than that it hasn't exploded. YAY! Rick Winscot
[flexcoders] Flexbuilder 3.0.1 Update
Just a note... Flexbuilder 3.0.1 is out in the frey today. It will install the Flex 3.1 SDK and may mess up your projects (as it did mine) by breaking the link on the current 3.0 SDK. Other than that it hasn't exploded. YAY! Rick Winscot
Re: [flexcoders] Flexbuilder 3.0.1 Update
After the auto-updater finished... I pointed at my Flex install directory, then the Eclipse directory and proceeded with install. Post install I started up eclipse and all of my projects were pointed to the 3.0 SDK (unknown). I had to edit the compiler settings on each project in order to fix it... Rick Winscot On 8/18/08 5:38 PM, Matt Chotin [EMAIL PROTECTED] wrote: Can you explain how it broke the link to the 3.0 SDK? On 8/18/08 2:35 PM, Rick Winscot [EMAIL PROTECTED] mailto:rick.winscot%40zyche.com wrote: Just a note... Flexbuilder 3.0.1 is out in the frey today. It will install the Flex 3.1 SDK and may mess up your projects (as it did mine) by breaking the link on the current 3.0 SDK. Other than that it hasn't exploded. YAY! Rick Winscot
[flexcoders] Cairngorm goes Open Source
A friend of mine just forwarded me this... Which I think would be interesting to anyone who uses, has used, or may use Cairngorm. http://weblogs.macromedia.com/amcleod/archives/2008/08/cairngorm_moved.html Rick Winscot
Re: [flexcoders] Application.application.enables = false problem in Popup
Have you touched the suspendBackgroundProcessing flag at any point? If you have... You must be fish-slapped. Do a search for this in the Adobe © Flex © Documentation one of the specific cases mentioned has to do with suspending server responses. Rick Winscot On 8/4/08 4:56 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a application with several popups. On click of the submit button I send a request to the server and I want the application to be disabled at that time. When I use Application.application.enabled = false; the background application gets disabled but the popup does not get disabled. Any ideas ? Regards, Nirav Gosalia - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
Re: [flexcoders] Module Garbage Collecting
You¹ll have to look to Flash Player 10 for the real answer. http://gskinner.com/blog/archives/2008/07/unloadandstop_i.html Rick Winscot On 8/1/08 10:34 AM, Simon Bailey [EMAIL PROTECTED] wrote: Hi, I am using the ModuleManager and IModuleInterface for loading and unloading Modules in Flex. My question is regarding effective garbage collecting on unloading a loaded module. I am following the norm in regards to removing listeners and as many references to the loaded module as I can trace but for some reason tracing System.totalMemory is still showing a big fat amount chunk of memory not clearing on module.unload(). Any tips, tricks, advice etc. Cheers, Simon
Re: [flexcoders] Re: How to block user interaction?
Actually... I like to install Sven¹ with my apps. He is a tall Swedish brute with a club and a pair of brass knuckles... any time the user shouldn¹t do something in the app... Sven is there to enforce the policy. Alternatively, you can set Application.application.enabled=false; and make sure that the disabled transparency¹ value is set to .01 which will prevent everything from turning grey. Rick Winscot On 8/1/08 9:34 AM, dbronk [EMAIL PROTECTED] wrote: I generally write a simply utility that has a setAppBusy(flag:Boolean) function. When true I set the application mouseChildren=false and then do CursorManager.setBusyCursor(). I actually hate the popup/hide my data/grey the screen approaches. The only gotcha I came across with this was that setting mouseChildren=false does not include popups so I had to also create a register/deregister on the util so that when popups are launched they register so that the mouseChildren on them can be set to false and deregister on close. Very simply, clean, and no popups every time a server call is made. Now for calls that are known to be long running, like downloads of files, then the popup may make sense to let the user know what's going on. Dale --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , wwwpl [EMAIL PROTECTED] wrote: I want to block user interaction while I am waiting for an http service to return with data. Is there a nice easy way to do this?
Re: [flexcoders] sending a text message from air/flex application
You are going to need to have an SMS Gateway at your disposal. With such a tool of devastation you can send texts until your enemies tremble! MUWHAHHAAA. Ahem. There are a lot of providers out there... But it would be a good idea to get a base on bridging the gap between http and sms with a quick wiki primer. I¹ve worked on a few projects where providers (for a fee) were willing to allow the use of their gateway they will provide you with an API/tokens to keep your services chugging along. You see... Depending on your setup you may actually be making them money (on return texts). Have a read! http://en.wikipedia.org/wiki/SMS_gateway Rick Winscot On 8/1/08 9:22 PM, hworke [EMAIL PROTECTED] wrote: Sorry-- forgot to mention: I want to send the text message to a cell phone from AIR/Flex Application Thanks...
Re: [flexcoders] Re: problem adding images to UIComponents using AS3
Throw a debug target just after you do all your adding... And check the size of these guys. I¹m guessing you¹ll find something interesting there. Rick Winscot On 7/31/08 5:41 PM, Sid Maskit [EMAIL PROTECTED] wrote: I'm not going to pretend to understand this, but here's a little more information which may be useful. This works: myCanvas.addChild(myHelpImage); This doesn't work: myHelpUIComponent.addChild(myHelpImage); myCanvas.addChild(myHelpUIComponent); Which leads me to suspect that the problem is with the UIComponent rather than the sprite, but again I have no idea really. Sid Maskit Partner CraftySpace Better Websites for a Better World http://www.CraftySpace.com blog: http://smaskit.blogspot.com/ - Original Message From: Jason [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 2:18:09 PM Subject: [flexcoders] Re: problem adding images to UIComponents using AS3 Oh, and also an article which discusses the problem adding a sprite as a child to a Flex container: http://www.sebastia anholtrop. com/archives/ 3 http://www.sebastiaanholtrop.com/archives/3 Jason
Re: [flexcoders] Remote Desktop feature
Do a google¹ for Flash VNC. Rick Winscot On 7/31/08 5:03 AM, venkat eswar [EMAIL PROTECTED] wrote: have any one tried remote desktop feature using flex .please help me.
Re: [flexcoders] Integrate flex and Java
Check out http://www.merapiproject.net/ for starters... I've been messing with it for about two weeks and am pleasantly surprised. Really... There isn't anything from preventing you from using socket servers to do all kinds of bridging badness. It's all about what you are trying to do. One thing to add... Is that bridge technologies to Flex by itself aren't going to buy you much bang for the buck and are going to be difficult to configure (due to sandbox issues). The most direct route - will likely involve AIR. Rick Winscot On 7/31/08 4:38 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 31 Jul 2008, venkat eswar wrote: how to integrate flex and java. when i click a button in flex the whole java application is to be loaded. You can't invoke other executables or shared libraries from plain Flex applications. There are frameworks that work as launchers or wrappers around a Flex application to allow this though, if that would work.
Re: [flexcoders] Looking for Flex consulting help. Any tips, experiences, etc?
There are reputable firms out there that are worth the time and money. The first one off the top of my head is: http://www.universalmind.com/ Really though... It¹s all about what kind of money you have available. But just one bit of advice... Only cry once. You can spend more money dealing with firms/people that are so-so skilled than you will if you bite the bullet and engage someone that can get the job done right and the first time. Rick Winscot On 7/30/08 9:37 PM, andrew. [EMAIL PROTECTED] wrote: I work for a startup and we are in need of extra Flex muscle. Any advise in this area? So far the responses from our craigslist add have been all over the place, from total designers, to outsourcing firms, to recruiters. We basically need OO programmers that know Flex. Is that going to be hard to find. We are in SF/Bay area. Is it worth the money to go with one of the bigger consulting firms, or is it better to try and find some local person? Any idea what rates people charge?
Re: [flexcoders] How to block user interaction?
The method Daniel suggests is essentially the same that is used within components when enabling/disabling. When disable is called the component throws up a blocker¹ that prevents interaction with the control. So... You could use the default component behavior of calling enabled=false (at a high level in the app) or do something all fancy schmancy like Daniel. I¹ve used both... I just like poking fun at fellow Flexcoders and using the word schmancy.¹ Rick Winscot On 7/31/08 7:28 PM, Daniel Gold [EMAIL PROTECTED] wrote: Whenever I need to do this I usually put up a loading screen that covers the entire screen or the section of the screen pertaining to the loading data. This can be done a number of ways such as a full screen Popup, a modal popup thats just a Loading... label, etc. On Thu, Jul 31, 2008 at 5:40 PM, wwwpl [EMAIL PROTECTED] wrote: I want to block user interaction while I am waiting for an http service to return with data. Is there a nice easy way to do this?
Re: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods
What the who honk you talkin¹ about!!! You can stick a script block just about anywheres... The error sounds like it¹s tellin¹ you that you may-haps initialized yer micro-thingy wrongly. BUTTS! Heh... I said butts. The error is a little sketchy though it might be due to broken xml or a half a dozen other items. For a sanity check can you post the entire example? It would help us find the root cause of the exception. For reference... The following code block compiles without issues; script block placement does not appear to be the root cause. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Script ![CDATA[ public var m:Microphone = Microphone.getMicrophone(0); ]] /mx:Script /mx:VBox Rick Winscot On 7/31/08 7:33 PM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Jo Morano mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 9:40 PM Subject: [flexcoders] Flex3 cookbook error in microphone example: constructor functions must be instance methods Hi! I am going over the examples in Flex 3 Cookbook and the one that allows connecting to user's microphone (page 243) has a compilation error. What's the best way to fix that? VBox mx:Script ![CDATA[ import flash.media.Microphone; public var mic:Microphone; // -- error: constructor functions must be instance methods. Does anyone know what's wrong? Yes, you can't just dump a script with a variable declaration into the middle of a VBox. You can add that kind of declaration into a function (but not in the middle of a VBox), or in a 'proper' actionscript 3 class. Paul Regards
Re: [flexcoders] Catch Browser Exit with Flex
Here is a script that works on most OS/Browsers... Drop in and enjoy! if ( window.Event ) {window.onbeforeunload = function( event ) {return confirmClose( event );}} else {window.onbeforeunload = function() { return confirmClose( event );}} function confirmClose( e ) { var promptString = 'Do joo rly want to exit?'; return( promptString );} Rick Winscot On 7/30/08 2:37 PM, gjessup1 [EMAIL PROTECTED] wrote: I'm having some issues with catching a browser exit with firefox. I can get it to work with IE (not exactly how I'd like, but it works). Does anyone have a good working example available...here is my code if you can help from that. Thanks Greg My javascript looks like this: script language=JavaScript type=text/javascript !-- alert (This is a Javascript Alert); //just a message which will be removed // Give user a chance to save modified data window.onbeforeunload = function() { var warning=; var fxControl = document.SharedObjectBoard || window.SharedObjectBoard; if (!${application}.unsavedAlert()) { warning = fxControl.getUnsavedDataWarning(); } if (typeof fxControl.getUnsavedDataWarning==function) { warning = fxControl.getUnsavedDataWarning(); } if (warning!=) return warning; else return; } -- /script in my init I have --- if ( ExternalInterface.available ) { ExternalInterface.addCallback(getUnsavedDataWarning,unsavedAlert); Here are the functions triggered: private function unsavedAlert():String { Alert.show(Do you want to dave?, Save Alert, Alert.YES|Alert.NO ,this,SaveAlertHandler,null,Alert.YES); //Alert.show(function); if (commitRequired) return UNSAVED_DATA_WARNING; else return ; } private function SaveAlertHandler(e:Event):void { Alert.show( e.type.toString()); } }
Re: [flexcoders] Catch Browser Exit with Flex
Sorry for the mess on the last send... Whew! Here is a script that works on most OS/Browsers... Drop in and enjoy! if ( window.Event ) { window.onbeforeunload = function( event ) { return confirmClose( event ); } } else { window.onbeforeunload = function() { return confirmClose( event ); } } function confirmClose( e ) { var promptString = 'Exit?'; return( promptString ); } Rick Winscot On 7/30/08 2:37 PM, gjessup1 [EMAIL PROTECTED] wrote: I'm having some issues with catching a browser exit with firefox. I can get it to work with IE (not exactly how I'd like, but it works). Does anyone have a good working example available...here is my code if you can help from that. Thanks Greg My javascript looks like this: script language=JavaScript type=text/javascript !-- alert (This is a Javascript Alert); //just a message which will be removed // Give user a chance to save modified data window.onbeforeunload = function() { var warning=; var fxControl = document.SharedObjectBoard || window.SharedObjectBoard; if (!${application}.unsavedAlert()) { warning = fxControl.getUnsavedDataWarning(); } if (typeof fxControl.getUnsavedDataWarning==function) { warning = fxControl.getUnsavedDataWarning(); } if (warning!=) return warning; else return; } -- /script in my init I have --- if ( ExternalInterface.available ) { ExternalInterface.addCallback(getUnsavedDataWarning,unsavedAlert); Here are the functions triggered: private function unsavedAlert():String { Alert.show(Do you want to dave?, Save Alert, Alert.YES|Alert.NO ,this,SaveAlertHandler,null,Alert.YES); //Alert.show(function); if (commitRequired) return UNSAVED_DATA_WARNING; else return ; } private function SaveAlertHandler(e:Event):void { Alert.show( e.type.toString()); } }