A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] moviecliploader prob...

Hybrid View

  1. #1
    Senior Member
    Join Date
    Mar 2004
    Posts
    120

    [F8] moviecliploader prob...

    i have and xml that passes these image details to be loaded into flash.

    image path, x,y,heigt,width, rotation

    i use moviecliploader and attachemovies with a for loop to load the images. but find difficult set images there respected property after onLoadComplete even if the movieclip loader as i can pass the approriate values in to movies.

    can anyone suggest me on how to pass the properties into onLoadComplete even of the image

    thanks

  2. #2
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    make use on onLoadInit instead of onLoadComplete to set properties to images.

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Posts
    120
    Quote Originally Posted by deepakflash
    make use on onLoadInit instead of onLoadComplete to set properties to images.
    how to pass values into onLoadInit? since the number of images can varie i cant figure how to pass the correct values to each image...

    Thanks

  4. #4
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    PHP Code:
    mclListener.onLoadInit = function(target_mc:MovieClip) {
    target_mc._height=ht;
    target_mc._width=wd;
    target_mc._x=xpos;
    target_mc._y=ypos;
    }; 

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