[flexcoders] Loading Images into a loaded SWF
I asked this a couple of weeks ago, just before I went on holiday. This is the problem: I have an Air application. That loads a SWF from my drive soemwhere. That SWF is trying to load an image on a relative path to the swf. When I run the swf directly, it loads the image fine: when the swf is loaded into the Air app, it won't load. When I trace out the ioError event.text I get Error #2035: URL Not Found. URL: file:///media/DSC_0095.JPG file:///\\media\DSC_0095.JPG So the first part of the image file's path is not being set, and I think this is a bug? Previously it was suggested this was a Security issue - I don't think it is as the SecurityError event is never thrown. Am I being dim? This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
[flexcoders] Re: Speeding project compilation
--- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: There's an option in Project Properties Flex Compiler called Copy non-embedded files to the output folder. Unfortunately, we can't uncheck this, or our XML files don't get copied. You would think it would not copy the _embedded_ files, but it does. Also, you can embed your assets via your stylesheet by selecting your css file in package explorer and selecting, Compile CSS to SWF from the context menu. This will wrap up all your embedded assets into a compiled binary so the compiler won't have embed your assets each time you compile your project. That's not really an option for our project. Besides, I doubt it will stop the files that get compiled into the swf from also being copied to the debug folder. I'm really just looking for a way to get it to stop the delete embedded files/copy embedded files cycle every time it compiles. This would save a HUGE amount of time. Thanks! Amy
RE: [flexcoders] Loading Images into a loaded SWF
Once your SWF is loaded the path is relative to your Air app. Place a copy of your media folder and its contents accordingly. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net/ http://keithreinfeld.home.comcast.net
Re: [flexcoders] Re: Speeding project compilation
Why not create a simple ANT build script that simply copies your XML files into the appropriate directory for you. Then uncheck the copy non-embedded files checkbox. Then execute that script when you need to (assuming your XML doesn't change every time) or add the script as another builder on the project. Sincerely Mark R. Jonkman http://bitsbytesandsawdust.blogspot.com - Original Message - From: Amy amyblankens...@bellsouth.net To: flexcoders@yahoogroups.com Sent: Tuesday, August 24, 2010 9:12:27 AM Subject: [flexcoders] Re: Speeding project compilation --- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: There's an option in Project Properties Flex Compiler called Copy non-embedded files to the output folder. Unfortunately, we can't uncheck this, or our XML files don't get copied. You would think it would not copy the _embedded_ files, but it does. Also, you can embed your assets via your stylesheet by selecting your css file in package explorer and selecting, Compile CSS to SWF from the context menu. This will wrap up all your embedded assets into a compiled binary so the compiler won't have embed your assets each time you compile your project. That's not really an option for our project. Besides, I doubt it will stop the files that get compiled into the swf from also being copied to the debug folder. I'm really just looking for a way to get it to stop the delete embedded files/copy embedded files cycle every time it compiles. This would save a HUGE amount of time. Thanks! Amy -- 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-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Announcement: Flextras Flex Calendar Component
Hi Everyone, I'm pleased to announce the release of the Flextras Calendar Component. This was a big undertaking for us and we can't wait to have a few people take a look and tell us what we did wrong (or right). The Calendar is a great way for you to deal with date based data in a Flex Application and it allows you to build Calendar or scheduling applications. The component features: * Views for a Month, Week, and Day. * Extensive renderers so that you can make the component suit your needs. * Standard Flex APIs for drag and drop, itemEditors, and localization. You can download our no cost developer edition along with samples and documentation at http://www.flextras.com/?c=217 . Here are some links to find out more: Product Page: http://www.flextras.com/?event=ProductHomeproductID=15c=217 Documentation: http://www.flextras.com/?event=ProductDocumentationProductID=15c=217 Demos: http://www.flextras.com/?event=ProductSamplesProductID=15c-217 Register and Download: http://www.flextras.com/index.cfm?event=loginFormc=217 Flextras Home: http://www.flextras.com/?c=217 We are here to help and would love to hear your feedback. What can we do for you today? -- Jeffry Houser, Technical Entrepreneur Adobe Community Professional: http://tinyurl.com/27h53fl Phone: 203-379-0773 -- UI Flex Components: Tested! Supported! Ready! http://www.flextras.com?c=104 -- http://www.twitter.com/reboog711 http://www.twitter.com/flextras http://www.twitter.com/theflexshow -- http://www.theflexshow.com http://www.jeffryhouser.com http://www.asktheflexpert.com -- Part of the DotComIt Brain Trust
[flexcoders] Appli. Text color
Hello, How to setup the text color of all the text in an application ? Thank you, Christophe,
RE: [flexcoders] Loading Images into a loaded SWF
I don't get why the path that's trying to load isn't the base of the Air application then? In ioError I get file:///media/DSC_0095.JPG file:///\\media\DSC_0095.JPG is failing to load. That's not the dir of the Air app, so are you sure that's what's going on, or have I missed anything else? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Reinfeld Sent: 24 August 2010 14:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Loading Images into a loaded SWF Once your SWF is loaded the path is relative to your Air app. Place a copy of your media folder and its contents accordingly. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net http://keithreinfeld.home.comcast.net/ This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
[flexcoders] WebSphere configuration errors
Hi - This is my first time deploying my Flex war on WebSphere and I'm running into difficulties. I've got two errors when I compile my app from these files: ibm-web-bnd.xmi ibm-web-ext.xmi The main error message is this: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'webappbnd.xmi' not found. (platform:/resource/WFManager/WebContent/WEB-INF/ibm-web-bnd.xmi, 2, 179) It's got to be the config settings but I'm just unsure where to make thc changes. Can anyone point me in the right direction, please? Thanks for any helpful tips, Matt
RE: [flexcoders] Loading Images into a loaded SWF
No, when I move the folder into the air app folder, the image DEFINITELY does not load. So, WTF? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Reinfeld Sent: 24 August 2010 14:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Loading Images into a loaded SWF Once your SWF is loaded the path is relative to your Air app. Place a copy of your media folder and its contents accordingly. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net http://keithreinfeld.home.comcast.net/ This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
[flexcoders] NumericInput UI control
Hello, Up until now I've been using a NumericStepper Control for number entry fields... My client has been suggesting changes to the default behaviour of the Control to the point where it's almost not worth using a NumericStepper anymore... What does everyone use for numeric data entry fields? I need to support standard number formatting, decimals, negative and positive values... Any initial thoughts or should I just extend TextInput and roll my own control? Thanks, Nick
[flexcoders] Re: New Flex Mapping Framework
Bravo, this is very nice. --- In flexcoders@yahoogroups.com, bryan.dresselhaus bryan.dresselh...@... wrote: Hey guys, Just wanted to let you know about a new Flex Component Framework I've been working on for the last year or so. Its for building rich, interactive polygon based maps. It differs from a lot of mashup techniques that leverage google maps or mapquest in that its fully client side driven and offers a lot of flexibility and creativity. Please let me know what you think of the demo and documentation. http://www.libertyvanguard.com/liberty-gis Demo: http://www.libertyvanguard.com/applications/LibertyGISDemo/LibertyGISD emo.html Documentation: http://www.libertyvanguard.com/documentation/LibertyGIS-asdoc/index.ht ml Regards, Bryan Dresselhaus
Re: [flexcoders] Loading Images into a loaded SWF
Is the loaded SWF a Flex SWF? Is it using SWFLoader/Image? Are you using Flex 4? What is the path to the AIR app, the SWF and the image and what are you using for a relative path? On 8/24/10 8:58 AM, Julian Tenney julian.ten...@nottingham.ac.uk wrote: No, when I move the folder into the air app folder, the image DEFINITELY does not load. So, WTF? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Reinfeld Sent: 24 August 2010 14:29 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Loading Images into a loaded SWF Once your SWF is loaded the path is relative to your Air app. Place a copy of your media folder and its contents accordingly. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net http://keithreinfeld.home.comcast.net/ This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Appli. Text color
Use CSS color property in the global selector. How to do it depends on which version of Flex. See mx:Styles or fx:Styles doc On 8/24/10 7:24 AM, Christophe christophe_jacque...@yahoo.fr wrote: Hello, How to setup the text color of all the text in an application ? Thank you, Christophe, -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: New Flex Mapping Framework
+1 on that, very nice. On Tue, Aug 24, 2010 at 10:00 AM, Ariel J arielj...@yahoo.com wrote: Bravo, this is very nice. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, bryan.dresselhaus bryan.dresselh...@... wrote: Hey guys, Just wanted to let you know about a new Flex Component Framework I've been working on for the last year or so. Its for building rich, interactive polygon based maps. It differs from a lot of mashup techniques that leverage google maps or mapquest in that its fully client side driven and offers a lot of flexibility and creativity. Please let me know what you think of the demo and documentation. http://www.libertyvanguard.com/liberty-gis Demo: http://www.libertyvanguard.com/applications/LibertyGISDemo/LibertyGISDemo.html Documentation: http://www.libertyvanguard.com/documentation/LibertyGIS-asdoc/index.html Regards, Bryan Dresselhaus
Re: [flexcoders] Re: Speeding project compilation
rantBecause it's a pain in the a$$. You have to install Ant which requires you to install other crap. Then you have the learning curve associated with ANT. Then you run into random errors where something doesn't copy and you waste hours tracking it down to having spaces in your file path. In the end you waste more time than you save. It's a rabbit hole. It's an mirage. And its being slung around more than $hit in a monkey cage /rant Amy, can you embed your XML files? It's something like this, [Embed] public var myXML:Class; ps it's not personal On Tue, Aug 24, 2010 at 8:31 AM, mark.jonk...@comcast.net wrote: Why not create a simple ANT build script that simply copies your XML files into the appropriate directory for you. Then uncheck the copy non-embedded files checkbox. Then execute that script when you need to (assuming your XML doesn't change every time) or add the script as another builder on the project. Sincerely Mark R. Jonkman http://bitsbytesandsawdust.blogspot.com - Original Message - From: Amy amyblankens...@bellsouth.net To: flexcoders@yahoogroups.com Sent: Tuesday, August 24, 2010 9:12:27 AM Subject: [flexcoders] Re: Speeding project compilation --- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: There's an option in Project Properties Flex Compiler called Copy non-embedded files to the output folder. Unfortunately, we can't uncheck this, or our XML files don't get copied. You would think it would not copy the _embedded_ files, but it does. Also, you can embed your assets via your stylesheet by selecting your css file in package explorer and selecting, Compile CSS to SWF from the context menu. This will wrap up all your embedded assets into a compiled binary so the compiler won't have embed your assets each time you compile your project. That's not really an option for our project. Besides, I doubt it will stop the files that get compiled into the swf from also being copied to the debug folder. I'm really just looking for a way to get it to stop the delete embedded files/copy embedded files cycle every time it compiles. This would save a HUGE amount of time. Thanks! Amy -- 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-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links http://groups.yahoo.com/group/flexcoders/
Re: [flexcoders] Re: Speeding project compilation
Ant generally requires only JRE (some extensions may require other things, but, if you have Flex / Flash Builder, chances are you already have JRE).
[flexcoders] Speeding+project+compilation
Hi Amy, try putting the assets outside the 'src' directory. Haykel.
[flexcoders] FB4: Looping thru itemrenderers
I have a scrollable SkinnableDataContainer which contains thumbnail images (in an itemrenderer). While there can be several hundred thumbnail images, only 10 itemrenderers are viewable on the screen at a time. If I need to loop through the 10 viewable itemrenderers, what's the best way to do it? Thanks, in advance.
Re: [flexcoders] Speeding project compilation
Try putting the assets outside the 'src' directory. On Monday, August 23, 2010, Amy amyblankens...@bellsouth.net wrote: Hi all; We have a project that uses a lot of embedded assets. However, when the project compiles, it deletes all of the assets from the bin-debug folder, then re-adds them (even though they are embedded). I have hunted for a setting in Flex Builder that will let me turn this unneeded behavior orr, but I haven't found it. Does anyone know? TIA; Amy -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com
[flexcoders] 3D Carousel in Flex 4?
I am desperate to get a 3D Carousel in my Flex 4 web app. I found this example: http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/ It has been last updated in 2008. Does anyone where know of where I can get a component I can use in a Flex 4 project? Has it been updated?
[flexcoders] Re: Vertical CoverFlow or carousel linked to data grid
Did you get it working? I'm interested in this as well! --- In flexcoders@yahoogroups.com, tonyhansen51 tonywhan...@... wrote: Anyone have info on doing this? Need it for store, search creates grid of results and carousel of pictures. Changing the picture selects the grid row, clicking a grid row selects the picture. I am just starting with Flex, this will be my first project, I will to happy to share my code when done.
Re: [flexcoders] Semi-dial / speedo-type control in flex
Hi Nick , You can use degrafa. Degrafa comes with MIT licensed. http://www.flexjunk.com/examples/DegrafaExample3/DegrafaExample3.html Regs, Laks From: Nick Middleweek n...@middleweek.co.uk To: flexcoders@yahoogroups.com Sent: Mon, August 23, 2010 8:40:19 PM Subject: [flexcoders] Semi-dial / speedo-type control in flex Hi, I thought there was a dial or speedometer control built into Flex 3? Does anyone have any references to one if I'm mistaken? Thanks, Nick
[flexcoders] window resizing issues
I have window W1 which has a Vertical Box which in turn has a Datagrid and one of those DataGrid columns of the Datagrid has a Horizontal Box which has a button icon. The MXML is somewhat like mx:VBox width=100% paddingBottom=10 paddingLeft=10 paddingRight=10 paddingTop=10 styleName=formSection mx:DataGrid id=my_grid dataProvider={my_grid_dp} headerHeight=0 width=100% allowMultipleSelection=true change=remove_value.enabled = expected_result_grid.selectedItems.length 0; rowCount=3 mx:columns mx:DataGridColumn headerText=Column 1 dataField=expected_result wordWrap=true / mx:DataGridColumn headerText=Column 2 dataField=expected_result width=45 mx:itemRenderer mx:Component mx:HBox horizontalAlign=center mx:Button icon=@Embed('../assets/img/edit.png') toolTip=View buttonMode=true click=outerDocument.openmyWin_fn('update')/ /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:VBox When the button icon is clicked(which is noted in bold above), another new window W2 is opened using the below function public function openmyWin_fn(eventObj:*):void { //Keeps multiple windows from being opened if(result_win == null){ result_win = PopUpManager.createPopUp(this, result_win, true) as result_win; } //Passes the parent object to the popup window result_win.openingParentWindow = this; //Set the mode (Add or Update) in which the form should operate result_win.form_mode = eventObj; } I tried to add a TextInput in the above MXML in Window W1's source which led to the window W2 opening in the rightmost part of browser window without a scroll bar instead of appearing with a scroll bar in the center of browser window. W2 should be appearing as overlapping W1, not adjacent to it. I commented the TextInput I added, even removed it, still the issue(window W2 opening in the rightmost part of browser window without a scroll bar) persists. I once faced this problem where inadvertently a height value was added to the whole W2 window. After I removed it, the window W2 was fine. This time I am comparing the source files before I added the TextInput control and after I removed it(when the window W2 was not displaying in the proper place) and the source files are identical. Window W2 was having scrollbars before I tried to add the TextInput MXML control. It was also centering in the application before I tried to add the TextInput MXML control. Where could I be erring to cause the W2 to appear in the rightmost part of browser? I don't understand what is causing it to happen if the source files are identical? Any suggestions would be appreciated.
RE: [flexcoders] Flex Library Project compiled to SDK 4.0 using Halo Theme
Managed to answer my own question. Just had to use -theme ${flexlib}/themes/Halo/halo.swc in compiler settings. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Charlie Skinner Sent: 23 August 2010 13:03 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Library Project compiled to SDK 4.0 using Halo Theme Is it possible to do this? I'm trying to update a project to use SDK 4.0. Project is linked to a number of Library projects. It works fine with 3.5. But converting to 4.0 i get 100's of errors related to style properties that can be used only with halo theme. I tried to include the halo.swc in the compiler settings: -include-libraries ${flexlib}/themes/Halo/halo.swc. But that had no effect. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of nlyte Software. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of nlyte Software. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
[flexcoders] File Download MIME Type Problem
Hey Guys, I have an excel (xls) file living on a server that I'm trying to download via flex with a FileReference. I'm having a hard time setting the MIME type. The Save as type drop down in the browsers file download dialog is always blank in IE, and is set to All Files (*) in Firefox but will never say Microsoft Excel File Below is the code I'm using. var fileLocation:String = /whatever/file.xls; var fileName:String = String(fileLocation.split('/')[fileLocation.split('/').length - 1]); var request:URLRequest = new URLRequest(); request.url = fileLocation; request.contentType = application/vnd.ms-excel; request.requestHeaders.push(new URLRequestHeader( Content-Disposition, attachment; filename= + fileName )); request.requestHeaders.push(new URLRequestHeader( Content-Type, application/vnd.ms-excel )) ; var downloadFileRef:FileReference = new FileReference(); downloadFileRef.download(request, fileName); Let me know if anyone has any ideas. Thanks!
[flexcoders] Re: Nested Modules
They are all being compiled in the same project as the Application shell, using 3.5 SDK --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Sounds like one of the modules is being compiled with different version of the SDK. On 8/23/10 12:39 PM, BillF bill.frank...@... wrote: I have an application that loads a flex module. This module loads correctly, however, this module also is supposed to load 3 other modules. Originally, this module was tied specifically to a given application shell, which provided objects that the child and grandchildren used. It was determined that we needed to isolate the child from the shell, so that it could be loaded in other shells without problems. In doing so, I moved the code that the shell used into a module, moving all the code that called the parentApplication to use the parentDocument. This gives me a shell - child - grandchild - great grandchild arrangement. I get no compile errors on the compilation of the test shell (which only has a function to load the child module), nor any compile errors on the grandchildren/great grandchildren. However, when I run the application, the child module loads, but when it tries to load the grandchild, it tosses an error before it gets to any of the pre-initialization code.. VerifyError: Error #1053: Illegal override of FlexModuleFactory in mx.core.FlexModuleFactory. Any help would be greatly appreciated. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: dynamic carousel
Have you gotten past these issues? I too am trying to do the same thing. --- In flexcoders@yahoogroups.com, Darrin Kay dar...@... wrote: Good Day, I was able to take Doug McCune Carousel and make it dynamic, so I wanted to share that. I am having two issues that I can use help with. I am tring to make the panel image dynamic but I am having a runtime error. Also there can be a link in each panel, but that to has a runtime error. So any help would be greatful Thanks, Darrin
Re: [flexcoders] Re: Nested Modules
Is your shell a Flex app? Are you fiddling with the appdomain parameters when loading modules? On 8/24/10 6:10 AM, BillF bill.frank...@bayercropscience.com wrote: They are all being compiled in the same project as the Application shell, using 3.5 SDK --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: Sounds like one of the modules is being compiled with different version of the SDK. On 8/23/10 12:39 PM, BillF bill.frank...@... wrote: I have an application that loads a flex module. This module loads correctly, however, this module also is supposed to load 3 other modules. Originally, this module was tied specifically to a given application shell, which provided objects that the child and grandchildren used. It was determined that we needed to isolate the child from the shell, so that it could be loaded in other shells without problems. In doing so, I moved the code that the shell used into a module, moving all the code that called the parentApplication to use the parentDocument. This gives me a shell - child - grandchild - great grandchild arrangement. I get no compile errors on the compilation of the test shell (which only has a function to load the child module), nor any compile errors on the grandchildren/great grandchildren. However, when I run the application, the child module loads, but when it tries to load the grandchild, it tosses an error before it gets to any of the pre-initialization code.. VerifyError: Error #1053: Illegal override of FlexModuleFactory in mx.core.FlexModuleFactory. Any help would be greatly appreciated. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Speeding project compilation
Because I'm not the only one on the team and I doubt that option is politically viable. --- In flexcoders@yahoogroups.com, mark.jonk...@... wrote: Why not create a simple ANT build script that simply copies your XML files into the appropriate directory for you. Then uncheck the copy non-embedded files checkbox. Then execute that script when you need to (assuming your XML doesn't change every time) or add the script as another builder on the project. Sincerely Mark R. Jonkman http://bitsbytesandsawdust.blogspot.com - Original Message - From: Amy amyblankens...@... To: flexcoders@yahoogroups.com Sent: Tuesday, August 24, 2010 9:12:27 AM Subject: [flexcoders] Re: Speeding project compilation --- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorktown@ wrote: There's an option in Project Properties Flex Compiler called Copy non-embedded files to the output folder. Unfortunately, we can't uncheck this, or our XML files don't get copied. You would think it would not copy the _embedded_ files, but it does. Also, you can embed your assets via your stylesheet by selecting your css file in package explorer and selecting, Compile CSS to SWF from the context menu. This will wrap up all your embedded assets into a compiled binary so the compiler won't have embed your assets each time you compile your project. That's not really an option for our project. Besides, I doubt it will stop the files that get compiled into the swf from also being copied to the debug folder. I'm really just looking for a way to get it to stop the delete embedded files/copy embedded files cycle every time it compiles. This would save a HUGE amount of time. Thanks! Amy -- 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-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Speeding project compilation
--- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: rantBecause it's a pain in the a$$. You have to install Ant which requires you to install other crap. Then you have the learning curve associated with ANT. Then you run into random errors where something doesn't copy and you waste hours tracking it down to having spaces in your file path. In the end you waste more time than you save. It's a rabbit hole. It's an mirage. And its being slung around more than $hit in a monkey cage /rant Amy, can you embed your XML files? It's something like this, [Embed] public var myXML:Class; No. They need to stay editable.
[flexcoders] Re: FB4: Looping thru itemrenderers
You should never do this. What is the end goal? --- In flexcoders@yahoogroups.com, sdl1326 azsl1326-em...@... wrote: I have a scrollable SkinnableDataContainer which contains thumbnail images (in an itemrenderer). While there can be several hundred thumbnail images, only 10 itemrenderers are viewable on the screen at a time. If I need to loop through the 10 viewable itemrenderers, what's the best way to do it? Thanks, in advance.
[flexcoders] Re: FB4: Looping thru itemrenderers
Here's some additional insight into what I am trying to do. The user can click on one of the thumbnails(itemrenderer) which changes the background color and launches a larger version of the image. Within that larger image is a next and previous button which will navigate to the next/previous image(itemrenderer). I need to be able to change the background color of the next/previous thumbnail/itemrenderer. So, in essence, I need to determine the next/previous itemrenderer and call the function that will change the background color. Thanks. --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: You should never do this. What is the end goal? --- In flexcoders@yahoogroups.com, sdl1326 azsl1326-email@ wrote: I have a scrollable SkinnableDataContainer which contains thumbnail images (in an itemrenderer). While there can be several hundred thumbnail images, only 10 itemrenderers are viewable on the screen at a time. If I need to loop through the 10 viewable itemrenderers, what's the best way to do it? Thanks, in advance.
[flexcoders] enterState exitState frustrations
I am a new Flex coder. So far I'm enjoying the flexibility of the framework, but I am having a heck of a time with state changes. I'm using Flex 4.1. I'm working on a basic GUI. You start with a welcome screen, followed by a state change to a login screen, and a state change to a chat lobby. When the lobby is displayed, there's a bunch of initialization that needs to happen. If the user navigates away from this state/view, then they should be automatically disconnected from the chat server and be brought back to the beginning. The problem is, I cannot for the life of me get anything to trigger using enterState and exitState. Even currentStateChanging appears to not be triggered. I can make the init happen the first time using creationComplete, but that's it. I am wondering if my using a custom event handler is causing trouble. Each of the different views are a custom component. Each component has the following declaration in the Metadata: [Event(name=stateChangeEvent, type=events.MyStateChangeEvent)] MyStateChangeEvent allows the components to pass the desired state to the main application which then initiates the switch. The individual components are called as follows in the main application: components:WelcomeScreen x=0 y=0 includeIn=Welcome stateChangeEvent=stateChangeEventHandler(event) /components:WelcomeScreen The event handler is pretty basic: protected function stateChangeEventHandler(event:MyStateChangeEvent):void { this.currentState = event.stateChangeData.newState.toString(); } Is the custom handler what's causing the trouble? If so, how do I pass data between components via events yet still take advantage of the enterState and exitState triggers? I sincerely appreciate your time and patience. Aaron