PDA

View Full Version : Help on reducing a 15MB swf


dmx1999
06-21-2004, 05:24 PM
Hello all

my swf is 15MB!!!

this is because i have a lot of image and it kindof saved all my images inside the swf file....

is there a way to save my image under some folder and then load it up when the user needs it?

fmx
06-21-2004, 10:26 PM
mc.loadMovie("path/pic.jpg");

dmx1999
06-22-2004, 07:24 AM
sorry... where do i put this code?
is it in my swf?

fmx
06-22-2004, 12:30 PM
with out knowing your layout, i would pace it on the root.

bsxiong
07-24-2004, 08:13 PM
don't know if you have this answered or not.

but you would have this.

if you're using an onpress event. where you click on something and the image will load up. you will use this.

1. use a New Page to do this example for your study.

make a MC in the main screen and name the MC in "Property" to whatever you want. Like "loadhere". then place this MC anywhere you would want the JPG to load into when you click on the button.

put an onpress code on your button. Then using this : loadMovie("you link to your JPG","_root.loadhere");

there, this should drop all the images from your website and only load then externally!!