dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [CS3] Problem with external images uploaded to Flash

  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    69

    [CS3] Problem with external images uploaded to Flash

    I have a flash movie in which I place some PNG images to the stage.

    I previously had all those images in the library. They were attached to a father clip with attachMovie(), and next they were placed and resized somewhere on the stage. Everything was correct.

    So, in order to create a lighter SWF, I decided to do external loads. I need these clips to be resized and placed once they're on the stage. I thought loadMovie() wouldn't be a good option because the resize would happen before the clips were loaded, and so they wouldn't be resized. So I thought of using the MovieClipLoader class, with its loadClip() method in order to load every image into empty movie clips, and perform the resize inside the onLoadComplete event handler.

    Well, even in this case, even though the images appear on the places they are assigned with _x, _y once they'er loaded, all of them appear with their real size. They're not resized!

    Am I forgetting something??

  2. #2
    Member
    Join Date
    Sep 2007
    Posts
    69
    any help please?

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Location
    Brazil - São Paulo
    Posts
    257
    Would be a lot easier to help if we could see the script, place here the section your talking about, there are lots of things that can be wrong so we need to see one by one..

    cheers
    "life is interactive"

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