AW: [Flashcoders] wedging in a preloader -- lazy developer alert!
++This can be done with jsfl though. true. here - tinyurl.com/3b6aff - you can download a handy little extension that does exactly that. regards, martin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] wedging in a preloader -- lazy developer alert!
Or even Simpler, Add a scene to your FLA before the main scene and put the preload script there ... no need for loadmovie :) Ian Thomas wrote: A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian On 5/11/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, Wasn't sure whether to post there here or Flash-Newbie, so I'm starting here. I've inherited a project where all Flash assets (MCs, buttons, components) are included in an FLA and setup on frameone. All code is in external class definition files, and it isn't pretty. With classes linked to symbol instances in the FLA's library. Client now wants an animated preloader, because the app takes too long to load before running. You see where this is going... everything is on frame 1 and all actionscript classes and used library symbols are flagged to export on frame 1. Ugh! This has probably been covered ad naseum, but cannot give me some quick pointers on fixing this? (If I was doing this from scratch, I'd simply have the preloader and related elements export on frame 1, with symbols and actionscript on frame 2-5, to get the preloader loaded and running while everything else loads. Is really as simple as wedging some frames in the start and changing the export/load frame?) ...Rob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] wedging in a preloader -- lazy developer alert!
OR, You can uncheck the export in first frame checkbox on the items in the library with linkage. When you do this you can place those items on the stage, like frame 2, and run your preload code on frame 1. Alain's way is simpler, but knowing the export in first frame trick comes in handy sometimes. On 5/12/07, Alain Rousseau [EMAIL PROTECTED] wrote: Or even Simpler, Add a scene to your FLA before the main scene and put the preload script there ... no need for loadmovie :) Ian Thomas wrote: A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian On 5/11/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, Wasn't sure whether to post there here or Flash-Newbie, so I'm starting here. I've inherited a project where all Flash assets (MCs, buttons, components) are included in an FLA and setup on frameone. All code is in external class definition files, and it isn't pretty. With classes linked to symbol instances in the FLA's library. Client now wants an animated preloader, because the app takes too long to load before running. You see where this is going... everything is on frame 1 and all actionscript classes and used library symbols are flagged to export on frame 1. Ugh! This has probably been covered ad naseum, but cannot give me some quick pointers on fixing this? (If I was doing this from scratch, I'd simply have the preloader and related elements export on frame 1, with symbols and actionscript on frame 2-5, to get the preloader loaded and running while everything else loads. Is really as simple as wedging some frames in the start and changing the export/load frame?) ...Rob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re[2]: [Flashcoders] wedging in a preloader -- lazy developer alert!
AR Or even Simpler, AR AR Add a scene to your FLA before the main scene and put the preload script AR there ... no need for loadmovie :) No, it will not work. Export in first frame exports symbols on the first frame of the whole Flash movie and not on that of any scene. Actually scenes are design time division only, a published movie is the same sequence of frames if you use no scenes (single one) or multiple scenes. Even the numbering of frames is independent of scenes, it continously increasing from 1 to the last frame, even when scene borders are crossed. Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] wedging in a preloader -- lazy developer alert!
I don't think that works - Export in frame 1 means export at the very beginning of the movie. Scenes are just logical divisions of the timeline for design purposes - AFAIK they're not preserved in the SWF itself as anything other than frame labels. Ian On 5/12/07, Alain Rousseau [EMAIL PROTECTED] wrote: Or even Simpler, Add a scene to your FLA before the main scene and put the preload script there ... no need for loadmovie :) Ian Thomas wrote: A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] wedging in a preloader -- lazy developer alert!
It's not going to be as easy as unchecked the export in first frame setting. I'm simply creating a wrapper SWF with a preloader, that loads in the target SWF. -Original Message- From: Alain Rousseau [mailto:[EMAIL PROTECTED] Sent: Saturday, May 12, 2007 1:25 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] wedging in a preloader -- lazy developer alert! Or even Simpler, Add a scene to your FLA before the main scene and put the preload script there ... no need for loadmovie :) Ian Thomas wrote: A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian On 5/11/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, Wasn't sure whether to post there here or Flash-Newbie, so I'm starting here. I've inherited a project where all Flash assets (MCs, buttons, components) are included in an FLA and setup on frameone. All code is in external class definition files, and it isn't pretty. With classes linked to symbol instances in the FLA's library. Client now wants an animated preloader, because the app takes too long to load before running. You see where this is going... everything is on frame 1 and all actionscript classes and used library symbols are flagged to export on frame 1. Ugh! This has probably been covered ad naseum, but cannot give me some quick pointers on fixing this? (If I was doing this from scratch, I'd simply have the preloader and related elements export on frame 1, with symbols and actionscript on frame 2-5, to get the preloader loaded and running while everything else loads. Is really as simple as wedging some frames in the start and changing the export/load frame?) ...Rob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] wedging in a preloader -- lazy developer alert!
That would work, but in my case, I've inherited a project that has upwards of a hundred symbols in the library, some used and some not. And a mess of symbols placed on the stage. I can create a wrapper SWF in a fraction of the time it would take digging through the existing library. -Original Message- From: nelson ramirez [mailto:[EMAIL PROTECTED] Sent: Saturday, May 12, 2007 2:18 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] wedging in a preloader -- lazy developer alert! OR, You can uncheck the export in first frame checkbox on the items in the library with linkage. When you do this you can place those items on the stage, like frame 2, and run your preload code on frame 1. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] wedging in a preloader -- lazy developer alert!
This can be done with jsfl though. Loop through library items, if it has export in first frame enabled, disable it and place the item on stage. var lib = fl.getDocumentDOM().library; var libItems = lib.items; var len = libItems.length; var item; var itemName; var selectedItem; for(var i=0; ilen; i++) { item = libItems[i]; itemName = item.name; if (item.linkageExportInFirstFrame) { fl.trace(processing: +itemName); lib.selectItem(itemName); item.linkageExportInFirstFrame = false; lib.addItemToDocument({x:0, y:0}, itemName); } } Save as .jsfl file. Select the layer + frame where you want the items to end up and run de command. Might need some tweaking, but should get you going. regards, Muzak - Original Message - From: Hairy Dog Digital [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, May 12, 2007 10:51 PM Subject: RE: [Flashcoders] wedging in a preloader -- lazy developer alert! That would work, but in my case, I've inherited a project that has upwards of a hundred symbols in the library, some used and some not. And a mess of symbols placed on the stage. I can create a wrapper SWF in a fraction of the time it would take digging through the existing library. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] wedging in a preloader -- lazy developer alert!
A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian On 5/11/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, Wasn't sure whether to post there here or Flash-Newbie, so I'm starting here. I've inherited a project where all Flash assets (MCs, buttons, components) are included in an FLA and setup on frameone. All code is in external class definition files, and it isn't pretty. With classes linked to symbol instances in the FLA's library. Client now wants an animated preloader, because the app takes too long to load before running. You see where this is going... everything is on frame 1 and all actionscript classes and used library symbols are flagged to export on frame 1. Ugh! This has probably been covered ad naseum, but cannot give me some quick pointers on fixing this? (If I was doing this from scratch, I'd simply have the preloader and related elements export on frame 1, with symbols and actionscript on frame 2-5, to get the preloader loaded and running while everything else loads. Is really as simple as wedging some frames in the start and changing the export/load frame?) ...Rob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] wedging in a preloader -- lazy developer alert!
I'll give that a whirl! Thanks! -Original Message- From: Ian Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, May 11, 2007 5:43 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] wedging in a preloader -- lazy developer alert! A simple fix - create a wrapper Flash movie, and load the bulky movie in as a child. As long as it doesn't use _root all the time, it should work fine. (And even if it does, you could use _lockroot to fix that). Ian On 5/11/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: Hi all, Wasn't sure whether to post there here or Flash-Newbie, so I'm starting here. I've inherited a project where all Flash assets (MCs, buttons, components) are included in an FLA and setup on frameone. All code is in external class definition files, and it isn't pretty. With classes linked to symbol instances in the FLA's library. Client now wants an animated preloader, because the app takes too long to load before running. You see where this is going... everything is on frame 1 and all actionscript classes and used library symbols are flagged to export on frame 1. Ugh! This has probably been covered ad naseum, but cannot give me some quick pointers on fixing this? (If I was doing this from scratch, I'd simply have the preloader and related elements export on frame 1, with symbols and actionscript on frame 2-5, to get the preloader loaded and running while everything else loads. Is really as simple as wedging some frames in the start and changing the export/load frame?) ...Rob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com