Flex won't display a child of a container movie clip

I have a Container Movie clip called frameContainer in wich I load new Frames( a symbol from flash), with this function:
             var i:Number=0;
            frameContainer.x=48;
            xPos=0;
            do
                frames.push(new Frame());
                frameContainer.addChild(frames[i]);
                slideshow.push(false);
                frames[i].index=i;
                frames[i].f.width=frameWidth;
                frames[i].f.height=frameHeight;
                frames[i].x=xPos;
                frames[i].y=0;
                xPos+=frames[i].f.width+10;
                frames[i].f.addEventListener(MouseEvent.MOUSE_UP,fMouseClickOnFrame,false,0,true);
                i++;
            }while(xPos<200)
            frameNumber=i;
            this.addChild(frameContainer);
The previous function works great.And I have a function called addNewFrame() which adds a new Frame at the end:
       private function addNewFrame():void
            frames.push(new Frame());
            frameContainer.addChild(frames[frameNumber]);
            frames[frameNumber].f.width=frameWidth;
            frames[frameNumber].f.height=frameHeight;
            frames[frameNumber].x=xPos;
            frames[frameNumber].index=frameNumber;
            xPos+=frames[frameNumber].width+10;
            frameNumber++;
            frames[frameNumber-1].f.addEventListener(MouseEvent.CLICK,fMouseClickOnFrame,false,0,true );
But, for some reason, the new frame can't be seen. When I type just
addChild(frames[frameNumber]);
(instead of  frameContainer.addChild(frames[frameNumber]) )
it works great. Also I can access the new frame with the getChildAt method, the only, and biggest problem is that I can't see that new frame when I add it as a child of the frameContainer movie clip.
Can someone please help

Same thing in iMovie '09 I just noticed. But it renders, so I guess who cares.

Similar Messages

  • Can i assign a child state to a movie clip that is already placed on stage

    Hello
    Is it possible to add a child state to a movie clip that is
    already placed on stage,
    i need to do this so i can move the movieclip to the top of
    the display list.
    thanks for the help
    mt

    "The objects i want it to appear above are loaded swf's onto
    the same main stage."
    Aha, this is where things can get confusing. The terminology
    between the Flash Authoring tool and ActionScript is not
    consistent.
    In ActionScript, the Stage is the top most DisplayObject. You
    probably get that.
    In Flash, the canvas that is often referred to as "the stage"
    is not the Stage object of ActionScript, rather the Flash stage is
    a DisplayObject class called MainTimeline (or if you assign a
    document class, it's that class), which is the first and only child
    of the ActionScript Stage object. It's the only child unless, of
    course, you add something else to the ActionScript Stage object at
    runtime... like a loaded swf. ;)
    So in other words, if you are doing anything like this:
    stage.addChild(myLoadedSWF)
    You are actually putting myLoadedSWF above the MainTimeline
    object, which is the entire Flash timeline. There's nothing wrong
    with that, but in this case it means changing the depth of things
    inside the MainTimeline is not going to change the fact that the
    MainTimeline itself is below myLoadedSWF.
    Most likely the simplest solution is to add your loaded SWFs
    to the property "root", not stage. root can refer to different
    things in different places, but most of the time it refers to the
    MainTimeline, and if I had to guess I would say it almost certainly
    does in your case. Note that the "root" property is typed as a
    DisplayObject, not a DisplayObjectContainer, so addChild (which is
    a DisplayObjectContainer method) will not be recognized unless you
    typecast to DisplayObjectContainer or a subclass of
    DisplayObjectContainer, like Sprite or MovieClip:
    MovieClip(root).addChild(myLoadedSWF)
    Also note that, unlike AS2, in AS3 it's very easy to simply
    add your loaded SWF below existing objects you create in Flash. You
    can use addChildAt(obj,0) for instance to add it to the very
    bottom.

  • Create container movie clip and child clips at design time?

    It's always powerful and dynamic to use
    "createEmptyMovieClip" and "attachmovieclip" at run time. But how
    to create this relationship of clips at design time so that an
    empty movie clip can hold several child movie clips?
    Thanks!

    Thanks!
    I'm sorry I asked a confusing question. I know how to create
    container clip using AS (as you post above). Then, somehow, I think
    how to put an empty clip on the stage and then add clips to it as
    children or grandchildren from design panels at design time... Will
    this have the same effect as using AS (createEmptyMovieClip and
    attachMovieClip) in terms of handling events? I guess a container
    clip will be overwritten by its child and as a result it won't
    response to events. Is this correct?

  • Flash .swc won't display

    I've got a head-scratcher here.
    We're updating an older Flex 3 project (3.6 SDK) and have (mostly) succussfully migrated the project to FB4.5 but we're sticking with the 3.6 SDK.
    One particular element of this project is a masthead which we publish as a .swc from Flash 5.5 after using the "Convert Symbol to Flex Component" command. I've also written a simple class for this masthead component so we can get at some interal properties.
    The .swc isn't visible at all. It's there, I've confirmed that using the debugger but it won't display. I've even tried pulling it into a bare-bones project file using both the old 3.6 SDK and the 4.5 SDK. Nothing.
    Maybe I'm follow an old workflow for bringing Flash elements into Flash Builder?
    I noticed there are two Flex Component kits, but I'm pretty sure Flash 5.5 already has the Flex Component kit built-in. Yes?
    Toughts?

    Hi,
    You mentioned that this was a project you migrated over to FB 4.6,
    correct? Chances are that even though you have the swc in your lib
    folder, the project properties are pointing to a version of the swc in a
    different location.
    Choose Project > Properties > Flex Build Path >Library Path and then
    click the swc that's having problems, click "Edit" on the right, and
    confirm that it's pointing to the correct location.
    iBrent

  • Template page won't display on the web.

    One of my web pages was saved as a template and won't display graphics when uploaded, just code.  It has the extension dwt.  I thought probably what I should do is make
    an html page copy and use that.  I don't know how that is done, or if that would be the best solution.  Any help would be appreciated.

    You should never publish your Template.dwt file to the web except to have as a backup in case your Template ever becomes corrupted or lost.
    Templates are a proprietary DW file type used to create the rest of your site pages.  Go to File > New Page from Template.  Select your .dwt file and hit create.   The resulting new page is a child page based on that main template.  Save as index.html (your home page).  Repeat with other site pages.
    Add editable content to each of your child pages.  Everything outside Editable Regions in the template will be populated to all child pages -- very handy for site wide menus, headers, footers and sidebars.
    When you edit a template, you must re-publish all child pages based on that template to your server.
    For more details on the use of DW Templates, use F1 Help in DW.
    Nancy O.

  • Displaying master child relationship using datatable??

    Hello,
    I want to display master child data using a datatable or a datalist or any other component ( if can be used for this purpose )....I mean i have a particular role and the nominees in that particular role to be displayed...how can this be achieved....any suggestions....thanks in advance.
    thanks & regards,
    Gaurav.

    For this, create the first interface for MASTER, in the mapping for the primary key you should map the database sequence, something like: MYSCHEMA.MYSEQUENCE_NEXTVAL.
    Create the second interface for DETAIL, and on the sources pane of the interface, drag the SOURCE_DETAIL and TARGET_MASTER datastores. Make the joing between the two using the keys from the source. In the Primary key mapping of the DETAIL_TARGET make sure you select the new PRIMARY KEY of the TARGET_MASTER, mapping in staging area. This "lookup" will be done in the target data server.
    If you are going to be doing updates and inserts in the target, you should make sure you set the Update Key selected for each of the targets to the same keys as on the source (obviously you won't have the target values!)
    If you are not going to do any updates, then use the IKM SQL Control Append rather than the incremental update IKM.
    You can optionally set the COMMIT option of the first interface to NO, and only commit on completion on the second interface if you want to ensure the full 'all or nothing' transactionality - but bear in mind, large volumes of uncommitted changes use resources....

  • Flex won't start

    I think I may have killed Flex. I have been working on
    another project that has required some messing around with Java,
    and now Flex won't start. It does give me the exit code = -1 when
    it tries to start. If anyone know how to fix this problem I would
    appreciate hearing how.
    Thanks in advanced,
    Jared

    Hi I wan't using Eclipse, I was trying to install Java's
    wonderland, which required some path editing. I tried opening
    eclipse and I got an error I check the log and this is what it
    says:
    !SESSION 2008-06-09 17:19:36.970
    eclipse.buildId=M20050929-0840
    java.version=1.5.0_13
    java.vendor=Apple Inc.
    BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon,
    NL=en_US
    Framework arguments: -keyring
    /Users/jaredbauer/.eclipse_keyring -showlocation
    Command-line arguments: -os macosx -ws carbon -arch ppc
    -keyring /Users/jaredbauer/.eclipse_keyring -consoleLog
    -showlocation
    !ENTRY org.eclipse.osgi 2008-06-09 17:19:39.311
    !MESSAGE Application error
    !STACK 1
    java.lang.UnsatisfiedLinkError:
    /Applications/eclipse/configuration/org.eclipse.osgi/bundles/64/1/.cp/libswt-pi-carbon-31 39.jnilib:
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1715)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at
    org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
    at
    org.eclipse.swt.internal.carbon.OS.<clinit>(OS.java:20)
    at
    org.eclipse.swt.widgets.Display.createDisplay(Display.java:856)
    at org.eclipse.swt.widgets.Display.create(Display.java:836)
    at
    org.eclipse.swt.graphics.Device.<init>(Device.java:118)
    at
    org.eclipse.swt.widgets.Display.<init>(Display.java:676)
    at
    org.eclipse.swt.widgets.Display.<init>(Display.java:667)
    at
    org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:394)
    at
    org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:155)
    at
    org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:128)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:79)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    So does Flex not work with JDK 6? because if not that would
    explain the problem.

  • My iPhone 5 won't display smart text options.

    My iPhone 5 won't display smart text. It did when I initially downloaded the new OS, now those options don't appear at all. Did I click something to make them disappear?
    I went into Settings to see if there was a component of it within Messages. I don't see anything.
    Thoughts please.....
    Thanks much
    Ginger

    Awwww......that's it....the dash! I tapped it. Tried to drag it up/down and it didn't move. Now I swiped and it's back!
    So I need to remember to drag up/down and now swipe.....
    Thanks much!
    Ginger

  • ITunes won't display current voice memos from my iPhone 4S. How can I tranfer this data without loosing it?, iTunes won't display current voice memos from my iPhone 4S. How can I tranfer this data without loosing it?

    Please help! My iTunes won't display my voice memos from iPhone 4S when trying to sync data. Files are to large for emailing. I want to back up the files on to my computer.

    JustinV72 wrote:
    How do I get the audiobook onto my iphone without erasing anything?
    You transfer the purchases to the computer you use to sync the iPhone.  You can use a thumb drive or an external HD, etc.  Read this: iTunes for Mac - How to copy purchases between computers:  http://support.apple.com/kb/HT1373

  • I updated to iOS 7 and now some of my apps won't display in landscape mode and they did before the update. Any ideas on how to fix it?

    I updated to iOS 7 and now some of my apps won't display in landscape mode and they did before the update. Any ideas on how to fix it?

    This could be from having restrictions enabled. Icons completely disappear when "restricted"

  • IMac 2.66 Radeon HD 2600 Pro: some Excel files won't display in ppt decks

    Running Leopard 10.5.8 and MS Office 2004
    Two iMac (8.1) 2.66 GHz with ATI Radeon HD 2600 Pro video won't display some Excel files in PowerPoint decks, but iMac 1.83 GHz Core Duo will display o.k. as will MacBook Pro, MacBook, etc. Installing a trial version of Office 2008, both iMac 2.66 GHz display the PowerPoint files o.k.
    I could downgrade the users to Intel iMac 1.83 GHz, or buy two copies of Office 2008 and support them, neither of which is a great solution.
    Looking for a simple fix or workaround on what seems to be a video card issue. Don't seem to see this problem or a fix on the ATI site. I've googled this but haven't run into a similar issue.

    Well, Office 2008 is only $110 USD at http://www.amazon.com/Microsoft-Office-2008-Home-Student/dp/B000X86ZAS/ref=sr11?ie=UTF8&s=software&qid=1251560959&sr=8-1
    That seems the least expensive solution to me.

  • ITunes won't play music and won't display some of my album art.

    iTunes won't play music and won't display some of my album art. I'll click play but the song wont play and some of my album art doesnt appear anymore. When I go on iTunes music store non of the pictures will appear it will just be black where a picture should be. What can i do to fix all of this?????

    I am having the exact same problem and have been trying to solve it for a couple of weeks. So far I havent found a soulution. But if you get one can you please let me know? Good Luck

  • Difficulty using a projector. I have a MBP 17" and am running 10.6.8. Often I need to make a Powerpoint or other presentation  at a client and I want to connect my computer to their projector. Either it won't display on the projector at all. HELP!

    Difficulty using a projector. I have a MBP 17" and am running 10.6.8. Often I need to make a Powerpoint or other presentation  at a client and I want to connect my computer to their projector. Either it won't display on the projector at all. Once it displayed but the presentation mode was on the big screen and the presentation I wanted to show was on my MBP screen. I have the adapter( white ones) to attached to the projector cables.  I am so frsutrated...it looks so silly not to have a computer work during a presentation..
    Another problem one the rare occasion that it shows on the screen is that the presentation does show just my desk top.  Any ideas?
    Thanks !

    You often have to turn off Mirroring to be able to set the second "screen"s resolution to something reasonable. When you do, the two screens become an "Exceeded Desktop" joined along one edge, and the Arrange pane in displays prefs can allow you to specify what edge. Initially, it will show a vacant extension of the built-in screen's desktop.
    The mouse moves freely across that shared edge, and can allow you to drag the presentation window across to the the projector screen and re-size it to fit.

  • Private Photos App - pictures not displaying This app was working fine, then suddenly it won`t display any of the photos.

    This app was working fine, then suddenly it won't display any of the photos. One day the photos were there, gone the next. It still shows how many photos are there but just shows a white screen. I can't export anything to the photo album. Adding photos to existing folders yields the same result, only white screen displayed. However, I can create new albums and add photos to those without issue. Does anybody know how to recover the "missing" photo"  I was going to try reinstalling the app but it's no longer available in the iTunes App Store. Thanks, Tracy

    1, you can't at the moment, though with iOS 5 in the Autumn, from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums — right on your device
    2, by removing it from you synced from and re-syncing. Only photos taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad (either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view)
    3, the location of the photos that you synced to the iPad should be listed on the iPad's Photos tab when connected to your computer's iTunes.
    4, you can copy the photos from your iPad to your computer : http://support.apple.com/kb/HT4083 . You should also be able to delete them from the iPad as part of the transfer process to your computer, and it's then your choice whether to add them to your sync photo list so as to copy them back to the iPad. Copying them to your computer would allow you to organise them into folders and therefore be able to sync them back into separate albums.
    5, I don't use Dropbox either. There are some third-party browser apps in the iTunes App Store that allow you to download pages so that you can view them when offline e.g. Atomic Web (the whole page is saved within Atomic Web, it doesn't place a photo into the Photos app)
    6, deleting content should help. If you remove an app from your iPad then you also remove the content that it's got on the iPad - so if you then decide to reinstall it back onto the iPad then you will need to manually add back any content that you want in it. None of the Apple built-in apps (including Photos) can be removed from the iPad

  • Database field won't display

    I'm new to Crystal Reports in .NET but I do have my 1st report working except for one field that I'm trying to use in a sub report.  It's in my database fields just like the other field for the sub report.  I can see data for both fields in the Browse Data.  One field and it's heading display just fine but I can't see the other one anywhere.  The field heading that's created when I drag it into the Detail area won't display in the report either.  I've tried deleting the field and readding it but nothing helps.  As far as I know I've done nothing to suppress this field from printing.  I REALLY need to get this working.  Thanks for your help.

    Hello Paul,
    I recommend to post this query to the [.NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio; forum.
    That forum is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports .NET Development queries remain in one place and thus can
    be easily searched in one place.
    Thanks a lot,
    Falk

Maybe you are looking for

  • 11.1.2 essbase upgrade not recognizing application files location

    Hi all I am upgrading an essbase database (Planning) from 11.1.1.3 to 11.1.2.2, I trying to configure 2 essbase servers (original 11.1.1.3 and new 11.1.2) running on 1 physical server using different ports and filesystems Following all the steps in t

  • How to put on the files of the camera Sony Avchd hdr-td10 for Final Cut Pro 6.0.6?

    Sorry for my English, I am French. I would like to know if the camera Sony Avchd hdr-td10 is compatible with Final Cut Pro 6.0.6 to List and Transferer and if it is necessary to install a particular codec? This camera makes of the 3D but I specify th

  • MRP Controller changes in Planned order

    Hi Gurus, If anyway possible to change MRP controller in Planned order. I tried to change in MD12 but it's shows only display mode. Any answer? Thanks, B.Deethya

  • N2H2 Filtering has encountered an error.

    I have some javascript on a page, doing an auto refresh of data. All of a sudden on a fresh, I got this error: N2H2 Filtering has encountered an error. And something about contacting my network admin. There are several select lists on the page that c

  • Word Count feature slow in CS4

    The word cound feature in InDesign CS4 is sometimes very slow compared to what it was in CS2. I'm not even counting vast quantities of text, often a story of 1000 or so words will pause for an infernally long time before displaying results. Has anyon