external control with SWF MC?

Hi all

OK, let's say I have two SWF files.

In 'SWF 1,' I have a clip.

The music video for 'SWF 1' load externally "2" SWF file.

Is it possible for me to have something (like a button) inside of the "SWF external 2" with the ability to control something (like a music video) in "SWF 1?

If yes what would like the path to that mc look?

Thank you

If both are as2 SWF files, you can reference the movieclip target load in swf1 (loading swf) on the main timeline of swf2 (the loaded swf file) to:

This.

so, if this target load lies on the main timeline of swf1, you can reference the main scenario for swf1 using:

This ._parent.

and if there is a movieclip on the main timeline of swf1 mc, you can reference it using the:

This._parent. MC1.

etc.

Tags: Adobe Animate

Similar Questions

  • external communication with swf?

    Hello

    IM loading in intro2swf with the following

    btn_cont2_mc. Visible = false;

    addChildAt (intro_container_mc, 0);
    intro_container_mc.x = 400;
    intro_container_mc.y =-300;

    Stop();

    introvisit();

    function introvisit (): void {}

    If (introlevel == 2) {}
    lvlLoader2 = new Loader();                     Create a new instance of the Loader class
    Url2 = new URLRequest ("intro2.swf");
    lvlLoader2.load (url2); load the SWF file
    intro_container_mc. AddChild (lvlLoader2);

    now the swf file loads correctly and in the right place, but I have a btn on the scene I want to hide, and at a certain point in my loaded swf I want to display the button using a frame event enter


    intro_container_mc.addEventListener (Event.ENTER_FRAME, added0);

    function added0(event:Event):void {}

    If (intro_container_mc.currentFrame == 1) {}

    btn_cont2_mc. Visible = true;

    MovieClip (this.parent).e_mc.cap_talk_txt.text = "Stormy."

    }

    I need to do it this way so that I can change the text at various points in the history of the swf file I can change the text

    but whenever I have it try, the button does not appear or change the text, with problems of communication with swf, I tried

    intro_container_mc.addEventListener (Event.ENTER_FRAME, added0);

    intro_container_mc.lvlLoader2.addEventListener (Event.ENTER_FRAME, added0);

    intro_container_mc.lvlLoader2.storm_mc.addEventListener (Event.ENTER_FRAME, added0);

    who have no effect, the animation inside the swf file is kept in a movie clip called storm_mc

    hope you guys can help me solve this problem

    Thank you

    fonzio

    use:

    function removelistd (): void {}

    {if (Loader.stage)}

    removeChild (loader)

    btn_cont2_mc.buttonMode = false;

    btn_cont2_mc. RemoveEventListener (MouseEvent.CLICK, continuey);

    btn_cont2_mc. RemoveEventListener (MouseEvent.MOUSE_OUT, conty2Out);

    btn_cont2_mc. RemoveEventListener (MouseEvent.MOUSE_OVER, conty2Over);

    swf2Main_mc.storm_mc. RemoveEventListener (Event.ENTER_FRAME, added0);

    loader.contentLoaderInfo.removeEventListener (Event.COMPLETE, completeF);

    }

    }

    ask yourself if it is the charger should I put above

    tried swf2Main_mc and charger in all sorts of ways however continue to be he

    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.

    at flash.display::DisplayObjectContainer/removeChild()

    to MethodInfo - 360)

    to MethodInfo-(357)

    just need help, cleaning and then its done

    Thanks in advance

    fonzio

  • Main external control through swf SWF...

    OK, it's a difficult question for me...

    Ive understood timeline transitions and timeline based preloaders... so now I have a problem...

    I have my swf file in HAND I load all my pages externally (swf files) external...

    When I click on a button (for example) my button "about us" - the transition begins...

    I have a keyframe with the following code on the frame 40 (inside a clip named 'pages' in my main SWF where are all the buttons/transitions):

    var Xpos:Number = 0;

    var Ypos:Number = 0;

    var swf:MovieClip;

    var bgloader:Loader = new Loader();

    var bgURL

    {if(page==1)}

    bgURL = new URLRequest("pages/home.swf");

    }

    {if(page==2)}

    bgURL = new URLRequest("pages/about.swf");

    }

    {if(page==3)}

    bgURL = new URLRequest("pages/updates.swf");

    }

    {if(page==4)}

    bgURL = new URLRequest("pages/contact.swf");

    }

    bgloader. Load (bgURL);

    bgloader.x = XPos;

    bgloader.y = YPos;

    bg.addChild (bgloader);

    Stop();

    now, as you can see, at the end he stops... and that's because my external swf files have timeline preload in them...

    now on 41 of my main swf frame, I created a label called 'start', I need to focus my external pages...

    ////////////////////////////////////////////

    all my external swf I have this code on the frame 2 (and this is where I'm having the problem):

    {if(framesLoaded==80)}

    MovieClip (parent) .gotoAndPlay ("start");

    }

    of other if(framesLoaded<80) {}

    gotoAndPlay (1);

    }

    now, where I have a MovieClip (parent) .gotoAndPlay ("start"); -I'm trying to target my SWFs MAIN timeline (which is within a clip on the main timeline, called 'pages').

    However, it does not work... I can't get my external swf to communicate correctly for some reason any...

    How to encode my external swf files to find out that, once loaded behind 80 on them, he needs to run my MAIN gotoAndPlay ("start") swf file?

    im hoping someone can help here...

    You won't have everything what you try to accomplish if you expect just the swf file to load before you order the main timeline to move along.  If you assign a listener to the loader, you can determine when the file is loaded and ready to run without having the file itself understand this and tell you about it.  Just add an INIT listener for your charger...

    bgloader.contentLoaderInfo.addEventListener (Event.INIT, eventHandler);

    This line of code will be your main timeline expected to call this function of eventHandler until the content of the loader (your swf) indicates that it is loaded and ready for action.

    So, everything that you could possibly need is (which means no code is necessary in your loaded swf)...

    Stop();

    var Xpos:Number = 0;

    var Ypos:Number = 0;

    var swf:MovieClip;

    var bgloader:Loader = new Loader();

    var bgURL;

    {if(page==1)}

    bgURL = new URLRequest("pages/home.swf");

    }

    {if(page==2)}

    bgURL = new URLRequest("pages/about.swf");

    }

    {if(page==3)}

    bgURL = new URLRequest("pages/updates.swf");

    }

    {if(page==4)}

    bgURL = new URLRequest("pages/contact.swf");

    }

    bgloader.contentLoaderInfo.addEventListener (Event.INIT, initHandler);

    bgloader. Load (bgURL);

    bgloader.x = XPos;

    bgloader.y = YPos;

    bg.addChild (bgloader);

    function initHandler(event:Event):void {}

    gotoAndPlay (41);

    }

    Taking a step toward what you tried, just so that the intentions of this solution are not wasted... the missing link in your attempt failed add a listener for the completion of the load that would have called the function loaderCompleteHandler...

    bgloader.contentLoaderInfo.addEventListener (Event.COMPLETE, loaderCompleteHandler);

  • Tecra S4: cannot switch automatically to an external monitor with APR 3 +.

    Hello

    I used a Tecra S4 (with Windows XP Prof.) with monitor 3 + and with an external 19 "Advanced Port Replicator. If I connect my laptop with the Port Replicator, it will automatically switch to the external display. I have to use the function "FN" to move."

    I signed up the external monitor with "use this device as the primary monitor.
    I don't have this problem with my other laptop Toshiba Tecra A3.

    Now, I think the problem is the geforce graphics card.

    Does anyone have the same problem?
    Thanks for the help and sorry for my bad English; (o)

    Hello

    It works with Tecra S4, too.

    Install new Modules of Commopn
    http://support.toshiba-tro.de/Tedd-files2/0/CMOD-en-20071119111948.zip

    Install the latest Toshiba laptop Extensions
    http://support.toshiba-tro.de/tools/Tecra/TS4/XP/TME/TME-TS4-XP-38400xp-en.zip

    Install the display device change Utility
    http://support.toshiba-tro.de/tools/Tecra/TS4/XP/DPL-change-drv/dspdevchge-TS4-XP-2500-en.zip

    Enter in Control Panel, start Extension mobile controls.
    Go to the tab 'Change of display device' and activate the Service.

    Now, it should work.

  • Have no control with the mouse on my Satallite P300-123

    I have a problem with my mouse on the laptop. When I use the mouse, the mouse is every time left right up down.
    So I have no good control with the mouse.

    Can someone help me with this probem?

    (Sorry for my English)

    Hello

    Do you use the touch pad or external mouse?
    If you use an external mouse disable touchpad by using the FN + F9 key combination, especially when you use the keyboard.

  • Qosmio X 500 - 13R: picture on external monitor with resolution 2560 x 1440 is blurred

    Hi all

    I have a computer laptop X 500 - 13R Toshiba Qosmio, although 2 years, still a great piece of hardware.

    I just bought a new monitor 27 "U2713HM which supports a resolution of 2560 x 1440.

    Computer video card notebook (GTX 460 m) supports a resolution higher than through a digital connection, so I used a HDMI cable to connect.

    Via Control Panel Nvidia, I could create a custom resolution, but the image is not clear / is blurred.
    It is readable, but it's just not everything.

    Tried with HDMI 1.4, without success.
    I volunteered to connect through Dual Link DVI cable, but the phone doesn't have a DVI connector, and I doubt the adapter will help.

    Anyone has a suggestion how to fix this problem?

    Thank you.

    I would like to share my experience using an external monitor with a HDMI cable.
    My monitor supports both HDMI and DVI port.
    First of all, I plugged my laptop on the external monitor using a HDMI cable to HDMI.
    But the fonts and the picture was not clear. I used the resolution 1920 x 1080

    Then I went to the DVI port. I plugged the laptop s HDMI port to monitor s port DVI (HDMI/DVI cable) and that solved my problem.

    I'm not quite sure the relevance of m this could be for you, but it worth the try

  • How to use two external monitors with my laptop?

    I have a new Pavilion dm4-301 d cl Entertainment PC.   My OS is Windows 7.   I'm used to using two external monitors with a docking station.   This new laptop lacks a docking station.  What should I do use two external monitors?

    Certainly not without a dock, but even with laptop HP well enough docks limit you to one of the ports on the external monitor, even if there are two on the dock. We used a device called an Atlona AT-HDPIX2 which is a USB to hdmi adapter. It provides a feature of third monitor for a laptop... use the native external port of the screen and the computer screen internal, then this device gives a third control that is fully configurable to display Windows 7 interface... clone, extend, etc.. It allows a full HD resolution and is pretty responsive for games even light.  HP does not have any true docking station for your laptop.

  • laptop connected to an external monitor with vga cable issues?

    1The votefavorite

    I use a Sony Vaio e series laptop running windows 7 Home premium 64-bit, which I always connect to an external monitor with a VGA cable.

    I put graphics options to display only on the external monitor and I would like to close the lid of the laptop. In the power settings I put it do nothing when the lid closes.

    When it is connected to the external screen I am able to look at the screen very well if the lid of the laptop is open. But whenever I close the lid, the display on the external monitor is turned off.

    I have tried everything I can think of as the use of a keyboard to toggle the display, change the plan to plug the monitor off before and after and even more, to much to list etc.

    I actually did it on my HD TV using a Hdmi cable that allows me to close the lid. But I want to use it only on my monitor that is sadly only VGA.

    I know I'm not alone here, I found many forums on the same issue, but nobody seems to have an answer. It is always with the help of a VGA cable when I find others with the same problem.

    Does anyone know where a response?

    It seems either VGA may be quite old now since the introduction of HDMI, that Microsoft has not bothered to look on this or get out an update to resolve this issue. Sorry it's just very frustrating because cannot find an answer, and I don't like the laptop overheating or wasting money on energy.

    (1) right click on your power Option icon on the taskbar

    (2) will take you to Options below

    Control Panel:

    Choose what closing the lid"this choice is the 3rd in your list of choices

    The next screen will allow you to configure your choice:

    When I close the lid:

    On battery: do nothing and

    Plugged in: Do nothing

    This will prevent your system/video to go to sleep or stopping

    Hope this helps

  • Control loaded swf on the main timeline

    Hello

    I'm working on loading external swf files for ios. I am able to load swf files and assembled visible or invisible in different settings. I have trouble controlling the swf files loaded on the main timeline. Specifically, I would like to have a button on the main timeline, that when you click on will move a swf loaded to frame 1.

    Here is a code that loads a swf file:

    var myLoader1:Loader;

    var loaderContext1:LoaderContext = new LoaderContext (false null, ApplicationDomain.currentDomain),

    if(myLoader1 == null)

    {

    myLoader1 = new Loader();

    addChild (myLoader1);

    }

    myLoader1.load (new URLRequest("folder/file1.swf"), loaderContext1);

    myLoader1.visible = true;

    backbutton.addEventListener (MouseEvent.MOUSE_DOWN, backbutton1);

    function backbutton1(myEvent:MouseEvent):void {? myLoader1.gotoAndStop (1) ;}}  (this line does not work)

    (Once I load file1.swf, in the file1.swf I click a next button to move on to different periods.) My question is: hHow do I code the "backbutton" on the main timeline so that it causes the file1.swf to go to frame 1?)

    Thank you for your help.

    After loading is complete (and assuming that you load an as3 swf), you can use:

    MovieClip (myLoader1.content) .gotoAndStop (1);

  • Control a SWF from Flex file?

    I have a flex application with a stack of view which has some of his children SWFLoaders.

    For example, "page 2" the view stack is an interactive SWF of flash cs3. It loads and works perfectly, but how to stop and reset it to Flex, as when the user changes discovered battery views?

    Fortunately, the SWF file is playing, but the user goes back to 'page 1' from VS, the SWF on the page 2 always plays its audio.

    How can I control the SWF file?

    I found an old post which enabled, with a simple change. In the interest of helping others who find this thread, here's what worked for me:

    In my element 'page 2 ':

    Import mx.controls.SWFLoader;

    private var movie_clip:MovieClip;
    private var myLoader:SWFLoader = new SWFLoader();

    private function init (): void {}
    myLoader.addEventListener (Event.INIT, loadHandler);
    myLoader.load ("equipment.swf");
    this.addChildAt(myLoader,0);
    }

    private void loadHandler(e:Event):void {}
    movie_clip = e.target.content;
    }

    public function pp (): void {}
    movie_clip.remotePause ();
    }

    ]]>

    And then, in the main application:





  • using the iMac 27 inch mid 2011 as an external monitor with a PC via mini DisplayPort

    I find conflicting information via web search to be able to use my iMac 27 inches, mid-2011 as an external monitor with a PC. Is it possible to use the iMac as an external display via the Display Mode target between Thunderbolt port of the iMac with a PC equipped with a mini DisplayPort?

    Of course, I hear it's possible with the appropriate cable. But if it is not possible, I would like to know for sure.

    Thanks in advance for your help with this. _henry

    Target display mode is Mac to Mac only. Use your iMac as a display with the target - Apple Support Display Mode

  • How can I use external speakers with my MacBook Air?

    How can I use an external speaker with my MacBook Air? I have a Samsung wireless speaker.

    They are Blue Tooth? If Yes, then you need to pair by using the preferences of BT.

  • How to use the "Toshiba controls" with other players?

    Heey

    I have a Satellite with Toshiba controls. How can I change so I can use the buttons for other media players and not only Windows Media Player?

    A dude sorry for the bad news, but I fear that it is not possible to use the Toshiba controls with another application as with WMP (CD) and WinDVD (DVD)
    I think that the utility was already programmed and designed to use only these two applications.

  • PID control with big delay in the process variable

    Hello

    My goal is to control the temperature via a valve and heat exchanger. I proceeded variable (temperature) measured from a hose. This temperature should be raised a few degrees with a heat exchanger. So basically I need to order a valve that allows the water to flow through the heat exchanger to raise the temperature to the desired level.

    My original plan was to use a base PID regulation to operate the dispenser. However, it is about 0.5 to 1 minute of delay time in the temperature probe after I opened the valve, which increases the temperature. This leads to a situation where the PID regulation valve fully open during this period (trying to get the temperature rise). Then once the temperature begins to rise it fires quite quickly. PID begins turning the tap off almost immediately, but because of the time delay in the sensor, the temperature exceeds seriously. This led to severe oscillation and at worst unstable processes. I tried to adjust the PID control to "predict" the timer to close the valve in advance to minimize the excess, but failed.

    I would appreciate if anyone has any ideas how to make this type of control with Labview PID functions. I also wonder if there is a better type of control procedure for this scenario as a PID control?

    -Lars

    This is a very common situation in the heating control, and generally PID can be adjusted to make it work. How do you do the tuning? If you do it by trial and errors, you have little chance to succeed. For a slow process with time delay, I like to use the method Cohen Coons, or similar open Ziegler-Nichols-loop method. The idea is that you temporarily remove or disable the PID. Set the valve in a fixed position and wait for the temperature to stabilize. Then, change the setting of the valve and record temperature at regular intervals data until the temperature is stable again to a new value. Use these data to get the initial values of PID using the equations provided by the tuning method you choose.

  • Update of digital control with different values with array function

    Hello

    I have attached my code base. I want to execute the code for 2 sets of digital control with a gap between the two values, then pass it. Something like that

    ABC

    Initialize the P1 = 10; P2 = 20; P3 = 30; P4 = 40

    Run the code

    delay = 10ms

    Update of P1 = 150; P2 = 200; P3 = 350; P4 = 500

    Run the code

    jump to abc

    I am stuck how can I update the values of P1, P2, P3, P4? I thought about using a function table but couldn't go further.

    Thanks for the help,

    Ana

    Hello Ana,

    One way you might achieve what you are looking for is using property nodes. These property nodes will allow you to change the values of the block diagram control. You can set up a structure of case inside your loop that will change control through nodes of property value after a certain number of iterations. Here is a community sample that shows how to use the nodes property to change the Boolean controls:

    https://decibel.NI.com/content/docs/doc-22669

    -Erik S

Maybe you are looking for