Re: [flexcoders] Nested Modules
Sounds like one of the modules is being compiled with different version of the SDK. On 8/23/10 12:39 PM, "BillF" 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] Custom spark List drag indicators using dynamic MovieClips
Does anyone have a Flex 4.1 example of custom spark List component drag indicator that utilizes dynamically set runtime MovieClips? I've been trying to do this using the suggested customization routes from the Using Flex 4 documentation, and failing horribly. Here are the logical steps I've gone through, along with what works and what does not: ) Customize List component, with a style using a custom itemRenderer. Drag data is set to copy, not move (drag and drop items into other components). The itemRenderer contains an Image with the source dynamically set at runtime to loaded swf MovieClip content. WORKS ) Add a dragging state to the ItemRenderer that includes the Image. FAILS (Image does not display in the drag indicator although it displays fine in the normal itemRenderer states in their List positions) ) Create a custom List style that uses a custom dragIndicatorClass. WORKS … except: ) Try to dynamically set the source of the Image in the dragIndicatorClass. Perform this by trying to grab the Image source setting from the DragSource of the owner. This fails because the DragSource is null at the time the dragindicator is created. OK then, let's try to attach a listener to the owner for drag events, or listen to drag events directly. Hrm, none of this works. FAILS This was doable in mx / Flex 3 by overriding the ListBase dragImage, but this isn't the route to go with spark. Any suggestions? Thanks, Steve -- 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 <*> 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: flexcoders-dig...@yahoogroups.com flexcoders-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Nested Modules
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.
[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 __
Re: [flexcoders] Speeding project compilation
There's an option in Project > Properties > Flex Compiler called "Copy non-embedded files to the output folder". 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. On Mon, Aug 23, 2010 at 1:02 PM, Oleg Sivokon wrote: > > > I believe it's somewhere in the context menu of the file in the project > view. It should say something like "Copy to output folder". Sorry, I don't > have FB at this machine atm. Could be the assets weren't embedded originally > and this setting "suck" to them since they were loaded at runtime? > > >
Re: [flexcoders] Speeding project compilation
I believe it's somewhere in the context menu of the file in the project view. It should say something like "Copy to output folder". Sorry, I don't have FB at this machine atm. Could be the assets weren't embedded originally and this setting "suck" to them since they were loaded at runtime?
Re: [flexcoders] Re: Encoding XML Character Entity References *properly*
Both your variants are... strange... you use literal and create a new object by passing it an already created object... var xml:XML = {bar}; This is how you'd normally do it. E4X uses couple of special opcodes allocated only for it, so, my guess that using E4X expressions for constructing XMLs should be the right way to do things. If you parse XML at runtime, as opposed to the first way you bypass the compiler XML validation, which is in generall a not smart thing to do... So, my guess that either your test was somehow wrong, or, even if it was precise, then the benefit of having compile time verification of XML structure would overweight in the end. I don't believe the difference, even if not in favor of E4X may be that big to consider reproducing it "by hand".
[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] Speeding project compilation
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