Problem with accessing dynamically created video clips, returns null.

I hope that it's a dumb question with an easy answer, if my code is pretty simple.

I use this code snippet to create menu items, then use the variable jCount below to give the clips a like number, index in so much of (which seems to work very well):

for(var j:Number=0;j<xmlSubMenuLength;j++){  
    var mcSubMenuItem:mcSubMenu=new mcSubMenu();    
    addChild(mcSubMenuItem);     
    jCount++;    
    mcSubMenuItem.name = "mcSubMenuItem" + jCount; 
    //traces out names correctly
    trace ("---------------------------------jCount NAME = "+ mcSubMenuItem.name); 
    mcSubMenuItem.x=mcMenuHolder.x+20;
    mcSubMenuItem.y =mcMenuHolder.y;
    mcSubMenuItem.y+= nextBtnY;
    nextBtnY+=subtopicSpace;
    global_subi.text = String(jCount); //i see the proper count of 10 in the text field
   }
   
   

However, when I try to access the clips using this snippet:

  
 for(var j:Number=0;j<Number(global_subi.text);j++)//
    {   
  trace("GLOBAL SUBI = "+ String(global_subi.text));  //traces out 10, which it should
  var scSubMenuItem:String = "mcSubMenuItem" + j;   
  var scSubContent:Object = this.getChildByName(scSubMenuItem); 
  trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scSubContent:Object = "+ scSubContent); //returns null!
  
 }   

My last trace statement returns null. Anyone can see my mistake, or explain why I can't access my videos after they have been created?

Thanks muchly,.

~ Chipleh

You are welcome.

Tags: Adobe Animate

Similar Questions

  • Problem with access policies (create several resources)

    I'm having a problem with access policies:

    The first policy must create a resource.
    And the following policies should create childs on the resource.

    The problem here is that when the policies will add the childs, the resource is not configured yet.
    And then each will create a resource but I want just a single resource of the childs.


    When the resource is already deployed, policies to update this resource correctly.

    How can I fix?

    TKS

    Ricardo,

    I had a similar problem. In a post processing Manager, I managed the membership of the user to specific through the removeMemberUser roles and the addMemberUser of the tcGroupOperationsIntf class.
    The last parameter of this method is a Boolean value that, if true, would automatically trigger access by programming strategies in post processing.
    The problem is that there also is an OOTB handler for triggering access rules, so I was basically triggering twice access policies and duplicate resources appear.

    I hope this helps.

    See you soon

  • First Elements 11 - I have a problem with pinning of the video clips in the timeline.

    Hello

    I have a new Prime Minister 11 elements.  I'm working on a video with a narration track project.  Because I have to build animations in photoshop that go with the narration, I'm not editing in a way liner.  When I insert clips earlier on the timeline animations, it tends to move the clips of animation to the top or to the bottom of the timeline and sometimes he's trying to cut my narration.  Is it possible to pin the animations to a specific timecode on the timeline, which then will allow me to insert the live action clips inbetween with out having to sycn are ' animation to the narrative.  In older versions of the first I used years ago (and FCP), it's the titles of easy locking.  I know that you cannot lock a track in PE11, but is it possible to pin the video to the narrative?

    I too if I have to 'resync' animations to the narrative is there a way to select the entire animation (which is located on several tracks) to return it to its place compared to the narrative?

    Thank you.

    Unfortunately, pre has never added the ability to lock a track (something that PrPro and something that I and many others, have asked), so a change in workflow could be the best.

    For what you describe, I would just edit video 1 and Audio 1 (or according to the following you use), and then add your animations on 2 video tracks (or any video track above your edited Clips). All that is on a video track higher, it will be seen, regardless of which is lower than that, except if we adjust the opacity (to see through the Clip on the video track above), or they "drill holes" in this upper Clip, say with Track Matte Keying, or via a channel Alpha, or the Garbage Matte.

    Your animation will be seen and your Clips edited, weaker will not be made, other than that they are not visible.

    Another method would be to make an Insert Edit where your animation replaces a corresponding number of images in the Clip to which you drag, on the same video track. Just hold down the CTRL (Cmd on Mac key) and drag your animation to the place you want to so he can be at the Top of the clip here. Their mounts will be replaced by your animation.

    A third, if you want full "lock" video and Audio, would be to export/Share/publication chronology of the project, and then import the output file (it will no longer Clips, but will be a long Clip), then add animations, or whatever, by using one of the two methods above.

    Good luck

    Hunt

  • Remove dynamically created video clips?

    Hello

    I can't have compensation to a shell clip which has other mcs dynamically placed inside.

    Something like that;

    var myShell:shell_mc = new shell_mc;
    addChild (myShell);
    //

    -Obviously these buttons are on stage already-
    buildBtn_mc.addEventListener (MouseEvent.CLICK, buildFunction);
    clearBtn_mc.addEventListener (MouseEvent.CLICK, removeFunction);
    //
    function buildFunction(event:MouseEvent):void {}
    var i: int;
    for (i = 0; i-5; i ++) {}
    var myTitleBar:bar_mc = new bar_mc;
    myShell.addChild (myTitleBar);
    myTitleBar.y = 25 * i;
    }

    }
    //
    function removeFunction(event:MouseEvent):void {}
    Remove?
    }

    Hello

    Try this:

    function removeFunction(event:MouseEvent):void {}

    While (myShell.numChildren > 0)

    myShell.removeChildAt (0);

    }

  • Problems with access to the web pages, email, video, etc. even when I have 4-5 bars.

    I installed a Dell Wireless 1505 low-profile carrier 1.2 antenna dim/insp in desktop. Its a PCIe wireless lan card. But since last Tuesday patches have been installed I had problems with access to the web pages, email, video, etc., even when I have 4-5 bars.  Someone at - it an idea of what's going on.

    Hi William e. Swann

    1. what web browser do you use?

    Method 1:

    You can read the following article and check.

    You may experience connectivity problems or performance issues when you connect a portable computer that is running Windows Vista or Windows 7 to a wireless access point

    Method 2:

    You can also read the following article.

    How to troubleshoot network connectivity problems in Internet Explorer

    Hope this information is useful.

  • I had problems with access to most of the Web sites and I noticed that HTTPS is no longer, how do I make permanent HTTPS so I can access any Web site?

    I had problems with access to most of the Web sites and noticed that HTTPS no longer appears whenever I try to access a Web site. I can easily connect to my gmail and facebook account, but the problem is that when I click on a link on FB and gmail, I get the annoying message "refused to connect.

    How to address this issue, rather how to make HTTPS permanent so I can easily access any Web site. The date and time on my laptop are both correct. I am currently using OS x 10.9.5.Please!

    How to address this issue, rather how to make HTTPS permanent so I can easily access any Web site.

    My guess is that you have a damaged or invalid certificate entry OS X KeyChain, but to directly answer this question, I would say that consider you something like HTTPS Everywhere. Note, it is not available for Safari. It is available directly through the Google Chrome browser extensions.

  • Problem with youtube and other video sites

    I have a problem with youtube and other video sites:

    Everything is up-to-date (flash, FF, my plug ins.) but I get crashes when loading the video. I can hear the sound but I see only the first frame of the video.

    I've reinstalled flash/firefox or tried updating them again for about 4 times now and my cookies/cache has also been errased which i usually don't do. If i enter FF's safe mode it also freezes.
    

    I hope someone can help, I looked for answers on google before and I tried everything I saw, but it did not help.

    GRTS,
    agrash

    I had the same problem, I uninstalled the plugin Flash player (Adobe Flash Player 11.0.1 152) and the problem is solved. I installed the plug-in again and the problem came back. So right now I have no flas Player liked-in, but I don't have too much problem. I hope that I will not find another problem, but it seems that everything is OK.

  • Problem with access point or wireless adapter

    Hello world

    tried to connect to my WiFi, but the convenience store detects that the problem with access point or wireless adapter.
    The drivers are up-to-date and functioning normally. There were discussions on BIOS but I don't know if I would be able to complete the task without bricking your laptop.

    Is there any online support?

    Hi smert

    Your message is not really useful.
    Why? Because no one knows all the details of the laptop, wireless network card system...
    So please would you be kind enough to provide more details.

    But despite the missing information, I recommend:
    (1) reset your router WLan
    (2) check the connection to the WiFi unsecured. (of course for testing purposes)
    (3) check the different (WPA/WPA2 AES, TKIP) encryption

  • Problems with the windows player video media and internet explorer?

    Original title: Windows Media Player

    I have Windows Media Player 11. I can't play the videos with her. Videos MSN don't is not at all and YouTube loading starts playing and closes exactly 11seconds every time regardless of what particular video. I recently updated my IE 8 browser and tried to use Microsoft Fix it Center Online. It has fixed some problems but not this problem. Any ideas out there? Thanx.

    Hello

    (1) windows operating system you are using?

    (2) have you made changes before the start of this issue?

    (3) what is the exact error message or error code?

    (4) what type of video file you try to play?

    (5) in difficulty he makes you run?

    Step 1: Search for the codecs

    Codecs: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions

    For reference:

    Solve problems in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-in-Windows-Media-Player

    Resources for the resolution of problems in Windows Media Player

    http://support.Microsoft.com/kb/843509

    According to the problem with the playback of videos in Internet Explorer, try the steps in the following article

    The video problems when you use Internet Explorer

    http://support.Microsoft.com/kb/2532294

  • Problems with access to Web sites in the laptop of my mother, both wireless and ethernet connections

    Original title: Internet issues

    My mother's laptop has suddenly stopped to access Web sites. I tried to explore, Firefox and Chrome using both wireless and ethernet... connections we both century link and I tried the two houses... my works laptop on both networks. All three browsers connect to the internet, but not all pages opens. I ran the store and he told me that I should look online for more help... which is not the case, but it cannot determine the problem. Any ideas?

    Hello

    Welcome to the Microsoft community.

    I understand that you have a problem with access to Web sites. We apologize for the inconvenience caused to you and appreciates your efforts to try to resolve the problem.

    I would like to know the details below to help you better

    1. Do you receive an error message/code when you access Web sites?
    2. Do you think that any symbol with exclamation on the icon of this internet access on the taskbar (right)?

    I ask you to try the steps in the Microsoft Help article below and check if it helps.

    Why can't I connect to the Internet?

    http://Windows.Microsoft.com/en-us/Windows/cant-connect-Internet#1TC=Windows-7

    Also I ask you to reset TCP/IP and check if it helps.

    How to reset TCP/IP using the NetShell utility
    http://support.Microsoft.com/kb/299357/en-us

    Keep us updated on the issue to help you better.

  • Problems with saving files, creating new layouts div fluid

    Problems with saving files, creating new layouts div fluid. Can I reinstall all the software Dreamweaver?

    Thank you

    I reinstalled and all is well.

    Sent from my iPad

  • Adobe Flash Player 12 creates problem with access setting Kaltura

    After installing Flash Player 12, I have the following screen: problem with Kaltura ' cannot access the settings of.
    (Have screen shot, but it can not paste here...)

    ***************
    Looks like:
    Captions Settings
    FONT      SIZE
    Stroke  ON
    Background OFF
    SAVE CANCEL
    
    ******************

    The video plays, but with this window in the middle of the image. Just happened after the update.

    Jean-Jacques,

    You can download an image by clicking on the button Browse located below the reply box...

    It would help a lot for help you.

    From what I understand of the posted link iamjayakumars, Flash 12 beta will install updates in the background, but I think there could be a feature that users can configure to install Flash when they want to and not automatically push it to users.

  • PROBLEM WITH MY WIRELESS CREATE A CARD POINT ACCESS

    I have a problem with my pc I can't create create a point access via the default tool windows 7

    Hello

    Sorry, this forum is in English only.

    Please select your language from the drop-down menu, at the top of this page to post your question in the language of your choice.

    If you can't find your language above, support for additional international sites options are by following the link below:

    http://support.Microsoft.com/common/international.aspx

    Concerning

  • problems creating video clips

    Here is my code:

    for (var i: Number = 1; i < = nTotalPaintings; i ++) {}
    mcPaintings.createEmptyMovieClip ("mcPainting" + i, mcPainting.getNextHighestDepth ());
    trace ("for loop #" + i);
    mcPaintings.attachMovie ("idLoader", "mcLoader" + i, mcPainting.getNextHighestDepth ());
    mcPaintings ["mcPainting" + i] ._y = 0;
    mcPaintings ["mcPainting" + i] ._x = (i - 1) * 700;
    mcPaintings ["mcLoader" + i] ._y = 0;
    mcPaintings ["mcLoader" + i] ._x = (i - 1) * 700;
    trace ("mcLoader" + i + "has a _x to" + mcPaintings ["mcLoader" + i] ._x);
    }

    Going through line by line in debug mode, the createEmptyMovieClip() and attachMovie() methods do their job... but as each movie clip is replaced by the following. In the end, instead of having the 26 footage, I only have 1. I replaced one video clip with another 25 times!

    what I am doing wrong?

    Thank you!

    is mcPainting (without a final're) typo in mcPainting.getNextHighestDepth ()? What should we not mcPaintings.getNextHighestDepth ()? and it's better have a wide enough scene and very little nTotalPaintings, or you won't see much of the movieclips on stage.

  • Dynamically place video clip on the corner and the overall position with a mouse click (button) that is always running.

    Anyone know the code to find the global positioning of the coordinates X and Y of a click of a button which turns constantly,
    then the code when you click the button, it displays a clip on the top-(position de x et y lorsque vous cliquez dessus) to the angle that you clicked (so the buttons are always rotating so others can click on them where they are)

    to explain the context, I am designing a model to the top of an interactive round table
    When someone approaches her and click on one of the buttons that move, it reads where the person has clicked on it and open a new box (video clip) where they have clicked on it (on the corner) so is not backwards if you're upstairs.

    I have included my .fla file that shows the four navigation buttons and a small diagram
    explain what I'm trying to do.

    you don't have a class named MethodAnimalMC.

Maybe you are looking for

  • cannot group by artist playlist

    Hello I use a smart playlist wich select tracks by artists. I show the playlist by artists. Sometimes iTunes seems incapable of another track in a group, so I change the field copy & spent (so I guess that no error of typing, or white space)... -----

  • See the Playlist length while playing music

    Hey everybody, What really annoys me about the Media Player, it's that I do not see how long my playlist will run while the songs play already.You can see the length of the playlist in the media library in the upper right corner in the title of the a

  • malfunction nvlddmkm display driver / he stops working and then restores it's self

    I am very new to this sort of thing computor, and it's very unnerveing, when strange things happen to the computor. I need to know How to solve this problem, because it is very annoying, when it arrives in the middle of do me something. Help, Help! L

  • Change to Windows 7

    After reading a lot of good reports on Windows 7, I plan to buy it. I currently run only Windows Vista Ultimate 64-bit. I'm not sure which version of Windows 7 to buy, complete what I have to buy a version or I could buy an upgrade? If it is possible

  • copy cassette to CD with titles

    I need to copy cassettes on CD language tapes.  I can handle copy OK with Audacity (play the tape in the computer, and then export it to a WAV file, which I burn to a CD in Windows Media Player).  No problem, except that the CD is written in a single