Re: [Flashcoders] Graphical resources in a v2 component - not visible
To include assets when compiling a component to swc, you have to make sure the assets are on the stage (inside the movieclip that is linked to the class). I'm sure this is in the docs somewhere.. Here it is.. read the Editing the movie clip part: http://livedocs.adobe.com/flash/9.0/main/2489.html regards, Muzak - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 9:43 AM Subject: [Flashcoders] Graphical resources in a v2 component - not visible Hello, I'm programming a small card game, where most of the objects are packed as custom v2 components: playing cards, playing table, user avatars. And I have a very frustrating issue with the graphical resources. For example the Card component has a folder in its library, holding the card images (J,Q,K,A). When I generate the Card.swc and then create a new AS2 flash document and drag the Card from Components - Standard Components on to the stage, then while the live preview is working ok, the published movie will lack the J, Q, K, A images. Only after I copy the folder from the library to the new movie, the images will (sometimes!) appear :-( Aren't .swc files meant to be self-contained files, containing the graphical, sound, etc. resources? Or am I missing something in my component developing process? Thank you Alex -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Graphical resources in a v2 component - not visible
Hello Muzak, On Jan 7, 2008 10:13 AM, Muzak [EMAIL PROTECTED] wrote: Here it is.. read the Editing the movie clip part: http://livedocs.adobe.com/flash/9.0/main/2489.html actually I do that already (sorry, should have mentioned it originally): I have an Assets layer and my graphical assets placed on the 2 frame. Still a frustrating on/off story: the assets aren't visible I also tried setting/removing the checkbox export in 1st frame on the assets, as you suggested in an archived reply... Does anybody know if the checkbox should be set or cleared? Regards Alex - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 9:43 AM Subject: [Flashcoders] Graphical resources in a v2 component - not visible I'm programming a small card game, where most of the objects are packed as custom v2 components: playing cards, playing table, user avatars. And I have a very frustrating issue with the graphical resources. For example the Card component has a folder in its library, holding the card images (J,Q,K,A). When I generate the Card.swc and then create a new AS2 flash document and drag the Card from Components - Standard Components on to the stage, then while the live preview is working ok, the published movie will lack the J, Q, K, A images. Only after I copy the folder from the library to the new movie, the images will (sometimes!) appear :-( Aren't .swc files meant to be self-contained files, containing the graphical, sound, etc. resources? Or am I missing something in my component developing process? -- http://preferans.de ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Graphical resources in a v2 component - not visible
Flash 8 or 9 IDE? Haven't done much with Flash 9 really. With the Flash 8 IDE this should just work.. Do you have a sample fla (with just the component) we can have a look at? regards, Muzak - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 10:57 AM Subject: Re: [Flashcoders] Graphical resources in a v2 component - not visible Hello Muzak, On Jan 7, 2008 10:13 AM, Muzak [EMAIL PROTECTED] wrote: Here it is.. read the Editing the movie clip part: http://livedocs.adobe.com/flash/9.0/main/2489.html actually I do that already (sorry, should have mentioned it originally): I have an Assets layer and my graphical assets placed on the 2 frame. Still a frustrating on/off story: the assets aren't visible I also tried setting/removing the checkbox export in 1st frame on the assets, as you suggested in an archived reply... Does anybody know if the checkbox should be set or cleared? Regards Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Graphical resources in a v2 component - not visible
Hello Muzak, On Jan 7, 2008 3:56 PM, Muzak [EMAIL PROTECTED] wrote: Do you have a sample fla (with just the component) we can have a look at? thank you! It is Flash 9. Sorry, don't have a simple sample case yet. I have now reverted back to a backup copy of my movie which works and reinserted my code changes. It seems to me that Adobe doc is wrong in saying: In most cases, you should deselect Export in First Frame (it is selected by default). - because if you don't select the checkbox, the assets won't be included in the .swc file at all Regards Alex - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 10:57 AM Subject: Re: [Flashcoders] Graphical resources in a v2 component - not visible Hello Muzak, On Jan 7, 2008 10:13 AM, Muzak [EMAIL PROTECTED] wrote: Here it is.. read the Editing the movie clip part: http://livedocs.adobe.com/flash/9.0/main/2489.html actually I do that already (sorry, should have mentioned it originally): I have an Assets layer and my graphical assets placed on the 2 frame. Still a frustrating on/off story: the assets aren't visible I also tried setting/removing the checkbox export in 1st frame on the assets, as you suggested in an archived reply... Does anybody know if the checkbox should be set or cleared? Regards Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://preferans.de ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Graphical resources in a v2 component - not visible
Ah, in that case, the assets are compiled into the swc. The problem is that at the time you're attaching one of the assets, they're not yet available. You'd need to have an instance of the component on stage somewhere, and that frame needs to be (pre)loaded. What they describe (poorly) in the docs is when you deselect the Export.. option, is mainly for preloading purposes. When Export in first frame.. is selected, it is actually loaded before the first frame, breaking any preloader (in case you have one). Using a seperate (external) preloader swf (my preference) fixes that and you can keep using the Export in first frame.. option. With the option unselected you have to jump through a few hoops to make things work properly, including preloading (not worth it IMO). regards, Muzak - Original Message - From: Alexander Farber [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, January 07, 2008 6:23 PM Subject: Re: [Flashcoders] Graphical resources in a v2 component - not visible Hello Muzak, On Jan 7, 2008 3:56 PM, Muzak [EMAIL PROTECTED] wrote: Do you have a sample fla (with just the component) we can have a look at? thank you! It is Flash 9. Sorry, don't have a simple sample case yet. I have now reverted back to a backup copy of my movie which works and reinserted my code changes. It seems to me that Adobe doc is wrong in saying: In most cases, you should deselect Export in First Frame (it is selected by default). - because if you don't select the checkbox, the assets won't be included in the .swc file at all Regards Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders