Reference object from function?

I still can't get a hold of how in flash you're supposed to
reference objects in the display list.
I have created a main container. Placed other containers
inside that will act as layers. Then I've placed items inside those
layers to animate using TweenLite.
Everything builds correctly but when I call my startAnimation
function it has no idea about the movie clips I'm trying to
animate. I gave them names during the addChild process so why
doesn't it work?
root1( main Timeline)
mainStage ( object mainStage)
ballLayer ( object ballLayer)
basketball_mc ( object BasketballMC)
I added the basketball from the libraray and gave it a .name
of basketball_mc. During my animation function I'm trying to just
say:
Thanks!

>> root1( main Timeline)
mainStage ( object mainStage)
ballLayer ( object ballLayer)
basketball_mc ( object BasketballMC)
If I understand, I think you could do:
TweenMax.to(root1.mainStage.ballLayer.basketball_mc,
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • Cut object from function diagram

    Hi,
    Is there possibility to cut object from function diagram?!!! I can't do it.
    regards

    morganlars,
    There is no need to think about transparent bacgrounds: basically, there is no background.
    You may View>Show Transparency Grid, then hide it again.

  • Returning objects from functions

    Hi,
    public HSSFRow someFunction() {
       HSSFRow returnrow;
       Iterator rowiterator = someobject.rowIterator();
          while(rowiterator.hasNext()) {
             returnrow = rowiterator.next();
       return returnrow;
    }My problem is this, I want to pass a HSSFRow object back from a function, but the constructor to this object is protected so i cant initialize an object, this code wont compile because it says that the returnrow object might not have been initialized. How do i get round this problem?

    Hey-
    You could just initialize returnrow to null and check for null whenever you call someFunction(), that should do it.
    Lee

  • How to reference multiple instances of the same Java object from PL/SQL?

    Dear all,
    I'm experimenting with calling Java from PL/SQL.
    My simple attempts work, which is calling public static [java] methods through PL/SQL wrappers from SQL (and PL/SQL). (See my example code below).
    However it is the limitation of the public static methods that puzzels me.
    I would like to do the following:
    - from PL/SQL (in essence it needs to become a forms app) create one or more objects in the java realm
    - from PL/SQL alter properties of a java object
    - from PL/SQL call methods on a java object
    However I fail to see how I can create multiple instances of an object and reference one particular object in the java realm through public static methods.
    My current solution is the singleton pattern: of said java object I have only 1 copy, so I do not need to know a reference to it.
    I can just assume that there will only ever be 1 of said object.
    But I should be able to make more then 1 instance of an object.
    To make it more specific:
    - suppose I have the object car in the java realm
    - from PL/SQL I want to create a car in the java realm
    - from PL/SQL I need to give it license plates
    - I need to start the engine of a scpecific car
    However if I want more then 1 car then I need to be able to refrence them. How is this done?
    Somehow I need to be able to execute the following in PL/SQL:
    DECLARE
    vMyCar_Porsche CAR;
    vMyCar_Fiat CAR;
    BEGIN
    vMyCar_Porsche = new CAR();
    vMyCar_Fiat = new CAR();
    vMyCar_Porsche.setLicensePlates('FAST');
    vMyCar_Porsche.startEngine();
    vMyCar_Fiat.killEngine();
    END;
    Thanks in advance.
    Best Regards,
    Ruben
    My current example code is the following:
    JAVA:
    ===
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED CODAROUL."RMG/BO/RMG_OBJECT" as package RMG.BO;
    public class RMG_OBJECT {
    private static RMG_OBJECT instance = new RMGOBJECT();
    private String rmgObjectNaam;
    private RMG_OBJECT(){
    this.rmgObjectNaam = "NonDetermined";
    public static String GET_RMGOBJECT_NAAM () {
    String toestand = null;
    if (_instance == null) {toestand = "DOES NOT EXIST";} else { toestand = "EXISTS";};
    System.out.println("instance : " + toestand);
    System.out.println("object name is : " + _instance.rmgObjectNaam);
    return _instance.rmgObjectNaam;
    public static Integer SET_RMGOBJECT_NAAM (String IN)
    try
    _instance.rmgObjectNaam = IN;
    return 1;
    catch (Exception e)//catch
    System.out.println("Other Exception: " + e.toString());
    e.printStackTrace();
    return 5;
    } //catch
    PL/SQL Wrapper:
    ==========
    CREATE OR REPLACE FUNCTION CODAROUL.SET_RMGOBJECT_NAAM(NAAM IN VARCHAR2) return NUMBER AS
    LANGUAGE JAVA NAME 'RMG.BO.RMG_OBJECT.SET_RMGOBJECT_NAAM (java.lang.String) return java.lang.Integer';
    Calling from SQL:
    ==========
    CALL dbms_java.set_output(2000);
    select CODAROUL.GET_RMGOBJECT_NAAM() from dual;
    Edited by: RubenS_BE on Apr 6, 2012 5:35 AM
    Edited by: 925945 on Apr 6, 2012 5:41 AM

    You can do this by manually creating a new iterator binding in your binding tab.
    So instead of dragging the VO directly to the page, go to the binding tab, add a new executable iterator binding, and point to that one from your ELs in the page itself.

  • [iPhone] Calling Objective-C function from a standard-C function

    How can I call an Objective-C function from a standard-C function?
    I can call standard-C functions from an Objective-C functions but I can't do the inverse, how can I solve the problem of the *error: 'self' undeclared* ?
    Here below is the example code:
    - (void)animateView: (UIImage *)image fromPosition:(CGPoint) location1 toPosition:(CGPoint) location2
    - (void) touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
    [self animateView:newImage fromPosition:location1 toPosition:location2];
    void dessineItemesAnim(int iteme, int final)
    [self animateView:newImage1 fromPosition:location1 toPosition:location2];
    *error: 'self' undeclared (first use in this function)*
    }

    Either add another parameter that contains a reference to the instance you are trying to call (just like many of the various API functions that use a 'C' language callback offer a 'user data ' parameter that can be used for this purpose) or create a global variable reference to the instance.
    Once you have the instance reference, then you can use it in the same way that you would from within an obj-c function.
    Of course, all of this assumes that you are using the standard GCC compiler that is told that your source is objective-c.
    Susan

  • Reference object structure list iam getting only functional location no

    Dears
    There is one query from our client that in reference object structure list he is getting only functional location no and not functional location description.i asked him to go to menu settings field selection -functional location and from the choose list  ask him to select functional location description .But still he couldn't get the required one. Can any body tell me the reason.

    Hi,
    You can achieve it from OIAJ tcode and set the required setting for your field IFLO-PLTXT.
    Regards,
    Keerthi

  • Distribute by Reference Data from Sender to Recipient planning function?

    Hi all;
    I’m trying to use the planning function “Distribute by Reference Data from Sender to Recipient” to distribute the reference data by material to plan data.
    This is:
    Reference Data:
    Version: 001
    0vtype: 010
    Material: M1; M2; M3
    Sub-brand: SB1;
    Price Group: PG1;
    Customer: C1;
    Area Manager: AM1;
    Exercise/Period: 001.2008; 002.2008; 003.2008
    Quantity: 100; 200; 300 -> 600
    Plan Data 1:
    Version: 002
    0vtype: 02
    Material: #
    Sub-brand: SB1;
    Price Group: #
    Customer: C1;
    Area Manager: AM1
    Exercise/Period: #
    Quantity: 1000
    I want to distribute the 1000 according with the material reference data. The plan doesn’t consider the Price Group and Exercise/Period.
    Goal:
    Plan Data 2:
    Version: 002
    0vtype: 02
    Material: M1; M2; M3
    Sub-brand: SB1;
    Price Group: #
    Customer: C1;
    Area Manager: AM1
    Exercise/Period: #
    Quantity: 167; 333; 500
    M1 = 100 / 600 * 1000
    In the planning function I had use:
    Fields for change:
    Material: 0 - ZZ
    Fields for conditions:
    0vtype: 020
    Exercise: 2008
    Key figure: quantity
    Version: 002
    Old material: #
    Reference characteristics:
    0vtype: 010
    Exercise: 2008
    Material: (I didn’t fill because it doesn’t allow all the material items)
    Key figure: quantity
    Version: 001
    When I execute the function a message appears:
    “No reference data”
    Can anyone help me?
    Regards;
    Ricardo

    Hi,
    price group is missing in your reference data
    D

  • Problem in getting the function template object from the repository.

    Hi all,
    I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
    Below is statement which is giving error after being deployed to SAP EP6.
    This is executing fine when executed in Tomcat Server.
    // getting the object of function template
    IFunctionTemplate functionTemplate =
    aRepository.getFunctionTemplate("YADDNEWUSER");
    Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
    Thanks in advance,
    Divija

    This sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.

  • How to reference a Textbox or a Grid object from one tile to another tile

    Hello All
    How do i reference a Textbox of a Grid object from one tile to another tile? I've 6 tiles in a tileset.
    Tile-1 has a "Complete" button when that button is clicked i want to loop through a values in a Grid object from Tile-3. Is that possible? I'm using Mobile Application Studio 4.0
    Thanks in advance,
    Hetal

    Hi,
    then I would implement sth like the following:
    dim myBO as businessobject
    dim i as integer, sValue as string
    for i = aMyAnchor.bcol.count to 1 step -1
      sValue = aMyAnchor.bcol.GetAttribute(i, "myProperty")
      if sValue = "" then
        aMyAnchor.bcol.item(i).delete
      end if
    next
    Please note that the deletion needs to be done bottom-up because of a refresh of the
    indexing after deleting of objects in the collection.
    The refresh of the grid is done automatically because of the data binding.
    Regards,
    Wolfhard

  • Get a reference to an object from a touch

    I have no idea how to get the reference to an UIImageView object from a touch gesture. So far all I know how to do is get a reference to the touch. This is the code I have so far:
    - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    printf("TOUCH ");
    UITouch *touch = [touches anyObject];
    CGPoint touchPoint = [touch locationInView:self.view];
    Any help would be greatly appreciated

    There may be more elegant methods, but what I did was to find out which sub views bounds covered the coordinates of the selected point. My task was easy since I had a sudoku grid, so converting coordinates into the index into an array of view instances was easy.
    - (unsigned int) setSelectedIndexForXCoordinate:(float) x YCoordinate:(float) y
    int column = (int) ( ( 9.0 * x ) / 320.0 );
    int row = (int) ( ( 9.0 * y ) / 320.0 );
    unsigned int index = ( ( row * 9 ) + column );
    [self setSelectedIndex:index];
    return index;

  • Reference HttpServlet object from webservice method ...

    How to reference HttpServlet object from webservice method to access HTTP header?
    Thanks
    Marcel

    You are correct.
    I know that SOAP messages can be send not only via HTTP protocol.
    Our solution is restricted to use only HTTP protocol for communication between client and server by customer, because there is implemented transparent proxy for users authorization and strong security of communication via HTTP protocol. Authorization server transparently modify HTTP request header with user identity (DN from user certificate - with this PKI solution it is not possible to use standard SSL because certificate is proprietary enhanced and cannot be accessed in standard way). That is why I need access HTTP request header.
    Why I want to use webservices? I thing that webservice is flexible and perspective technology for integration and asynchronous communication between web clients and application (it is really more effective add new info in web page asynchronously from webservice than reload whole page).
    Thanks
    Marcel

  • Flush()ing shared object from a function

    i seem unable to flush/save to file the 'data' items of a
    shared object from within a function, any ideas please folks?
    i can get the code to work from the 'main body' of the script
    BUT if i try the same/similar thing from within a function it
    doesn't want to play! could it be due to some consideration
    regarding scope of variable (which i kinda understand - and kinda
    don't?!?)

    o-k-a-y kglad
    you da man, my man, we have a right result mon ami.
    it worked first time, thank you.
    i suspect i wouldn't have found that 'configuration' in a
    long time - it's easy when you know how, but getting there can be
    hard work.
    many thanks for your time and contribution, i appreciate
    both.
    best wishes,
    avonova

  • How can I call a COM object from a PL/SQL CODE

    Hi everyone,
    Does anyone know how to call a COM object from a stored procedure in oracle.
    a sample of code
    please help,
    Hilaire

    Are you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Notification: Set priority and dates, based on the reference object

    Hello,
    I'm searching for an idea/solution, to set the priority of a notification automatically, depending on the entered reference object (F/L or equi).
    I.e. I want to classify the F/Ls and equis with a priority (e.g. via the classification, or F/L / equi master data). When the user creates a notification, and enters a F/L or equi, the priority should be selected from the object and set automatically.
    Thanks for your answers!
    Best regards
    Stephan

    Hello Pete,
    thank you for your answer. Unfortunatelly both user-exits seem not to work for my problem.
    QQMA0025: Default values when adding a notification
    Priority and dates can be modified, but in this step you don't have the functional location. I thought, I can send a popup in this user-exit, to ask for the functional location, but the functional location is deleted in a later step (before the 1st display of the notification header), i.e. the user has to enter it again.
    QQMA0018: Deadline setting based on entered priority
    Here you can only modify the dates / times, but not the priority.
    Another show stopper is, that the exits will only be processed once, i.e. in both cases, a change of the functional location doesn't adjust the dates/times.
    It seems, that exit "Before saving the notification" (as far as I remember QQMA0014) could be a solution.
    I see 2 problems ->
    1. the user enters the F/L or equi and nothing happens to the priority / dates -> sending a popup in the saving process to inform the user about the changes, could be a solution.
    2. What to do, when the user has already maintained priority and/or dates/times?
    I will have a look, if there are enhancement spots in the notification program. Perhaps this can help me (or better - my boss ).
    Best regards
    Stephan

  • Setting the name of a new object from a string

    Is there anyway I can set the object name of a newly created
    object from a string?
    eg.
    (the code below generates a compile time error on the
    variable declaration)
    public function addText(newTxt:String, txt:String,
    format:TextFormat):void {
    var
    this[newTxt]:TextField = new TextField();
    this[newTxt].autoSize = TextFieldAutoSize.LEFT;
    this[newTxt].background = true;
    this[newTxt].border = true;
    this[newTxt].defaultTextFormat = format;
    this[newTxt].text = txt;
    addChild(this[newTxt]);
    called using>
    addText("mytxt", "test text", format);
    I could then reference the object later on without using
    array notation using mytxt.border = false; for example
    There are many a time when I want to set the name of a new
    object from a string.
    In this example I have a function that adds a new text object
    to a sprite.
    The problem is, if I call the function more than once then
    two textfield objects will exist, both with the same name. (either
    that or the old one will be overwritten).
    I need a way of setting the name of the textfield object from
    a string.
    using
    var this[newTxt]:TextField = new TextField()
    does not work, If I take the "var" keyword away it thinks it
    a property of the class not an object.
    resulting in >
    ReferenceError: Error #1056: Cannot create property newTxt on
    Box.
    There must be a way somehow to declare a variable that has
    the name that it will take represented in a string.
    Any help would be most welcome
    Thanks

    Using:
    var this[newTxt]:TextField = new TextField()
    is the right approach.
    You can either incrment an instance variable so that the name
    is unique:
    newTxt = "MyName" + _globalCounter;
    var this[newTxt]:TextField = new TextField();
    globalCounter ++;
    Or store the references in an array:
    _globalArray.push(new TextField());
    Tracy

Maybe you are looking for

  • Hide/disable a row of a list when "date" column is less than today's date.

    Hi, We are using a "Finalsubmitted" date column in my list. my requirement is once that date of Finalsubmitted column is expired(less than today's date), total row should be in hide/disable mode.Could you help me to achieve this. Thanks.

  • Can't download new face recognition driver for Qosmio G50

    Hi! Can't download new face recognition driver for G50 hinted by TEMPRO. Possibly bad link: http://81.27.174.53/tedd-files2/0/fareg-20081009112217.zip

  • Material with Different grades

    Dear Guru's, Here in my client, for one material they are having 5 different grades based on the quality, Like A,B,C,D & E How we need to maintain them in single mmr, because they are procuring @ different prices based on the quality. My PP guy dont

  • Creating Floor Plan Manager Application.

    Hello, I am creating a Webdynpro ABAP Application using standard FPM interface and component FPM_GAF_COMPONENT. First I create the Application Configuration ,But when I try to create the Component Configuration for the same I get the following error:

  • HT2729 what format is used to sync music to an ipod

    I have a mac book pro and am trying to sync play lists into my ipod.  I made sure that the setting are on manual.  For a reason that is unknown to me, I am not able to get any playlists into the ipod.  Could it be the format???  If yes, what format s