This content has been marked as final. Show 16 replies
why aren't you using your LoadImage() function?
I don't really know? I sort of just do what tutorials and script pages tell meh. I don't know the functions/language well enough yet..
change your loadGImage() function to:
Feeling' stupid here but.. where do i define it? >_>
you must define it before you call LoadImage() or you could just use numbers in your LoadImage() call instead of those variables.
k.. I put it in like that and defined those variables, and now it doesn't show up at all when i test the movie..
also like.. That doesn't seem like it would scale and center the image.. Just load it but with defined variables it doesn't.. use?
LoadImage() load, scales and positions filename IF you pass appropriate parameters (including a target movieclip, clip).
Maybe i'm trying to get it to work in the wrong place..
the image only loads if i leave it the way it is.. as a .. like "loadMovie" thing..
would this kind of script go in the main actionscript or in a clip or something?
I have no idea what I'm doing..
that code would be attached to a frame, not a movieclip. show the corrected code you're using.
how many parameters are in the function LoadImage()?
how many parameters are in the code i suggested for calling LoadImage()?
how many parameters are in the code you just displayed for calling LoadImage()?
do you see a problem?
2 .. 5 and .. 4 ?
I seriously don't see what's wrong, i took out a parameter i didn't need because i don't need a border and one wasn't defined in the previously working code..
All i know is that _root.bigImage.imageContainer.loadMovie(bigImgURL, 100) works..
I can post the entire action script.. But i don't know what 90% of it means.. So .. I'm lost.
no: 5,5 and 4.
I see what you mean.
Is there a specific way i have to define those or would.. it work like..
maxWidth = "800 px";
maxHeight = "600 px";
bordersize = "2 px";
//the rest are defined already, i think..
function LoadImage(_root.bigImage.imageContainer, maxWidth, maxHeight, bordersize, bigImgURL)
egh.. it doesn't work like this either though.
The only way i can get it to work is the original way, but it loads pictures full sized, so if it's huge only the top left corner is shown.. and if it's small it's not centered, it's up in the top left corner.. and it just looks bad that way.
those 3 parameters are supposed to be numbers, not strings.