Make action script into movie clip

Hi,
I have used some action script to make a turning wheel with several logos in it. Now I want to make that wheel into one single movie click so I can zoom in and out when mouse over. How would I do this?
Here is the file with the action script
http://www.weidts.de/cs3.zip

you have a button with what instance name on which timeline
that should direct which movieclip to what frame?

Similar Messages

  • Buttons actioning in different movie clips?

    So ive set up some buttons into a movie clip, but i want to get them performing actions in a movie clip that is within another clip.
    For example, the code below is what I have attached to one of my buttons. The Movieclip 2photosMC2 is inside a DIFFERENT movie clip to the ones where the buttons are stored. How can I script so that the button actions activate the correct clip?
    on(release){
        photosMC.gotoAndPlay("img 02");
    With the code above, photosMC is the movie clip i want to play and img 02 is within this. The button with this code in is in a different movie clip to the one in which photosMC is held
    Any ideas?
    Many Thanks
    Dave

    If you get away from attaching code to buttons you might find it easier to manage that targeting you will need to do.  If you assign instance names to your buttons and movieclips, then you can have your code in the main timeline and assign the interaction to the objects from there.  As an example, le's say you have a button named "gtn" inside a movieclip named "btnHolder" that sits on the main timeline.  And you want to have that button tell a movieclip named "mc" that sits inside another movieclip named "mcHolder" that is also on the main timeline.  Then in the main timeline you could use...
    btnHolder.btn.onRelease = function(){
         mcHolder.mc.gotoAndPlay("img02");
    To do it the way you want would require using  _root or _parent targets, which is usually better to avoid...
    on(release){
         _root.mcHolder.mc.gotoAndPlay("img 02");
    or maybe...
    on(release){
         _parent.mcHolder.mc.gotoAndPlay("img 02");

  • Convert Gaphics into Move Clip

    Here, I am create three files. Box.as for making graphich dimentional box, Drag.as is for dragging movieClip and ShowBox.as is to display draggalbe box. I would like to see box with draggable faclity. But I am getting error followig error.
    Description : 1067:Implicit coercion of a value of type Box to an unrelated type flash.display:MovieClip  on Show Box
    Might be I am getting problem of converting into move clip but I am not sure. Would u mind u you gind me in this problem/
    Box.as
    package {
         import flash.geom.*;
        import flash.display.Shape;
         import flash.display.Sprite;
         public class Box extends Sprite {
              public var box:Shape;
              public var boxWidth:Number;
              public var boxHeight:Number;
              public var boxColor:Number;
              public var boxBorderSize:Number;
              public var boxBorderColor:Number;
              public function Box() {
                   //Assign Value
                   boxHeight=100;
                   boxWidth=100;
                   boxColor=0x000000;
                   boxBorderSize=1;
                   boxBorderColor=0xCCCCCC;
                   box=new Shape();
                   box.graphics.lineStyle(boxBorderSize,boxBorderColor);
                   box.graphics.beginFill(boxColor);
                   box.graphics.drawRect(0,0,boxWidth,boxHeight);
                   this.addChild(box);
    Drag.as
    package{
        import flash.events.*;
        import flash.display.Sprite;
        import flash.display.MovieClip;
        public class Drag extends Sprite
            public var clip:MovieClip;
            function dragBox(myClip:MovieClip)
                    clip=myClip;
                    clip=new MovieClip();
                    clip.addEventListener(MouseEvent.MOUSE_DOWN,startMyDrag);
                    clip.addEventListener(MouseEvent.MOUSE_UP,stopMyDrag);
                    addChild(clip);
                    function startMyDrag(evnt:MouseEvent)
                        clip.startDrag();
                    function stopMyDrag(evnt:MouseEvent)
                        clip.stopDrag();
    ShowBox.as
    package{
         import flash.display.Sprite;
         public class ShowBox extends Sprite
              public var myMask:Box;
              public function ShowBox()
                    myMask=new Box();    
                   myMask.boxHeight=100;
                   myMask.boxWidth=100;
                   myMask.boxColor=0x000000;
                   myMask.boxBorderSize=1;
                   myMask.boxBorderColor=0xCCCCCC;
                   addChild(myMask);
                   var myDrag:Drag=new Drag();
                   myDrag.dragBox(myMask);
                   addChild(myDrag);

    I do not understand. Acutally, I want to drag the box . Thus, I want to make it movie clip throug AS. I have made graphic rectangular but could not convert nto movi clip. Is there any function so that I could change my graphic into movie clip .

  • Successfully imported external swf, can not put it into movie clip

    Hello all,
    I have started learning AS3 and gradually getting used to, trying to put external swf into movie clip.
    Successfully imported target swf and put into stage, when I publish this I see target swf is playing.
    import flash.display.MovieClip;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    addChild(BGLoader);
    As next step I want to put this swf into movie clip and get more control, but when I publish bellow only I see is empty background, without any errors.
    import flash.display.MovieClip;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    //addChild(BGLoader);
    var animMC = MovieClip(BGLoader.content).getChildAt(0) as MovieClip;
    addChild(animMC);
    Is anything missing?
    Any help would be appreciated, thanks.

    You can only access Loader.content after Load completed successfully.
    Try this,
    import flash.events.Event;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    //addChild(BGLoader);
    var animMC:MovieClip;
    function completeHandler(event:Event)
         animMC = event.currentTarget.content;
         addChild(animMC);

  • Putting movie clips in AS3 package into movie clip on stage

    Hi - I am a as2/flash animator and am working on an AS3
    project. The AS is in a separate file, inside a package. I am
    modifying existing code.
    The script adds movie clips in a function via addchild.
    What I am hoping to do, is have the movieclips added to a
    clip that already exists on the stage.
    I put a clip on the stage named holder, with the instance
    name holder_mc - and I tried to add the clip with
    holder_mc.addchild in the AS3 file - it seemed to work, but
    manipulating the holder_mc - it looks like the added clips are not
    affected?
    Any help is appreciated.

    Child_array is a property of the Parent class.
    It's only added to in one point, in a function that creates a
    Child and adds it to the array.
    I think I might have found out the problem with my code after
    adding a trace to the function, think I'm creating twice the number
    of clips I'm removing, and the deletion part of my code is fine!
    Turns out AS3 is maybe not so bad after all :P
    Thanks alot for taking the time to reply though kglad!

  • How Do I Make Bitmap, Graphic, or Movie Clip into a clickable link??

    I am designing a website entirely in flash (macromedia flash) but I cannot get the bitmap, graphics, or movie clips clickable links, although when hovered over turns into a hand.  Any suggestions? I have also tried the following script;
    on (release){
    getURL("http://www.google.com/", "_blank")
    Obviously I didnt use google, but still no go.
    I'm hot linking the raw fla file below.  I bought this template online and have modified it alot (all cosmetic) but I cant get the tabs to be links!?  I used action script (the one posted above) in every layer and the text inside the tabs.  But still doesnt work Does anybody know whats wrong?
    Sorry, but I dont know much in action script, I'm a c++ and web designer, this is my first time working in only flash.
    http://www.hotlinkfiles.com/files/2449178_iizru/_menu2_fv8.fla
    Here is my modded template in my website:  http://9karim.com/adminI only need to modify the menu bar

    I wouldn't say you're screwed, you just have some work ahead of you to find out what are actually the buttons in that thing.  If you look at the file on stage you'll see a large turquoise shape (an invisible button) that when you select it shows it has an instance name of "menu"... I still couldn't figure out what it has to do with those animated tabs, but it may lead to further discoveries.
    There's a lot of stuff woven into that file, and with the frame by frame animation, it's hard to isolate just about anything.  Based on what I see in the library as far as object naming goes, and your not knowing what's where, I'd conclude that this is an "acquired" design that has been decompiled into the fla you are trying to figure out.  While I haven't any experience with decompiled files, it wouldn't surprise me if there is an increased level of complexity as a result of how the decompiler rebuilt the file.

  • Closing swf loaded into movie clip

    I have built a movie clip on my main flash file that I am loading separate swfs into. On the separate swfs I have a close button, but do not know what action script to attach to it to make the movie clip go away? I want these to go away every time you hit the close button on the separate Flash swfs loading into the main movie clip.

    if the target movieclip has a non-negative depth and the close button is encoded on the loaded swf's main timeline, you can use:
    var tl:MovieClip=this;
    path.closeBtn.onRelease=function(){
    tl.removeMovieClip();

  • Loading JPGs into Movie Clip

    Can anyone help? I am building a site that requires the user
    to click on a button to change a large JPG image in a movie clip.
    The button is part of a small movie clip that contains a text
    number which is the button in question and a thumbnail of the large
    image. I need the button to play when rolled out (to fade out the
    thumbnail image) and I need the large JPG image to be replaced by
    another large JPG image when the button is released. The button
    instance is "Load Image" and the movie clip I want the new JPG to
    load into is called "Holding Pic". Should I put the action script
    on the main timeline? If so, where? Or should I attach the script
    to the button?
    Many thanks.

    This is an article on AS3 but the answer to your question is
    the same. You can find it in the first few paragraphs.
    http://www.adobe.com/designcenter/flash/articles/flacs3it_astimeline.html

  • Make Action Script connect to XML link

    Hi,
    Please if somebody can help me with this issue.
    I have Flash Movie (with multiple movie symbols) file that parses XML file(gallery.load("gallery.xml") with this
               <image>
                <date>03.31.06</date>
                <title>View of Seattle</title>
                <desc>View of Seattle</desc>
                <thumb>seattle5.jpg</thumb>
                <img>seattle5.jpg</img>
            </image>
            <image>
                <date>03.31.06</date>
                <title>View of New York</title>
                <desc>View of New York</desc>
                <thumb>New York.jpg</thumb>
                <img link="http://www.newyork.com">New York</img>
            </image>
    Action Script places first image in Flash File new movie symbol (new window).
              this.onRelease = function()
              showFullImage(this.imgToLoad, this.imgDesc);
    My problem is:
               i need to connect to image or to http
               depending on the tag in xml.
               In first example <thumb>Seattle5.jpg</thumb> button click will send image to Flash movie new window while
               <thumb>New York.jpg</thumb> click will open http://www.newyork.com
              this.onRelease = function()
              showFullImage(this.imgToLoad, this.imgDesc);
              i need to diferentiate here to let the ActionScript know that there is link present in XML
             getUrl(Link, "_blank");
    How can i make this split in Actionscript.
    Thank you

    when you parse the img node check if it contains ".jpg".  if yes, it's an image to load.  if no, use its link attribute to obtain the url.

  • How make still images into movie - each 1 frame only??

    I am trying to take the output of the linked program and make it into a movie: http://alienryderflex.com/crawl/ That ends up being about 3000 images for what I have made. When I imported them into iMovie HD, each of them was given 5 seconds each - which makes for a VERY long, and boring movie. How can I either change them all to be 1 frame long (en masse) or import them w/o having a time length attached to them beyond a single frame??
    Thanks,
    eric

    The photos were imported for 5 seconds each because apparently that's the duration currently set in the Photo Settings window, the window that opens when you press the Show Photo Settings button.
    The shortest duration offered by the Photo Settings window is 00:03 — three frames. But there is a back door to import with a 1-frame duration. The trick is to use the iMovie feature that imports photos using the import duration — and all the other photo import settings — of the last imported clip you clicked on.
    1. Click on any photo in the Photos list. Press the Show Photo Settings button. Turn OFF the Ken Burns checkbox in the Photo Settings window; drag the duration slider as far left as it will go; then press the Apply button. The new clip will have a duration of 3 frames. (Don't try to type the duration in the Photo Settings text box. The text box is buggy and you won't get the duration you want.)
    2. Double-click on that new clip. In the Clip Info window that opens, change the duration to 0:00:01, which is one frame. Press the Set button. Now the clip will play for one frame.
    3. In the Photos list, click on any photo. The default duration will be 00:03 in the Photo Settings window, which is the duration of your last import.
    4. Now click on the new 1-frame clip, then click on any photo in the Photos list. Now the default duration will be 1 frame, not 3.
    5. The photos you subsequently import will be 1 frame long until you change the duration, or click on a clip that's longer.
    There's one other hurdle, importing the photos in the order you want them. Ideally you have them now in the same folder, and they are named in numerical order. To preserve the order, the best method is usually to use iMovie's File > Import command to import all at the same time. (Click on the first photo in the folder, then Shift-click on the last one.)
    That method usually delivers them in the proper order. Dragging them from a Finder window — or from the photos list — usually will not.
    Oh, and don't forget to set your iMovie preferences to import them to the Timeline, not the Clip pane.
    If you can't get this to work then Yes, use QuickTime Pro's Import Sequence command. It lets you import all the photos with whatever duration you want. Save that movie, then import it to iMovie. Doing the type of movies you are, it's probably worth purchasing QT Pro for that one feature.
    Karl

  • Make White Background of Movie Clip Transparent

    I have a .mov of an animated object on a white background. How do I make the white background transparent to get the composite effect of inserting the animation in another movie? I am using FCE 4.

    Hi(Bonjour)!
    Set transfert mode for this clip to multiply.
    If the white doesn't become transparent, try to apply a brightness and contrast to purify the white or use a color correction to set a new white balance.
    Michel Boissonneault

  • Turning a layered animation into movie clip

    I am a flash newbie so this may be a retarded question. I am
    trying to turn a multilayered Flash animation into a movieclip
    symbol. I have shapes on different layers that are shape tweened
    and many shape hints that go with them. When I go to create a new
    symbol and paste my frames the shape hints don't end up in the same
    place as the shapes. Is there a way to keep the shapes and hints
    together as I copy and paste frames? Is there an easier way to turn
    this into a movieclip in the fist place?

    knealis wrote:
    > I am a flash newbie so this may be a retarded question.
    I am trying to turn a
    > multilayered Flash animation into a movieclip symbol. I
    have shapes on
    > different layers that are shape tweened and many shape
    hints that go with them.
    > When I go to create a new symbol and paste my frames the
    shape hints don't end
    > up in the same place as the shapes. Is there a way to
    keep the shapes and
    > hints together as I copy and paste frames? Is there an
    easier way to turn this
    > into a movieclip in the fist place?
    No, there is no easier way, only Copy Paste frames.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • (fla 8) ANULAR SCRIPT DE MOVIE CLIP

    Hola amigos,les cuento necesito alguna forma en action de
    decirle a un
    movieclip desde otro moviecip que desabilite las acciones, y
    luego poder
    decirle que las habilite cuando yo quiera en ese caso cuando
    presiono un
    boton. Espero ser claro, les dejo el ejemplo de layout_:
    movieclip 01 (contiene un boton que tiene accioes simple de
    loadmovie)
    movieclip 02 (esta encima del moviecliep 01 y tiene un boton
    dentro que se
    sobrepone al 01 y necessito desde el 02 controlar las
    acciones del 01 o
    anularlas para que no me pise las del 02.)
    Espero se entienda muchas gracias!! a todos como siempre

    Hola Juan si lo que pasa que el fla carga en un nivel un menu
    /(level10) y
    este menu carga a traves de sus botones un nivel mas alto
    (level 11) y el
    problema es que quiero anular todas las accionesdel level10
    para que no se
    interpongan con el level11.
    Espero ser explicativo en caso contratio dime que puedo
    hacer.
    Muchas gracias y espero me salves porque y ano se como hacer
    esto!! un
    abrazo
    "Juan Muro `8¬}" <[email protected]>
    escribió en el mensaje
    news:f6ripo$i8s$[email protected]..
    > ¿Puedes concretar exáctamente cuáles son
    las acciones o funciones que
    > quieres desHabilitar?¿Quieres borrarlas para luego
    volver a cargarlas o
    > solo quieres 'aparcarlas'?.
    > Mejor un ejemplo y mejor aún un *.fla o *.as
    > Salu2
    > `8¬}
    > Juan Muro
    > "__72 DPI__" <[email protected]> escribió
    en el mensaje
    > news:f6mgr3$nau$[email protected]..
    >> Hola amigos,les cuento necesito alguna forma en
    action de decirle a un
    >> movieclip desde otro moviecip que desabilite las
    acciones, y luego poder
    >> decirle que las habilite cuando yo quiera en ese
    caso cuando presiono un
    >> boton. Espero ser claro, les dejo el ejemplo de
    layout_:
    >>
    >> movieclip 01 (contiene un boton que tiene accioes
    simple de loadmovie)
    >> movieclip 02 (esta encima del moviecliep 01 y tiene
    un boton dentro que
    >> se sobrepone al 01 y necessito desde el 02 controlar
    las acciones del 01
    >> o anularlas para que no me pise las del 02.)
    >>
    >> Espero se entienda muchas gracias!! a todos como
    siempre
    >>
    >>
    >>
    >
    >

  • Action Scripting for button

    I created a little 'movie clip' of a continuous animation and
    want to make it a button that can be used in dreamweaver. I was
    told I would have to link it from flash (as dreamweave can not link
    a swf file to a webpage). I was having a problem trying to action
    script the movie clip - when I selected the 'movie clip' graphic it
    said: Current selection can not have actions applied to it. How
    should this be done?
    Thanks

    you're right - that should work. my first thing that i test
    when something like that happens is that every keyframe in the
    tween contains exactly the same instance. A common problem is that
    the instance name of the clip may be slightly different(eg a space
    somewhere) in different keyframes.
    Rather than looking for the problem, I usually just clear the
    keyframes in the tween and then put them back in. In your case I
    cleared the keyframe on frame 12 on layer "see more" and then
    inserted keyframe(returning it to color: None) and tested the
    movie. The button works fine!
    So then i went back to your original movie to try to find
    what was inconsistent between the two keyframes in 'see more' and
    couldn't find the problem... so anyway, this looks like a situation
    where we may not know the reason for the problem but at least we've
    found the solution...

  • Movie clips inside an animated movieclip

    Hello- I have been trying to get movieclip buttons inside an
    action script animated movie clip to work and have no luck doing
    so. The inside movieclips act as if they dont have over or out
    states; but when i comment out the animation, they work fine...
    here is my code- (Please note im am a newbe at action script so any
    suggestions on improving current code will be greatly appreciated)
    stop();
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function upFunction() {
    var xPosT:Tween = new Tween(kText, "_x", Strong.easeOut,
    kText._x, 400, 1, true);
    function downFunction() {
    var xPosT:Tween = new Tween(kText, "_x", Strong.easeOut,
    kText._x, 200, 1, true);
    kText.btn.onRelease = function():Void {
    _root.play();
    kText.onRollOver = function():Void {
    upFunction();
    kText.useHandCursor = false;
    kText.onRollOut = function():Void {
    downFunction();
    kText is the animated movieclip, btn is the button inside
    kText
    Thanks!

    if you define any mouse handlers for a parent movieclip (like
    kText) it will intercept all mouse events so child movieclips (like
    kText.btn) do not see the mouse events.
    to remedy define all mouse handlers for shapes (converted to
    movieclips), buttons and movieclips on kText's timeline or use a
    loop with hitTest one the parent or child

Maybe you are looking for

  • How to transfer data from USB flash drive to iPad Air?

    How do I transfer files and data from a USB flash drive, or from a PC, to an iPad Air?

  • Drag and Drop to Forms

    Hi OraTechies, Can anyone give some insight to my problem. The apps is written with Forms 6.0 and deploy in client server architecture. Soon, to be web enabled. In production, a user constantly complain about lost data. We found out he was dragging t

  • I am unable to get FaceTime to ring.

    I hav troubleshooter all of the settings suggestion But FaceTime won't Ring and I am missing important calls.

  • Passcode doesn't work

    I update my iphone now and he asked me for a passcode to use in the icloud keychain. After restarting the phone I enter the passcode to open it and nothing happened. I am sure of my passcode but I don't know what happened and I can't open the phone

  • Where is user name and password stored for database adapter

    dear all, does any body know where is the password stored in database adapters. I noticed it mentioned in wsdl file in encrypted format, but is there any other place it stored. a ) before deployment b) aftre deployment . Thanks in advance . Regards A