[flexcoders] Flex and Flash 9 movies in Firefox
Hi guys! I'm perplexed. I have a Flex 2 application that runs a little Flash 9 movie within it at one point. This SWF requires user interaction in the form of typing a letter into a textbox. Strange things occur in Firefox when, once you get to the frame with the textbox (focus is set to it so that the cursor is blinking), then alt-tab to another window and go back, you cannot interact with the textbox at all. The cursor has gone, and clicking on the control does nothing. Clicking on a button works, however. Anyone know how to fix this? Anyone even had this problem themselves? It ONLY happens in Firefox. Cheers, Michelle
[flexcoders] Re: RangeError on SWFLoader
Wow, how completely infuriating is that... It seems to be a-ok now. After much rage. :) Thankyou. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The error is coming from the SystemManager/CursorManager and not the SWFLoader. Try setting showBusyCursor to false on the SWFLoader. You won't be able to trap the error as it occurs in an event handler. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michelle Grigg Sent: Monday, April 16, 2007 6:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RangeError on SWFLoader This is the error trace: RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/addChildAt() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::r awChildren_addChildAt http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt ()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1601] at mx.managers::SystemChildrenList/addChild()[C:\dev\flex_201_gmc\sdk\frame works\mx\managers\SystemChildrenList.as:109] at mx.managers::CursorManagerImpl/mx.managers:CursorManagerImpl::showCurren tCursor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerIm pl.as:434] at mx.managers::CursorManagerImpl/setCursor()[C:\dev\flex_201_gmc\sdk\frame works\mx\managers\CursorManagerImpl.as:327] at mx.managers::CursorManagerImpl/setBusyCursor()[C:\dev\flex_201_gmc\sdk\f rameworks\mx\managers\CursorManagerImpl.as:400] at mx.managers::CursorManagerImpl/mx.managers:CursorManagerImpl::progressHa ndler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerImpl .as:593] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\ mx\core\UIComponent.as:8323] at mx.controls::SWFLoader/mx.controls:SWFLoader::contentLoaderInfo_progress EventHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\SWFLoader. as:1673] If it needs to be added to the internal content holder of the SWFLoader, which property do I add it to? There is no property listed in the Lang Ref called contentHolder...? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Please post the error log. Also, did you listen to error event on SWFLoader or its internal contentHolder. I think it has to be the internal contentHolder. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Michelle Grigg Sent: Monday, April 16, 2007 4:16 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: RangeError on SWFLoader Okay, I stand corrected. I added an error event to the swfloader, and the RangeError STILL occurred. I'm really starting to get ticked off now :-/ --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , John Mark Hawley mark@ wrote: SWFLoader::load() is an asynchronous call, so you're never going to be able to catch the error in a try block. You should be listening for error events on it instead. From: Michelle Grigg michellejg@ Date: 2007/04/13 Fri AM 09:05:56 CDT To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] RangeError on SWFLoader Greetings, I have been haunted by these fricken #2006 RangeErrors since the start of my project though I've been able to fix all but one. I have a SWFLoader throwing a RangeError, and I can't seem to catch the damn thing. The irritating thing is that it's also a very intermittent bug so I have no way of telling for sure it will occur when first loading my app. This is the try/catch: try { myLoader.load( loadSwfEvent.swfName ); } catch( e : Error ) { trace( e.errorID + + e.name + + e.message ); trace( e, ObjectUtil.toString( event )); } It doesn't actually call the catch - it simply prints out the error on the console leading me to believe that the error is actually being thrown somewhere else, even though the stack trace goes all the way back to the SWFLoader class. I initially thought it to be a timing thing - maybe the swfname wasn't being set properly or something, but investigating solutions along those lines have been fruitless. I'm now thinking I should probably be moving the try/catch somewhere else, but I would have no idea where. Any ideas? Similar problems
[flexcoders] Re: RangeError on SWFLoader
I had looked into that... but for some reason it didn't really click to use the IOError event. Doi. Thanks for the pointer :) --- In flexcoders@yahoogroups.com, John Mark Hawley [EMAIL PROTECTED] wrote: SWFLoader::load() is an asynchronous call, so you're never going to be able to catch the error in a try block. You should be listening for error events on it instead. From: Michelle Grigg [EMAIL PROTECTED] Date: 2007/04/13 Fri AM 09:05:56 CDT To: flexcoders@yahoogroups.com Subject: [flexcoders] RangeError on SWFLoader Greetings, I have been haunted by these fricken #2006 RangeErrors since the start of my project though I've been able to fix all but one. I have a SWFLoader throwing a RangeError, and I can't seem to catch the damn thing. The irritating thing is that it's also a very intermittent bug so I have no way of telling for sure it will occur when first loading my app. This is the try/catch: try { myLoader.load( loadSwfEvent.swfName ); } catch( e : Error ) { trace( e.errorID + + e.name + + e.message ); trace( e, ObjectUtil.toString( event )); } It doesn't actually call the catch - it simply prints out the error on the console leading me to believe that the error is actually being thrown somewhere else, even though the stack trace goes all the way back to the SWFLoader class. I initially thought it to be a timing thing - maybe the swfname wasn't being set properly or something, but investigating solutions along those lines have been fruitless. I'm now thinking I should probably be moving the try/catch somewhere else, but I would have no idea where. Any ideas? Similar problems? Cheers, Michelle -- John Mark Hawley The Nilbog Group 773.968.4980 (cell)
[flexcoders] Re: RangeError on SWFLoader
Okay, I stand corrected. I added an error event to the swfloader, and the RangeError STILL occurred. I'm really starting to get ticked off now :-/ --- In flexcoders@yahoogroups.com, John Mark Hawley [EMAIL PROTECTED] wrote: SWFLoader::load() is an asynchronous call, so you're never going to be able to catch the error in a try block. You should be listening for error events on it instead. From: Michelle Grigg [EMAIL PROTECTED] Date: 2007/04/13 Fri AM 09:05:56 CDT To: flexcoders@yahoogroups.com Subject: [flexcoders] RangeError on SWFLoader Greetings, I have been haunted by these fricken #2006 RangeErrors since the start of my project though I've been able to fix all but one. I have a SWFLoader throwing a RangeError, and I can't seem to catch the damn thing. The irritating thing is that it's also a very intermittent bug so I have no way of telling for sure it will occur when first loading my app. This is the try/catch: try { myLoader.load( loadSwfEvent.swfName ); } catch( e : Error ) { trace( e.errorID + + e.name + + e.message ); trace( e, ObjectUtil.toString( event )); } It doesn't actually call the catch - it simply prints out the error on the console leading me to believe that the error is actually being thrown somewhere else, even though the stack trace goes all the way back to the SWFLoader class. I initially thought it to be a timing thing - maybe the swfname wasn't being set properly or something, but investigating solutions along those lines have been fruitless. I'm now thinking I should probably be moving the try/catch somewhere else, but I would have no idea where. Any ideas? Similar problems? Cheers, Michelle -- John Mark Hawley The Nilbog Group 773.968.4980 (cell)
[flexcoders] Re: RangeError on SWFLoader
This is the error trace: RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContainer/addChildAt() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1601] at mx.managers::SystemChildrenList/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemChildrenList.as:109] at mx.managers::CursorManagerImpl/mx.managers:CursorManagerImpl::showCurrentCursor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerImpl.as:434] at mx.managers::CursorManagerImpl/setCursor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerImpl.as:327] at mx.managers::CursorManagerImpl/setBusyCursor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerImpl.as:400] at mx.managers::CursorManagerImpl/mx.managers:CursorManagerImpl::progressHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\CursorManagerImpl.as:593] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323] at mx.controls::SWFLoader/mx.controls:SWFLoader::contentLoaderInfo_progressEventHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\SWFLoader.as:1673] If it needs to be added to the internal content holder of the SWFLoader, which property do I add it to? There is no property listed in the Lang Ref called contentHolder...? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Please post the error log. Also, did you listen to error event on SWFLoader or its internal contentHolder. I think it has to be the internal contentHolder. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michelle Grigg Sent: Monday, April 16, 2007 4:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RangeError on SWFLoader Okay, I stand corrected. I added an error event to the swfloader, and the RangeError STILL occurred. I'm really starting to get ticked off now :-/ --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , John Mark Hawley mark@ wrote: SWFLoader::load() is an asynchronous call, so you're never going to be able to catch the error in a try block. You should be listening for error events on it instead. From: Michelle Grigg michellejg@ Date: 2007/04/13 Fri AM 09:05:56 CDT To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] RangeError on SWFLoader Greetings, I have been haunted by these fricken #2006 RangeErrors since the start of my project though I've been able to fix all but one. I have a SWFLoader throwing a RangeError, and I can't seem to catch the damn thing. The irritating thing is that it's also a very intermittent bug so I have no way of telling for sure it will occur when first loading my app. This is the try/catch: try { myLoader.load( loadSwfEvent.swfName ); } catch( e : Error ) { trace( e.errorID + + e.name + + e.message ); trace( e, ObjectUtil.toString( event )); } It doesn't actually call the catch - it simply prints out the error on the console leading me to believe that the error is actually being thrown somewhere else, even though the stack trace goes all the way back to the SWFLoader class. I initially thought it to be a timing thing - maybe the swfname wasn't being set properly or something, but investigating solutions along those lines have been fruitless. I'm now thinking I should probably be moving the try/catch somewhere else, but I would have no idea where. Any ideas? Similar problems? Cheers, Michelle -- John Mark Hawley The Nilbog Group 773.968.4980 (cell)
[flexcoders] RangeError on SWFLoader
Greetings, I have been haunted by these fricken #2006 RangeErrors since the start of my project though I've been able to fix all but one. I have a SWFLoader throwing a RangeError, and I can't seem to catch the damn thing. The irritating thing is that it's also a very intermittent bug so I have no way of telling for sure it will occur when first loading my app. This is the try/catch: try { myLoader.load( loadSwfEvent.swfName ); } catch( e : Error ) { trace( e.errorID + + e.name + + e.message ); trace( e, ObjectUtil.toString( event )); } It doesn't actually call the catch - it simply prints out the error on the console leading me to believe that the error is actually being thrown somewhere else, even though the stack trace goes all the way back to the SWFLoader class. I initially thought it to be a timing thing - maybe the swfname wasn't being set properly or something, but investigating solutions along those lines have been fruitless. I'm now thinking I should probably be moving the try/catch somewhere else, but I would have no idea where. Any ideas? Similar problems? Cheers, Michelle
[flexcoders] togglebuttonbar and styles
Greetings, I have a toggle button bar where some buttons need to be styled one way, and the rest styled another (ie, first 4 in a bar of 10 must have a blue background, while the rest should be yellow). The problem is, even though these styles are getting applied to the button (I've verified this through tracing and debugging), the damn things won't actually render until a different component in the app is clicked. For example: Upon first load of the screen, it'll look like this: http://i4.photobucket.com/albums/y140/svyeta/before.gif http://i4.photobucket.com/albums/y140/svyeta/before.gif Then when the answer is selected elsewhere on the page (thus incrementing the position), it'll do this: http://i4.photobucket.com/albums/y140/svyeta/after.gif http://i4.photobucket.com/albums/y140/svyeta/after.gif How can I force these styles to render properly? It's driving me mad! Cheers, Michelle
[flexcoders] commands and delegates
Hi all, I have an app that will need to send some candidate responses back to the server upon completion of a test. This functionality needs to be as robust as possible, and handle such problems as timeouts if the network comms can't access the server etc. In the event of such things, I'd like it to retry sending the responses back to the server a total of 3 times, and if that fails, then tell the user/log it locally. My question is, is it even possible (or wise), to be calling the delegate method again from the fault handler of the command in order to try sending back the responses multiple times? If not wise, then how would I go about doing this another way? Cheers, Michelle
[flexcoders] Login Example - Cairngorm 2.1?
[flexcoders] A navigation question.. best practise?
Greetings, I am having a bit of a problem working out exactly how to navigate through my application which will be using the Cairngorm 2 architecture. It currently has the following views: a Login page, a Task List, a Task and a Finish page. The task list can have any where up to 8 tasks displayed so the user will be switching between Task List and Task quite often. The flow between these views will be accessed through button events (ie, login button, or a start button to start the task etc). There will be only one View shown to the user at any one time. I hope that all makes sense. Anyhoo. I have read about both the ModelLocator and also ViewHelper/ViewLocator, and am yet to have that warm and fuzzy moment where everything just suddenly makes sense, and thus know which is to be used where. So my question: What would be the best way to go about handling the change of Views within this application? Thanks in advance, Michelle -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/