Bottom-Right Reg. points for loadMovies? Help?

  • Head In A Pan
  • Newbie
  • Newbie
  • User avatar
  • Joined: Jun 12, 2007
  • Posts: 13
  • Loc: Sydney
  • Status: Offline

Post June 18th, 2007, 9:09 pm

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?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 18th, 2007, 9:09 pm

  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post June 18th, 2007, 10:36 pm

post your code for the loading the "external swf"
http://shankarthapa.wordpress.com/
  • Head In A Pan
  • Newbie
  • Newbie
  • User avatar
  • Joined: Jun 12, 2007
  • Posts: 13
  • Loc: Sydney
  • Status: Offline

Post June 18th, 2007, 11:02 pm

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
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post June 18th, 2007, 11:08 pm

may be u can use the _y & _x script to define the position of that external loaded movie clip.
http://shankarthapa.wordpress.com/
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post June 19th, 2007, 12:29 pm

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 35 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
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.