|
-
should be an easy slide presentation question
hi.
i'm making just a simple slide show in one of my swf's, and for the first time i thought i'd use the in-built slide presentation thingie. ok, all is well and working - but as i'm showin jpg's of various sizes, widths and heights in my slides, how can i tell flash to load the images into the centerpoint of my swf, and not, as it now does, into the upper left hand corner? (i wouldn't want to load the images into the library/ready made slides, as this would increase the file size. i'd prefer to load them dynamically).
can anyone help?
thanks!
-
Hey Timmy!!!
Well for loading them dynamically, our files should all be where you save your fla. file. Then create a empty movieclip and put it on the stage where ever you want it. Then with a bit of code you can load them.
_root.onEnterFrame = function(){
_root.loadMovie("fileName", movieclipName);
}
-
right... hmmm.
walsher, thanks, but i guess i didn't explain clearly enough: loading into an empty mc goes just fine. i'm loading .jpg's. once loaded they all anchor themselves into the top left corner. i have a stage underneath, and when there are some quite narrow, tall images among my jpg's it doesn't look too nice when they are all in the left and most of the stage is empty. is there a way to get this empty mc to behave so that the images would take it as their center point instead of the top left corner, so that no matter what dimensions jpg's have, they always place themselves into the middle of stage?
i'm using flash 8 btw, if that info is needed...
-
Hey Timmy!!!
You should be able to tell the movieclip x and y coord. So after it is loaded doing something: _root.MC._x = 80
_root.MC._y = 100
-
ok, i get you. i just can't seem to be able to do it with the slide presentation - function - well, i can always just load them in the 'normal' way, can't i. i don't get to enjoy the fancy transitions classes, though... i guess it's not possible, then. and thanks for help
-
Have you tried the registration under properties tab parameters?
-
yeah: altering the registration point there seems to have no effect whatsoever
-
perplexed by actionscript
Hi mrk13,
I had a very similar problem recently, 'Ask the Geezer' came to the rescue!
here's the thread: http://board.flashkit.com/board/showthread.php?t=689125
-
rrright! looks good: i'll try that. thanks for the tip!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|