Refering to a class imported on the root timeline?

This is probably ueber basic, but I don't know how to do it.
I am importing tweenlite on the root timeline like this:
import gs.TweenLite;
I now want animate things in other MCs. I tried something like this, but it did not seem to work.
_parent.TweenLite.to(text1, 3, {_alpha:100, overwrite:0});
How would I do this?
Thanks a lot for any help with this!!!

it's easiest to not even bother with the import statement and always use:
gs.TweenLite.to();
or
gs.TweenLite.from()
from any timeline.

Similar Messages

  • [JAXB] Multiple imports in the root node

    Hello,
    I use JAXB and am doing this scenario : unmarshalling an XML document created manually, and automatically marshalling another from the generated Java code.
    This is a multiple schemas / multiple imports issue.
    I would like the 2 XML documents to be similar, but in the first one, I get :
    <?xml version="1.0" encoding="UTF-8"?>
    <aaa:first xmlns:aaa="http://aaa" xmlns:bbb="http://bbb">
    </aaa>
    and in the second :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <aaa:first xmlns:aaa="http://aaa" xmlns:ns1="urn:abc" ...>
    <bbb:second xmlns:bbb="http://bbb">
    </bbb>
    </aaa>
    So, how is that possible to import multiple namespaces (xmlns) in a single node please ? It seems that JAXB does the import only when needed, and won't group all the imports in the root node.
    (moreover, how can I disable the "standalone" attribute in the header of the generated XML document please ?)
    Thanks in advance.

    Ok, I found a solution to get all namespaces placed in the root of the generated XML document : one have to implement a NamespacePrefixMapper
    marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper",new NamespacePrefixMapperImpl());and redefining its ' public String[] getPreDeclaredNamespaceUris()' method.
    For now, the problem is that namespaces declared there are somehow static. In fact, when unmarshalling Java objects from an XML document, it seems that this document namespaces are lost.
    Do you know a way these namespaces would be kept somewhere, associated with the unmarshalled object ? I need these namespaces in the case that I would create another XML file from it in the future.
    It's seems logical to keep this with the object, so did I miss something please ?

  • Controlling the root timeline from inside a MovieClip

    [preface] I'll apologize in advance. I'm a designer, not a
    developer. I know very little about actionscript so if you
    can help me out, please pretend like I know nothing.
    [/ preface]
    I just need actionscript to check the value of a variable
    when the end of a movie clip is reached and then call an action.
    Here's what I've got and it doesn't work. Please don't laugh.
    if (p == 1){
    tellTarget (_root) {
    play();
    else if (p == 0){
    stop();
    (the "stop" on the "else if"
    is referring to the movie clip's timeline, not the root
    timeline... in case you're wondering)
    Any help would be greatly appreciated. Thanks!

    No it's not a school project. Good guess though. It's
    actually a self-promo piece for the ad agency I work for. I'm an
    art director expanding my horizons. I would take a class or run
    through one of the good actionscript books but unfortunately, I
    don't have time.
    Thanks for the help again kglad.
    btw, I've used tellTarget successfully in a few projects in
    the last few months. I'm using Flash 8.

  • Remove child on the root timeline from within a movieclip

    Hi
    How do I remove a child from the root timeline from within a separate movieclip?
    I've tried
    MovieClip(parent).removeChild(mc1);
    But I get this error
    1120: Access of undefined property mc1.
    I could write a function in the root timeline that just removes child and then run that from within the movieclip but is there a better way?
    Thanks in advance.

    Thanks for replying.
    I asked on Kirupa but I couldn't access the site so I asked here.
    I guy answered with this
    MovieClip(parent).removeChild(MovieClip(parent).getChildByName("mc1"));
    It works fine, is this the best way to do it?
    Not sure if I understand what you meant?
    Just to be clear I have to movie clips on the stage mc1 and mc2 and i want to remove mc1 from within mc2's timeline.
    Thanks again

  • Controll the ROOT timeline from externally loaded movie clip?

    does anyone know how to controll the root timeline from an
    externally loaded movie clip?
    I have loaded a movie clip, which has buttons on it that I
    would like to controll the main original website timeline with.
    something like this.parent.parent?
    thanks a lot
    harky

    feedmeapples <[email protected]> wrote:
    > does anyone know how to controll the root timeline from
    an externally
    > loaded movie clip?
    >
    > I have loaded a movie clip, which has buttons on it that
    I would like
    > to controll the main original website timeline with.
    >
    > something like this.parent.parent?
    _root.doStuff;
    Freundliche Grüße,
    Franz Marksteiner

  • Import Error: The root directory does not exist

    Hi,
    I have some isuuses with importing the extended page. When I try to Import it throws an error.
    Root Directory does not exist.
    I am using the following command.
    import c:\jdev\jdevhome\jdev\myprojects\oracle\apps\asn\opportunity\webui\EMCOpptyDetPG.xml -includeSubpackages -validate -rootdir c:\prabhat\Jdev\jdevhome\jdev\myprojects -mmddir C:\prabhat\Jdev\jdevhome\jdev\myhtml\OA_HTML\jrad -userId 1 -username apps -password apps -dbconnection "(description = (address_list = (address = (community = tcp.world)(protocol = tcp)(host =xxxx)(port =xxx)))(connect_data = (sid = xxxx)))" -jdk13
    Importing /oracle/apps/asn/opportunity/webui/EMCOpptyDetPG
    Validation warnings in document "/oracle/apps/asn/opportunity/webui/EMCOpptyDetP
    G":
    Importing /oracle/apps/asn/opportunity/webui/EMCOpptyDetPG
    Validation warnings in document "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG":
    Invalid value "/oracle/apps/pv/opportunity/webui/PvOpptyPartnerRN" for property
    "Extends" on component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubt
    abPrmRN". Component "/oracle/apps/pv/opportunity/webui/PvOpptyPartnerRN" cannot
    be referenced from "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabPr
    mRN" because it violates scope restrictions.
    Invalid value "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN" for property "Exte
    nds" on component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTas
    kRN". Component "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN" cannot be refere
    nced from "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTaskRN" bec
    ause it violates scope restrictions.
    The component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTaskRN"
    cannot contain "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN.CacSmrTable" of t
    able style because it is inside "tableLayout".
    The component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNSubtabTaskRN"
    cannot contain "/oracle/apps/jtf/cac/task/webui/CacTaskSummRN.CacSmrTaskButtonR
    N" of stackLayout style because it is inside "tableLayout".
    Invalid value "/oracle/apps/pv/opportunity/webui/PvAbandonOpptyRN" for property
    "Extends" on component "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNPrmS
    tack". Component "/oracle/apps/pv/opportunity/webui/PvAbandonOpptyRN" cannot be
    referenced from "/oracle/apps/asn/opportunity/webui/EMCOpptyDetPG.ASNPrmStack" b
    ecause it violates scope restrictions.
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Error: The root directory does not exist
    Import completed.
    But After this when I try to see from the server there is no file with name EMCOpptyDetPG.xml exist. So I think this file is not imported.
    Could suggest how to solve this problem.
    Thanks
    Prabhat

    Hi Tapash
    while deploying a page to mds Repository i m getting the same error that root Directory does not exist but it also says that import completed successfully.
    when i see the same using jdr_utils.listDocuments('xxxx/oracle/apps/ak/server/webui/xxxPG')
    it says printing /xxxx/oracle/apps/ak/server/webui/xxxPG thus page is available in the mds repository and i m able to access the page at run time
    my concern is why i m getting this error
    my import command looks like this
    java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/xxxx/oracle/apps/ak/server/webui/xxxxPG.xml -jdk13 -mmddir $OA_HTML/jrad -username apps -password apps -rootdir $JAVA_TOP -validate -dbconnection " (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xyxyxyxyxy)(PORT = xyxyx)) (CONNECT_DATA = (SID =yyy)))"
    could u pls suggest some solution.

  • Reffering to code in the root timeline

    I'm very suprised I theres not an obvious answer to this
    question to be found. In AS 2 I would often write most of my code
    in the main timeline, and then refer to it from various other
    movies etc. I dont seem to be able to do that in AS 3? how can I do
    it in AS 3?
    For example if i had a function on the main timeline, and
    wanted to call it from the code in another movie. In that past I
    would have just used _root.functionName();

    _root in AS3 is now simply root (no underscore). The root
    property,
    however, is only available to DisplayObject instances, not
    other classes.
    The root reference is also null unless the DisplayObject
    instance is a child
    of a display list attached to the stage. For timeline scripts
    within a Flash
    FLA, however, where the movie clip is added to the screen
    within the Flash
    environment, root is always available.
    A good practice for globally accessible functions, however,
    would be to
    define your functions as static methods in a class. Then you
    can reference
    those functions anywhere from any object (even non
    DisplayObject instances)
    using ClassName.functionName()
    "smazr123" <[email protected]> wrote in
    message
    news:f29rrb$4nl$[email protected]..
    > I'm very suprised I theres not an obvious answer to this
    question to be
    > found.
    > In AS 2 I would often write most of my code in the main
    timeline, and then
    > refer to it from various other movies etc. I dont seem
    to be able to do
    > that in
    > AS 3? how can I do it in AS 3?
    >
    > For example if i had a function on the main timeline,
    and wanted to call
    > it
    > from the code in another movie. In that past I would
    have just used
    > _root.functionName();
    >

  • 4 mc's on the root timeline. Using onClipEvents... all mcs play at once.

    I have 4 mc's on a root timeline. I'd like each, when clicked, to animate individually. Currently with the code I have, when I click one, they all play. 3 of these mc's are identical mc's (they have instance names, but aren't called out in the code, not sure how to). The fourth mc is a different mc altogether, yet this particular mc along with the other 3 (identical) all play at once.
    I thought using "this" would only have the mc I click on play. Not the case. I also tried putting the instance name (i.e. onoff1) bofore "this." and after "this." and no luck.
    Thanks for any help, and I regret to say that I'm not savvy in AS2, so I hope you don't mind spelling things out for me because this a bit over my head.
    Also, wanted to say, that the mc's timeline do have a stop at the beginning and end. So when you export the swf (currently) the mc is stopped, and when you click on it they all play to the next stop. So they act like I want them, just that they're all animating at once no matter which one I click.
    onClipEvent(mouseUp) {
    this.gotoAndPlay(1);

    Wow! You are the man!!!!! Karma points! Thanks so much.
    I've only used on(release) for buttons, and have always used onClipEvent(mouseUp) for mcs. I didn't know you could use on(release) for mcs, didn't think you could.
    I know enough AS3, more than AS2. I got a gig that asks for AS2 and I had to learn it from the ground up. I miss using the function command in AS3, I think I used it for everything.
    Thanks again.

  • Array to control MCs on the root timeline

    HI - - - a continuing saga
    I have a main timeline thats about 900 frames long. During
    the course of this 900 frames I bring in short MCs (subA, subB,
    subC, etc) on their own layer which play their duration - (a 90
    frame sub MC gets 90 frames on the main timeline).
    Using a mc I made into a play/pause btn, I can pause and
    resume play of the main timeline by targeting “_root”.
    I can also use the same button to pause/play the sub_mcs IF I
    list each one at the pause and play commands. I thought an array
    would help me avoid that code repetition but it doesn't work.
    Can someone look at my code and let me know what's missing
    and/or what I did wrong?
    TIA
    JL

    Hi --
    Try this:
    obj = allSubMCs[0]
    obj.play();
    etc..
    You have to define the index of the array. If you want the
    pause/play button
    to work for all MCs in the array then just loop through the
    array.
    Rich
    "jlucchesi" <[email protected]> wrote in
    message
    news:ghun7u$pjn$[email protected]..
    > HI - - - a continuing saga
    >
    > I have a main timeline thats about 900 frames long.
    During the course of
    > this
    > 900 frames I bring in short MCs (subA, subB, subC, etc)
    on their own layer
    > which play their duration - (a 90 frame sub MC gets 90
    frames on the main
    > timeline).
    >
    > Using a mc I made into a play/pause btn, I can pause and
    resume play of
    > the
    > main timeline by targeting ?_root?.
    > I can also use the same button to pause/play the sub_mcs
    IF I list each
    > one at
    > the pause and play commands. I thought an array would
    help me avoid that
    > code
    > repetition but it doesn't work.
    >
    > Can someone look at my code and let me know what's
    missing and/or what I
    > did
    > wrong?
    >
    > TIA
    >
    > JL
    >
    > var allSubMCs:Array = new Array("sub1_mc", "sub2_mc",
    "sub3_mc");
    >
    >
    > playPause_btn.onRollOver = function() {
    >
    > if(this._currentframe == 1) {
    > this.gotoAndStop("pauseOver");
    > }
    >
    > else {
    > this.gotoAndStop("playOver");
    > }
    >
    > }
    >
    >
    > playPause_btn.onRollOut = function() {
    >
    > if(this._currentframe == 10) {
    > this.gotoAndStop("pause");
    > }
    >
    > else {
    > this.gotoAndStop("play");
    > }
    >
    > }
    >
    >
    > playPause_btn.onRelease = function() {
    >
    > if(this._currentframe == 10) {
    > this.gotoAndStop("playOver");
    > _root.sub1_mc.stop(); // naming each sub mc does
    > //_root.allSubMCs.stop(); // the array doesn't work
    > _root.stop();
    > }
    >
    > else {
    > this.gotoAndStop("pauseOver");
    > //_root.allSubMCs.play(); // the array doesn't work
    > _root.sub1_mc.play(); // naming each sub mc does
    > _root.play();
    > }
    >
    > }
    > //------END PlayPause TOGGLE--------
    >

  • Problem class important error while executing Query from favorites

    Hi Experts,
    1. I have tried execute the query from favorites it is showing the error message. " Problem class important"
        In the message text: logs showing error message [Attached the message screenshot].
    2. From "Query Designer" Execute [Ctrl+R] gives the error "500 Internal Server Error" [Attached the screenshot]
    3. Able to execute the reports from RRMX.
    No ST22 dumps. Can any one suggest about...how to rectify the errors.
    Thanks in advance...Surya

    Need tyo make sure the problem is with the query/workbook are general issue with all workbooks/query.
    1. Make sure the base query of work book is still executable. RRMX/RSRT.
    2. Execute the work book in Bex/Excel and look for definition of workbook; there might be some thing in the workbook referencing other than base query.
    3. If other workbook are also not working? need to check if other users have same issue.?
    Hope this will help to narrow the problem.
    Gopi

  • Validation to find the Root Node !!!!

    Hi All,
    Is it possible to write a Validation to find the Root Node of the Hierarchy,
    For E.g.  If we have a three level hierarchy
    Printer
            Dot Matrix
                          T123
    So is there a way I can check if my Root node value is Printer or not, because in Data Manager the value that is selected from the hierarchy drop down is the leaf node.
    Regards,
    Parul

    Hi Jitesh,
    The solution is as follows:
    MDM does not give us the option to traverse to the grandparent of the leaf node..
    In the example that we have taken :
    Printer
    - Dot Matrix
    - Laser
    --Laser1
    --Laser2
    Here if we want to check if the Grandparent of Laser1 is Printer, this cannot be done using the simple Validation, because through validation also we can at max find the parent of the current node i.e. we can traverse till Laser (for Laser 1 leaf node).
    Further we cannot use Laser as the node because in MDM we have to traverse completely through the last node and select it in Data Manager. So again we cannot search for Laser -> Parent.
    The Work Around that I have used is :
    I have created a new field and every time I import data I have mapped this field with the first Level Node and have put the Validation on this field.
    Eg: The field name is Root Node, so everytime the data is imported, Level 1 is mapped to Root Node and so all the Root node values are imported in the Root Node field that we have created and everytime the Validation Runs on this Root Node field and accordingly the process follows.
    Hope that would be helpful to you all!!!!
    Regards,
    Parul Malhotra

  • GotoAndStop at the the root of the timeline

    HI
    I have a movie clip with onRollOver and onRollOut script
    attached. When clicked I would like the root of the timeline to
    move to a different label. At present I have tried the following
    first script on the MC to move the root timeline, however this is
    not working and I assume this is due to the complexity of the movie
    clip:
    I have therefore used the following 2nd script for the first
    frame of the timeline within the MC which works with getURL but I
    am unable to get it to work with moving the root of the timeline.
    Do I need to add .root somewhere? Thanks

    Here is the answer:

  • Load swf AFTER playing to end of root timeline

    Don't know if this can be done or not...
    I have my Home page - 5 Navigation buttons on the page. Each
    button "onRelease" will load an external swf file ( a new page).
    The problem i'm having is getting the the buttons to play the rest
    of the root timeline (after "Stop) before it loads the external
    swf. The rest of the timeline is just a short fade to Alpha 0 of
    all buttons before the new page comes in.
    any help?
    thanks in advance.

    michaeltowse wrote:
    > Could you not assign a variable which is then picked up
    at the end of the main
    > timeline. This variable could be used within a loadMovie
    command. Your buttons
    > would have the variable declaration and then a play()
    command.
    >
    What you seem to need is some sort of non unloading loading
    of the movie.
    You got the level loading method, the movieclip loading
    method and the
    dedicated loader class.

  • Reffering to Code in root timeline

    I'm very suprised I theres not an obvious answer to this
    question to be found. In AS 2 I would often write most of my code
    in the main timeline, and then refer to it from various other
    movies etc. I dont seem to be able to do that in AS 3? how can I do
    it in AS 3?
    For example if i had a function on the main timeline, and
    wanted to call it from the code in another movie. In that past I
    would have just used _root.functionName();
    RESPONCE:
    _root in AS3 is now simply root (no underscore). The root
    property,
    however, is only available to DisplayObject instances, not
    other classes.
    The root reference is also null unless the DisplayObject
    instance is a child
    of a display list attached to the stage. For timeline scripts
    within a Flash
    FLA, however, where the movie clip is added to the screen
    within the Flash
    environment, root is always available.
    A good practice for globally accessible functions, however,
    would be to
    define your functions as static methods in a class. Then you
    can reference
    those functions anywhere from any object (even non
    DisplayObject instances)
    using ClassName.functionName()
    RESPONCE:
    Ummm... I named my document class main, thinking that might
    help me refer to it from child clips, but it didnt. Using root
    seems to refer to main, but then I cant refer to anything on the
    stage, or any function written there. From reading the help I got
    the impression that function defined in the root timeline would
    become publicly accessable functions that could be accessed with
    dot notation. Is this not the case?
    When I trace root, or main, it outputs [object main]. So then
    thats the class... Why cant I refer to the functions of that class
    from another movie?
    Are you suggesting I write a document class with my functions
    in it? could I still refer to objects on the stage if I do that.
    I've read over these subjects alot in the documentation and its
    really not clear... perhaps someone could write a tutorial.

    _root in AS3 is now simply root (no underscore). The root
    property,
    however, is only available to DisplayObject instances, not
    other classes.
    The root reference is also null unless the DisplayObject
    instance is a child
    of a display list attached to the stage. For timeline scripts
    within a Flash
    FLA, however, where the movie clip is added to the screen
    within the Flash
    environment, root is always available.
    A good practice for globally accessible functions, however,
    would be to
    define your functions as static methods in a class. Then you
    can reference
    those functions anywhere from any object (even non
    DisplayObject instances)
    using ClassName.functionName()
    "smazr123" <[email protected]> wrote in
    message
    news:f29rrb$4nl$[email protected]..
    > I'm very suprised I theres not an obvious answer to this
    question to be
    > found.
    > In AS 2 I would often write most of my code in the main
    timeline, and then
    > refer to it from various other movies etc. I dont seem
    to be able to do
    > that in
    > AS 3? how can I do it in AS 3?
    >
    > For example if i had a function on the main timeline,
    and wanted to call
    > it
    > from the code in another movie. In that past I would
    have just used
    > _root.functionName();
    >

  • Adobe Premier Elements 12 - Exporting trimmed AVCHD files from the project timeline, to a separate folder for burning to Blu Ray disc with other software?

    Hi, can anyone help please.  This is the first time I have used this forum.
    I use Premier Elements 12, a PC, 64 Bit, Windows 7, high powered computer.
    Just started trimming AVCHD in this software.
    I would like to know if it is possible to export trimmed AVCHD files to a folder elsewhere (files which were originally imported into the project timeline), so that I can burn the trimmed AVCHD files (not in 'Project' form)  to Blu Ray disc (using another software which I know that works to burn video files to Blu Ray disc).

    Kathy
    Thanks for the update. Your progress sounds very good.
    Premiere Elements 11, 12, and 13 are similar. But, version 13 has significant feature removals and a new Elements Organizer.
    So, when viewing or reading tutorials, try to determine the version of the program being used for the tutorials. As I typically write
    principles tend to remain the same from version to version, but the features tend to move, change, or be discontinued from version
    to version. And, it is frustrating to be armed with principles when you cannot find a feature.
    Some Comprehensive Free Resources for version 12.....
    http://tv.adobe.com/show/learn-premiere-elements-12/
    http://help.adobe.com/archive/en/premiere-elements/12/premiere-elements_reference.pdf
    http://help.adobe.com/archive/en/elements-organizer/12/elements-organizer_reference.pdf
    ATR Premiere Elements Troubleshooting: Premiere Elements 12 First Look Details
    ATR Premiere Elements Troubleshooting: Premiere Elements 12 Daily Discoveries
    Please do not hesitate to ask if questions or need clarification.
    Best wishes
    ATR

Maybe you are looking for