Line added to movie clip doesn't appear

Hi,
I'm trying to add a line to a movie clip.  When I trace the width of the lineadded  it traces correctly, but the line doesn't appear.  If I do everything the same but add the line to the stage instead of the movie clip it does appear.  I know this is one of those cases where I can't see the forest fro the trees but I sure would appreciate any insight you can give me.
Here's the relevant code:
var xAxis = new Shape();
graph_mc.addChild(xAxis);
xAxis.graphics.lineStyle(2, 0x000000, 1)
xAxis.graphics.moveTo(startX, startY);
xAxis.graphics.lineTo(maxX, startY)
xAxis.name = "xAxis_mc"
Best regards,
Chris McLaughlin

Hi kglad,
Thanks for this.  I helped me realize that I was basing the placement on the stage rather than the movie clip on the stage.  When I moved the starting X and Y positions to 0, it appeared.
Best,
Chris

Similar Messages

  • After effects clip doesn't appear in finished film

    I have produced a short film in premiere pro with a 6 second after effects clip at the end.  When I export it to encoder to produce a FLV/F4V film for youtube,the after effects clip does not appear even tho I can see it encoding and there is a 6 second blank film at the end.  I don't understand this as I have done this a few months previously on another premierepro film and could see the after effects clip.  I have repeated the encoding on the earlier film and now cannot see the AE clip.  I have slightly changed the AE clip - only changing the font colour so nothing major.  I am working with CS4
    Any ideas as to whatis happening?
    PhoebeSparke

    Hi Mark
    It was a stupid mistake on my part - the AE project was set at 24fpm whereas the Premiere Pro project was set at 25fpm so I guess they were contradicting each other.  I'm still not sure how this could have happened but I am glad I have sorted it.  Thanks very much for your interest
    PhoebeSparke

  • Controlling root time line from a movie clip

    Hi
    Ive been searching around for an hour or so and cant find anything that helping.
    Im using cs4 and actionscript 2.
    in my 2nd scene i have a movie clip with a roll over button inside, i need that button to control the root timeline and navigate around the site, how do i do this? this is what ive got and doesnt work -
    on (release) {
        _root.gotoAndPlay("main movie", 2);
    thanks for any help.

    Try using just a label name for the frame, no scene or frame number... Navigation for scene-based designs can be problematic.  It will save you some issues if you design using just one scene.

  • Time line change with Movie Clip!

    Help, I want a movie clip to interact with another to change the scene.
    this is my code on the "Door":
    onClipEvent(enterframe) {
         if (_root.char.hitTest(this)) {
              _root.gotoAndStop("Game2", 1);
    Game2 is my next scene name.
    but it is not working!
    Why is that!
    the other movie clip's instance is "char":

    Take the code off of the object and place it in the main timeline, modifying it as shown...
    this.onEnterFrame = function(){
         if (char.hitTest(Door)) {   // replace "Door" with the instance name you gave it
               delete this.onEnterFrame;
               gotoAndStop("Game2", 1);

  • Adding Captivate movie clips to PDF

    I'd like to add a small Captivate demo to a PDF. I read that only a single SWF file can be embedded in a PDF file. If I select Flash (SWF) when I am publishing then which output option would give me a single file? The "Export HTML" creates more than one file.
    It seems that the "Standalone" feature will create a single file but then it's an .exe file so sometimes these are blocked by e-mail because of virus concerns. Any suggestions would be helpful.
    RD

    Hi there
    If you are using Captivate 4 you may now configure it so you end up with a single SWF output. You can also do it if you have version 3, but it may require some tricksy workarounds.
    Which version are you using?
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Video fading in, but not out in movie clip.

    Hi.
    I need to run a video which I can turn off and on on top of other flash content.
    Since I also need to add sub titles I decided to import the video clip into a movie clip. The movie clip now has as many frames as the video.
    I added the subtitles by keyframing a text line in the movie clip and synched it up with the movie. (this was not real easy..)
    I placed an instance of the movie clip on my main stage in frame 10. I added an on and and off button that simply would take you to a later frame without the movie clip instance, and back to frame 10 again if you want to see the video again. This worked well. 
    To make the transistions elegant I wanted to fade the video in and out. So on the main stage in frame 10 I placed this action script:
    (+ gave my movieclip the instance name mc)
    stop();
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var myTween:Tween = new Tween (mc,"_alpha",Strong.easeIn,0,100,2,true);
    which nicely fades the video in when the playhead gets to frame 10.
    There is another part of the script that should be able to tell the upcoming end of the movie clip and fade it out:
    myTween.onMotionFinished = function () {
       new Tween (mc,"_alpha",Strong.easeOut,100,0,2,true);
    This however I can not get to work:
    1)  If I place this code in frame 10, the video first fades in but immideately fades out again.
    2)  I tried to put the code 15 frames from the end of the movie clip, and that did not work.
    3)  I tried to put the code 15 frames from the end of the movie clip and add _parent.  and that did not work either.
    Can this be made to work, and if so how?
    If not, please let me know if you have any other proven approach to suggest.
    ggaarde

    Hi Ned
    This does not work for me.
    Again the instance of the movieclip is on the main timeline in frame 10 with stop action
    I have put the code you suggested in frame 13 of the main time line. also with a stop action.
    Then in the movieclip I have put this code approx 100 frames from the end of the clip:
    _parent.gotoAndPlay(13);
    How else would he main movieclip know when to start the fadeout?
    The myTween.onMotionFinished = function should maybe detect it, but i have not had luck using it. The only time it works is like described in my first post, but it triggers right away and fades out as soon as it is done with the fade in.
    Is there a way to tell it on which frame in the mc it should start the fade out?
    ggaarde

  • Removing movie clip in a frame

    Hello,
    I have a timeline with 12 frames, in frame 7 I added a movie clip to the  stage:
    var pContainer:MovieClip = new MovieClip;
    addChild(pContainer);
    var myLoader1:Loader = new Loader();
    pContainer.addChild(myLoader1);
    var myRequest1:URLRequest = new URLRequest("flash/products.swf");
    myLoader1.load(myRequest1);
    pContainer.x = stage.stageWidth/2 - 380;
    pContainer.y = stage.stageHeight/2 - 180;
    now, when I hit a button and I go back to frame 2 or any other frame in my movie, this movie clip is on  top of everything,
    I tried in frame 2:
    removeChild(pContainer);
    but it doesn't remove the movie clip any ideas?

    Managing things you create dynamically can be tricky business... I don't yet know why.
    One way of doing this is to manually plant pContainer as an empty movieclip symbol in frame 7 rather than creating it dynamically.
    Another thing to try would be to use the removeChild command before you move away from frame 7.  So you might need to have a conditional in your button that tests the currentFrame value and then executes the removeChild command before moving to the destination frame.

  • Controlling movie clip on timeline

    Hi, newbie question.
    If I put a movie clip on the main time line and that movie
    clip has its own time line, is there a listener I can use to detect
    when the movie clip I put on the main time line is finished
    (reached its last frame).
    Thanks.

    Here's the simplest way:
    Give the movieclip the instance name "myMC".
    Then put this code on your main timeline:
    onEnterFrame = function () {
    if (myMC._currentframe == myMC._totalframes) {
    DO THIS;
    onEnterFrame = null;
    In this function, every time a new frame turns over, it will
    check if myMC has reached its end. When it does, it will execute
    the commands I've written as DO THIS, and stop making this check.
    Let me know if you run into any problems.

  • Cs4 flash movie clip question

    I have started this animation and I am turning rain drops into movie  clips with a small splash animation in the clip.I can just copy and  paste them so I won't have to animate each one or do programming. When I  test this with the swf file they turn out fine. But when I try to  export this into a jpeg/png,or avi the full animation in the movie clip  doesn't work.It just shows the first frame.Is there a way to make this  work since I would really like the single jgep files or avi since I need to transfer this to other programs. I thought  there was a way to do this but I cannot remember or I don't know if they  changed it with cs4 XD.

    Oh I am sorry I didn't say what I mean clearly XD. I want export it as a image jpeg sequence so I would have the many frames to import else where. But also I would like different single shots to show as previews as well. But when I try to do that the movie clips are not moving slowly in each image.
    And I keep trying to do avi's but the movie clips are still not working.

  • Hierarchial movie clips

    - I create several movie clips. They appear in the library.
    - I instantiate the clips by dragging them onto the stage.
    - I decide I want a hierarchial movie clip. Thus I double
    click one of the clips, and drag another clip into it from the
    library.
    I now have a hierarchial clip relationship. However there is
    a problem.
    The problem is doing this seems to modify the original clip
    definition. It would be like extending a class in object oriented
    programming and having the original class definition file get
    overwritten with the changes made...not just extended. Is there any
    way to prevent this behavior? I still want to use the original clip
    elsewhere without the nested clip.
    I don't want to edit the original clip, I just want the
    object instance to have a hierarchial relationship.
    Is there a node based flash authoring tool out there
    anywhere?
    -Modulok-

    Thanks for the reply. Just confirming that it can't be done
    in the UI. I made the mistake of learning flash backwards, heh.
    actionScript was learned before any of the UI. It's been
    interesting.
    Thanks.
    -Modulok-

  • MOVIE CLIP

    Once I select all the input fields along with titles, I
    create the new movieclip and name it form. This will be the form
    movieclip. And do I check 'Export for Actionscript' in the linkage
    area? Perhaps, I did not do that prior.

    Mary Alice,
    > Whoops. No variable name for the FORM, only an instance
    of
    > name: FORM. And it does not seem to have an instance
    name.
    First all, I need to clarify a major typo in my last post. I
    totally
    destroyed the object reference I've been trying to explain,
    so please accept
    my apologies, and I hope my current reply will clarify
    matters.
    Because your path contains the expression "form_mc," the
    instance name
    of that movie clip -- the one that's holding all the text
    fields -- needs to
    be form_mc (because that's the name in your path).
    Think of this in terms of folders on your hard drive; it's a
    great
    analogy to what's going on here. That button interprets the
    ActionScript
    object reference like this: "From my own point of view
    (this), I'll look up
    one 'folder' to the timeline I'm in (_parent). From there,
    I'll look look
    for an object with the instance name form_mc. That movie clip
    contains a
    number of nested objects, one of whose instance names is
    household_txt.
    That nested object is a text field, which means it has a text
    property.
    That's what I want." So, string those all together and you
    get:
    this._parent.form_mc.household_txt.text;
    That's the location of one of the text fields from the point
    of view of
    the ActionScript associated with your button. In my last
    reply -- I'll
    blame it on a lack of coffee today (lame excuse!) -- I put
    that object
    reference (that "folder path," if you will) in the wrong
    place.
    Consider what you're after, though, it it should make sense.
    Since the
    ActionScript is associated with the button, everything must
    be taken from
    the button's point of view. The LoadVars instance is created
    inside the
    button, so from the button's point of view, the LoadVars
    instance (my_lv) is
    right there.
    e.g.
    on (release) {
    my_lv = new LoadVars();
    re_lv = new LoadVars();
    So far, so good. If you want to refer to my_lv or re_lv
    again while
    inside this on() handler, no object path is necessary. If you
    wanted to,
    you could use this.my_lv or this.re_lv, but even without the
    "this," the
    path to these objects is understood: they're right here. So,
    as you create
    new properties for the my_lv object, you name the object and
    its new
    property ...
    my_lv.household =
    ... and set that new property equal to the value of the
    TextField.text
    property of one of your text fields in the path we just
    covered; namely,
    this._parent.form_mc.household_txt.text. So ...
    my_lv.household = this._parent.form_mc.household_txt.text;
    ... and so on, with the rest of them:
    my_lv.water = this._parent.form_mc.water_txt.text;
    my_lv.soft = this._parent.form_mc.soft_txt.text;
    // etc.
    Does that clear it up?
    Note: even after you update all of this, you may still run
    into
    problems, so keep your chin up. There's a lot going on here,
    and you'll
    need to work through each concept until you get it. The
    concept we're
    working toward right now is object references.
    > Or, is instance of the same as instance name?
    The term instance refers to an object made from a template.
    If you use
    the drawing tools to create some artwork and convert that
    artwork into a
    movie clip, a new movie clip symbol will appear in your
    Library panel. You
    can drag as many copies of that movie clip symbol to the
    Stage as you like.
    Doing so means you're creating that many "instances of" the
    MovieClip class;
    in particular, "instances of" a very specific movie clip in
    your Library.
    Every dynamic or input text field you create, even if it
    isn't symbol, is
    automatically an "instance of" the TextField class. Even if
    you don't give
    them instance names, they're still instances of the classes
    (the type of
    object) they represent. But without instance names, it's much
    hard to get
    ActionScript to speak directly to any of them.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • In the time line, cutaways and titles are supposed to be linked on the top side of movie clips in the time line window.  I don't know what I did, but now they are linked to the bottom side.  How do I get them up to the top where they belong?

    I'm working on a movie in FCP and using cutaways and titles in many places in the timeline.  While working on a movie 2 days ago, and I don't know what I did, all the cutaways and titles are now linked to the movie clips from below rather than above.  When I "grab" them and drag them up to the top-side, as soon as I "release", they go back down.  Along the menu bar, I've check the "view", "modify", "clips", etc., looking for any thing that might refer to appearance of the time line.  What must I do to get the cutaways and titles back on top where they belong?  The audio clips remained properly-linked to the time line and play properly.  The cutaways and titles can be seen but do not play. 

    The cutaways and titles should be linked above the timeline clips, not below

  • I can't move files or folders or delete files without authentication. Also, it doesn't appear that I can change permissions?

    I can't seem to move or delete files or folders on my MacBook Air mountain lion system. It doesn't appear that changing permissions works either? Any ideas?

    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • I created my first movie using one long video (all photos) clip created in Keynote and imported to Imovie.  I added many music clips, some overlapping. I now want to lay down a new updated video clip, eliminate the original but retain the audio. Can I?

    I created my first movie using one long video (a montage of photos) clip created in Keynote and imported to Imovie.  I added many music clips, some overlapping. I now want to lay down a new updated video clip, eliminate the original video, but retain the audio. Can I?  And if so, how.  I cant seem to
    find the info anywhere in help.

    I would suggest that you go to iMovie/Preferences and make sure that Advanced Tools are enabled.
    Then, you can drag your new video clip on top of your old clip and a popup menu should appear. Choose REPLACE.

  • AS3: Checking if movie clip chiled is added

    hey,
    I have few movie clips that are added and removed automaticly by users choice. The problam is I can't find a correct "if" condition that will check if the movie clip exists before I remove it. This is the part of the code:
    function removeAnimation():void {
        if(Boolean(getChildByName('wheelChair'))){
            removeChild(wheelChair);
            chairTimer.stop();
    I tryed getChildByName and everything I could find in google and came up empty.
    Any help will be appriciated.

    Just on the chance that it might apply, since you do use the wheelChair as an instance name in one line, try the following...
    function removeAnimation():void {
        if(contains(wheelChair)){
            removeChild(wheelChair);
            chairTimer.stop();

Maybe you are looking for

  • Problem with http, can you help me about this exception(JSPX)?

    Somwone could tell me what's this http error when i try to get data from jspx aplication? HTTP Status 500 - exception javax.servlet.ServletException: Problem accessing the absolute URL "http://localhost:8080/livros/people.jspx". java.io.IOException:

  • Usertable error after adding a udf

    I have a UI add-on that assigns values ​​to a UDT by usertable object of the DI API, the problem is generated after adding a UDF from SAP menu and try to assign a value from the DI. The error is Invalida Field Name My question is, is necessary to wai

  • Satellite A30 - Can I install a bigger HDD?

    I thought I had been careful with bits of kit and boards. but after rebuilding my A30 (having had the DC socket replaced), it comes up with the following messages: *SMART Failure predicted on Hard Disk 0: TOSHIBA MK4018GAS (PM)* *WARNING: Immediately

  • Datasource pool issues in weblogic

    Frequently,I am coming accross this error in my weblogic server log:Any pointers on how to resolve this? any help on this Adminlog: <Oct 15, 2013 12:11:35 PM GMT> <Info> <JDBC> <EPGCRMITG1> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblo

  • How connect apple tv to denon ave-e400

    i can't connect