Library movie clip not readable

I apologize if this seems like a stupid question, but I've
only been using flash for a month, and I've been teaching myself
how. I'm attempting to make a simple interactive clip where an
onscreen icon performs an action when clicked on. Since it's a
graphic, I created the movie clip in the library. When I go to
reference it in actionscript (AS3), the code doesn't seem to
recognize what I'm doing. The code being used is this:
function onclick(event:MouseEvent):void{
gotoAndPlay('Click');
your_mc.addEventListener(MouseEvent.CLICK, onclick);
'Click' is the label of the frame I want it to jump to. If
necessary, I could convert it into Actionscript 2. Thanks in
advanced!

Telling it not to "act" like a button constitutes removing
any button-like actions [e.g. on(click)] and making sure its symbol
behavior in the Library is "Movie clip" and not "Button." However,
if you simply want to remove the hand cursor...
useHandCursor = false;

Similar Messages

  • Button within a movie clip not working

    Hiya,
    I have a movie clip within my swf website that is basically
    an icon that you roll over to produce the menu. The movie clip has
    coding inside it to produce the rollover effect. This is as
    follows:
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    Whilst this coding works fine for this movie clip, for some
    reason the buttons within the movie clip that appear as you
    rollover them will not work when pressed. I am trying to get them
    to navigate the main timeline, i.e. coding as follows:
    on (release) {
    _parent.gotoAndPlay("home")
    _parent should be correct, I've tried it without and with
    _parent._parent however still it has no effect. From what I can see
    everything should be working fine.
    Is there some reason why buttons will not work within this
    sort of roll over effect movie clip?
    Thanks for your help.

    you can't assign mouse handlers to a parent movieclip and
    expect a child movieclip to respond to mouse events: the parent
    will intercept those events.
    to remedy, either assign all your mouse handlers on the child
    generation movieclips or use a hitTest() for one of the
    generations.

  • Button w/in movie clip not working

    I know this question has been raised before and it usually
    just boils down to using the frame #'s and labels. But, even with
    that it is not working.
    I have a map of the US and when each state is rolled over I
    would like a menu to appear - this menu is a list with several
    options and all of the options are buttons. I have it set up so
    that each state is its own MovieClip and each has an invisible
    button over it for the hit area and the menu to appear. (i didn't
    want it to be simply when it rolls over the state movie clip
    because the hit would be square, covering other states and causing
    a mess of pop up menus)
    Anyway, the menu pops up fine, but the buttons within do not
    work. Any ideas of what I'm doing wrong? Thanks Much!!!!
    wi_mc.stop(); // wi_mc is the state movie clip
    wi_btn.onRollOver = function(){ //wi_btn is the invisible
    button
    wi_mc.gotoAndStop(15); //frame 15 is where my menu resides
    wi_btn.useHandCursor = false;
    wi_mc.onRollOut = function(){
    wi_mc.gotoAndStop(1);

    Alright, I've made adjustments to how I've got it all set up.
    I've made the menu it's own swf file, (seeing as how I'm going to
    have 48 of them in total I figured it was less messy to have each
    as their own file). Anyways... here's the current problem and I'm
    hoping someone has a good explaination for why this would be
    happening...
    on my main file I have 2 invisible buttons - 1 is calling the
    movie to load when rolled over and the other is calling the movie
    to unload when a roll-out occurs. RollOver works great - fully
    functional menu shows up. Roll out, however, is having some issues.
    The invisible button is in the same location of the menu, same size
    etc. so that when the user rolls away from this the menu should
    "unload".
    For some reason it's acting as if the hit area for the roll
    out is off. I did a trace to find out where it's saying the rollout
    areas are and the first is actually when I roll onto it, then only
    again when i roll out from the left side of the graphic. I've tried
    deleting the button and creating a new one but the same thing is
    happening.
    Any ideas for a very confused person trying to complete this
    simple task of unloading a swf via rollout? MUCH appreciated!!!!
    this.createEmptyMovieClip("ExternalSWFHolder",
    this.getNextHighestDepth());
    var SWFLoader:MovieClipLoader = new MovieClipLoader();
    wi_btn.onRollOver = function(){
    SWFLoader.loadClip("wi_menu.swf", ExternalSWFHolder);
    wi_rollout.onRollOut = function (){
    SWFLoader.unloadClip(ExternalSWFHolder);

  • AVI movie clips not showing up in browsers.

    For years I have posted my travel pics and AVI movie clips on the web. Now I've updated to Quicktime 7.1.6 and the AVI will not load in a browser (IE or Firefox). The AVI pics will play if double clicked no my desktop. Any ideas?
    iMac G5   Mac OS X (10.4.9)  

    To The Apple Discussion Boards!
    Check QT's MIME Settings to make sure the .avi setting is enabled.

  • Movie Clip not playing correctly (Flash CS3, AS2)

    Hey, I'm making a tutorial for a board game and there's this movie clip that mimics a piece being played. It's basically empty for about 9 frames and then the piece is on the 10th frame. On the 10th frame, I placed a stop(); script. The movie clip has no linkage and no label.
    For some reason, on a certain frame, it didn't work. It worked fine on other frames so I copy & pasted from those frames and replaced the movie clip that did not work right. Oddly enough, after I copy & pasted the movie clip, the error spread to the movie clip I copied! I tried it again and again the error spread to what ever clip I copied from. The other movie clips (same item) still functions properly. I never encountered a problem like this. Can anyone please help?

    1. you should have no code attached to objects.  assign your objects instance names (eg, mc) and use those names in your code.
    2. that code should not be in an enterframe loop. 
    if(_root.action_ryu==1){
    mc._alpha=100;  // not _Alpha
    mc.gotoAndPlay(4);
    _root.Ryu._alpha=0;
    } else {
    _root.Ryu_Attack._alpha=0;

  • AS3 to make movie clip not play on default?

    I created a movie clip that I want to play when a button is
    clicked and
    stop when another button is clicked.
    I have a stop action on the first frame where the 2 buttons
    appear and
    the movie clips resides. When I test the movie, the movie
    clip plays by
    default.
    How do I set it up so the movie clip does not play until the
    user clicks
    the play button?
    The code I am using:
    myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
    myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
    function playMc(e:MouseEvent):void{
    my_mc.play();
    function stopMc(e:MouseEvent):void{
    my_mc.stop();
    Thanks!!!

    Not sure if I understand. Where specifically should this be
    added to the
    code:
    myPlay_btn.addEventListener(MouseEvent.CLICK, playMc);
    myStop_btn.addEventListener(MouseEvent.CLICK, stopMc);
    function playMc(e:MouseEvent):void{
    my_mc.play();
    function stopMc(e:MouseEvent):void{
    my_mc.stop();
    Thanks!

  • Ken Burns movie clips (not still photo)

    How can I apply ken burns to movie clips. I know that the ken burns button only appears when we edit still photos, not movie clips. Is there any method to achieve an effect similar to ken burns? Or at least remotely similar?

    iM's Bigger Brother FinalCutExpress allows such an effect by 'key framing' ..

  • Movie clip not playing

    i create some animation. actuvally i move mouse on button some menu visible, i click test button  when play "boxani" Movie Clip.
    but not playing.  ?????
    Test link
    http://megaswf.com/serve/1185333
    btn_mc.menu_mc._visible = false;
    boxani_mc.stop();
    btn_mc.onRollOver = function()
              btn_mc.menu_mc._visible = true;
    btn_mc.onRollOut = function()
              btn_mc.menu_mc._visible = false;
    btn_mc.test_btn.onRelease = function()
              boxani_mc.play();

    any solution that type of animation method
    like freedocast video player mouse over menu and click run action (16:9, 4:3).
    http://www.freedocast.com/watchvideo.aspx?vid=531B426A31D72143109F

  • Mask works in movie clip, not in scene

    I've created a movie clip with a mask that I'm using in a
    main scene. The mask looks fine while editing/working the movie
    clip, but does not show up in the scene.
    The really strange thing is that it was working, but suddenly
    now it won't show up in the scene any longer. I've tried replacing
    it, making a new layer and bringing it in again. But nothing works.
    Does anyone have an idea of why this would be?
    Any help GREATLY appreciated!
    dm

    scenes are nothing more than the main timeline divided.
    Nothing different from one scene to the
    other in terms of layer and frame functionality - sounds to
    me like you simply dont have the mask
    and masked layers locked in that scene.
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    dkmiles wrote:
    > I've created a movie clip with a mask that I'm using in
    a main scene. The mask
    > looks fine while editing/working the movie clip, but
    does not show up in the
    > scene.
    >
    > The really strange thing is that it was working, but
    suddenly now it won't
    > show up in the scene any longer. I've tried replacing
    it, making a new layer
    > and bringing it in again. But nothing works.
    >
    > Does anyone have an idea of why this would be?
    >
    > Any help GREATLY appreciated!
    >
    > dm
    >

  • Movie clip not visible

    I the code below I want to add the following array of movie clips: activeLevelofTilesArray
    After I added the code below the swf plays with the following error:
    ReferenceError: Error #1069: Property [object S],[object T],...etc.
    not found on builtin.as$0.MethodClosure and there is no default value.
        at WordArray/startTileTimer()
        at WordArray/activeLevelofTiles()
        at WordArray/tileGenerator()
        at WordArray/levelGenerator()
        at WordArray()
        at wordText/initWordText()
        at flash.display::DisplayObjectContainer/addChild()
        at BugGoopFSGame/startTimer()
    I can also not see the movie clips.
    To try to trouble shoot this I ran a trace statement successfully and I turned off any graphics that might be in front of it. Why can't I see my movieclips and how do I fix error 1069?
    package
        import flash.display.*;
        import flash.text.TextField;
        import flash.events.Event;   
        import flash.utils.Timer;
        import flash.events.*;
        import flash.events.MouseEvent;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        public  dynamic class WordArray extends MovieClip
                    public var wordtext:wordText =  new wordText;
                    var activeWordArray:Array;
                    var activeLevelofTenWordsArray:Array;
                   var activeLevelofTilesArray:Array;
                    public var letterArray:LetterArray;
                    var tileTimer = new Timer(500,384);
            //Movie clips of letter tiles to be used
            public var a:A = new A();
            public var f:F = new F();
            public var g:G = new G(); //etc. for all mc's
            private var wordArray:WordArray;
            private var letterTiles:Array = [a,f,g..etc];
                                  private var  lettersL01:Array = [a,a,f,f,f,g,g,h,h,i,i,n,n,n,o,o,o,o,s,s,t,t,t];
                                  private var  lettersL02:Array = [th,th,  //etc for all levels..
                                public var letterLevels:Array = [lettersL01,lettersL02,lettersL03,lettersL04,lettersL05,lettersL06,lettersL07,lettersL08, lettersL09,lettersL10,
                                                                                 lettersL11,lettersL12,lettersL13,lettersL14,lettersL15,lettersL16,lettersL17,lettersL18,l ettersL19,lettersL20,
                                                                                 lettersL21,lettersL22,lettersL23,lettersL24,lettersL25,lettersL26,lettersL27,lettersL28,l ettersL29,lettersL30];
    public var  wordsL1W1:Array = ["a"];  //etc for all words
    public var  wordsL01:Array = [wordsL1W1,...etc for all levels];
    public var wordLevels:Array = [wordsL01,wordsL02,...etc. for entire word array]
                    private var tf:TextField;
                    // ***constructor code
                    public function WordArray(_tf:TextField)
                        tf = _tf;
                        levelGenerator();
                    function levelGenerator():void
                        //**To get next level of 10 words
                        if(wordLevels.length>0)
                            activeLevelofTenWords();
                            tileGenerator();
                        else
                        //Game is complete
                    function activeLevelofTenWords():void
                        // na
                    function tileGenerator():void
                        if(letterLevels.length>0)
                                activeLevelofTiles();
                        else
                                //Game is complete
                        function activeLevelofTiles():void
                            activeLevelofTilesArray = letterLevels.shift();
                            shuffleTiles(activeLevelofTilesArray);
                            startTileTimer();
                        function shuffleTiles(a:Array)
                            //works perfectly
                        function startTileTimer():void
                                tileTimer.start();
                               trace(activeLevelofTilesArray);  // show in output pannel without errors
                                activeLevelofTilesArray.x = 399;
                                activeLevelofTilesArray.y= 30;
                                addChild[activeLevelofTilesArray];    //can not see these in swf ***these show in output pannel with an error code ReferenceError: Error #1069: Property [object F],[object O],[object F],...etc
                                trace("Letters should run"); //this shows in output pannel
    //rest not applicable..

    Hi Ned,
    Thanks, I moved the shuffle function out of activeLevelofTiles like you said and it still works. Yippeeeee
    I have 3 more issues that I need to sort out:
    I'm not doing this whole tile business correctly. As you predicted - If I trace the tile_index value I see only one tile eg. [object a]. It gives me a different one every time so I know the suffle function still works. I need for it to shuffle through the entire active level *3 so that "the tiles fall from the sky" individually generated by the timer that I have built. I guess I have to add it to an event handler.
    Although the trace (activeLevelofTilesArray[tile_index]); worked, I still can not see even the one object generated in the swf file - I think this will solve itself when issue 3 is solved
    After I descovered issues 1 and 2 above, I attempted to declare the tile_index variable outside of the loop. I must have done it wrong or incompletely because I get the following error messages on all the lines I used tile_index:
                             1120: Access of undefined property tile_index.
    Below is the code now:
    function tileIndex():void   //this must be wrong because it gives me that error code and as you predicted only gives one value (I want te whole lot times 3)
                                    for (var i: Number  =0; i < activeLevelofTilesArray.length*3; i++)
                                var tile_index = (i%activeLevelofTilesArray.length);
                        function activeLevelofTiles():void
                            activeLevelofTilesArray = letterLevels.shift();
                            shuffleTiles(activeLevelofTilesArray);
                                tileTimer.start();
                                trace(activeLevelofTilesArray);
                                activeLevelofTilesArray[tile_index].x = 399;
                                activeLevelofTilesArray[tile_index].y= 30;
                                addChild (activeLevelofTilesArray[tile_index]);  //maybe the addChild will work (issue 2) when the tile_index problem is solved
                                trace("Letters should run");
                                trace (activeLevelofTilesArray[tile_index]);

  • Re: Movie Clip not working in exported interactive PDF. Can anyone help?

    I've imported a movie clip into an InDesign document, but when I've come to export it as an interactive PDF it isn't working. I've made sure the Button and Media box is clicked in the export options to include all. I've exported it as a flash file and that works fine, so I'm assuming everything i've done in InDesign is okay. Any ideas?

    Im having a the same issue, i have 2 f4v files inplace and one SWF. And when I export to a SWF and bring it back into indesign to be exported as an interactive PDF it the 2 f4v and SWF files in it will not work.

  • Movie purchased not showing in library, movie purchased not showing in library

    I purchased Frozen in HD and it's shpwing as a purchase in the iTunes store but not in my library. It's saying all purchases have downloaded? help!!

    Hello hotsone,
    You may need to download a lower resolution version of the movie in order for it to sync to your iPod.
    iTunes: Sync purchased HD videos to iPod or iOS device
    http://support.apple.com/kb/TS4223
    Cheers,
    Allen

  • How to email movie clip not as quick time

    I made a 20 second video that I am trying to e-mail to a friend. It is 214 mb. When I click on share in iMovie, it compresses the video and makes it a QuickTime video. The QuickTime video looks horrible, grainy, and dark. When I try to attach the original iMovie project to an e-mail, I can't choose it as an attachment (it shows, but I can't click on it to attach it). What am I doing wrong? Thanks!

    Control-click the project, compress or archive it, and attach the resulting zip. Note that the zip may be too large to be attached; in this case, use another method, such as an IM client or this service to send it.
    (38146)

  • Movie Clip / Buttons

    I know this is probably something really easy to do I just
    for whatever reason cannot make this work. I am new to flash and am
    building an entire website. I used a template that I purchased and
    have been messing around with it and changing it. Problem is the
    buttons that are made are movie clips not actually buttons. I want
    to create a duplicate button, so I created a duplicate of the movie
    clip in the library. Problem is when I drag the movie clip into the
    movie and run the flash preview the new movie clips do not work
    like the other ones – meaning the other ones behave like they
    should – as a button (when I move my mouse over it the action
    works) but the new ones just appear as images. I know this must be
    a very easy fix and I must be doing something wrong. Any help would
    be greatly appreciated – (I might not have explained the
    problem accurately, so if more clarification is needed or an
    example needs to be uploaded let me know)
    Thanks a lot!!!

    Thanks that worked great, hope that wasn't too noob : (
    Well another problem as come up, I made another flash movie
    containing content in an xml file. When the swf is hosted and in
    the browser it works fine. However when i put that same swf in an
    html document and host it the xml never loads. Am i doing something
    wrong?
    Thanks in advance,
    ~Rob

  • Error 1034: Converting movie clip to instance of a custom object?

    I have several movie clips on the stage that each have unique instance names.
    I need to instantiate them as instances of a custom class I have created. This is giving me an error, and I know I'm probably missing some simple concept somewhere, doing something wrong, but I don't know what it is.
    Here is my code:
    In the main timeline, I have (simplified):
    var puzzleAL:GeoGroup = new GeoGroup ("AL", "Alabama", 1, false);
    puzzleAL.addEventListener(TouchEvent.TOUCH_BEGIN, geoTouchBeginHandler);
    function geoTouchBeginHandler (e:TouchEvent): void {
        e.target.gotoAndStop("Over");
        nameDisplay.gotoAndStop(e.target.abbrev);
        e.target.addEventListener(TouchEvent.TOUCH_END, geoTouchEndHandler);
    function geoTouchEndHandler (e:TouchEvent): void {
        if (e.target.lock == false) {
            e.target.gotoAndStop("Off");
        else if (e.target.lock == true) {
            e.target.gotoAndStop("Lock");
        nameDisplay.gotoAndStop("USA");
        e.target.removeEventListener(TouchEvent.TOUCH_END, geoTouchEndHandler);
    It throws an error before the object is ever instantiated. It compiles, but at runtime I get:
    TypeError: Error #1034: Type Coercion failed: cannot convert Puzzleography_fla::Alaska_2@da0a0f9 to GeoGroup.
         at flash.display::MovieClip/gotoAndStop()
         at Puzzleography_fla::MainTimeline/goToFrame()
    My class code looks like this, if it matters:
    package  {
        import flash.display.MovieClip;
        public class GeoGroup extends MovieClip {
            public var abbrev:String;
            public var fullName:String;
            public var assignedOrder:Number;
            public var lock:Boolean;
            public function GeoGroup(abbrev:String, fullName:String, assignedOrder:Number, lock:Boolean) {
                this.abbrev = abbrev;
                this.fullName = fullName;
                this.assignedOrder = assignedOrder;
                this.lock = lock;
    I'm missing something obvious, I know it, but I'm new to OOP, switching from procedural, so I'm sure I'm getting a concept wrong somewhere.
    Thanks so much!
    Amber

    yes, it makes sense and yes, you'll need to learn a little.
    I have 50 movie clips not linked to any actionscript in the movie.
    that's incorrect.  those movieclips are linked to all the actionscript that applies to their class.  so, even if those movieclips weren't part of the GeoClass, they still have all the properties, methods and events of the movieclip class (created by adobe developers).
    The fact these movieclips are actually GeoGroup objects extending the movieclip class, adds even more code to them.  and, so far that's all good and exactly what you should do.
    They are all on the stage. They are all named with their instance names "puzzleAZ" "puzzleTX" etc.
    no problem, usually.  (but in your case, a problem explained below.)
    I want to be able to add variables to them, such as strings and numbers, so that I can call puzzleAZ.size or puzzleAZ.fullName to get "XX Acres" or "Arizona" returned.
    so, in programming lingo you want your objects to be members of a dynamic (ie, you can add properties) class.  the movieclip class is just such a class.
    I created a separate class (GeoGroup) that extends MovieClip that has in it all the variables I need and tried to assign each movie clip to that class.
    here's the problem.  when you created your GeoGroup class you mandated that certain parameters be passed to the constructor.  when you add a class member (like each of those puzzle pieces) to the stage, the class constructor is invoked (along with everything else in that class).  However, no parameters are passed to your constructor so the flash compiler points out the issue and refuses to run your code.
    there are two ways you could proceed:
    1.  remove the parameters from the constructor
    2.  don't add any class members to the stage in the authoring environment.
    p.s.  this is your GeoGroup constructor:
          public function GeoGroup(abbrev:String, fullName:String, assignedOrder:Number, lock:Boolean) {
                this.abbrev = abbrev;
                this.fullName = fullName;
                this.assignedOrder = assignedOrder;
                this.lock = lock;
    the paramters that contructor requires are 2 strings, one number and one boolean.

Maybe you are looking for

  • How to Call Livelink Archive Java Viewer(IXOS-JavaViewer Applet )

    Hi, I want you to teach,How to call Livelink Archive Java Viewer(IXOS-JavaViewer Applet) I want to call it in the following images. When the button is pushed, I want to call Livelink Archive Java Viewer. The method was not able to be taught though it

  • Where to ask it

    Im trying to decide what type of laptop to buy, and although I have always been a PC person, I am now leaning towards a Mac, but the only problem is that they are significantly more expensive than PC's. I am starting university this October in the UK

  • What are the hidden files displayed when entering "ls -a" in Terminal?

    When you type "ls -a" into the Terminal to display all the files in a particular directory it often displays three hidden files - one call ".DS_Store" which I understand but two other simply names "." and ".." which I have not been able to find any i

  • Another source of G5 noise

    I experience beeps and chirps from the power supply, but also another kind of noise. Almost every day the door on my G5 starts vibrating. With the fans usually making very little noise I can hear the door vibrating from several feet away. This happen

  • Cisco pix 501 open port problem

    Hi, I'm running a Pix 501 for Home office and I want to open first ports for my mail client for an outside located server. But i get following error in the log: 106023: Deny tcp src outside:<ipmailserver>/993 dst inside:<ipoutsideinterface>/1729 by a