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

Status
Not open for further replies.

btish

Programmer
Aug 7, 2001
23
US
Question for "oldnewbie" please. I ask for you because I believe yo have the closest answer.. Below is an earlier thread you answered. Here's the earlier thread:

Tek-Tips Forums AREA: Programmers/Graphics & Web Tools
FORUM: Macromedia: Flash
SUBJECT: Specifying X & Y Position loading external clip using Level

HANDLE: thirtyottsixx
POSTED ON: Apr 8

QUESTION:
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.
-------------------------------------------------------------------

HANDLE: oldnewbie
POSTED ON: Apr 8, 2003

REPLY:
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,



-------------------------------------------------------------------

HANDLE: oldnewbie
POSTED ON: Apr 8, 2003

REPLY:
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,



-------------------------------------------------------------------

HANDLE: thirtyottsixx
POSTED ON: Apr 8, 2003

REPLY:
Thanks a ton! That's exactly what I needed!
-------------------------------------------------------------------

HANDLE: oldnewbie
POSTED ON: Apr 8, 2003

REPLY:
The rum is on me!
Cheers! Regards,


Now, my problem is the .swf I'm calling was created in "Flix" which is a program which turns .avi's and quicktime videos into .swf. So, I can't put the x y coordinates in a preexisting .fla.

I've also tried using the 'target" method of a empty clip with a named instance.

Please help 'oldnewbie'
Thanks,
B

Brandon Tisherman
Designer/Web Developer
Web Blends
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top