Suppose that i load a picture inside my movie clip
mc.loadMovie("p ic.jpg");
How can i know the dimension of the "pic.jpg" ?
I need the info such as the width and height of the pic to continue with my scripting. (such 1024 x 768 or 680 x 480).
Well, the reason i want to do this is to make a photo gallery and i want to put all pics with different dimensions into the frame that i've created....
User Profile
Collapse
-
Know the dimension of a picture
-
hmm...thx for the site..
but i'm new to this flash ac..
i can't figure out what is the meaning of "MovieClip.prot otype.oldLoadMo vie"??
i tried to copy paste the codes and put in on the first frame, and changed the "myImage1" with my own movieclip. But it doesn't work..><
Besides, which line of code that load my pics into the frame ??
really still confused.. -
Load pics with fixed size
var myMCL:MovieClip Loader = new MovieClipLoader ();
myMCL.loadClip( "apin.jpg", "container" );
//container is an instance of a movie clip.
Now, the size of "apin.jpg" is too large..
is there any code that i can use to make the pics displayed in certain fixed size ?
thx before
No activity results to display
Show More
Leave a comment: