Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specifying X & Y Position loading external clip using Level 1

Status
Not open for further replies.

thirtyottsixx

Technical User
Aug 7, 2002
27
0
0
US
Hello... I believe this would be simple for an experienced actionscripter... I myself am a newbie.

I'm loading an external .swf using levels. The problem is I can't figure out how to control where the clip shows up. A logical solution would be to load the external .swf into a clip and use the target command, but the clip is being triggered by an existing clip that is a scrolling menu. And I obviously don't want the new clip to scroll like the menu does.

If you'd like reference to what I'm talking about, you can download a zip here:
If you open the content.fla, and click on Red Tail... you'll see the clip I'm trying to control the location of.

Thank you for any help in advance.
 
The easiest way to position an external movie when loading it on another level, is to simply pre-set it's position within the "to be loaded" itself, by adding the following on it's first frame:

this._x = 150; // offset from top-left corner (0,0)
this._y = 250; // offset from top-left corner (0,0)

I'll have a look at your .fla. Regards,

cubalibre2.gif
 
Adding the following on the redtail.fla's first frame sort of works for me, but you can play around with numbers to position it where you want...

this._x = 275;
this._y = 25; Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top