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.

Similar Messages

  • 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

  • How do i get an externally loaded movie clip to inherit the playhead position of the main timeline?

    Hi Flash experts, i'm hoping that someone can help me with this annoying problem.....
    I have been approached to design a configurator for a new television product. The Application will let users specify the colours of certain parts of the product and also attach addons, which then updates a cost total.
    In the main interface i have a looping animation of the product slowly rotating around 360 degrees that i rendered in 3ds max. When a user clicks a button on the interface i need to load an external movieclip on top of the main animation so it looks as though a certain part has changed colour, this i have acheived. The problem is that when i load the external clip over the original, the loaded clip starts playing from frame 1 and i need it to inherit the playhead position of the main animation so the two layered pieces look as though they are rotating as one. I'm sure this must be possible, unless i need to approach the problem in a different way?
    I hope this makes sense,
    Any help on this subject would be hugely appreciated.
    Many Thanks
    Matt

    Hi again Ned,
    I've almost got it i think, my code now looks like this....
    on (release) {
             var loader:MovieClipLoader = new MovieClipLoader();
             loader.loadClip("Bezel/Bezel_Red/Bezel_Red.swf",Empty_MC);
             var loadListener:Object = new Object();
             loader.addListener(loadListener);
             loadListener.onLoadComplete = function() {
             Empty_MC.gotoAndPlay(_root._currentframe);
    This code loads the external clip fine and i know the onLoadComplete listener is working because if i change the last line to: Empty_MC.gotoAndStop(1);
    it works. I think its just that last line: Empty_MC.gotoAndPlay(_root._currentframe); that is causing the problem?
    Many Thanks for all your help, it is greatly appreciated
    Matt

  • 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?

  • Seamless transitions between externally loaded movie clips

    I'm building a flash player that loads various movie clips in succession  depending on user input. The player should continue to play seamlessly  when one clip ends and another starts playing, however there is always a  slight noticeable delay between the COMPLETE event for one clip and the  actual playing of the next clip. I am using the FLVPlayback component to  load the video clips, with successive clips loaded in different players in the component.
    I've tried playing the next video a short duration before the current video finishes by adding a cue point just before the end of the currently running clip (about 200 - 300 ms before the end). This improves matters somewhat, but it is not a reliable method as the timings are different for different browsers and computer specs.
    I was wondering if anyone here has any experience with smooth  transitions between external video clips and could suggest possible  optimizations I could use to improve the transitions.

    Thank you for replying.
    The video clips basically continues the same shot only with different directions, so I can't fade out between transitions. It needs to appear as though it's playing a single video clip in that respect (a one-shot scene).
    Another major issue is that there is music playing for each video which should continue playing without interuptions. Even a small gap is noticeable with audio. I thought about separating the audio and video streams but that could mean they could go out of sync as the more transitions occur.

  • Help with externally loaded movie

    EXAMPLE
    OF MY PROBLEM
    Im kinda bad at explaining such detailed problems, but i hope
    this comes out clearly.
    I have two movies: a Photo-Album swf, and an Image swf.
    My Photo-Album swf is very basic, and uses the loadMovie
    action to load the Image swf.
    My Image swf was created at 346x260. The Image swf only
    contains my image, which i turned into a button that is small to
    begin with, but when rolled over becomes very large (1024x768).
    The problem ive run into is that when the image becomes large
    it leaves its 346x260 boarders, and enters into the Photo-Album's
    space.
    What i eventually want to have happen is to be able to drag
    the large 1024x768 image inside of the 346x260 frame.
    so my final question is:
    How do i keep this image inside its boarders when it becomes
    larger???
    thx for any help
    -Ash-

    See if this helps
    http://www.fcpbook.com/MotionControl_inFCE.html
    Punctuation would help us.

  • Loaded movie loses functionality

    I have a movie called pageturn.swf and is loaded in this
    order....................First my main timeline is loaded , which
    is an animation.....at the end of the animation, my first movie is
    loaded with "loadMovie("movie2.swf"); at the end of this movie my
    third movie is loaded. ....In my third movie I have three
    navigation points and on one point when a button is click it takes
    the user to the the frame label and loads my page turn.swf
    movie........so.......I've gone from
    Main timeline
    ->movie1->movie2->movie3->pageturn.swf.
    I have a btn that resides in pageturn.swf that takes the
    navigation back to movie 3 or the "start" frame label. The
    pageturn.swf works the first time BUT pageturn.swf doesnt work when
    I try and open it again. It works the first time, then just doesnt
    do anything, sometimes when I test export, sometimes it will work
    but just not all the time like I would want it. I tried placing the
    unloadmovie at the end of the page turn exit but it does not fix
    the problem. below is what I have when it exits
    this.unloadMovie();
    _level0.lines.holder.holder2.gotoAndPlay("play");
    Any ideas?

    I think the problem is the use of attachSound in an
    externally loaded movie.
    attachSound (Sound.attachSound method)
    public attachSound(id:String) : Void
    Attaches the sound specified in the id parameter to the
    specified Sound
    object. The sound must be in the library of the current SWF
    file and
    specified for export in the Linkage Properties dialog box.
    You must call
    Sound.start() to start playing the sound.
    To make sure that the sound can be controlled from any scene
    in the SWF
    file, place the sound on the main Timeline of the SWF file.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "devilmuzik" <[email protected]> wrote in message
    news:e83i28$7s4$[email protected]..
    > Hi Jan-Paul...here it is...
    > _______begin code_______
    > on (press) {
    > stopAllSounds();
    > mySound = new Sound();
    > mySound.attachSound("pl");
    > mySound.setVolume(100);
    > mySound.start();
    > }
    > _______end code_______
    > I've tried declaring the sound var everywhere...the
    loader clip's main
    > timeline...I even tried declaring it as a
    _global...still no joy...
    > It is clear that this is something to do with how I'm
    handling the Sound
    > object, but still don't get why
    myLoader.content._lockroot=true didnt
    > work...
    > Remember...the player works when called by itself...it
    just fails to play
    > in
    > the loader...
    > Your continues help is much appreciated...
    >
    >

  • Load movie clip

    Whenever I load a movie clip into the target and test my
    movie, the loaded movie clip always loads in the bottom right. I
    think this is a registration error but I am not sure how to fix it.
    My target is 835px by 635px, same as the movie clip I want to load.
    Any help would be much appreciated.

    Position the blank movie clip in the top left corner where
    you want to have
    the external movie clip loaded.
    Note that if the external movie clip has dynamic content
    creation via AS or
    different content size on higher numbered frames you may find
    it will show
    content to the left and top of the blank movie clip because
    initial size is
    not detectable. In particular if you are loading Flash movie
    that you
    created that you used a third party tool such as xCelsius. In
    this case you
    need to MovieClipLoader and once the onLoadInit event fires,
    manually
    position the blank movie clip which is passed as an argument
    for coding
    convenience.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "northstar_86" <[email protected]> wrote in
    message
    news:e27cer$5i2$[email protected]..
    Whenever I load a movie clip into the target and test my
    movie, the loaded
    movie clip always loads in the bottom right. I think this is
    a registration
    error but I am not sure how to fix it. My target is 835px by
    635px, same as
    the
    movie clip I want to load. Any help would be much
    appreciated.

  • Please Help - Get an external loaded file to dissapear

    How do I position a .swf or .jpg I load through a
    movieClipLoader Instance? Als, how do I get the loaded movie to
    dissapear once I have moved on on my timeline, and how do I load
    different .swfs on different positions on my timeline? This is the
    code I have so far.
    Also: How do I size an external loaded .jpg or .swf?
    var holder_mc = this.createEmptyMovieClip("holder_mc",
    this.getNextHighestDepth());
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    myListener.onLoadProgress = function(target:MovieClip,
    bytesLoaded:Number, bytesTotal:Number) {
    /* add some preloading things here
    EX:*/
    totalPercent = Math.round(bytesLoaded/bytesTotal*100);
    my_txt.text = totalPercent + "%";
    myListener.onLoadComplete = function(target:MovieClip){
    my_txt._visible = false;
    myListener.onLoadInit = function(target:MovieClip) {
    trace("initted!");
    removeListener(myListener);
    mcLoader.loadClip("pathtoSWF.swf", holder_mc);

    Thank you. Found the answers for the x&y question and the
    size of .jpgs question. Is it possible to help me with this two?
    How do I get the loaded movie to dissapear once I have moved on on
    my timeline, and how do I load different .swfs on different
    positions on my timeline? I am sure question one will answer
    question two. Thank you so much, do appreciate it!

  • Load movie with scrollbars

    Is it possible to load a Flash movie into an area that is
    controllled by a scrollbar?
    eg. load a 2000x300px movie into a 300x300px space and have a
    vertical scrollbar...
    Thanks

    I'd say in your case (as described) it should not be too
    hard.
    I understand that your scrolable clip is of a fixed size.
    Evene if not for a start that would be a good asumption.
    Here' what I would do:
    Place an empty clip on stage (createEmptyMovieClip...),
    Mask it with a clip of 300 by 300
    load the desired clip (method depending on flash version
    you're targeting)
    and make a scollbar clip that positions the loaded clip (by
    the name of the earlier created empty clip) acording to the
    position of the slider.
    Tricky part would be determing when the clip has finished
    loading if you target players before 7. Also it might be (I'm not
    sure right now, would have to check it out) that you have to
    re-mask the clip once the external one has finished loading.
    I don't kow If that helps you, but it might provide a general
    idea.
    If you need more hints, I'll try to be of help.

  • 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);

  • Using the DateField in an Externally loaded SWF

    Hello,
    I have been having major trouble trying to get a basic PHP
    contact form to work within an externally loaded SWF file inside of
    a parent SWF. When I test the movie on its own it seems to work
    fine (example: I'm able to select a date from the DateField
    component). However, when I open up the parent SWF file and call
    the external SWF file with the form the DateField is basically
    unusable (example: when you click on it nothing happens, no
    calendar pops up to select a date).
    I have no ActionScript on it yet, simply because I figure I
    need it to work before I tell it what to do with the PHP file. The
    instance name on the DateField is "theDate". Any help is very much
    appreciated. Thank you.
    Also, I have just successfully used the contact form on the
    web. But, the only user interface components I am able to edit are
    the input text boxes, not the DateField or the ComboBox I have in
    it as well. This is very odd, I was not aware that anything special
    had to be done using these UI components within an external file.
    Elijah

    Hello 2m,
    Maybe if you were to see it, it may help you out a bit. If
    you
    click
    here for the external file you will see that the components are
    working. However, if you
    click
    here for the parent file and then click on "Meetings" on the
    top menu you will see that they do not work at all. However, if
    someone were to hit the "send" button, the PHP code would actually
    interact with the form. Let me know if that helps at all. Thanks
    again for replying.
    Elijah

  • UAG External Load Balancing and ISATAP

    Hi Experts,
    I am deploying a UAG Array to be used for Direct Access. The Array will consist of two servers and use an F5 External Load Balancer. In addition and in similarity
    to 90% of the other corporate intranets out there, the internal network is IPv4 with no IPv6 transition technologies deployed. The article
    http://blogs.technet.com/b/edgeaccessblog/archive/2010/05/17/configuring-an-external-load-balanced-uag-directaccess-array-for-an-ipv4-only-network.aspx
    isgreat but to my mind has no information to support ‘Manage Out’ and throws up a number of questions: (Note that I want to enable ‘Manage Out’ capability and as far as I am aware that is achieved by using ISATAP)
    The article describes that you have to generate and configure your own IPv6 address for the internal interface when using an external load balancer. Does anyone know why? Why not let UAG assign
    the addresses as per the default?
    UAG by default configures itself as an ISATAP router when there is no IPv6 infrastructure deployed on the internal network
    to facilitate ‘manage out’. This still applies when using Windows NLB. Why does this no longer apply when using an external load balancer? I.e. Why does UAG no longer configure itself as a ISATAP router?
    In relation to question 2; you therefore need to move your ISATAP router to a different device (http://technet.microsoft.com/en-us/library/ee690463.aspx),
    in doing so how do you configure the ISATAP environment to traverse the UAG servers without some sort of load balancing on the internal interfaces? I’m assuming that you can only tell the ISATAP router to use the one default gateway i.e. either one UAG server
    or the other. This means that you would have all your outbound internally initiated traffic going via one server only – not very good for performance or fault tolerance.
    In relation to question 3; I thought therefore that NLB could be used on the internal interface to solve the above problem, except that I have read that you can’t mix and match external load
    balancing and NLB even though they are on separate networks due to bidirectional affinity. What does this actually mean and why does this not occur when load balancing is mixed in this manor?
    Therefore when you wish to use external load balancers, do you:
    A) Except the fact that you can’t use UAG as a ISATAP router and you do indeed need two devices
    and deploy it as described here (http://technet.microsoft.com/en-us/library/ee690463.aspx)
    or
    B) Except the fact that that you can’t use UAG as a ISATAP router and any internal outbound
    traffic travels via the one UAG server only.
    Apologies for the long post, but I wanted to make sure that I get my thoughts down concisely so that it may help others who come up with the same questions
    J
    Thanks for your time everyone
    Gary

    I am also facing the same issue.  I have UAG1 and UAG2, which are in an array, and externally load balanced.  I've configured an external ISATAP router according to: 
    http://www.windowsnetworking.com/articles_tutorials/Configuring-ISATAP-Router-Windows-Server-2008-R2-Part2.html.  However, as mentioned by others, the ISATAP router has to have either UAG1 or UAG2 as the next hop for IP-HTTPS traffic.  As
    a result, communication between the DirectAccess client and management devices will only work if the client is tunneling through the same UAG server that the ISATAP router has as the next hop for the IP-HTTPS prefix.  From what I can tell, my configuration
    is supported, but I can't figure out how to have the ISATAP router determine which UAG server a client is tunneling through.  I thought about having two separate IP-HTTPS prefixes for each UAG server, but this would get overwritten when activating
    the DirectAccess configuration.  Maybe some type of internal load balancing?

  • Externally loaded FLV

    In my SWF fie, I have an externally loaded FLV file.
    I now want to add another FLV that will load and play
    automatically when the first one is finished.
    I actually want the SWF to jump to a new scene when the first
    movie is done.
    How can I do that/ what the actionscript?
    Steven

    Hey Steven,
    I am not very sure but just giving a shot answering it...
    You can use FLVPlayback.complete event to detect the
    comepletion of first flv and set the path of other flv on complete.
    Something like this:
    import mx.video.*;
    my_FLVPlybk.contentPath = "
    http://www.helpexamples.com/flash/video/clouds.flv";
    var listenerObject:Object = new Object();
    // listen for complete event; play new FLV
    listenerObject.complete = function(eventObject:Object):Void {
    if (my_FLVPlybk.contentPath == "
    http://www.helpexamples.com/flash/video/clouds.flv")
    my_FLVPlybk.play("
    http://www.helpexamples.com/flash/video/water.flv");
    my_FLVPlybk.addEventListener("complete", listenerObject);
    Hope that works...

  • 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.

Maybe you are looking for

  • Problem with Jtree and a checkbox

    Hello, I have a problem with my tree implementation. I create a tree and i want to add a checkbox in each node. this is my code : DefaultMutableTreeNode root; root = new DefaultMutableTreeNode(new JCheckBox()); DefaultTreeModel model = new DefaultTre

  • Process flow errors while deploying

    Hi all, The following error occurs while deploying a simple process: RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link CF.US.ORACLE.COM@WB_LK_F_IMP_BB. Please check that "EXECUTE ANY PROCEDURE" privileg

  • How to distinguish the User-Defined-Function from Oracle Build-In function

    Hi Friends, I could get the function list form all_objects table by the SQL: select * from all_objects where object_type = 'FUNCTION' but there is no column in all_objects specify the function is build-in or user-defined. But I found in SQL Server th

  • XY graph - Cursor List

    Hi, i have a problem with the display of the cursor text. I am using the property node cursor-list to draw the lines including also the text of the cursor. Attached is a screenshot how I build this property. Unfortunately the text is invisible and I

  • Voip in Nokia C7 00

    Did Nokia C7-00 support outgoing internet calls?