Change loaded movie from child

Hi,
I am new to AS3. Here I want to ask how to change the loaded movie from child?
Here is my working code, but it doesn't works...
Root:
var contentMovie:MovieClip = new mcMain;
contentMovie.name="content_mc";
addChild(contentMovie);
Child Content:
changecontent_btn.addEventListener(MouseEvent.CLICK,LoadContent);
function LoadContent(event:MouseEvent):void
   parent.contentMovie = mcNew;
When I try to run, Flash shows the error "1119: Access of possibly undefined property contentMovie through a reference with static type flash.display:DisplayObjectContainer."

use:
var contentMovie:MovieClip = new mcMain();
contentMovie.name="content_mc";
addChild(contentMovie);
Child Content:
changecontent_btn.addEventListener(MouseEvent.CLICK,LoadContent);
function LoadContent(event:MouseEvent):void
// the next line doesn't make any sense but if it did, this is how it should be written
  MovieClip(parent).contentMovie = mcNew;

Similar Messages

  • HT202157 Does anyone else have a problem with the latest Apple TV update?  My Apple TV no longer can load movies from my iTunes library, including ones I've already watched or were watching.  Can I roll back this update, and if so, how?

    After updating my Apple TV, it will no longer load movies from my iTunes library.  Music works, but no movies.  I've turned this puppy every which way but loose, but no joy.  Is there a way to roll back an update?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • YouTube API can't load movie from youtube rightnow?

    Hi there,
    I am a multimedia content development.
    I used YouTube API to load movie from youtube.com.
    https://developers.google.com/youtube/flash_api_reference_as2?hl=zh-TW
    It's working ok in one month ago.
    But after upgrade the FlashPlayer,not working, can't load movie to ytplayer.
    please check follow link, there have youtube movie in every page(TV frame)
    http://test1.eduweb.com.tw/ebook/demo/book/demo07/book1/
    I am sure this problem is from FlashPlayer.
    Do you have any idea?
    Sorry about my poor english.
    Best.
    Jack Chang.

    Any one can answer? Please~~
    This problem lost every YouTube movie in our content.
    But It's working normal one(or two) month ago.

  • Down load movies from itunes

    I am trying to down load a movie from Itunes but it tells me that "i don't have write access for my Itunes media folder or a folder with it. Change permission ( in the finder ) and then choose store > check for available downloads".
    I can't figure out how to change the permission.
    Mats

    First of all try repairing disk permissions (use disk utility for this, you can find it on applications>utilities). Also remember that your computer has to be authorized to play itunes content. Go to the top bar on itunes, click on Store and Autorize this computer.
    Just a tip, next time post this on the Itunes support section.
    Cheers

  • Change loading image from skinning

    Hi,
    I want to change the default loading image to my custom image. There are couple of style class availabe.
    af|document::splash-screen,
    af|document::splash-screen-cell
    af|document::splash-screen-content
    af|document::splash-screen-icon
    af|document::splash-screen-message
    Can someone tell me which style class to use to change loading image?
    Thanks,
    $N
    Edited by: Saravanakumar Nanjappan on 4-May-2011 6:58 AM

    change this entry for the skins. the following snippet is from fusion-desktop.css skin styling
    /* Splash screen icon */
    af|document::splash-screen-icon {
    content: url(/afr/ss.gif);
    width: 43px;
    height: 48px;
    vertical-align: middle;
    }

  • Load .mov from my Nikon to FCX

    when I load .mov files from my Nikon  The windows show only a small part of the frame. If I bring the frame to full screen it is all there. Both browser and clip windows.
    Files are 1920 x 1080 H264 - 29.07hz Set up is Apple inter codec 1920x1080i60
    Runnubg Mavrick 10.9.1 FCE 4.0.1
    How do I load these files so they appear properlu and can be edited.
    I tried converting to mp4 but got the same result.
    Thanks

    Set the scale of the viewer and canvas windows to "Fit to Window":
    MtD

  • Use flash player ActiveX component to load movie from resource

    How can I use a Flash Player 9 ActiveX component to load
    movies into my application from program resources.
    Thank you in advance.

    try this:
    // Load text as variable and assign it to the
    // dynamic text field
    var features_lv:LoadVars = new LoadVars();
    features_lv.onLoad = onText();
    features_lv.load("safetyFeatures.txt");
    function onText(success:Boolean) {
    if (success) {
    myText_txt.text = features_lv.safetyfeatures;
    } else {
    myText_txt.text = "unable to load text file.";
    or this
    // Load text as variable and assign it to the
    // dynamic text field
    var features_lv:LoadVars = new LoadVars();
    features_lv.onLoad = function(success) {
    if (success) {
    myText_txt.text = features_lv.safetyfeatures;
    } else {
    myText_txt.text = "unable to load text file.";
    features_lv.load("safetyFeatures.txt");

  • Airplay will not load movies from my vudu app on my ipad to my apple tv.

    I just received an apple tv as a christmas present and was beyond excited.  I have been wanting one for a long time now.  The main reason I wanted an apple tv, was so I could stream my movies that are in my vudu app on my ipad, to my television.  They are both synced together and are on the same wifi network, however it is not streaming correctly.  Everytime I click apple tv under airplay, it acts like it is going to send, but it kicks it off and returns the airplay mode to ipad.  I even tried clicking on mirroring and that is not working either.  I updated both devices with new software updates.  Please help!!!

    Welcome to the Apple Community.
    I don't have vudu but understand it to contain content protection, you can purchase movies from the iTunes Store instead.

  • Loading movie from mini DVD

    I have a Sony DCR-DVD92 that uses the mini DVD's for recording. There is no firewire or USB port on this camera. Since the iMac can't run the mini DVD's how can I transfer the movies from my Handycam to my computer?

    If you can, buy a better camera. This camera was not designed for use with a computer or with editing.
    If you have a lot of mini-DVDs from this camera that you want to edit, your best bet is to [buy a USB DVD player recorder that sits flat on your desk like the ones at this link|http://eshop.macsales.com/shop/firewire/optical-drives>. Do not put these little DVDs into the slot on your iMac. You may not be able to get them out.

  • HT204382 how can i down load movies from youtube?

    how am i suppose to download movies onto my powerpoint?

    google search
    https://www.google.com/search?client=safari&rls=en&q=how+to+download+movies+from +youtube+mac&ie=UTF-8&oe=UTF-8

  • Loading Movies from Tile List

    I have two questions.
    I want to click on a thumbnail in a tile list and have that
    thumbnail load a related movie into the video player.
    I also want the loaded movie to continuously loop, however,
    quicktime doesn't support above actionscript 1.0.
    Any Ideas?

    Hi Mindy,
    If it has a FireWire connection, use that to connect it to your MBP, open iMovie, and import.

  • Load preloader from child swf

    The following preloader and code to laod the first swf is in the fiest frame of the main movie.
    stop();
    // this function runs the preloader
    // it is to be used with the onEnterFrame
    // of the preloader animation
    function preloadContainer(){
        // get bytes loaded and total from movieHolder
        var bytes_loaded = movieHolder.getBytesLoaded();
        var bytes_total = movieHolder.getBytesTotal();
        // stop and hide the movie so it wont play or
        // be seen while progressively downloading
        // (keep trying if it exists or not just to be sure)
        movieHolder.stop();
        movieHolder._visible = false;
        // if bytes_total is a valid number and greater than 0
        if (bytes_total > 0){
            // get percent loaded
            var percent_loaded = bytes_loaded/bytes_total;
            // update the value in the preloader
            preloader_mc.value = percent_loaded;
            // check if preloading is complete
            if (percent_loaded == 1){
                // play and show the container clip
                movieHolder.play();
                movieHolder._visible = true;
                // remove the preloader movie clip
                preloader_mc.removeMovieClip();
                // delete the onEnterFrame event handler running this function
                delete onEnterFrame;
    stop();
    // movie 1 loads the swf using startPreload
    startPreload("ShopOutsideAnim01.swf");
    // this function begins preloading a swf url
    function startPreload(url){
        // use loadMovie to load the swf url into container_mc
        movieHolder.loadMovie(url);
        // attach the preloader animation
        // this will be removed when preloading is complete
        attachMovie("preloader anim", "preloader_mc", 500, {_x:275, _y:165});
        // set the onEnterFrame event to call preloadContainer
        onEnterFrame = preloadContainer;
    Once the swf  loads a button can be pushed in the loaded swf which goes to the last frame where the below code is. I want at this point to preload another swf into the same location. It does not work. It does attach the preloader anim movie and load the swf, but it does not run the preloader function.
    stop();
    // movie 1 loads the swf using startPreload
    LoadIt("ToolShopAnim01.swf"); 
    // this function begins preloading a swf url 
    function LoadIt(url){ 
        // use loadMovie to load the swf url into container_mc 
        _parent.movieHolder.loadMovie(url); 
        // attach the preloader animation 
        // this will be removed when preloading is complete 
        _parent.attachMovie("preloader anim", "preloader_mc", 500, {_x:275, _y:165}); 
        _parent.preloadContainer; 

    In the child swf I should put this code:
    _parent.startPreload("ShopOutsideAnim01.swf");
    I was trying to create a new function in the child swf. I dunno this stuff drives me nuts. But I'm happy I figured something out!

  • Safari Crashed Loading MOV From Website

    Using DreamWeaver I created a site for a client with 5min QuickTime movie clips. In Netscape and Firefox the clips play fine. In Safari I get a crash report:
    Safari(445,0x186c200) malloc: * vm_allocate(size=1640017920) failed (error code=3)
    Safari(445,0x186c200) malloc: * error: can't allocate region
    Safari(445,0x186c200) malloc: * set a breakpoint in szone_error to debug
    2005-09-18 09:15:20.771 Safari[445] An uncaught exception was raised
    2005-09-18 09:15:20.783 Safari[445] * NSCopyMemoryPages(0x16a06000, 0x0, 1312010240) failed
    2005-09-18 09:15:20.783 Safari[445] * Uncaught exception: <NSInvalidArgumentException> * NSCopyMemoryPages(0x16a06000, 0x0, 1312010240) failed
    Sep 18 09:15:23 ted-mccunes-power-mac-g5 crashdump[622]: Safari crashed
    Sep 18 09:15:24 ted-mccunes-power-mac-g5 crashdump[622]: crash report written to: /Users/mooreted/Library/Logs/CrashReporter/Safari.crash.log
    Command: Safari
    Path: /Applications/Safari.app/Contents/MacOS/Safari
    Parent: WindowServer [71]
    Version: 2.0.1 (412.5)
    Build Version: 7
    Project Name: WebBrowser
    Source Version: 4120500
    PID: 496
    Thread: 2
    Exception: EXC_BREAKPOINT (0x0006)
    Code[0]: 0x00000001
    Code[1]: 0x9289de80
    Thread 2 Crashed:
    0 com.apple.Foundation      0x9289de80 _NSRaiseError + 264
    1 com.apple.Foundation      0x9289dbbc +[NSException raise:format:] + 40
    2 com.apple.Foundation      0x928a49c4 -[NSConcreteMutableData appendData:] + 196
    3 com.apple.Foundation      0x928b47fc -[NSURLConnection(NSURLConnectionInternal) _didLoadData:lengthReceived:] + 208
    4 com.apple.Foundation      0x928b3fbc -[NSFileURLProtocol didLoadData:] + 484
    5 com.apple.Foundation      0x928b3cfc -[NSFileURLProtocol startLoading] + 132
    6 com.apple.Foundation      0x928ac5cc -[NSURLConnection(NSURLConnectionInternal) _performOriginLoad] + 328
    7 com.apple.Foundation      0x928aa680 _resourceLoaderPerform + 224
    8 com.apple.CoreFoundation      0x9074bc8c __CFRunLoopDoSources0 + 384
    9 com.apple.CoreFoundation      0x9074b1bc __CFRunLoopRun + 452
    10 com.apple.CoreFoundation      0x9074ac3c CFRunLoopRunSpecific + 268
    11 com.apple.Foundation      0x928aa3e0 +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264
    12 com.apple.Foundation      0x92882f34 forkThreadForFunction + 108
    13 libSystem.B.dylib      0x9002c3d4 pthreadbody + 96
    Thread 2 crashed with PPC Thread State 64:
    srr0: 0x000000009289de80 srr1: 0x100000000202f030 vrsave: 0x0000000000000000
    cr: 0x28028442 xer: 0x0000000000000000 lr: 0x000000009289de58 ctr: 0x000000009285fcbc
    r0: 0x0000000000000000 r1: 0x00000000f0182380 r2: 0x00000000a285d508 r3: 0x00000000f0181f30
    r4: 0x0000000000000000 r5: 0x000000009285f5e4 r6: 0x00000000f0181fb4 r7: 0x00000000000000ff
    r8: 0x00000000f0181fa0 r9: 0x0000000000607d40 r10: 0x00000000909ab668 r11: 0x0000000028028442
    r12: 0x000000009285fcbc r13: 0x0000000000000000 r14: 0x0000000000000001 r15: 0x0000000000000000
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000
    r20: 0x000000007fffffff r21: 0x00000000a2883dd8 r22: 0x0000000017e05590 r23: 0x00000000a2883dd8
    r24: 0x00000000a288472c r25: 0x00000000a288472c r26: 0x000000003786af1b r27: 0x0000000000000000
    r28: 0x0000000017c5e8c0 r29: 0x00000000a2862804 r30: 0x000000003786af1b r31: 0x000000009289dd88
    What causes this and can I fix it?

    Ah but our website (http://bryonieporter.com/index.html) has just started not loading and nothing has changed re it or our version of Safari, does that mean there could be some issue with the host?
    thanks

  • I Movie HD quits while loading movie from desktop

    I am assembling a movie, importing still pictures in jpg format. After saving my work 2 days ago, upon booting up iMovie HD the next day it starts to load the project from the desktop, prompts with box asking if I want to view the trash. Regardless of how I respond to the prompt, the program freezes with the spinning ball then quits and the Finder menu appears at the top of the screen. I've tried force quitting to no avail. The program indicates I have 350MB RAM left. How do I get back into my project?
    i Mac 2 GHz Intel Duo Core 21"   Mac OS X (10.4.8)   2GB 667 MHz DDR2 SDRAM

    Hi HAMoore - welcome to the forum!
    "....The program indicates I have 350MB RAM left...."
    Are you sure that is what it is indicating? Normally it will be telling how many GB of storage is left un-used. RAM is a quite different type of memory. Could you be running short on storage space? 'Get Info' about your hard drive and see what it says about available storage. Ideally for smooth functioning, a good 10% of your HD should be kept clear. Also remember that iMovie consumes 1 GB for every 5 minutes of footage.

  • Won't load movie from PC to iPhone

    I can't get a movie I purchased from iTunes to load onto my iPhone. Everything else syncs just fine. Anyone have a similar issue?

    There should be TWO copies of the movie in itunes, you need to select the copy for the iphone/ipod to sync to your phone.

Maybe you are looking for