Subject: Newbie .... 2004-03-14 - By Andreas Weber
Back There would be other ways, but I don't see one that is really easier.
But now that you have the code, the rest is just a matter of cut and paste.
1. Select the button you have attached the on(press){...} to. Delete the code. 2. Give this button the instance Name loadBtn_mc 3. Copy/Paste this code into the first frame of the timeline the Button is residing on:
loadBtn_mc.onRelease = function(){ loadMovie ("tshirt.swf",chargeur_clip); }
loadBtn_mc.onEnterFrame = function(){ var loaded = chargeur_clip.getBytesLoaded(); var total = chargeur_clip.getBytesTotal(); if(total > 15 && loaded >= total){ trace('tshirt.swf completely loaded,'); trace('but for some reason we unload it straigth away'); chargeur_clip.unloadMovie(); delete this.onEnterFrame; } }
HTH -- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|