Controlling position of loaded movie within a level

Hi guys
I am trying to control the position of an external swf file,
which has been loaded in using onload, but want to know is it
possible to control the X and Y position of the loaded swf -
possibly without having to use a container empty movie clip to load
into.
Many thanks!

cool thank u so much! I've tried to change the X and Y on the
code that is attached to the frame, but its still loading in in the
same place. Take it its here that you set the positions? whats the
100 value that is attached to the button?

Similar Messages

  • How to position a flash movie within a web page?

    Hi guys.
    I have a flash movie that is going to be loaded within
    another flash movie via an xml list.
    How can I set the position to load the inserted movie to the
    center of the page?
    At the moment it loads in the top left hand corner.

    Hi there.
    Thanks for replying.
    the website in question is www,ridethespiral.net and if you
    click on pilot map you will see the error.
    The main (Background) flash file is from a template site so I
    didn't write the code.
    But I think this is it.
    //Function used to load external SWF files and call the
    loader MC -------------------------------------------
    function loadMovieClip (externalTarget:String,
    targetRoot:MovieClip) {
    var mcLoader:MovieClipLoader = new MovieClipLoader ();
    var listenerLoad:Object = new Object ();
    listenerLoad.onLoadStart = function (target:MovieClip) {
    loader._visible = true;
    ZigoEngine.doTween (loader,'_alpha',100,0.5,"easeOutExpo");
    //Loading Progress
    listenerLoad.onLoadProgress = function (target:MovieClip,
    bytesLoaded:Number, bytesTotal:Number):Void {
    percent = Math.round (bytesLoaded / bytesTotal * 100);
    loader.percentTxt.text = percent + "%";
    //On Load Complete
    listenerLoad.onLoadComplete = function
    (target:MovieClip):Void {
    ZigoEngine.doTween
    (loader,'_alpha',0,0.5,"easeOutExpo",0,function () {
    loader._visible = false;
    ZigoEngine.doTween
    (content_container,'_alpha',100,0.5,"easeOutExpo",0,function () {
    content_blocker._visible = false;
    mcLoader.addListener (listenerLoad);
    mcLoader.loadClip (externalTarget,targetRoot);

  • Loading movie in new level from variable

    What I'm trying to do is load a movie in another level wich
    is defined by a variable (i)
    On level 0 there is this piece of code
    i = 10;
    loadMovie("Home.swf", 10); (I've entered 10 instead of i
    because otherwise I wouldn't get anything at all)
    Now every time I go to another 'chapter' it has to load a
    movie into the next level
    From Home.swf I click the button to the next chapter wich
    contains:
    on (release) {
    unloadMovie(_level0.i)
    i++
    loadMovie("chapter01.swf", _level0.i);
    This obviously doesn't work otherwise I wouldn't be posting
    here :p This whole thing does absolutely nothing :s
    Anyone any idea?
    Thanks in advance

    ur code works for me only if i use loadMovieNum instead of
    loadMovie......if u r using levels to load movie then use
    loadMovieNum and unloadMovieNum.....u use loadMovie when u ve to
    load a movie on a movieClip and loadMovieNum when u want to load on
    some level..try this m sure it ll help u

  • Positioning External Load movies

    Hi,
    I have made a flash player that loads in two external flash movies this is all now workign fine with a little extra help, however the problem i have now is that when the movies load in they both show in different places, for example the external movie called new_products loads perfectly in places, for example one of the movies loads into place where i want it to but the second loads in to position starting at the top left.
    When i add x, y for the loader it affects them both, but they still originate from differnt start positions.
    The loader code is below:
    var fl_Loader:Loader = new Loader();
    addChild(fl_Loader);
    fl_Loader.x=10; // use your X position here
    fl_Loader.y=10; // use your Y position here
    new_products.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
    special_offers.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
    function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
        var url:String = event.currentTarget.name+".swf";
        fl_Loader.load(new URLRequest(url));
    And the link to see the flash is here:  http://www.pestcontrolonline.com/main_flash/main_flash.html
    Any suggestions would be much appreciated

    the following:
    fl_Loader.x=10; // use your X position here
    fl_Loader.y=10; // use your Y position here
    assigns your loader to 10,10.
    if you want it elsewhere, use numbers different from 10 and 10.

  • How do I control transparency of loaded movie?

    I have used a loader to play a swf, and I've managed to scale it like I want it - now I would like for it to fade in and out. How do i do that? Below is the as3 script I am using:
    var loader:Loader=new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,f);
    loader.load(new URLRequest("BldgBanner_r3an.swf"));
    addChild(loader);
    function f(e:Event):void{
    loader.scaleX=.80;
    loader.scaleY=.80;

    First set the alpha of the Loader to 0.  Then use tweening code to manage the fading after the loading is complete.  If you aren't familiar with actionscript tweening, you can decomplicate getting started by just using the built-in Tween class  for starters (see the help docs).  When you have a comfort level working with tweening code, or if you are familiar with installing new classes and utilizing them, then you might consider moving on to third party tweening classes such as TweenMax/Lite... reportedly much better performing classes than the Tween class.

  • Controlling parent movie from a loaded movie

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3264494197_595630
    Content-type: text/plain;
    charset="US-ASCII"
    Content-transfer-encoding: 7bit
    Hi!
    I have a swf file which I call "Stage" and it contains 3
    scenes.
    In scene 1 of Stage, I have another swf- "Info1." loaded on
    level 10. I know
    how to get Info1 to unload and load Info2 but what I am
    trying to accomplish
    is when I click on Info1, it loads Info2 and it also go to
    Scene 2 of Stage.
    Is there anyway I can do this?
    I appreciate any input.
    Thank you.
    K.
    --B_3264494197_595630
    Content-type: text/html;
    charset="US-ASCII"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>Controlling parent movie from a loaded
    movie</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Hi!<BR>
    <BR>
    I have a swf file which I call &quot;Stage&quot; and
    it contains 3 scenes. =
    <BR>
    <BR>
    In scene 1 of Stage, I have another swf-
    &quot;Info1.&quot; loaded on level=
    10. I know how to get Info1 to unload and load Info2 but
    what I am trying t=
    o accomplish is when I click on Info1, it loads Info2 and it
    also go to Scen=
    e 2 of Stage. Is there anyway I can do this? <BR>
    <BR>
    I appreciate any input. <BR>
    <BR>
    Thank you.<BR>
    <BR>
    K. </SPAN></FONT>
    </BODY>
    </HTML>
    --B_3264494197_595630--

    Never mind - I was doing something very stupid and wasn't
    calling the function as a method of a movie clip. I was simply
    calling checkTarget(event) rather than
    event.currentTarget.checkTarget(event); which seems to work.

  • Controlling main timeline from loaded movie

    I have loaded an external movie onto the main movie in a
    movie clip called "mainholder" - In the main timeline on the main
    movie there is a "stop" command on frame 1. From the loaded movie,
    I want to control the main timeline and tell it to go to frame 2.
    Can someone tell me the actionscripting to do this, I have tried
    several commands and getting frustrated. ;-)
    Thanks

    movies are loaded into levels. The main movie is always
    considered level0 a.k.a _root in the AS. When you load a movie into
    another, the main movie is also considered the parent of that
    loaded movie a.k.a. this._parent in AS where this refers to the
    loaded movie. If you want something in the loaded movie to control
    the main timeline you could call it like this...
    _root.gotoAndStop(2); or _root.gotoAndPlay(2); depending on
    what you want.
    but because of the parent/child relationship, it can also be
    done like this....
    this._parent.gotoAndStop(2); or this._parent.gotoAndPlay(2)
    Although the first method is less to remember, the second
    method proves the most friendly and re-usable. Let me explain...
    Say that you did something like this....
    [MAIN MOVIE]
    [LOADED MOVIE]
    {Loaded Movie with buttons to control LOADED MOVIE}
    Your main movie loads a movie and when this loaded movie
    reaches it's 10th frame, it loads another movie where the buttons
    reside for controlling that clip. If you used _root in the button
    movie, it would cause the main movie (_root) to be called and not
    the LOADED MOVIE as you had intended during its design prior to
    trying to make this new main movie (and it would work as intended
    if you opened the LOADED MOVIE's fla file and exported). If you use
    this._parent in the button movie, it will always make it's calls to
    the LOADED MOVIE's timeline and not the main clips timeline.
    Sorry if this confuses you but it's important to
    understand.

  • Controll the ROOT timeline from externally loaded movie clip?

    does anyone know how to controll the root timeline from an
    externally loaded movie clip?
    I have loaded a movie clip, which has buttons on it that I
    would like to controll the main original website timeline with.
    something like this.parent.parent?
    thanks a lot
    harky

    feedmeapples <[email protected]> wrote:
    > does anyone know how to controll the root timeline from
    an externally
    > loaded movie clip?
    >
    > I have loaded a movie clip, which has buttons on it that
    I would like
    > to controll the main original website timeline with.
    >
    > something like this.parent.parent?
    _root.doStuff;
    Freundliche Grüße,
    Franz Marksteiner

  • Control loaded movie with actionscript

    Is it possible to get a button in my main movie to effect a
    loaded movie. I need to make one element inside a loaded swf become
    transparent. What would the code for that look like?

    lets say you loaded your SWF into holder_mc and the the
    element is inside another movie clip in the SWF named your_mc and
    the actual element is name element_mc
    yourbtn.onRelease = function(){
    holder_mc.your_mc.element_mc._alpha = 0;
    }

  • Controlling a Movie within a Movie

    Hi everyone,
    I have a captivate movie (movie A) into which I would like to
    insert another animation (movie B) with the Insert > Animation
    command. This works fine. However, I would like the playback
    control of movie A to also control the playback of movie B. Is this
    possible? Othewise, I would have to have two playback controls
    which is very confusing for the user. I have seen a Captivate
    example where this seems to function correctly, but I cannot figure
    out how it was done.
    Thanks,
    Jesse

    Hi Jesse
    Can you tell us where you saw the movie you did? To my
    knowledge, there is no way to do this. At least, not using
    Captivate without bringing Flash or Swish into the picture.
    Cheers... Rick

  • Hotspots in a loaded movie not referencing correctly

    My main movie uses an onResize function to reposition movie
    clips relative to stage H & W, a movie loaded into level 1
    contains the hotspots that aren't registering properly.
    CODE IN MAIN MOVIE:
    Stage.scaleMode = "noScale";
    Stage.align = "TL";
    ///////////REPOSITION ELEMENTS WHEN STAGE IS
    RESIZED////////////
    this.onResize();
    function onResize() {
    newPosition();
    Stage.addListener(this);
    function newPosition() {
    stageH = Stage.height;
    stageW = Stage.width;
    bkgrnd_mc._width = stageW;
    bkgrnd_mc._height = stageH;
    main_mc._x = (stageW- main_mc._width)/2;
    main_mc._y = (stageH- main_mc._height)/2;
    //loaded movie- all hotspots are inside this MC:
    _level1.temp_mc._x = (stageW-_level1.temp_mc._width)/2;
    _level1.temp_mc._y = ((stageH-_level1.temp_mc._height)/2);
    on loading a movie into level 1 – I can see that the
    hotspots contained within it are visually repositioned when browser
    resized (hotspots all inside ‘_level1.temp_mc’) but the
    x & y coordinates referenced during hitTest remain those of the
    original loaded movie – ignoring the fact it looks as though
    it has been physically repositioned!
    Hit test code placed inside the loaded movie (in
    ‘temp_mc’) uses shapeflag method to test hits, eg:
    //display readings:
    _level1.temp_mc.reader_mc.onPress = function() {
    this.startDrag();
    _level1.temp_mc.reader_mc.onRelease = function() {
    this.stopDrag();
    if
    (_level1.temp_mc.hotspot1_mc.hitTest(_level1.temp_mc.reader_mc._x,
    _level1.temp_mc.reader_mc._y, true) {
    _level1.temp_mc.temp_txt.text = " hotspot1";
    else {
    _level1.temp_mc.temp_txt.text = "Nothing detected";
    Resize function also called in first frame pf loaded movie:
    _level0.onResize();
    Any help gratefully received, thanks in advance.

    I think I have the concept, but I can't figure out how
    exactly to reference this variable.
    basically, the variable is '_root.newsMov.myData.newsVar'
    which works fine when i load the movie in firefox by itself.
    The problem comes when I load the movie via the index movie.
    If the new movie with the loadvars is loaded into level 9,
    how do I reference it?
    _level9.newsMov.myData.newsVar doesn't seem to work... any
    other ideas?
    Thanks to all who have helped so far

  • JSlider or similar for controlling position in sound files help please.

    You know how winamp, wm player , etc, and JMStudio all have a "slider" bar to control position, along with a "numeric readout" of the current position.
    Fairly new to Java, but know this isn't a difficult thing to do, just haven't found out how to do it.
    Do not care if it is with JavaSound API or JMF, either is fine, just learning.
    Have read up on Sliders at:
    http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html#labels
    But do not understand how to implement it with Audio file usage.
    My goal as a new programmer is to create a simple audio playing Applet:
    For a GREAT idea on what it will basically do check out:
    JMStudio:
    http://java.sun.com/products/java-media/jmf/2.1.1/jmstudio/jmstudio.html
    My goals are to have:
    Applet
    GUI with: Pause/Play button and a SLIDER to control position, just like described.
    Have it load and play an audio file when a link is clicked on using the PARAM tag from html
    I know about the open source/commercial products,,,, but I'm trying to learn, and those are too in depth to try and learn from right now, trying to take baby steps, and having difficulty finding anything beyond play()
    loop() and stop()
    searched google, groups, yahoo with various phrases.
    Thank you!

    You have to use a JSlider and combine its events with the setMediaTime method of the player.

  • Loading  facts at multiple levels

    Hi
    I have a cube with six dimensions. For one of those six dimensions I get data at all levels so what I want to do is load data at all levels and choose no aggregation for that particular dimension. I need levels in that dimension because I have other cubes in same AW for which I get only leaf level data for all dimensions. How can I load data at all levels for a given dimension?
    olap version: 11.2.0.3
    Thanks
    Dileep.

    In AWM you should be able to drag the dimension key column from the fact table to multiple levels of the hierarchy.
    At the XML level you should see elements in the cube map like this:
    <CubeDimensionalityMap
      Name="MY_DIM"
      Dimensionality="MY_DIM"
      MappedDimension="MY_DIM.MY_HIER.LEAF_LEVEL"
      Expression="MY_FACT.MY_DIM_COLUMN">
    </CubeDimensionalityMap>The MappedDimension attribute instructs the server to load data at the LEAF_LEVEL only. To get it to load at all levels you can simply delete the MappedDimension line and recreate the cube. If you then look in the AWM mapping screen you should see MY_FACT.MY_DIM_COLUMN mapped to all levels within MY_DIM.MY_HIER.
    There are a few cases where this will not work, so be warned! Here are some that I can think of.
    (1) If you have an MV on the cube
    (2) You are partitioning by the dimension
    (3) The expression for the CubeDimensionalityMap comes from the dimension table.
    Case (3) sometimes happens because users map to a dimension table column instead of to a fact table column wwhen they are different sides of the table join. For example if the table join condition is "MY_FACT.MY_DIM_COLUMN = MY_DIM_TABLE.KEY_COLUMN" then some people map to the expression MY_DIM_TABLE.KEY_COLUMN instead of to MY_FACT.MY_DIM_COLUMN. If this is true, then you can just change the expression to point to the fact column. A legitimate case of (3) happens where the fact table contains data at a lower level (e.g. DAY) than what is loaded into the AW (e.g. MONTH). A solution there is to create a VIEW that does the correct join and then map the cube to the VIEW.

  • Stopping Audio in movie within movie..?

    hello,
    If I create a captivate movie called XYZ, (series of slides,
    and/or full motion capture) add narration to it, publish it to swf
    format, and then create a new captivate movie called ABC which uses
    that swf on one of it's slides (i.e. a movie within a movie), how
    do I create buttons in ABC which will stop the audio of XYZ in case
    the learner wants to go to the next slide before XYZ finishes???
    Also, why does a wav file created in Audacity, and
    normalized, sound distorted in captivate? Is there a way around it,
    besides lowering the volume of my Audacity wav file?
    thank you
    Mike

    Mike said . . .
    quote:
    ... how do I create buttons in ABC which will stop the audio of
    XYZ?
    You don't. You create controls for movie XYZ
    within movie XYZ.
    quote:
    ... why does a wav file created in Audacity, and normalized,
    sound distorted in captivate?
    It doesn't - at least on all machines. Perhaps
    you are seeing the problem because of the file-format you are
    saving to (in Audacity). Can you describe what you mean by "sound
    distorted"? Your reference to lowering the volume indicates it is
    not necessarily being distorted, but being amplified excessively
    after import to Captivate . . .
    If that is the case, it seems to me that the simplest
    solution is exactly what you already suggested - lower the
    amplitude in Audacity . . .

  • Close popup window from loaded movie

    I have an html link which launches a flash movie into a
    separate html window. The flash movie then loads another movie into
    level 10. from this level, I am trying to close the flash movie and
    its associated html page using the code:-
    javascript:window.close();
    This doesn't work. It closes level 10, but leaves level 0 and
    the html page intact. How can I resolve it?
    Any help would be very much appreciated.

    I have carried out a simple test using the above code to
    close a single swf with no loaded movies. This works. However, when
    I try to load a movie into a higher level and close the whole movie
    together with its html page from there, it doesn't work.
    Thanks

Maybe you are looking for