The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Movie into an object or with coordinates.

hi

can somebody tell me how i can do the following? i want to load a flash movie into another one. The movie i want to load has the size 165x263px. in the movie i want to have that part it sould be at a specific position (coordinates x=-82 and y=-130.9).
so, can i load the movie as filling into a rectangle or just load the movie into a layer x at the specific position? what is the action code for that?

well, i tryed that out... perhaps i dont have understood something right or something else was going wrong... i get the message:
scene=Mainsite, Layer=Holder, Frame=1: Line 1: Clip events are permitted only for movie clip instances onClipEvent(enterFrame){this._x=-82; this._y=-130.9;}

i did the following:
i started my flashsite (called SRAS HP) and the scene 1 is called "Mainsite". in this scene i have 3 layers: the first is a text (layer called text), the second is the layer where the movie should be placed (called Holder??) and a third which is the background picture (called background).

in the first frame of the "holder"layer i entered your code: onClipEvent(enterFrame){this._x=-82; this._y=-130.9;}

at the first frame of the layer "text" i entered your code: loadMovie("second.swf", "holder");

first it was still not working. as i looked at your action script, there are properties at the bottom. but if i create an action script there are no properties. then i found out, that in the instances i have to give also the name holder. then it worked.
i also discovered a easier way for my idea (to load it randomly) now.