Simple Change Parent Timeline AS3 problem

I am just trying to use actionscript 3.0 (Flash CS4) to change the 'Parent' timeline from a button in the 'Child' timeline
root/
parent_mc/
child_mc (button called btn is there)
This code is in the child_mc timeline above the button
btn.addEventListener(MouseEvent.CLICK, changeParentTimeline);
function changeParentTimeline(event:MouseEvent):void
this.parent_mc.gotoAndStop(10);
The above produces this error:
TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::child_2/changeParentTimeline()
Any help would be much appreciated.
Kind regards
Richard

Try:
btn.addEventListener(MouseEvent.CLICK, changeParentTimeline);
function changeParentTimeline(event:MouseEvent):void
     MovieClip(this.parent).gotoAndStop(10);

Similar Messages

  • IDE:  Child movieclip timeline changes don't show in parent timeline?

    Why does a child movieclip only show the first frame within the IDE, regardless of where you are in the parent timeline?
    If you throw a movieclip with 25 frames onto the main timeline, which also has 25 frame, you don't see the nested movieclip's frame-progress while you scroll through the main timeline.
    Is there a setting somewhere in preferences or somewhere that will enable you to see a nested movieclip's frame position from the main timeline?  Like you do with After Effects composites?

    The best answer I can think of is that's the way it is.  Movieclip symbols in a timeline only display their initial frame contents.  If you traverse the containing timeline, you aren't traversing the timelines of the objects contained in it.  That helps keep main/containing timelines small.
    Darn, thanks Ned.  I wish this were not the case, as it would be very useful to see what's actually going on.  I've not looked into graphic symbols, maybe I can use them, thanks!

  • Changing stage timeline from inside a movieclip button

    I create a movieclip button, and I want to change main timeline from it. what should I do ?
    Is it useful to use MovieClip(root).gotoAndPlay(...) ; ?
    Is there any other way to change main timeline?

    Example:
    Add something to trigger the event in the child:
    dispatchEvent(new Event("eventTriggered"));
    In your parent swf, listen for the event using a listener for the child with a corresponding event handler...
    childName.addEventListener("eventTriggered", eventHandler).
    function eventHandler(event:Event):void {
        trace("child dispatched an event");
         // gotoAndPlay(etc);

  • The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, cont

    I have a user on an iMac 10.6 connected to our domain.  She uses Outlook web access for email on our exchange server.  Last week she received the following message which is randomly preventing her from sending emails.  She claims no attachment was involved in the original email when this all started.  I have not been able to look at her account as she is out of the office but maybe someone else dealt with this issue.  I realize this may not be Mac related but thought I'd give it a try.  She did say it occurred once over two days while working on a PC but it continued over the past weekend.
    If an internal user tries to send a message with infected attachment using Outlook Web Access, it may report the following error message: The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, contact technical support for your organization.
    This is because F-Secure Anti-Virus for Microsoft Exchange has detected a virus in the attachment. If the user tries to send the message again, the message will be sent but without the attachment. At the same time a blank message with an attachment named "Attachment_information.txt" will remain in the user's Drafts folder. The "Attachment_information.txt" will contain information about the virus detected in the message.

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • Is there a way we can edit and improve existing youtube videos by using premiere pro? Just simple changes like having professional looking opening and closing credits?

    Is there a way we can edit and improve existing youtube videos by using premiere pro? Just simple changes like having professional looking opening and closing credits?

    Assuming you do not have access to the "original" video/project and the YouTube video is the only copy, there is a method. Try "YouTube Downloader" which is a free software that allows you to download clips from YouTube as .mp4 files. You can then edit with Premiere, and re-encode again for upload to YouTube. Just keep in mind that you are re-compressing the video so there will be some quality loss. The better the quality of the original, the better the copy will hold up.
    Thanks
    Jeff Pulera
    Safe Harbor Computeres

  • My hp failed to start it says, A recent hardware or software change may be the problem.

    my hp failed to start it says A recent hardware or software change may be the problem.  It gives the option of Launch start up repair or Start windows normally, it freezes after clicking any option. What can i do?
    My pc is a Compaq Presario CQ62-216DX Notebook. It also says on the screen, Description: fix problems that are preventing windows from starting.

    Hi,
    Shut down the notebook.  Tap away at f10 as you start the notebook to enter the bios menu.  Under the Advanced or Diagnostic tab you should find the facility to run tests on both the Hard Drive and Memory.  Post back with the details of any error messages.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Child .swf controlling parent timeline

    Hello Captivate Heroes,
    I've searched around, and can't seem to find any solid info on an issue my team is having. I'm a bit of a noob when it comes to Javascript, so I apologize if this question is too basic for this forum.
    Is it possible for an embedded .swf (created in Captivate) to control the main timeline in a parent .swf? Consider the example below:
    1) This window is an embedded .swf (another captivate file, which I’ll refer to as the “child”) that has an interactive walkthrough. It loads and begins playing immediately. I want users to complete this module and all interactions in it before continuing to the next slide in the “parent” file. Essentially, I want either the child or the parent timeline to play, but never both at the same time.
    2) This is our normal continue button, and I don’t want it appearing until 1 has been completed.
    My solution was to add a javascript call on the first slide of the child file that tells the parent file to pause its timeline (something like _root.rdcmdPause=1;). Then, do the opposite on the last child slide ( _root.rdcmdResume=1;). In this way, the parent slide would essentially pause on its first frame (which doesn’t have an active continue button) while the child animation continues to play. However, this isn’t working. It’s been a really long time since I’ve scripted, so I’m very rusty. Is that the proper way to manipulate parent variables in a child file? Do you have any other ideas on how to accomplish this task?
    I have a backup solution -- providing a "password" at the end of the child animation, which users can use to unlock the continue button. I'd rather use a more graceful solution
    Thank you in advance,
    Jamie

    Hi Jamie,
    I don't think JavaScript is going to help you here.  You need to be doing this in ActionScript 3. 
    For the non-scripting part, you can control the Captivate movie using system variables.  To pause the main slide, you could assign rdcmdPause=1 on the Slide Entry action.  You may want to adjust the slide transition to none so that it won't look faded out when it pauses the movie.  You can also show/hide items on the slide using the timeline, but it sounds like you won't really know when the Learner will be done with the interactive child .swf. 
    From what you described, it sounds like the Child .swf (#1) needs to communicate with other objects on the slide... mainly the continue button (#2).  In order to do that you'll most likely need to make the child .swf #1 into a widget so that it can communicate with the main movie and other objects on the slide.  I would suggest 3 possibilities:
    1.  Learn to use a widget framework such as Widget Factory or CpGears to make this possible
    2.  Take a look at the Infosemantics Event Handler Widget.  Not sure if it will meet all your needs, but it's worth a look.
    3.  Hire a Captivate Widget Developer to make this possible... and yes I am a Widget Developer (shameless plug )
    Hope that helps,
    Jim Leichliter

  • Is that possible to change parent of GUI Controll?

    Hi,
    I have to change parent of GUI Control. I have a Splitter with two Controls (b.e. 1 x 2 )and would like to delete one. After that I would like to change grid ( 1 x 1 ) and show in this the second view. But after I have called splitter->set_grid(1 1) my container which include second  view is no more valid, I have to get new one from splitter but how can I bind it with my view?
    Regards
    Bogdan

    Hello Bogdan
    If you look at the parent attribute of different classes (e.g. CL_GUI_ALV_GRID, CL_GUI_ALV_TREE) then it is a public, <b>READ-ONLY</b> instance attribute. Based on this property I would assume that it is not possble to switch the parent of a GUI control.
    Regards
      Uwe

  • Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. WHat do you suggest.

    Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. What do you suggest.
    I am using Mozilla Beta 4. I volunteered to try it out. It's lightning fast. I really love using it. I see there is a new version of Firefox should I download it??

    I HAVE NOW SOLVED THE PROBLEM BY RUNNING WINDOWS REGISTRY REPAIR TOOL WHICH HAS OBVIOUSLY REPAIRED CORRUPT REGISTRY FILES.

  • Transition length changes when timeline length changes

    When I have a transition that's, say, 1.5 seconds and I extend the timeline, the transition will change in length so the motion looks ridiculously slow.  I find myself either spending a lot of time adjusting transition lengths or else finding ways to keep the total timeline length the same (to the detriment of the content).  Is there any way to "lock down" the transition length when I need to change the timeline length?  Locking the object with the little padlock doesn't do it.
    Thanks!

    Hi Amy,
    Indeed that is possible, because it is locked to the end of the slide, agree, only way to change a locked item.
    Understand that when having to copy slides, that will have different durations later on, you prepare the 'mother' slide, inclusive all the wanted effects before copying. For objects that are displayed for the rest of the slide, changing the slide duration will change the duration of the effects.
    I do not exactly know what you need for your projects, perhaps an alternative I'm using often could help: Instead of copying the slide with all its objects, I'll set the objects that have to appear for the 8-10 following slides to show for the rest of the project, instead of for the rest of the slide. They will show up on each slide where they are visible with the same effect and the same timing, whatever the duration of the slide. Drawbacks: after those slide you'll have to hide them on the next slide (advanced actions on Enter Slide with lot of Hides), and when copying slides, use Insert New slide should copy as much as possible.
    Just an idea,
    Lieve

  • A simple change of name request not so simple

    I have sent in my details to allow a change of name and when trying to find out if it's complete I have been hung up on 3 times, on hold for in excess of 30 mins before being hung up on and told a simple change of last name will take FIVE WORKING DAYS!!!!
    Ridiculous is all I can think.
    Have been with O2 a really long time and can't believe how ridiculous my recent interaction with you has been.
    Can someone please get my last name changed so I can refresh my account and upgrade my phone and stay with O2 for a further decade OR I will move on to another company. Simple as that.

    Change of name account
    Send a copy of the marriage certificate  with a covering letter giving details of all the account numbers you have with O2. (For example mobile, broadband, home phone.) to:
    The Correspondence Management Team
    PO Box 202
    Houghton Regis
    LU6 9AG
     Or via email with the scanned proofs to [email protected]
    Or via fax with the scanned proofs to 0870 6002402.

  • Simple Finder/Parental Controls Problem

    I recently did an erase and install on my eMac and am now having problems with Simple Finder and Parental Controls.
    I have an account set up for my daughter and I want to have Simple Finder running with about a half dozen or so applications for her to use. Prior to the erase-and-install, I had this set up and running fine. But now, even though I select all the programs I want under the Parental Controls preferences, only three show up (Safari, Dictionary, and TextEdit).
    I tried deleting and re-creating the account, repairing permissions, turning around twice and clicking my heels together, etc. with no success.
    Any ideas? Thanks!

    I ran disk utility and repaired the permissions--is that similar to what you suggest?
    When I did a erase-and-install of Leopard, I assume that it ran through a disk inspection and repair routine. But perhaps something more is needed.

  • Change Parent (Stage) Timeline from a Child (IFrame) Symbol

    Hello,
    Within a project (Project X) I have a symbol (called 'container'). This symbol loads an IFrame of a different Edge HTML5 document (Project Y).
    I would like to click in the nested IFrame (Project Y) and control the timeline of the parent document (Project x).
    Could anyone help me acheive this?
    Thank you.

    Hi, 7Freelance7-
    You should take a look at the section at the bottom of the API doc named "Call Edge Animate APIs on a different compostiion."  It should help you figure out how to grab the handle of another composition, no matter where in the DOM it is.
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html
    Hope that helps!
    -Elaine

  • BUG: Changing "alpha" with AS breaks other property changes on timeline

    I've discovered a bug in AS3 where a Movie Clip that spans 2 different frames, but its properties are different in each frame (i.e. it has been repositioned on the 2nd frame but the instance name is the same), and the MC's alpha is changed using ActionScript prior to moving the timeline from one frame to the other, the timeline moves, but the MC does NOT actually move.
    I'm experiencing this error in a professional project that I'm working on so I cannot post the actual FLA, but here is a little mock up that I made:
    stop()
    currentFrameTxt.text = currentLabel
    var alphaChange:Number = .1
    var alphaMax:Number = 1
    var alphaMin:Number = 0
    alphaUpBtn.addEventListener(MouseEvent.CLICK, alphaUp)
    function alphaUp(evt:MouseEvent) {
        box.alpha += alphaChange
        if (box.alpha > alphaMax) {
            box.alpha = alphaMax
    alphaDownBtn.addEventListener(MouseEvent.CLICK, alphaDown)
    function alphaDown(evt:MouseEvent) {
        box.alpha -= alphaChange
        if (box.alpha < alphaMin) {
            box.alpha = alphaMin
    leftBtn.addEventListener(MouseEvent.CLICK, gotoLeft)
    function gotoLeft(evt:MouseEvent) {
        if (currentLabel != "left") {
            gotoAndStop("left")
        currentFrameTxt.text = currentLabel
    rightBtn.addEventListener(MouseEvent.CLICK, gotoRight)
    function gotoRight(evt:MouseEvent) {
        if (currentLabel != "right") {
            gotoAndStop("right")
        currentFrameTxt.text = currentLabel
    On Frame 1 (labeled "left") is an MC with the instance name "box" and the box's position is on the left side of the stage. On Frame 11 (labeled "right") is the same instance "box", but its position has been moved to the right side of the stage.
    I have a pair of buttons ('leftBtn" and "rightBtn") that toggle the timeline between the "left" frame and the "right" frame.
    I also have a pair of buttons ("alphaUpBtn" and "alphaDownBtn") that change the box's "alpha" property.
    If you click "leftBtn" or "rightBtn" before you click the "alphaUp" or "alphaDown" buttons, the box moves left or right as one would expect. BUT if you click either "alphaUpBtn" or "alphaDownBtn", the box does NOT move if you then click "leftBtn" or "rightBtn" even though the timeline is indeed moving (which I am confirming using the "currentFrameTxt" dynamic text box).
    I have tried this example by changing other properties on the 2 frames and they too stop working once you change the "alpha" using AS. I have also tried change other propeties using AS, but alpha is the only property to breaks the other properties changed by moving the timeline.
    Why would changing the "alpha" property suddenly break all other property changes on the timeline?
    Now I know that one work-around for this bug is to simply change the box's position dynamically by setting the x and y positions, but this is NOT an option for this project because it is very important that the client be able to manually position the artwork on each frame by hand.
    This is a serious bug and I'm wondering if anyone else has encountered it before and if they know of a viable workaround.

    I did some more testing by changing other properties of the box with AS and it appears that for most properties, like alpha, x, y, rotation, width, height, etc, if they are changed with AS, then the properties of the MC can no longer be changed by the timeline settings. Changing the "visible" property has no effect, however.
    It seems that this "bug" is not really bug so much as it is a fundamental misunderstanding on my part about the fact that you CANNOT change the properties of a symbol using BOTH ActionScript and timeline properties. I can only change the properties of using either the timeline OR ActionScript because as soon as I change the properties using AS, the MC becomes an AS-controlled object and can no longer be controlled via the timeline. I guess that makes sense, but it is frustrating nonetheless.
    Colin, your suggestion to nest the MC inside another MC is indeed a successful workaround, at least for this little box example (see fixed FLA attached with the "left" and "right" timeline property changes nested inside the box itself) and I will see if it is a viable solution for my actual application. I'm guessing it will not be a problem for my client to simply navigate inside a parent MC in order to adjust the positions of the now-nested MC in question.
    Thanks for the help.

  • JPA One-To-Many Parent-Child Mapping Problem

    I am trying to map an existing legacy Oracle schema that involves a base class table and two subclass tables that are related by a one-to-many relationship which is of a parent-child nature.
    The following exception is generated. Can anybody provide a suggestion to fix the problem?
    Exception [EclipseLink-45] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: Missing mapping for field [BASE_OBJECT.SAMPLE_ID].
    Descriptor: RelationalDescriptor(domain.example.entity.Sample --> [DatabaseTable(BASE_OBJECT), DatabaseTable(SAMPLE)])
    The schema is as follows:
    CREATE TABLE BASE_OBJECT(
    "BASE_OBJECT_ID" INTEGER PRIMARY KEY NOT NULL,
    "NAME" VARCHAR2(128) NOT NULL,
    "DESCRIPTION" CLOB NOT NULL,
    "BASE_OBJECT_KIND" NUMBER(5,0) NOT NULL );
    CREATE TABLE SAMPLE(
    "SAMPLE_ID" INTEGER PRIMARY KEY NOT NULL,
    "SAMPLE_TEXT" VARCHAR2(128) NOT NULL )
    CREATE TABLE SAMPLE_ITEM(
    "SAMPLE_ITEM_ID" INTEGER PRIMARY KEY NOT NULL,
    "SAMPLE_ID" INTEGER NOT NULL,
    "QUANTITY" INTEGER NOT NULL )
    The entities are related as follows:
    SAMPLE.SAMPLE_ID -> BASE_OBJECT.BASE_OBJECT_ID - The PKs that are used to join the sample to the base class
    SAMPLE_ITEM.SAMPLE_ITEM_ID -> BASE_OBJECT.BASE_OBJECT_ID - The PKs that are used to join the sample item to the base class
    SAMPLE_ITEM.SAMPLE_ID -> SAMPLE.SAMPLE_ID - The FK that is used to join the sample item to the sample class as a child of the parent.
    SAMPLE is one to many SAMPLE_ITEM
    The entity classes are as follows:
    @Entity
    @Table( name = "BASE_OBJECT" )
    @Inheritance( strategy = InheritanceType.JOINED )
    @DiscriminatorColumn( name = "BASE_KIND", discriminatorType = DiscriminatorType.INTEGER )
    @DiscriminatorValue( "1" )
    public class BaseObject
    extends SoaEntity
    @Id
    @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "BaseObjectIdSeqGen" )
    @SequenceGenerator( name = "BaseObjectIdSeqGen", sequenceName = "BASE_OBJECT_PK_SEQ", allocationSize = 1 )
    @Column( name = "BASE_ID" )
    private long baseObjectId = 0;
    @Entity
    @Table( name = "SAMPLE" )
    @PrimaryKeyJoinColumn( name = "SAMPLE_ID" )
    @AttributeOverride(name="baseObjectId", column=@Column(name="SAMPLE_ID"))
    @DiscriminatorValue( "2" )
    public class Sample
    extends BaseObject
    @OneToMany( cascade = CascadeType.ALL )
    @JoinColumn(name="SAMPLE_ID",referencedColumnName="SAMPLE_ID")
    private List<SampleItem> sampleItem = new LinkedList<SampleItem>();
    @Entity
    @Table( name = "SAMPLE_ITEM" )
    @PrimaryKeyJoinColumn( name = "SAMPLE_ITEM_ID" )
    @AttributeOverride(name="baseObjectId", column=@Column(name="SAMPLE_ITEM_ID"))
    @DiscriminatorValue( "3" )
    public class SampleItem
    extends BaseObject
    @Basic( optional = false )
    @Column( name = "SAMPLE_ID" )
    private long sampleId = 0;
    Edited by: Chris-R on Mar 2, 2010 4:45 PM

    Thanks for the thoroughness. There was a mistake in moving the code over for the forum. The field names are correct throughout the original source code.
    BASE_OBJECT_ID is used throughout.
    I suspect the problem lies in the one-to-many sampleItem(s) relationship that is based upon the subclassed item class. (The relationship is actually "sampleItems" in the real code and somehow got changed in the move over.)
    The problem may lie in the mapping of the attribute override in the child class to the referencing of the item class from the parent side of the relationship in the Sample class.
    I further suspect this may be specific to Eclipselink based upon other postings I've seen on the web that have similar problems...
    Any thoughts?
    Edited by: Chris-R on Mar 3, 2010 9:56 AM

Maybe you are looking for

  • Is it possible to increase the size of print in google transalte?

    My wife is from China and the print size and general layout of her Google Translate is much easier to read than mine here in the USA.  I have limited vision not corrected with glasses.

  • Missing the "Microsoft Exchange Server Auth Certificate"

    Hi Everyone, I have a single Exchange box.     Was integrating my Lync and Exchange and noticed some issues after configuring my Lync pre-reqs: http://technet.microsoft.com/en-us/library/jj721919.aspx Following the line of communication and event log

  • Deploy infobus applet--"Invalidating certificate principals"

    Hi, lots of questions about deploying infobus applet had been posted previously, but none of them is my case. After finishing generating "package1.jar", I copy every *.jar, *.zip file into my deploy directory "c:\temp" as well as the package1.applet1

  • Can archivelog history in the v$table be full?

    Hi All, 9i OEL 5.6 Our database in set to archivelog mode but we keep on deleting the archive logs because we do cold backup everyday at 12 midnight, since we only have 9am - 6pm office hours and apps processing window. All the users go home after 6p

  • Taking data from one column and spread it out into multiple columns

    I have a table that I wish to take the multiple values out of one column and stick each into its own column.. The data looks like this: subscriber id benefit plan 12345 Med 12345 Drg 98765 Med 98765 Drg I want it to look like: subscriber_id pc_med 12