A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: should be an easy slide presentation question

  1. #1
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121

    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!

  2. #2
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    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);
    }

  3. #3
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121
    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...

  4. #4
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    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

  5. #5
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121
    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

  6. #6
    Senior Member
    Join Date
    Jun 2006
    Posts
    100
    Have you tried the registration under properties tab parameters?

  7. #7
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121
    yeah: altering the registration point there seems to have no effect whatsoever

  8. #8
    perplexed by actionscript alien_landscape's Avatar
    Join Date
    Jan 2006
    Location
    UK
    Posts
    289
    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


  9. #9
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center