Control a clip

Hello! OK, I think that there is a simple solution to all this, but I need a little help :-/ If I have a clip called 'Film1' with an instance name 'Film1' and I want to controll with a button on the main stage, (on the clip), I thought that the following should work:

((output) movie1.play)

But no joy :-/ any idea why?

(PS Im new to action script so. if possible, keep it simple!) Thank you!

on (release) {}
Movie1.play ();
}
~~~~~~~~~~~~~~~~
--> Adobe Certified Expert
--> www.mudbubble.com
--> www.keyframer.com
~~~~~~~~~~~~~~~~

Gr3g! wrote:
> Hi! OK, I think that there is a simple solution to all this, but I need a bit of
> Help :-/ If I have a clip called 'Film1' with an instance name
> 'Film1' and I want to controll with a button on the main stage, (on the)
(> video clip) I thought that the following should work:
>
(> (release) movie1.play)
>
> But not joy :-/ any idea why?
>
> (PS Im new to action script so. if possible, keep it simple!) Thank you!
>
>

Tags: Adobe Animate

Similar Questions

  • Problem by controlling a clip inside a clip

    Hello

    I have a problem in the control of a clip within a clip

    In fact, I have a clip on the stage. Inside of a clip that I have 4 frame. In the third frame I movie clip called "clickicon". If a condition on the main frame is triggered should controll the clip on the third frame (clickicon) making it to Stop in the second picture

    If the code to do the inner movieclip go to section 2 is not in the framework where the innder movieclip is then a way to solve it is to have the inner movieclip in all settings, but turn visible/invisible to the need.

    So in all the frames, you can visit in the external movieclip, you can have a command to make the invisible inner movieclip. In the frame where you want visible internal movieclip is where you set its visible property to be true.

  • Location of the mouse controlling movie clips shake

    So, I want to control a rotation of clips from the film with the location of the mouse, with easing if possible. But I'm having trouble knowing where to begin. Can anyone help on this?

    The best place to start is with a focused research on Google, perhaps using search terms such as... '' Mouse pivot AS2 follow. ''

    This is one of the results of this research which may help you (depending on what you want really)...

    http://www.terrypaton.com/AS2-follow-mouse-rotation/

  • Dynamic addition of combobox and other controls again clip empty via AS2

    Hello

    I use Flash Pro CS4 and ActionScript 2, and I am trying to create objects dynamically, through code, rather than by the designer in Flash. Here is a code snippet to give you an idea:

    Create clip

    converter_mc = target.createEmptyMovieClip ("converter", depth);

    converter_mc._x = x;

    converter_mc._y = y;

    ... add different controls, such as the following:

    cboTest = converter_mc.createClassObject (ComboBox, "eyedropper", converter_mc.getNextHighestDepth ()); <-this does not work

    cboTest.setSize (200, cboTest.height);

    cboTest.move (cboTest.x, 10);

    cboTest.dataProvider = [{Label: "Select target currency", data: null}, {label: "Canadian Dollar", given: 'US'}, {label: "Canadian at the Center Pound Sterling", given: 'UK'}, {label: "Canadian to the Euro", data: "EU"}];

    convert_mc. AddChild (cboTest); <-this does not work

    I tried to use the converter_mc.createClassObject, but that seems to be something that existed in previous versions of Flash, but changed (what, I can't figured out). I also saw examples of the addChild, but I think it is perhaps only in AS3 and also, it doesn't seem to work for me in AS2.

    Any suggestions/ideas on how I can add components to a new clip via ActionScript 2?

    Thank you

    D

    You are welcome.

    p.s. If you're still able, please mark this thread as answered.

  • Button control Movie Clip

    I have a button on the script main control an animation that reside in a clip. I have a mask in the clip that opens and displays an image when the button is in the rollover State. I want the mask to close on the deployment status. If I do a Tween with her opening and closing an interpolation with her, when the rollsOut user of the button prematurely, he climbs to the last part of the open animation. I want it to be fluid. I don't know how to do that with actionscript, and I want my code to be on the main timeline. Here is an example of the code:

    tv_btn.onRollOver = function () {}
    tv_mc.gotoAndPlay ("Open");
    }
    tv_btn.onRollOut = function () {}
    tv_mc.gotoAndPlay ("Close");
    }

    www.gladstien.com/Files/sample_animation.fla

  • I want default time remapping controls on clip

    Whenever I want to change speed by time remapping with keyframes, I need to click with the right button on the clip of fx square and then replace the time-remapping. By default, this is the opacity. How can I change the speed because the one I use the most? I use Premiere Pro cc v10.4 and iMac 2015

    This isn't a user for the time option.

    Feature request/Bug Report Form

  • Helps the assignment buttons that control video clips

    I'm pretty new to flash and my teacher gave us an assignment with little help or tutorials.

    He wants us to create a SWF file that has a House and it is the front yard and two buttons.

    A button that says who says the sunset and Sunrise.

    When I push the button of the Sunrise, the Sun must rise above the House and stay there.  When I push the button to sleep the Sun, it must set - and then a UFO must land on the lawn.


    So I think I have a pretty good understanding about the assignment, but the actionscript code is shake me up.  How do I make buttons that will control the video for sun to stay mounted above the House and then set?  The UFO is a whole new question.   The button of the Sun should make Sun down and then a UFO land on the lawn.

    Please help explain/link me to the good tutorials.   One thing that worries me is that the Sun will be mounted - and then stay on top of the House, even if I click on the button of the sunset.

    Your help is greatly appreciated.

    You should talk to your professor or classmates about of what you already know of your lessons which would allow you to do these tasks.  The risk you run in seeking help as it becomes a solution that your teacher would never expect to have knowledge of, one that you could never explain how it works... which can be detrimental to your teacher you coast.

  • Control Movie clip button in the timeline

    Hello

    I found this code example of Ned Murphy on this forum.

    But how do I adapt this to control a movieclip called mcGlider

    starting from a button on the main timeline.

    Btn1.addEventListener (MouseEvent.CLICK, btn1Click);


    function btn1Click(evt:MouseEvent):void {}

       var url: String = " http://www.Awebsite.com/aWebpage.html ";

    var req:URLRequest = new URLRequest (url);

    navigateToURL (req);

    }

    I hope someone can help out me.

    Thank you

    I have not watched all the code, but if you have a button on the main timeline, and a movieclip named glider_mc on the main timeline which contains textfields, then to interact with the textfields target you via the movieclip...

    glider_mc.textfieldName.text = 'something';

  • Video clip of another control

    I have a deeply nested clip, acting as a button, and I've had problems using actionscript to control another clip movie nested within another part of the document.

    I tried some ways such as:
    root. MySite.IndexText.gotoAndStop (20);
    MovieClip (parent.parent). IndexText.gotoAndStop (20);

    .. .but also throw errors at me and won't let me change the framework of the IndexText MC.

    The movie clip is:

    Root

    -MySite

    -Navigation

    -My button (requires script)

    Root

    -MySite

    -IndexText (needs controlled)

    I'm relatively new to Flash if my methods may not be perfect. I'm doing something wrong here?

    There is therefore no indexMC when your code runs.

  • Simple button to control Clip

    Hello

    I was relatively comfortable with AS 2.0, but am a moment difficult warming up to 3.0. I think it must be something simple to find assistance in line with, but I find it hard to get a simple answer.

    I have a button that is inside a clip in another video clip:

    mainMenu_mc > whoBtn_mc > whoButton

    This button seems to work well control a clip on the same timeline. It's code so far (on a framework of Actions in WhoBtn_mc):

    () whoButton.addEventListener
    MouseEvent.CLICK,
    {function(evt:MouseEvent):void}
    whoGlow.gotoAndStop ("click");

    }
    );


    I have an another film clip on the main timeline that I want to control with this button:

    blackFadeBottom_mc

    What the code would look like this?

    Any help is appreciated - thanks.

    Thanks kglad, which worked like a charm. I was not sure of the syntax, it helps a lot.

    Appreciate all the help.

  • How to get a list of all files/folders on the Sansa Clip +.

    Hello

    I have a lot of MP3s on my Clip +, but realize that I put there duplicates in different folders. My plan was to use a command prompt to get a list of all the files on the device, and then use a utility that shows me duplicate names and the locations of the files. I could then simply delete the Clip +.

    The problem, it is that the Clip + is simply presented as a 'portable' in Windows Explorer (Windows 7 Home) - there is no way to assign a drive letter :-( Which seems a bit odd, as it is, after all, plugged into one of my USB ports... I used the dir command on all drives assigned in my computer as "devices with removable storage". One of them must be the port to which the Clip + is attached, but they all say "device is not ready". So the Clip + is not identified in this way.

    Is it possible at all to get a list of the files that are on the Clip +?

    Thank you!

    That's how the Clip + shows when connected in USB MTP mode.  If you connect mode MSC (defined in the control panel), Clip + comes as a disk.

    But: the problem you have is, Windows displays only the files that have been transferred in the Clip + under USB mode then logged in as.  I don't know if this applies to designated offices, but - you could try and see.

    Another solution would be to copy all of your files on your computer, under MTP mode; Delete the files on the Clip +. move the Clip + mode MSC; and then transfer the files to the Clip +.  Now, you should be able to see the files under Windows (always connected in MSC mode) and can run the utilities that you had planned.

    I hope this helps.

  • Need help to control the timeline of film with AS 2.0

    I'm trying to control a clip through the script of action thanks to a button.
    My Flash file has a master clip 'masterMC' that contains all of
    for the flash movie clips.  It's essentially a calendar that
    When the user clicks on a date a small box opens with the event (s)
    scheduled for this day here.

    Inside the "masterMC", there is a 'calendar' clip and a clip
    'events' both having similar names of instance.  In the movie 'calendar '.
    Clip are different month calendar graphics (oddly) where the
    date a grave event is a button symbol.  I have a layer the
    "masterMC" which contains the script for the action buttons.  I'm working on
    When I pressed a button triggers a specific playing image in the
    clip of 'events' which shows the box with events.  One of my
    the button code looks like:

    Oct18_btn. onRelease = function () {}
    eventsMC. gotoAndPlay ("oct18");
    }

    I checked all instance names, frame names, letter etc.... And
    can not know why when I test the movie, nothing happens when I click on
    the button.  Is there a problem in the code, or it could be something
    on the other?  Thank you.

    If the 'eventsMC' and 'calMC' are in the 'masterMC' and the button is located in "octMC" which is inside "calMC":

    This should work, I've tested it:

    action on the button inside the "octMC":

    {We (Release)}

    _root.masterMC.eventsMC.gotoAndPlay ("oct11");

    }

    There may be something wrong somwhere else?

  • How to use a variable to set properties of movie clip?

    I build a simple contact page that allows users to select a city in a comboBox. I want to transmit the data to comboBox selected by a variable that controls a clip with the same name. (already on the scene)

    locationListener.change = function (loc_obj:Object) {}
    var loc_mc = loc_obj.target.selectedItem.data;
    loc_mc._visible = true;

    So far, this has not worked. I tried to hardcode the instance name of clip film (Atlanta._visible = true) and it works, but I can't understand why using the loc_mc variable does not trigger an interaction with the clip.

    Something simple, I guess. Thanks in advance for any help.

    my bad (target), obtained, use eval to get the path:

    locationListener.change = {function (loc_obj:Object)}
    eval (loc_obj.target.selectedItem.data) ._visible = true;
    }

  • What happened to follow the opacity?

    I don't speak "clip opacity. Every search I did on the ' track video opacity "gave an answer on"clip opacity"that is not useful. I have several clips and I don't want to reduce their opacity, one at a time, I want to just control the opacity level of the video track together, this feature was in FCP7 and all versions of first I've used since. But now I'm on the last 2015.3 of CC and I can't find this feature - I'm blind or it disappeared? There is always an option in the Audio track for the control volume clip OR track. I'm looking for the same thing with the video Track vs Clip opacity opacity. Help, please.

    IT a bug. Adobe don't.

  • Flash video... best solution?

    Hey there

    I made som charater beautiful animations in Flash, and now I need to do this in a video.

    I know that flash has some parameters of export to mov and AVI, but I have never had much success with these settings, perhaps because I am doing wrong?

    But who is the best solution or is it a third party software that you can recommend?

    Thanks in advance

    Kim

    I don't have a recommendation from a third-party tool. I never use them.

    For a successful video release of Flash:

    1. classify your original Flash step to match the size of the final video. If you want an 800 X 600 video, they make your scene Flash 800 X 600.

    2. set the pace of your Flash file to the frame rate that you plan to use for the video. If you want 30 images/s then set the Flash to 30 frames per second.

    3 use the timeline for your animation. You can include videos animated on the main timeline and control these clips with Actionscript, but stocks are minimal, play(), stop(), nextFrame(), for example.

    4. you can import video into Flash animation library and use it on the timeline, but remember he play at the framerate of the timeline, his original framerate.

    5. you can import audio data in the library of the Flash movie and use it on the timeline. Set the synchronization stream.

    6. There are many options for the video output, especially if you're using Adobe Media Encoder. Start with one of the presets. Don't forget that it's using the rate of size and picture frame you want.

    7. change the date rate, if necessary, to meet your needs. The flow of data over the quality of the output and the larger the file.

    There is much more to digital video creation, but this should help you get started.

Maybe you are looking for