loadClip and loadmovie - control of the clip after it is loaded!

Hey, just can't get it is as simple as it should be.

I'm trying to learn more about loading movies so I can create a structure for an e-learning course.

I have read so many things, but nothing explains why it does not work.

I have 2 clips on my main timeline.  One is an animation that I have just a ball backwards

back and forth. The other is just a blue box converted to a clip.

The bluebox is called cc, its instance name is cc1

the animated film is called insiderMovieClip and its instance name is insiderMovieClip1

Here the code that I wrote.

--------------------------------------------------------
insiderMovieClip1.onRollOver = function() {}
This.Play ();
}

insiderMovieClip1.onRollOut = function() {}
This.Stop ();
}


CC1.loadMovie("01-VOM_Meters_INTRODUCTION.swf");
Cc1._width = 50;
Cc1._height = 50;

trace ("CC1 =" + cc);

Cc1.onRollOver = function() {}
This.Play ();
}

Cc1.onRollOut = function() {}
This.Stop ();
}

-------------------------------------------

The film that I load is an entertainment box that moves just a little black box back.

So when I run, I can right-click the insiderMovieClip1, and he begins to animate.

The clip of cc1 reacts anycode I give at all. (for example cc1.stop ();)

Its as if I have loaded into the shell of cc1, but I have no control in there...

I tried several variants of the loadmovide and loadclip.  Everything else I can get loaded.

but can't seem to stop or start the movie on my mandate. (actually I can't do anything

but load)

My goal is to load several movies at once, allowing the user to the page between them, but I did not

WAN to start until I say.  I want to write it so it pulls a table, then the range

can be dynamic. (IE page 10, page 300, etc...)

Why is loadclip and loadmovie such pain?

[Thanks in advance for your kind help...:]

I can't really follow what you are trying to do, but I'll offer that if you want to control a movie loaded, you must wait until it has loaded before trying to act with her.  From what I see of your code, you don't do that.  You really want to use loadClip to load the film rather than loadMovie.  The reason loadClip supports having an event listeners that you can use to detect when the file is finished loading and then take some steps you plan with the event handler function.

If you search for MovieClipLoader.addListener in the Flash help documents, there is an example that is complete enough for what you need to configure.  The main difference being that you would use the onLoadComplete rather than the onLoadInit event.

Tags: Adobe Animate

Similar Questions

  • Reset computer to factory settings, installed SP1 and lost control of the keyboard and the mouse. Had to do system restore just before the installation of SP1.

    Original title: help

    OK to reset to factory settings to allow hopefully laptop to read CDs again, then downloaded installed sp1 and lost control of the keyboard and the mouse, and still can not play music not forget hadda restart in safe mode to use the system restore to just installing the sp1 b4

    Hi MartyFenwick,

    I imagine the inconvenience that you are experiencing. I will certainly help the question of fixing.

    To help you suggest several steps to solve the problem, I would appreciate if you could answer the following questions:

    1. What is the brand and model of the computer?

    2. What is the brand and model of the mouse and keyboard?

    3. you receive an error code or message?

    4. is everything works well after running system restore?

    5. what exactly do you mean by "hadda restart in safe mode to use the system restore to just installing the sp1 b4?

    6. what happens when you try to play music CDs?

    7. what program you use to play the CD?

    Please follow the methods and mark the question below:

    Before you install SP1, follow the method 1 and 2.

    Method 1:

    You need to perform a clean boot to prevent any third party conflicting application from interfering with your computer.

    To put the computer in a clean boot state, you must follow the steps in the article mentioned below and check with the question.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: You must follow step 3 of the article mentioned above to recover your computer to a Normal startup after you complete all the steps.

    Method 2:

    I suggest you disable the antivirus for temporarily until the installation of SP 1.

    Disable the antivirus software:
    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 3:

    Follow the steps in the link for problems with the keyboard and the mouse below.

     
    Mouse, touchpad and keyboard with Windows problems:

    http://Windows.Microsoft.com/en-us/Windows/help/Mouse-touchpad-and-keyboard-problems-in-Windows

    Method 4:

    Follow the steps in the link below.

    Learn how to install Windows Vista Service Pack 1 (SP1):

    http://Windows.Microsoft.com/en-us/Windows-Vista/learn-how-to-install-Windows-Vista-Service-Pack-1-SP1

    I hope that the information above helps you.

  • How can I copy the folder my documents in my iCloud drive and then I sync the two after that?

    How can I copy the folder my documents in my iCloud drive and then I sync the two after that?

    You can simply drag in iCloud reader, but I pass and move documents in their files app instead. It will probably take a while to download all documents.

    It is not a way to sync without some third party software that synchronizes folders, or learn how to use rsync in the Terminal.

    Instead of synchronization, simply use the iCloud drive in the 'Documents' folder after you move the files.

  • Changed the display pad and how can I change this back to the first and last frame of the clip in question?

    Hi, when you cut a clip using the standard cursor (not the adjustment tool but just the mouse), the behavior that I was accustomed to is it shows the first and last frame of the clip you're carved, in a 2 - up window. Now in the updated 2015 I'm confused because it's still place 2 window, but instead I see the head or tail of any clip is next to any side of the clip, I'm trying to cut. I can see the utility in this, but I would like to know where I can go to the screen more as I'm used to it...

    Thank you!

    Click on the key in the timeline and in the drop-down the menu uncheck Composite overview over the filling.

    MtD

  • Volume controls on the keyboard after the upgrade to Windows 8

    I have a Touchsmart 520-1070 with the mouse and keyboard without wire factory.  After the upgrade to WIndows 8, the volume controls no longer work.  I tried the Recovery Manager to reinstall the keyboard drivers, but there is no driver keyboard under hardware drivers.

    In the following device manager are listed under keyboards:

    HID keyboard device

    Keyboard 109 MCIR Microsoft eHome

    Keyboard MCIR Microsoft eHome

    Microsoft eHome key remove control Keayboard

    PS/2 standard keyboard

    Any report that they are installed and are working correctly and that the drivers are up to date.

    Has anyone else seen or solved this problem with a Touchsmart computer?

    The instructions below were provided by HP support.  This has restored the function on the keyboard volume controls.  The referenced below drivers are drivers IDT high definition Audio Device.  I am not sure that it was necessary to reinstall the audio drivers.  It can only had to remove the USB dongle and back to restore the functionality of the button.  Note: the USB dongle is located behind the VESA Panel to the back of the PC.  No tools are required and the dongle can be removed and replaced without shutting down the PC.  VESA panel removal requires a bit of a steady hand, pulling the lip which is close to the connections on the rear panel.

    Instructions received from HP:

    Please go to the following link and check the "return of the system", article #7 is the USB dongle:

    http://support.HP.com/us-en/document/c03026390

    After you have reinstalled the receiver, please download and install the following driver:

    http://h10025.www1.HP.com/ewfrf/WC/softwareDownloadIndex?softwareitem=CP-110499-1&CC=US&DLC=en&LC=en&os=4132&Product=5157120&sw_lang=

    Then install the following update:

    http://h10025.www1.HP.com/ewfrf/WC/softwareDownloadIndex?softwareitem=CP-112060-1&CC=US&DLC=en&LC=en&os=4132&Product=5157120&sw_lang=

  • no active controls on the front after sub vi opens

    Hello

    I have a little difficulty with my VI.

    I run a sub my main façade of VI VI.

    The sub VI opens, but when it is closed all of the controls on the front of my main VI is no longer active (buttons etc. not clickable).

    I put counters on the iteration of loop terminals so I can see that the program is still ongoing, some controls no longer work.

    Someone has encountered this before and offer all the solutions?

    Thnaks for the research, I appreciate it!

    See you soon,.

    Iain

    Hello

    Sorry sub VI is located in the loop of the selection of the files offline at the bottom of the block diagram.

    After playing with it for hours last night, I seem to have sorted by deselecting the option "front lock Panel" starting from the properties of structure of event!

    Thnaks for all your help!

  • the share button don't work and need to leave the app after used

    the share button does not work and I need to force quit the app after used

    Any individual plugin or all of them?

  • Username and password - control of the database

    Hi guys,.

    I just installed Oracle 11 g Release 2 on my windows 7 64-bit OS, the installation went correctly. However, when I went to the control of the database, its request enter me username and password well I'm not what he was referring too. I need to create the user name and password if so where can I create it.

    Please help me it's urgent

    Thank you

    D

    Hello

    No..
    username to console 'em
    sys
    password that gave you intallation
    And connect sysdba

    If you want that the credentials of the host
    username
    Administrator
    password your password for the operating system.

    Hope this helps
    Daniele

  • When I click on the exe that the thing charge to the taskbar and not going on the bureau after clicking

    When I click on the exe of firefox it loads my homepage but it does not load on the desktop it remains in the taskbar and when I put the cursor on it I can see the loading of the page but when I try to access it pop on the desktop, nothing happens uninstall a fact a reinstalled same prob a repair done same problem did a system restore and the sill not duty use google desktop chrome and I hate thatbold text

    computer resarted couldn't always get firefox will appear so I rebooted my system operating safely moce and reset all default settings on firefox resarted computer and it works now just need to find the bad addon now

  • Premiere Pro problem: everything get more big, and that part of the clip will be exported...

    Schermata 2015-08-27 alle 20.12.17.png

    on the left of the original item, right how looks like I did the color correction. I don't know why it displays only a part of the clip. I can also export only the part that you see on the right.

    It is the same for all projects! :-(

    Set your monitor to MADE it (goes to 100%, where the zoom).

    Open the if who does not show a screendump of parameters of export with the exit on the left.

  • Why must Comcast My email page all disappear under the toolbar after it is loaded?

    After loading the page for my email and all the files in my Inbox are displayed, all below the bar of high toll of the page where is the disconnection of the tab disappears from the display. This includes the section of the left hand that lists the different folders like inbox, Sent, Trash, etc.

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Computer sees DVDRW plug-and - play, but said the driver could not be loaded. Won't see external DVD - RW external USB.

    I have a computer with XP on it and want to upgrade to Win 7 pro (I have the original disc), but the computer does not accept any DVDRW I put in and my DVD/CD requires a DVDRW DRIVE until I install Win 7.  Any ideas? I need to do this because all my other computers have been upgraded to win 10 and I HATE it.  I've seen an improvement when I added the memory of the computer.  Win 10 must be memory intensive.

    HD/DVD/cdrom, etc need update drivers, go to his site mfg, USB, is controlled & through the pc

    Chipset, storage controllers use different software drivers. If you run hardware based on intel, can & if its SATA.

    you need to the matrix, or accelerator software (RAID) or IDE, they are different. In addition, 99% of all the dvd/cdrom, etc.

    are updates of the firmware, which gains its mfg canvas.

    If all the above is ok, go in run or cmd, type: diskmgmt.msc in msc, locate the hardware, L.click on this subject, go to actions, all,.

    Select 'enable '.

  • First CS 4 can not record the clip after grupping

    Hello all,.

    I am now desperate and get help!

    I recorded an event on two DV cassettes. I read them with premiere CS4 on a hard drive as tape1.avi and tape2.avi.

    Now I try in vain to join them to one avi file, event.avi. I shot tape1.avi on the tape2.avi and cut window (behind tape1.avi).

    Then I grouped them (via the menu: clip/group).

    Then I tried to export (save the group file) via the Menu: file/export/media

    The Media Encoder is always started. But from here, I can't save the movie group!

    I can insert tape1.avi and tape2.avi in Media Encoder as a source, but they will be encoded again on different files and NOT a single file!

    So far I can't join then both bands for a movie!

    I made earlier than with adobe 7 pro first. And there is no problem.

    I have to finish because I promised to do before Christmas.

    After two weeks of not succeeding, I want to get help on the forum.

    Can someone help me?

    Thank you

    Com ssapi component

    This will fix it:

    http://kb2.Adobe.com/CPS/407/kb407106.html

  • I have reset firefox and lost control of the sound icon

    Using a laptop hp compaq. A get the slow start, so reset firefox. After reset, have more control icon in the bottom right of the screen. Other icons are still there. (State of the battery, windows sidebar, etc.) Have no sound.

    Hello

    Please follow what to do if Firefox won't play all the sounds section to solve your problem.

    Thank you

  • No control of the webcam after a replacement of HDD on the Satellite L650

    Just hard a new hard drive put.
    Now when I reboot the window that appears on the side for the web cam is it more.
    The cam works in yahoo and windows live.
    Device Manager says its not ok.

    Post edited by: sparkyau

    Hello

    To me, it seems that the software of the webcam has not been installed.
    First, visit the Toshiba driver page and download the software of webcam for your laptop model.

    Then, you must make sure that the webcam software is running in order to use the webcam control bar. The webcam control bar can be modified so it could appear to the right, the left or the top of the screen

Maybe you are looking for