PDA

Volledige versie bekijken : Loader component met preloader?


Darkness22
%Europe/Berlin %448 %2005, 11:45
Hallo,
Het probleem zit zo:

Ik gebruik de UI componement Loader van flash zelf om .jpg en .swf's in te laden.
Het inladen verloopt goed.

Maar ik zou een vooruitgangs indicatie hebben zoals een preloader.
Dat men duidelijk ziet wanneer het bestand ingeladen zal zijn.

Er zijn wel meerdere post over dit onderwerp maar niet zo specifiek

Als iemand mij kan zeggen hoe ik het onderstaand (in het vet) kan gebruiken.
Dit komt van de help file

Using the Loader component
You can use a loader whenever you need to retrieve content from a remote location and pull it into a Flash application. For example, you could use a loader to add a company logo (JPEG file) to a form. You could also use a loader to leverage Flash work that has already been completed. For example, if you had already built a Flash application and wanted to expand it, you could use the loader to pull the old application into a new application, perhaps as a section of a tab interface.In another example, you could use the loader component in an application that displays photos. Use Loader.load(), Loader.percentLoaded, and Loader.complete to control the timing of the image loads and display progress bars to the user during loading

Ik heb .swf (layout) op frame 33 staat een Symbol : movie clip
In deze movieclip staan 2 (worden er meer) tumbnails die Buttons zijn
en een Loader die ik foto's laat inladen

http://www.flow.uwhost4.net/Darkness/fotosprobleem.jpg

Nu zou ik die Loader ook het vooruitgang van zijn laadproces willen laten zien.

Ook , omdat in het component inspector iets staat van precentloaded.
Dus zal wel een ingebouwde functie zijn, neem ik aan.

http://www.flow.uwhost4.net/Darkness/fotosprobleem2.jpg

Als iemand me duidelijk wil uitleggen hoe ik dit resultaat kan berijken?

Folkert
%Europe/Berlin %482 %2005, 12:35
je zou de progressbar component kunnen gebruiken daarvoor. een simpel voorbeeld vind je hier (http://www.swapdepths.nl/2003/10/12/progress-bar-in-mx-2004).

Stuf
%Europe/Berlin %563 %2005, 14:31
op gotoAndLearn heb je nu een goeie tutorial over een preloader..

KLIK (http://www.gotoandlearn.com)