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]);

Similar Messages

  • How can you make movie clips partially visible?

    Okay, so this sounds simple, but I'm tottally lost... I'm a thirteen year old boy that has been using Flash for a little over 3 years. I program video games. I recently embarked on a game where one of the modes is to be split screen, player one gets the top half, player 2 the bottom. The promblem with this is that my game is based off of a moving background, where inorder to keep the main character centered the background moves instead of them. Becsause of this,when setting up split screen, the screen on the upper layer takes over the bottom because there would be more showing then there would be in the game: Parts would be off screen. I was wondering if there was anyway that using hitTest(s) (or some other method) you could make a movie clip partially visible/ invisible. I know the code for making something invisible when touching something else. But I was wondering if there was a way to make only the part of the movie clip touching another movie (it would have its alpha turned off... let's say it's a hitBox) or only the part of the movie clip touching the hitBox visible, invisible. Another way of looking at this is that I want a movie clip to be a small box, but inside I want their to be a huge picture. I want to make it so that when you move the picture different parts are viewable in this little box. And to make this as clear as I can... : I want to make a circle that I'll call the magnifying glass. I want to make an invisible picture that can be moved using code (I know that part). I want it so that when part of the picture is under the magnifying glass it's visible, not the hole thing, jus that circular area. Another reason I'd like to have this promblem solved is for a moving water effect. I want to make a movie clip and tween showing a square of rushing water, but without putting anything over parts of it (other than a hitBox) I want to make only a squiggly line of that water box visible. Thank you so much! =D I really hope you guys know! =D P.S. I also am currently using the trial of CS4, if that helps anything. But if it's only possible in AS3, then it's impossible to me because I use AS2 conservatively.

    Thanks... but I think you've misunderstood my question. I suppose magnifying glass wouldn't be the right word... I just wanted to explain that I want only the part of one mc touching another mc to be visible. I hope this isn't confusing. I have no need to enlarge an image. I want to make a movie clip only partially visible. Check out the fla.

  • How do I make all buttons on stage unclickable, while a certain movie clip is visible?

    Hi,
    I have a button on stage which opens a popup (movie clip is popup + several other buttons). The movie clip and the buttons on it take up most of the stage.
    The problem is that the buttons which are on the stage, and are behind the movie clip, remain clickable (you can click through the movie clip!). How may I disable this?
    Basically, I need to make it that you cannot click through the movie clip.
    Thanks in advance!
    PS I am using CS5 and AS2.

    One way would be to make the movieclip clickable.  That would make it block the other objects behind it...
         mc.onRelease = function(){ }
         mc.useHandCursor = false; // to hide the hand cursor
    Another way would be to disable the buttons while the movieclip is present...
         btn.enabled = false;
    Another way would be to build conditional code into the button clicking code to not work if the movieclip is visible.
         btn.onRelease = function(){
              if(!mc._visible){
                    // okay to do stuff

  • 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

  • Detect if movie clip is visible inside browser window

    Hello.
    It's easy to check if movie clip is on the stage/display list.
    But how to detect if movie clip is inside the visible area of browser window?
    Any ideas?

    if you don't know anything about the movieclip and you are not consistant with your registration points check its colorRectBounds using the bitmapdata class.  otherwise, check its x,y

  • 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);

  • Goods movement button not visible in CO11N

    Hi,
    i am not able to see goods movement button CO11N transaction as shown below in one if my IDES server....
    what settings we need to do for this so that goods movement button is visible like below...
    Thanks
    Kumar

    Hi AKS AKS,
    I am working on a ides server....you want me to add this parameter CORUPROF in the SU01/SU02 to the id I am using...
    Thanks
    Kumar

  • 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' ..

  • 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
    >

  • 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;

  • 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.

Maybe you are looking for

  • Error while deleting the Master data

    Hi Friends, i am getting the below error while deleting the data from a master data:- The system is unable to delete all of the specified master data,because some of it is still in use. (See log:Object RSDMD, sub-object MD_DEL ) Do you want to delete

  • New Blackberry Z10 User (Multiple Questions)

    1.  I used to be able to input all my email accounts online.  For example sprint.blackberry.com.  I tried att.blackberry.com; however, it indicates my operating system is no longer supported with my new device.  Does anyone know when this capability

  • ILife apps

    After data migration from MBP (early 2007) to current MBP (late 2013)  I have 3 versions of iMovie.  v8,v9, and v10.2.  Should I keep all  three?  I don't use it very often, but from other threads it seems  people prefer the earlier versions.  Should

  • Lumia 800 bluetooth audio very quiet

    My Lumia 800 connects to a Bluetooth receiver for playing audio files, with no trouble. However the volume of the stream is very very low. I have to turn up the volume on the phone and stereo to max to hear anything. Any ideas anyone?

  • Extraction of procedure from DB to flat file

    I have recently moved from using Informix to Oracle and I am trying to find a way to extract a procedure from the Oracle database to a flat file on my system. Informix has utility dbschema which allowed me to do that, what does Oracle have that can d