Positioning a level?

Posted on 2007-10-09
Medium Priority
Last Modified: 2010-04-03
Hello, does anyone know if you can postion a level, rather than a movieclip.

Something like:

on (release) {
      loadMovie ("samples/ABB_web_portal.swf" ,"_level100");
setProperty (_level100, _x, +(250));
setProperty (_level100, _y, +(250));

Question by:Sideas
LVL 18

Accepted Solution

Antonio Estrada earned 1500 total points
ID: 20043210
I'd recommend a different approach.

Create a new MovieClip (Ctrl+F8), give it a name like "loader" and same linkage identifier. Leave it empty. Then, you can either drag it into the main timeline (it's what I always do when I need a loader) or add it with ActionScript like this:


If you placed the MovieClip in the timeline, you'll need to select it (you'll see a little white dot with a cross when it's selected) and add an instance name on the properties panel (name it "loader").

Now, with the famous loader you can load any external file to any x or y position you want, and of course you can move it around when you load it... you could do this:

on(release) {
    Temp = _parent.loader; // or _parent._parent if it's too nested. If all fails, you can as well use _root.loader

Good Luck.

LVL 23

Expert Comment

ID: 20045640
no you can't position a  level.


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question