Bottom-Right Reg. points for loadMovies? Help?

  • Head In A Pan
  • Newbie
  • Newbie
  • User avatar
  • Posts: 13
  • Loc: Sydney

Post 3+ Months Ago

Hello!

I've searched high & low & tested numerous methods - but no cigar for me so far...
I'm having trouble with the following problem:

I have a main.swf which uses the loadMovie method to bring in external swfs.

I want the movies to all load in aligned to the bottom right.
So the very bottom right corner of my extrnal swf lines up to the very bottom right of my main.swf.

Is there an effective way?
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Posts: 275

Post 3+ Months Ago

post your code for the loading the "external swf"
  • Head In A Pan
  • Newbie
  • Newbie
  • User avatar
  • Posts: 13
  • Loc: Sydney

Post 3+ Months Ago

Thanks for the quick reply montyt -
But don't worry - I have come up with a quick & dirty way!

As I am using attachMovie to pull my clip (with a nested flv player) into the main stage, I merely placed my flv player's bottom right corner at the reg point (top left) inside the movie clip, the placed the empty movie clip on the bottom right of the main stage.

Does that make sense?

If it does, well, it works ok.
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Posts: 275

Post 3+ Months Ago

may be u can use the _y & _x script to define the position of that external loaded movie clip.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

assuming that both clips have a reg point in the upper left:

Code: [ Select ]
loadedClip._x = ParentClip._width - loadedClip._width;
loadedClip._y = ParentClip._height - loadedClip._height;
  1. loadedClip._x = ParentClip._width - loadedClip._width;
  2. loadedClip._y = ParentClip._height - loadedClip._height;


or assuming that your loading one clip to the main stage

Code: [ Select ]
loadedClip._x = Stage.width - loadedClip._width;
loadedClip._y = Stage.height - loadedClip._height;
  1. loadedClip._x = Stage.width - loadedClip._width;
  2. loadedClip._y = Stage.height - loadedClip._height;


would place the loaded clip aligned to the bottom right corner.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 9 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.