Play a Clip in a Clip on the load

Hello

I'm reading a Movie Clip animation which is a Clip after pressing a button in a different Clip.

The problem is that all Movie Clip animations play as soon as the SWF file is loaded.

I have a separate Main.as file that contains all the coding with the exception of the stop of the animation:

package

{

import flash.display.MovieClip;

import flash.events.MouseEvent;

SerializableAttribute public class Main extends MovieClip

{

var title1:Title1;

var scene1:Scene1;

var scene2:Scene2;

var scene3:Scene3;

var scene4:Scene4;

var scene5:Scene5;

var scene6:Scene6;

var scene7:Scene7;

var scene8:Scene8;

var scene9:Scene9;

var scene10:Scene10;

public void Main()

{

Heading1 = new Title1();

Scene1 = new Scene1();

scene2 = new Scene2();

scene3 = new Scene3();

scene4 = new Scene4();

scene5 = new Scene5();

scene6 = new Scene6();

Scene7 = new Scene7();

scene8 = new Scene8();

scene9 = new Scene9();

scene10 = new Scene10();

addChild (title1);

Title1.buttonStart.addEventListener (MouseEvent.Click, onButtonStartClick);

Scene1.buttonWalkOutside.addEventListener (MouseEvent.CLICK, onButtonWalkOutsideC lick);

}

title

function onButtonStartClick(event:MouseEvent):void

{

addChild (scene1);

removeChild (title1);

Scene1 (parent) .gotoAndPlay ("frame1")

}

Scene1

function onButtonWalkOutsideClick(event:MouseEvent):void

{

addChild (scene2);

removeChild (scene1);

}

}

}

Now, I get this error message:

TypeError: Error #1034: Type coercion failed: cannot convert flash.display::Stage@46534041 to Scene1.

hand / onButtonStartClick)

Any help is greatly appreciated... I've been grinding now all night.

Basically, you read just the return code to me.  I ask a more pointed question.  What is the movieclip you want to animate and why are you castant as 'Scene1()' to try to target?

If the object you want to animate is 'scene1', then just target scene1.

Tags: Adobe Animate

Similar Questions

  • Why observed my windows Media Player flat mpeg-4 video clips of my nokia n7 momile? Ive tried also nokia ovi suite, without success. What are the alternatives to play my clips on the pc

    Why observed my windows Media Player flat mpeg-4 video clips of my nokia n7 momile? Ive tried also nokia ovi suite, without success. What are the alternatives to play my clips on the pc

    Might be interesting to try to download and install a
    the following freeware media players:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player
    http://www.filehippo.com/download_vlc/
    (works on XP/Vista/7)
    (name of the file to download: vlc - 2.0.1 - win32.exe)

    Media Player Classic Home Cinema
    http://MajorGeeks.com/Media_Player_Classic_Home_Cinema_d6213.html
    (works on XP/Vista/7)
    (name of the file to download: MPC - HomeCinema.1.6.2.4902.x 86 .exe)

  • How can I play a clip of the position of the read head instead of from the point to?

    In first Pro CC, if I already put an in and out point in my source monitor, space plays clips of the point bar in only.  I prefer to be able to move my CTI at any place in my clip, press the space bar and play from there, but it always aligns the point in and play from there.

    The game around shortcut is a joke because he plays not the location of the playhead and loops at seemingly random intervals.

    Any thoughts?

    Yes, 7.2.1 represents the current version.

    Normal default behaviour of the organism is exactly as you want it to be. By pressing the space bar should start playing the position of the read head. Playing around should similarly work compared to the CTI.

    As to why these commands do not work as expected, I see that two causes:

    1. keyboard shortcuts have been customized. It's easy enough to check. Just open the keyboard shortcuts dialog box and research "Toggle Play-Stop" and "play out."
      Of course, the shortcuts could be the culprit if the wandering behavior is limited by using shortcuts. You have not indicated if the buttons give the same results.
    2. Something is messed up in the preferences of the AGENCY. To check this possibility, I recommend that you close the BODY, rename the folder profile- ... \Documents\Adobe\Premiere Pro\7.0, then revive the ORGANIZATION. In this way, if this measure does not resolve the problem, you can easily return to your customized preferences by removing the new profile - folder and rename the file old back its original name.
  • Play a clip on the stage

    I created a simple clip (48 images long). I want to play this movie on the stage. I created enough executives, but the movie does not play. I have not used real Flash for a long time, so probably miss me something simple. A movieclip can play within a single framework?

    If you select the control-> test movie in the main toolbar, it must run the file.

  • Play a Clip within the Organization: only one second?

    Hey people.

    I'm still know body, so sorry if this is a simple.  I noticed that when you try to play the video that I work within the Organization, he literally plays a second, or less.  Sometimes a little more.  Then it stops instantly.

    The images are my AVCHD camera. not sure if that makes a difference.  It doesn't matter if everything is rendered or not.  It will play not just longer than a second or two.

    Is there an option I can check or uncheck?  Or else I am doing wrong?

    JAS

    For Colin liaison work, you must close the application, delete this plist file, then restart the application as an administrator so he can recreate the plist global audio correctly.  After that, you should be fine running as a non-admin application.

  • movieclipname. Play();  It does not animate, what is the right code now?

    I've used this Flash to play a clip on the timeline, when I hit a number of framework in flash. What is the correct code to animate CC 2015?

    It should stick "this." in front of it. Or whatever the hierarchically appropriate prefix is be.

    Convert your ActionScript in HTML5

  • Impossible to play a video clip of the flash player

    I had 2 video clips recorded on my USB key, (I was asked if it had to be either windows or mac) I said windows but when I click on the video it says it can not play, but the solution Center has not detected a problem. Any suggestions?

    It is a wmv file. I downloaded what you recommended, but he won't play again although he repeats to me windows media player cannot play the file.

    =====================================
    Apparently the. WMV file is damaged in some way.

    Could you ask the sender to send another copy?

    If it's very important... the info on creating
    a new version of the. WMV file is maybe worth a visit:

    In many cases, I found that convert a. WMV file
    to the. WMV format could produce a new version of the
    compatible file. Sounds redundant, I know, but it
    can work.

    Microsoft Expression Encoder 4 can perform the conversion.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601

    +++

    If you want to try Expression Encoder 4 following
    info can be useful:

    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    Left click (highlight) the. Left and WMV file, click the Open button.

    You will see the file in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

  • Windows Media Player play about half of the clip, then the picture cuts off, the screen goes black, but audio continues to play.

    Windows Media Player play about half of the clip, then the picture cuts off, the screen goes black, but audio continues to play.  Just reinstalled MP 11, same problem.

    Hello

    · What is the number and the model of the computer?

    · This occurs when you are working on any specific file format?

    · Were there any changes made on the computer?

    · You play the file in mode full screen?

    Change hardware acceleration

    a. you can try to change the hardware acceleration in the middle and check (you can try another level too.)

    b. right-click on a space empty on the desktop.

    c. go to the resolution of the screen.

    d. click Advanced settings, and then click the "troubleshooting."

    e. set hardware acceleration in the middle. (Here you'll get the only option your video card sound support).

    You can also check: you receive an error message of codec or audio plays video but does not play when you play media files in Windows Media Player 11: http://support.microsoft.com/kb/926373

  • When to play clips on the timeline, it goes to the black screen

    Original title: on windows Movie maker, I always get a black when playing screen its in the timeline, but when I play a clip before I put it in the timeline panel, it works, someone help!
    in order to clearly indicate the clip in = black not in the timeline = work

    Hello

    1. don't you make changes on the computer before the show?
    2. is the question confined with any particular clip?
    3. What is the file format?

    Method 1:
    You can see the stages of the links and check if it helps:
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Movie-Maker-transitions-and-effects


    Method 2:

    You can reset the Windows movie maker for default settings and check.
    To restore the default settings

    a. click Toolsand then click Options.
    b. click the tab that you want to reset the settings and then click on the default settings.

    See also the link to learn more:
    Work with clips in Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/work-with-clips-in-Windows-Movie-Maker

  • My computer crashes whenever I try to play a video clip from the internet. I have to disconnect the plug to escape. What can I do? Thank you

    My computer crashes whenever I try to play a video clip from the internet. I have to disconnect the plug to escape. What can I do? Thank you

    There is a lot of noise from speakers as well.

    Disable the hardware accelerator or install flash player 10.

  • Play and rename the clip in the project Panel, using only the keyboard

    I want to use my keyboard to navigate through the items displayed in the thumbnail view in the Panel project (pictured below), play these clips and rename these clips. Already, I am able to up, down, left, right keys to navigate and can press ENTER to rename the clip. However, the space bar does not play the selected clip unless I use my mouse to click on it.

    Screen Shot 2016-05-09 at 10.22.43 AM.png

    I really want to avoid using my mouse in this process. This will greatly enhance the convenience of crosses a lot of clips and visualizing and renamed.

    Someone at - it suggestions? Open to workarounds or other ways to skin this cat.

    It is a problem I always had with first - I think that it is not a solution, but I wanted to ask the community to see if someone has found a way.

    Using Mac OS X 10.10, latest version of first CC

    Hey mammolastan,

    I don't think there is a way to play a clip with Sapcebar in the project without first Panel by clicking on it. You should have a demand: feature request/Bug Report Form

    There is a work around using only keyboard shortcuts, if you are interested. I prefer this workflow myself because you have to make the thumbnails big enough so that they can be useful, in my opinion.

    If you have already said, you can navigate with the arrow keys, press ENTER to return to rename and move to another clip or enter on the numeric keypad to not go to the next clip. When I do what you, I open my clips in the Source monitor and view them there, air conditioned and have no mice. SHIFT + O is the default shortcut to open an item in the Source monitor, but I've changed mine to Cmd + down arrow (as OS X). Then you can shuttle, set in/out points, make markers, etc., and then when you go to your next video you press SHIFT + 1 to return to your project Panel. It's more shortcuts, Yes, but given that you are looking for a KB option-driven, I feel you're fast enough with your fingers, and once you do it a few times, it is true no big thing at all.

  • I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1. Still no sound.

    I have no sound when playing my clips by adobe first 12 elements. How to fix this? I checked all the audio levels and there is no mute etc. I've updated to 12.1, but still no sound in clips. Not even on the old files that are used to work.

    Bfun

    What operating system is running your first items 12/12.1? Can we assume that this audio reads OK

    on the same computer when you use a computer independent of Premiere Elements drive?

    What are the properties of these clips that have worked before, but don't know regarding sound

    For now, I will assume that you are working on Windows 7, 8 or 8.1 64bits.

    Have you checked the settings change preferences/Menu/Audio ASIO hardware? You have all 3rd party audio devices integrated in your IT environment?

    Please delete the Adobe Premiere elements Prefs file and, if it does not, then all 12.0 folder in which the Adobe Premiere elements Prefs file exists. Is the path to 64-bit Windows 7, 8 or 8.1

    Local disk C

    Users

    Owner

    AppData

    Roaming

    Adobe

    First Elements

    12.0

    and in the 12.0 folder, is the file Adobe Premiere elements Prefs that you delete. If this does not work, then delete all 12.0 the folder in which the Adobe Premiere elements Prefs file exists. Make sure that you work with the Option "Show hidden files, folders and drives" of the current folder so that you can see the full quoted path.

    You have the installation files or the installation disc with the serial number purchased in case we need to use to uninstall/reinstall?

    We will follow your track to the top.

    RTA

  • Can you play a clip cut from the preview window

    Using 11 elements. When you have trimmed a clip in the preview window, i.e. define the "in" and "on" points, is it possible to play this clip carved into the window to see what you've accomplished? I know that you can drag the slider to the "in" point, but is there no way to play just any little to start?

    Now, when we load a Clip in the Source monitor Panel by double-clicking on that Clip to open the Source monitor, and then sets the Points In & Out, the Source monitor will always play the full Clip. The Points In & Out will be used only, when doing drag that element from the Source monitor Panel to the timeline. There, only the material, between the Points In & Out will be used and displayed.

    Hope that helps and good luck,

    Hunt

  • Hi, I want to play a clip intro short before the menu is displayed on the dvd, anyone knows how please?

    Hi, I want to play a clip intro short before the menu is displayed on the dvd, anyone knows how please?

    Alan Greenall

    Hey Stan

    Thanks for that, I tried briefly yesterday and it worked fine!

  • Playing several clips video one after the other on the main timeline

    Excuse the probably simple question but I'm just starting with Flash.

    I imported a few trailers directly in flash and saved as video clips.

    I want to be able to insert these clips on the main timeline and play one after the other, by repeating once they all played.

    In the main timeline, I put one layer for each clip and a keyframe where the clip is inserted for each layer.

    When I go to play the flash file, is to show the first frame of each movie file and before the first frame of the next movie file.

    What should I do to make the entire movie file flash game in this specific context before moving on to the next section where is the following file in the sequence, then to play all this film?

    Sorry for what is probably a simple thing to ask.

    Thank you

    Create a new layer actions on the timeline stop() and the main square. commands on this layer in each frame where resides a movieclip.

    In each clip, at the end (last image) you mean the main timeline to play(); While it moves to the next section (where it stops because of the stop() commands you add).

    If at the end of each movieclip you put either:

    AS2: _parent.nextFrame ();

    for AS3: MovieClip (parent) .nextFrame ();

    For the last movieclip in programming, you will replace nextFrame() by gotoAndStop (1);

Maybe you are looking for

  • second default window motor

    I have set up as my default homepage to google. However, when I open a second Bing window appears. How can I stop this?

  • Hacked? Malware? Virus? Help!

    OK, so I have a 6 Iphone for a while now and all goes well until a few days ago my phone started acting weird... He plays his announcement of the app. I heard "Mobile Strike" of its announcement at random and I panic (especially in the middle of the

  • Windows Update - updates is not complete.

    I've updated Windows updates automatically every day, and it has always worked well.  However, since February 13, 2010, it seems stuck in a loop.  No error, it just shows continuously "Searching for Updates" for hours!  If I stop the laptop that I ge

  • cannot enter RGB video generator VG1000

    I use a PXI1409 to capture a RGB sync on green signal of a 'black box' as part of the project. It works very well. However when I try to capture an RGB source detailed video generation, it will not gain at all. It's using the same set up. I tried twe

  • Storage SSD in Envy Touchsmart k013tx

    Hello I recently bought Envy Touchsmart 4 k013tx ultrabook and I saw the problem in trying to find the 24 GB Solid State Drive, I had to get. Device Manager displays a second hard drive, but has only 4 GB. Can someone please help me find the 24GO SSD