Var does not work if I load external swf.

I have a set with two pages or labeled sections on the main timeline. I have the code for actions happening in each section page / labeled brake. On the first page, there is a VAN specified for each button

var sourceVar:String;

Then each button using this var to load a video in FLV player (the player itself is built in the second section of page / labeled).

function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {}

sourceVar = "howto_popups/jtvs18w12_LG30.flv";

gotoAndPlay ("flv_pb");

}

where "flv_pb" is the label of the second section of page / labeled. It is on this second page/section labeled a FLVPlayback component named "SWF_flv2", which uses this var

SWF_flv2.source = sourceVar;

All above works. My problem is that I decided to take out all the elements (image buttons) in the first section. So, I saved them as an external SWF with all the code in the external swf file.

Then link the buttons to the section 'flv_pb' in this way:

function JTV_SatelliteCenterpiece_PlayVideoPopUp(event:MouseEvent): void {}

MovieClip (parent.parent.parent).sourceVar="howto_popups/jtvs18w07_LG30.flv';

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

}

The link to the "flv_pb" section works, tells me should be putting up with "MovieClip (parent.parent.parent).".

However the code as before with the setting up of (being in the external swf file):

sourceVar = "howto_popups/jtvs18w12_LG30.flv";

gotoAndPlay ("flv_pb");

works as well, I don't know why?

The problem seems to be in the var

I have an error message 1120: access of undefined property sourceVar

It is referred to the code in the second page labeled section "flv_pb".

SWF_flv2.source = sourceVar;

What are my actions?  I kept the code in the external swf file. Should I move it to the main timeline if possible? Should I reference only the var in the main time line?

All code must be in the beginning of the time line, rather be broken into sections?

If you want to use the UILoader component, then its 'content' property is what points to the swf file you load into it.

Tags: Adobe Animate

Similar Questions

  • How do you want more to get a wifi card that does not work to activate an external work on an HP laptop?

    I was told by Best Buy my laptop needed a new wifi card or I could buy an external.  I did it and it does not connect to the internet.  It is also said that it does not find my IP address.  It is a 3 years old Vista & I need for her grandchildren do homework in their rooms.  I'd appreciate any help that my check WILL not go very far and it seems that the replacement, I bought wants $25. to give me a help of online support.

    Hello

    1. What is the number of brand and model of the card Wifi network?

    2. What is the full and exact error message?

    3. were there any changes or updates made on the computer?

    Method 1:

    Check the link and try to run the troubleshooter to check if it helps.

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Method 2:

    I suggest you to return the item and check if it helps.

    Setting up a wireless network

    http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-wireless-network

    See also:

    5 steps: how to set up your network wireless home

    http://www.Microsoft.com/athome/organization/wirelesssetup.aspx

    Method 3:

    Read the articles and check if it works.

    Solve problems, find wireless networks

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-finding-wireless-networks

  • Remote control does not work, and the load does not appear on Apple TV

    Hello

    I just returned from vacation and my remote seems has stopped working.   Naturally, my first assumption was that the charge was simply exhausted.

    Apparently that was the case.   He seems to have just died.

    I did pay for more than two hours and it still does not appear under devices Apple TV.

    My Apple TV 4 works very well because I use the remote control of my phone to navigate through it.

    If I understand correctly what I look at you, it seems that the remote control is same not synchronized or recognized by Apple TV more.

    Any suggestions on how to fix this?

    A reset is complete? Restart... no change.

    Thank you

    Bob

    1. Have you tried pressing the menu and the button for a few seconds while it now an inch or two away from the Apple TV, if successful, you should see a message on the screen saying the remote was paired.
    2. If you have an older remote from a previous model MacBook or Apple TV, you can use to restore the Apple TV, which, in many cases, has been sufficient to reactivate the remote Siri. You must complete all upward to undertake a restoration.
    3. If you have a USB cable - C you can try to restore by connecting it to iTunes on a computer.
    4. If you have tried all of these steps, don't have a distance sooner or a USB - C cable or their use is too inconvenient, return it to the store where purchased for a replacement, or to couple for you.
  • The Flash (AS 2) banner link does not work if I download the SWF on my web and you try to add to my Web site.

    It works when I published the swf and html and view it in the browser. Initially the link wasn't working when I published in to HTML and swf, but then I changed the safety of local playback to access network only. If I upload it to my web server via Filezilla then animation of the banners works, but if clicked, goes nowhere more. Any suggestions?

    Code ActionScript 2 that I use:

    {We (Release)}

    getURL ("http://www.example.com', '_blank'");

    }

    There's no problem with your code.

    disable any blocker popup you or try another browser.

  • 571P aspire V5 - usb 3.0 does not work with a WD external drive?

    I have an acer Aspire V5 - 571P running Windows 8.1 all service packs and updates are installed.  I have a Western Digital My Passport USB 3.0 capable external hard drive.  If I plug it into a USB 2.0 on my Acer, it shows very well.  If I plug it into the USB 3.0 port on my Surface Pro 2, it appears very well, but if I plug it into the USB 3.0 port on the Acer, it never appears at all.  Nothing shows up in disk management, nothing is displayed in the file Explorer.  Is there an updated driver for USB 3.0 for this laptop that I'm missing?  There is not one of those listed in the downloads section...

    HD lights and towers up to 3.0 just is having a hard time, be found by the computer consistantly

  • The button does not work on 2nd load

    I have a main swf file that loads movies into a movieHolder clip. Initially, it loads a movie and a button is selected, then plays a framework that loads another movie, once a key is pressed in this film, he plays a framework and at this point / framework I have this code:

    Stop();
    _parent.movieHolder.loadMovie ("Q_1.swf");
    _parent.attachMovie ("title_foundational", "ttl_foundational", 1, {_x: 217, FLF: 5});
    _parent.attachMovie ("buttonblank", "butt_blank", 2, {_x: 22, FLF: 5});
    _parent.butt_blank.gotoAndStop (1);
    _parent.butt_blank._alpha = 100;
    _parent.butt_blank.onRelease = function() {}
    _parent.gotoAndStop ("secondframe");
    }

    The butt_blank is what I have a problem with. First, it refers the user to the right place to the first movie loaded, later when you click buttons movies still load properly and code load the butt_blank, but the code does NOTHING. The user remains on the same chassis.

    It's code runds when the user returns to 'secondframe.

    movieHolder.loadMovie ("ShopOutsideAnim01.swf", "ShopOutside");
    ttl_foundational.removeMovieClip ();
    butt_blank.removeMovieClip ();

    Any help is greatly appreciated!

    Yes, you are missing something.  you are probably confused about what you expect _parent to be.  use:

    trace (_parent)

    just before _parent.goto

    and if you have more than one _parent.goto which is, I suspect, causing your confusion, trace of them all.

  • Active ADF data service does not work when the load balancer compresses

    Hello

    I have Active Data service table in a page.
    After you enable the setting cache and turned on compression on the hardware load balancer, Active data service table refresh no more in the application.

    We use F5 for balancing load and data compression.

    Pointers?

    Ryan

    You can check if your F5 loadbalancer has enabled text compression.
    Disable compression of text.

  • iTunes does not work after download

    I'm not able to open iTunes once I loaded it.  I get a message saying that iTunes does not work.  I loaded the latest version 10.5 but doesn't seem to help.

    Ask the question in the Apple Forums:
    https://discussions.Apple.com/index.jspa

  • BlackBerry Smartphones last updated 2534 OS 6.0 bundle means that my browser does not work

    Just updated the OS on my flashlight with version 6.0 beam 2534 and now my browser does not work.  It loads the page, then immediately disconnects.  I can access the web using other browsers on my phone, such as the bolt but not the BB browser.  Any ideas out there?

    Hi clarification, this is OS 6.0.0.570, right?

    Start by going to Options > Advanced Options > host Routing Tables, press the BB Menu key and select Save now (things may be slightly different in OS 6, but it should be in a similar place).

    Then go to the e-mail settings, login if necessary, press the BB Menu key and select Service books. On the next screen, return your service books. Who help me?

    If no, then follow up with a battery pull - while the unit is turned on, remove the battery for 15-30 seconds, reinsert the battery and wait for the device to reboot.

    If none of this works, let us know how you upgraded (i.e. OTA update, via the Desktop software, etc.), and I hope that we can understand it.

  • Failure of the legends and funktionality click right does not work

    Hello
    I have a problem with the publication of my adobe captivate project. I do softwaresimulations and so must my learning to have legends funktionality and right-click to fail. But it does not work on the PDF or SWF file. I already know that I have to go the presets and take off the easy check (sorry, I don't know what you call it in English, in German, it is "Barrierefreiheit"). If this isn't the solution. Today I did an update of captivate and when I publish it now I can open the file called "index" and then it works very well. How can I make it work when I want to publish e-Learning-course on my company Intranet Portal?
    Thank you very much for your help!

    Natalie

    The SWF file is not supposed to be uploaded to a server or LMS as such: when you publish to SWF you get multiple files, not only the SWF file. Click right feature is integrated into the JS-companion file. You have to start the file HTML (same name as the name of the project), which called the JS file (and possibly the file dependent on the CSS version) and then launch the SWF file. Did you follow this workflow?

    You must uncheck "Accessibility" to provide right click functionality.

  • load external swf does not work properly

    Hello, I'm trying to create universal charger flash games on an entertainment site. What I want is to make a sort of container (A SWF) that will load another flash him (SWF) B (by some params).

    SWF B could be anything - AS1 / AS2 or AS3 flash. A SWF is programmed with AS3. Problem is that not all SWF games, I try to load it, works very well. Some games lost their click events, some games won't load at all, some games are corrupt. When I run that games separately (do not use my charger), the games works fine. Why is this happening? Why some flash games do not work correctly after loading by another flash?

    I use the Loader object to manage this, without any special parameters - even on the examples on the AS3 Bible book...

    Could someone help? Is it possible to manage the loading of another games?

    Thank you

    Zdenek

    Yes, that would probably work.  You must set the _lockroot property to any movieclip you load the file in. (holdingMC._lockout = true; where holdingMC is any movieclip you load in)

  • Satellite A350 - Touchpad does not work, but an external mouse works

    Satellite A350 Touchpad does not work ok (unstable system and left button not loaded).

    I tried to make the driver but nothing. No problem drivers (conf system). I have the driver for the touchpad stroped and with an external mouse everything is working properly.

    What should I do? Don't you think it's hard or soft the problem. * The touchpad is NEVER worked.*

    Thank you, and sorry for my bad English. :-(

    Hello!

    The touchpad does appear in Device Manager or you have here yellow exclamation points?

    Like Akuma says you can enable or disable the touchpad with FN + F9 key combination.
    Did you check that?

    In the worst cases, you must go to an ASP. It seems to be a hardware malfunction, and this must be checked by a technician of the laptop. Here, you can search the nearest ASP:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported downloads & => find an authorized service provider

    Good bye

  • AutoPlay does not work when it is connected to an external hard drive

    My system is installed with Vista. Lately I noticed that whenever I connect an external hard drive/USB or load a DVD. the AutoPlay function does not work. I tried to make changes via the Panel control, but without success. to access the device, I opened MY computer and open the unit. Please help how can I reset the auto run System. Thank you.

    Have you tried the "Reset all default settings" button in the control panel?

    See if it helps:

    Reading auto/AutoRun not working do not or not missing not open in Windows Vista
    http://www.mydigitallife.info/autoplayautorun-not-working-or-missing-not-open-in-Windows-Vista/

    WARNING: There are some parts of the article that involves the registry editting. Serious problems can occur if you modify the registry incorrectly by using the registry editor or by using another method. These problems may require that you reinstall the operating system. Modify the registry at your own risk. If you are not comfortable editting the registry request assistance from someone who knows.

  • loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Toshiba 1 TB external HARD drive does not work

    I have a 1 to external drive what cards via usb cable, Ive put a lot of multimedia files on it and have been using it without problems don't have nothing put on for a little while, went to look for some files off it and comes up with usb not recognized, put it in another computer and the light comes done hard disk a rattling for a few seconds then hummes just as if it turns While the light stays on and is not all pulse, on the computer, it emits a sound to say ive plugged the on the bottom, it says safely remove hardware.

    Ive tried on two computers when in my computer it does not record.

    PS im not the tool sharper in the hangar when it come to tech stuff.

    The same problem. I bought edition 2015 last fall. It has a power supply problem (electrical problems). I thought it's because of my laptop. He made her crazy, but SMART was ok. Yesterday, it makes noises again and now it does not work. I saw light blue and only a little sound of pcb as start start. I saw that head of player on the Board.
    It's really a defection from the factory.

Maybe you are looking for