# \[cs3|as2\]Positioning loaded image after loadMovie

**URL:** <https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684>\
**Category:** flash\
**Created:** [May 18, 2008, 8:29pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684 "2008-05-18T20:29:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Post date:** [May 18, 2008, 8:29pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/1 "2008-05-18T20:29:31Z")

</div>

Hi, guys.  
This is probably a beaten subject but even after reading many post a couldn’t understand how to go about it.  
After doing the following:

```php

  this.crateEmptyMovieClip("myMC",this.getNextHighestDepth());
  myMC.loadMovie("image.jpg");

```

-would it be possible to set the [COLOR=DeepSkyBlue]\_x[/COLOR] and [COLOR=DeepSkyBlue]\_y[/COLOR] of _image.jpg_ relative to _myMC_?  
You see moving _myMC_ and then loading the picture into it will not help me because _myMC_ is to be scaled and manipulated, so its axis must be in the center of the loaded image.  
Of course I can always create a _childMC_ within _myMC_ and load _image.jpg_ into _myMC.childMC_, but I’d like to avoid that if possible.  
Thank you

---

<div class="post-metadata">

**Author:** ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Post date:** [May 18, 2008, 8:33pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/2 "2008-05-18T20:33:11Z")

</div>

this is the most asked question on this forum…  
SEARCH !!!

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 18, 2008, 9:19pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/3 "2008-05-18T21:19:15Z")

</div>

loadMovie is technically not Actionscript 2, it’s Actionscript 1.

You’d do best moving on to AS2.0, which is the movieClipLoader class. Do a live docs search, you’ll find all those answers…

---

<div class="post-metadata">

**Author:** ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Post date:** [May 18, 2008, 9:34pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/4 "2008-05-18T21:34:07Z")

</div>

I wanted to use movieClipLoader but for some reason, after the loading is finished, the onLoadComplete event traces ‘0’ for the \_width of the MC.

---

<div class="post-metadata">

**Author:** ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Post date:** [May 18, 2008, 9:52pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/5 "2008-05-18T21:52:49Z")

</div>

[quote=Macsy;2327856]this is the most asked question on this forum…  
SEARCH !!![/quote]  
Would you kindly provide a links to the solution ? Just one? So I could say, "Thank you and please pardon my ignorance, for it was right under my nose and I didn’t see it."  
thanx

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [May 19, 2008, 12:15am UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/6 "2008-05-19T00:15:02Z")

</div>

[QUOTE=audiohominis;2327866]I wanted to use movieClipLoader but for some reason, after the loading is finished, the onLoadComplete event traces ‘0’ for the \_width of the MC.[/QUOTE]

You want to use --\> onLoadInit()

> **[resize loadClip image](https://www.kirupa.com/forum/showthread.php?t=283499)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

---

<div class="post-metadata">

**Author:** ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Post date:** [May 19, 2008, 2:04am UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/7 "2008-05-19T02:04:45Z")

</div>

Alright then, is there actually a way to change the position of the loaded PIXEL DATA and not that of the movie clip (any retard knows of that solution) 'cause of the billions of posts that touch on this subject, not one actually discusses how to do that. Is it actually possible?

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [May 19, 2008, 2:41am UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/8 "2008-05-19T02:41:25Z")

</div>

[QUOTE=audiohominis;2327949]Alright then, is there actually a way to change the position of the loaded PIXEL DATA and not that of the movie clip (any retard knows of that solution) 'cause of the billions of posts that touch on this subject, not one actually discusses how to do that. Is it actually possible?[/QUOTE]

:huh: Ummmmmmmm…

Well you didn’t know even with the billions of posts, so are you retard # 1 then ? 😉

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 19, 2008, 12:23pm UTC](https://forum.kirupa.com/t/cs3-as2-positioning-loaded-image-after-loadmovie/260684/9 "2008-05-19T12:23:20Z")

</div>

If you want to get help, calling people retards aint the way.

no, you cant move the pixel data, unless you create a bitmapdata object and read the movieclips pixeldata and then shift it.

however, why would you need to move pixel data in that sense? You can alway do something like;

this.createEmptyMovieClip(“mainholder”,5);  
mainholder.createEmptyMovieClip(“subholder”,5);  
mainholder.subholder.\_x = 5;

moviecliploader.loadClip(url,mainholder.subholder);

see what I mean?
