Positioning a level?

Posted on 2007-10-09
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

    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

    no you can't position a  level.


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    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 …
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    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 how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now