PDA

Volledige versie bekijken : exporten grote bestanden voor preloader


Snuurtje
%Europe/Berlin %659 %2007, 15:50
Hey,

Heb een soort website gemaakt met een preloader erin die start op frame 1. Na de preloader volgt een kleine animatie, waarna alle content geladen word op frame 18. Nu heb ik er een zooitje foto's inzitten, deze zitten in een movieclip, die geladen word wanneer hij word aangeroepen vanuit het AS op frame 18. Werkt allemaal prima, alleen de preloader dus niet. De website laad erg traag, waarna de preloader heel snel van 0 tot 100 schiet. Alles word dus al voor de preloader geladen :S. Ik ben er achter gekomen wanneer ik de export for actionscript functie uitzet, en de foto slideshow gewoon op frame 18 knal dat het wel werkt. Maar dit is uiteraard niet de bedoeling. Het heeft ook iets van doen met het vinkje export on first frame. Als ik dit uitvink, dan worden de foto's niet geinclude in het SWFje. Moet ik dit exporten wanneer ik dit uitgevinkt heb dan handmatig doen op frame 18? en zo ja hoe?

Grtz, Snuur

Snuurtje
%Europe/Berlin %723 %2007, 17:21
ben er al achter, alleen in de help staat dit

To change the export frame for all your classes:
Select File > Publish Settings.
In the Flash tab of the Publish Settings dialog box, make sure the ActionScript version is set to ActionScript 2.0.
Click the Settings button to the right of the ActionScript version.
In ActionScript 2.0 Settings, change the number for the Export Frame for Classes text box to the frame where your components first appear.
You cannot use any classes until the playhead reaches the frame you choose to load them into. Because components require classes for their functionality, you must load components after the frame specified for loading classes. If you export your classes to Frame 3, you cannot use anything from those classes until the playhead reaches Frame 3 and loads the data.

If you want to preload a file that uses components, you must also preload the components in the SWF file. To accomplish this, you must set your components to export for a different frame in the SWF file.

NOTE

If you add a component to the Stage using ActionScript, then you need to drag an instance of the component you want to add onto the pasteboard (the area around the Stage). This tells Flash that you're using the component in your application, and that its not an unused library item. Remember, Flash does not add unused library items to SWF files.



maar dat slaat toch nergens op die note? ik heb 16 verschillende dingen die geladen worden vanuit de library, moet ik die allemaal dan maar buiten beeld op de stage gaan zetten? dat word een bende... :S