Problem: same tween multiple times on stage!!!

Hi guys,
i can't get my head arroud my problem, because i want to have multiple blocks moving over my stage, but i want use just the one mc in the libary and my function, what adds a new block with random color, alpha and speed.
I think, that i have to use addChild();, but i have no idea how to use it properly.
To make it a easier i attached my file and i appreciate any help!!!

First you need to designate the object in the library as an item that can be loaded dynamically.
Right click on it in the library and select Linkage from the menu that appears. In the interface that appears, select Export for Actionscript. A Class name will automatically be assigned, which you can change as you like (lets just say you name it MyObject). This is the name you will use to call in the item from the library.
When you click OK to close that interface, it will come up with an indication saying it can't find the class so it will create one at complie time... click OK there to.  You're done preparing the object in the library.
To add the item to the stage, treat it like any other new object instance:
var newObject:MyObject = new MyObject();
newObject.x = .... etc...
this.addChild(newObject);

Similar Messages

  • HT1689 Billed for same app multiple times

    We were billed for the same app multiple times, how do I contact apple iTunes to get this fixed?

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/TS1702?viewlocale=en_US&locale=en_US
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Getting Refunds for your iTunes Store Purchases
    http://www.labnol.org/software/itunes-app-store-refunds/13838/
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • Why is Apple TV showing the same computer multiple times for Home Sharing?

    Why is my Apple TV showing the same computer multiple times for Home Sharing? Also have connectivity issues. Sometimes will lose signal.
    JonRod's music
    JonRod's music
    JonRod's music
    JonRod's music
    JonRod's music
    I recently updated to Yosemite and never had this issue before.

    I'm not 100% sure of the ins and outs, but it's some sort of known issue between Yosemite, Airport and wifi. All you can do is wait for a fix and keep restarting your equipment as and when needed, unless you have the ability to connect your Mac via ethernet.

  • Can I gift the same app multiple times to multiple users?

    Can I gift the same app multiple times to multiple users?
    Like, if I wanted to buy iMovie for 3 friends, could I buy the app as a gift 3 times?

    You should be able to gift it multiple times
    Gifting content : http://support.apple.com/kb/HT2736

  • Is it possible to copy the same database multiple times simultaneously?

    This is the setup of my environment.
    I have a 'master' database that contains the full schema plus some pre-populated data such as default settings. When database schema changes are made, they get made to the master database. When a new customer signs up for the service, I make a copy of this
    master database (using SMO) that will now be the database containing all of the customer's information. The database is rather large, and the copy operation can take a couple minutes.
    Everything works fine as expected, unless I try to provision two new customers at the same time. It appears that Azure only allows for one DB copy operation at a time. Is there a way to allow for copying the same database multiple times simultaneously?
    Thanks for you input. I understand that this is likely not the optimal setup, and that there is many better ways of doing this, but I am somewhat heavily invested in the current process and I would like to find out how to make it work if I can.

    BTW, you can do this programatically by using PowerShell (https://msdn.microsoft.com/en-us/library/ee210569.aspx), SqlPackage (http://www.benday.com/2012/12/18/deploy-a-sql-server-database-projects-dacpac-with-sqlpackage-exe/)
    or the SQL Server binaries for .NET (http://www.vijayt.com/Post/Deploying-a-data-tier-application-in-SQL-Azure-programatically)
    Hope this helps.
    Alex

  • Same parameter multiple times in Execute SQL Task

    Hi all,
    i have a fairly long parametrized query that needs to be run within an Execute SQL task. It has only 2 unique parameters, but these need to be used multiple within that query. The connection is OLEDB.
    ill simplify my requirement by making up an arbitrary T-SQL "where" clause that will illustrate what i need:
    where
    x = @param1
    and y = @param1
    and z > @param2
    and w > @param2
    moving this into an SSIS execute SQL task will require the following:
    where
    x = ?
    and y = ?
    and z > ?
    and w > ?
    I know i need to specify 4 parameters and remap the same variables multiple times.. like so:
    User:aram1   -> 0
    User:aram1   -> 1
    User:aram2   -> 2
    User:aram2   -> 3
    isnt there a better way? i ask this because in my real task i have 2 params, each is reused 4 and 5 times respectively and it seems stupid to repeat params like this.

    @ _proffy_
    you can pass the same variable or value as parameter multiple times sql task.
    follow the steps below.
    1) type the sql query with parameters in SQL statement tab of sql task editor
    2. in the parameter mapping, select the variables.
      you can select the same variables more than once.
     give the parameter name as 0,1,2,3..... based on variables you require.
    do not forget to chooose the appropriate Datatype.
    ex:
    select * from table1
    where a= ?
    and b=?
    and c= ?
    parameters:
    Var name               param Name
    user::Var1               0   
    user::Var1               1
    user::Var2               2
    so the value becomes a=var1, b= var1 and c= var2

  • TS3276 how do I get Mail to stop downloading the same email multiple times?

    My mail keeps downloading the same email multiple times.  I've had as many as 10 of the same emial.  How do I stop this?

    Me too - did you ever figure it out?
    You can't even delete from the server in mountain lion.... I did it from my old mac, but it didn't work. I keep having 11,000 new emails that can not even be deleted in blocks!!!
    Was it a gmail account? Mine is, and my other 2 are fine...

  • How to automate saving the same image multiple times?

    Hello. I wish to save the same image multiple times in a folder... is there a way to automate this function? I also need the flexibility of determining the starting number in this image sequence. Thanks.

    Good day!
    I would recommend asking for help over at
    Photoshop Scripting
    And going into more detail about what you want to achieve (maybe post a screenshot, diagram, mock-up to illustrate it).
    Regards,
    Pfaffenbichler

  • Address book has same entries multiple times how can I go back to original cesium

    Address book has same entries multiple times how can I go back to original cesium

    After a couple of days, I'm noticing that the repeat(ing) offenders have more than 10 episodes, and seem to keep repeating them every time I sync.
    They only show once in my phone and in the iTunes Podcasts, but through iTunes and looking at what's in my phone is when I see the repeats.
    Even after I've marked a podcast as played, and deleted it from within my phone, as well as telling iTunes to delete the played episodes, it still shows multiples of the played episodes.
    There doesn't seem to be any rhyme or reason to it either. They aren't the newest ones either.

  • Running the same code multiple times with different paramters automatica​lly

    Hi guys,
    I want to run the same code multiple times with different paramters automatically. Actually, I am doing some sample scans which takes around 2 hours n then I have to be there to change the paramters and run it again. Mostly I do use folowing paramters only
    X_Intial, X_Final, X-StepSize
    Y_Intial, Y_Final, Y-StepSize
       Thanks,
    Dushyant

    All you have to di is put all of the parameters for each run into a cluster array. Surround your main program with a for loop and wire the cluster array through the for loop. A for loop will autoindex an input array so inside the for loop you just have to unbundle the cluster to get the parameters for each run.
    Message Edited by Dennis Knutson on 07-13-2006 07:50 AM
    Attachments:
    Cluster Array.JPG ‏9 KB

  • Provision same resource multiple times

    All,
    I have a scenario to provision same resource multiple times for the same user.
    How to make a resource to allow provisioning multiple times in OIM 11gR2. I am not seeing th option "allow multiple" in resource object in the design console.
    Please help.

    In OIM 11g R2 you can assign same resource multiple time.
    The account which gets assigned first time will be marked as primary and the rest others will be marked as "other"
    HTH

  • Avoid opening same Form Multiple times

    hi
    Can anyone help me , how to put restruction not to open the same form multiple times .
    regds/sanjay

    I'm not suggesting that the following is great idea but..
    You could start a timer and keep updating the row in the table with a timestamp and then have a job which checks if there are rows in the table that have timestamps older than the timer interval.
    I actually think that that is really bad idea.
    I think its more important to ask why this is a requirement? I currently write sytems for police officers and even they can grasp the concept that someone else might be updating the same data at the same time as them and can work multiple sessions. Its hard for them, and sometimes I think they may just be hitting their keyboards with a truncheon, but they do get it.

  • Problem returning same rows multiple times

    Hi there. I have three tables called GP_T, LDMK_T, and FP_T.
    GP_T is a spatial table and has the following attributes:
    Location | Land - where location is of type sdo_geometry
    LDMK_T has the following attributes:
    Land | CFCC
    FP_T has the following attributes:
    Land | CFCC | Score
    Each land is assoicated with only one location. As can be seen the attribute "Land" is common to all three tables and uniquely identifies the objects that I am trying to access. "CFCC" is common to LDMK_T and FP_T and each unique object has an associated "CFCC" where more than one object can have the same "CFCC". Essentially what I am trying to do is return all distinct "lands" based on a "CFCC" value and where the objects' score > 20.
    My select statement looks as follows:
    select a1.land, a1.location from GP_T a1, LDMK_T a2, FP_T a3
    where a1.land = a2.land and a1.land = a3.land and a2.cfcc = a3.cfcc
    and a2.cfcc = 'D43' and a3.feature_score > 20;
    However, this query returns certain objects multiple (2 or more) times. When I run this second query it appears to return the correct number of values but without the "Location" attribute:
    select distinct (a1.land) from GP_T a1, LDMK_T a2, FP_T a3
    where a1.land = a2.land and a1.land = a3.land and a2.cfcc = a3.cfcc
    and a2.cfcc = 'D43' and a3.feature_score > 20;
    I cannot use "select distinct a1.land, a1.location...." as it throws up the following error:
    ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type
    Is it a question of using GROUP_BY or can anybody else see anything wrong with the way I set up the initial query. Any help would be greatly appreciated. Joe

    Hi there. Thanks a lot for your response. I tried removing the second table completely from the query as you suggested, seeming as it appears redundant, but the query still retrieves certain rows multiple times. In fact the query that you suggested actually returns the exact same results as my initial query so at least some progress has been made. However, I really have no idea how to remove duplicates without using the "DISTINCT" option. Has anybody else got any further suggestions? Any help would be great. Thanks, Joe

  • If you make a picture in pages.... how do i duplicate the image on the same page multiple times????????!!!!

    If I make a little picute in pages ... HOW DO I DUPLICATE THE IMAGE MULTIPLE TIMES ON THE SAME PAGE!11?????!!!!

    Or you can hold down the Option key while you click on the image and drag to create a copy. Then Select All and repeat. Repeat again, each time doubling your image count. You may, at an early stage, want to align your photos so that they will be in position when you Option-Drag the next set.
    Walt

  • Scanimage -L lists same device multiple times

    well i finally got my epson perfection v500 photo scanner working. i admit to having more problems then i should have heh.
    arch 86_64
    i installed iscan from aur
    *important* i downloaded iscan-plugin-gt-x770-2.1.1-2.c2.x86_64.rpm from epson site http://www.avasys.jp/lx-bin2/linux_e/scan/DL2.do and used rpm2targz to unpack. then placed the libesint7C* (should be 3 files) files in  /usr/lib/iscan/ and the esfw7C.bin file in /usr/share/iscan
    i then followed directions in https://bbs.archlinux.org/viewtopic.php?id=77802
    and it worked
    it wasn't workng before as i was installing the driver from aur (iscan-plugin-gt-x770) howerver i think that does not work for x86_64.
    my question is that the same device is listed 5 times now. i reinstalled things multiple times and i know its because of that. i assume it was from multiple #iscan-registry commands
    example:
    $ scanimage -L
    device `epkowa:interpreter:001:006' is a Epson Perfection V500 flatbed scanner
    device `epkowa:interpreter:001:006' is a Epson Perfection V500 flatbed scanner
    device `epkowa:interpreter:001:006' is a Epson Perfection V500 flatbed scanner
    device `epkowa:interpreter:001:006' is a Epson Perfection V500 flatbed scanner
    device `epkowa:interpreter:001:006' is a Epson Perfection V500 flatbed scanner
    device `v4l:/dev/video0' is a Noname UNKNOWN/GENERIC virtual device
    xsane and iscan both ask to pick from the 5 epkowa devices listed, all will work. is there a way to remove all but one of them? i assume its under /dev or /proc but cant seem to find them.
    thank you for any help.

    I've been burned by this
    do a
    iscan-registry -h
    then do a remove about 4 times, till you only have one instance.
    It's kinda like this-  iscan-registry --remove interpreter usb <vendor-id> <product-id> <plugin> [<firmware>]
    vender and product IDs from a lsusb
    I think plugin is in /usr/share/esci /
    I think fimware is in /usr/lib/esci/
    or it could be the other way around. You could look at the script in the RPM for the iscan-registry --add command and reference that.

Maybe you are looking for

  • Database Connector Error in Crystal Reports

    Hi, I have a report which has two sub reports. One of the sub reports use a view to fetch data while the other uses a SP. Now the problem that i am facing is as follows- The sub-report using the stored procedure fails when i execute the main report b

  • External Hard Drive is read only?? how do i change this?

    ive just gotten a new external hard drive which i use a giant usb pretty much, only problem is when i drag files into it to copy it tells me that "untitled" cant be modified.. also when i check its info im told that it is read only... how do figure o

  • Combining Movie Clips in iPhoto

    I currently use iPhoto 08 to download all of my photos and movie clips from my camera. Problem is, if I have, say 20 clips of one event on my camera, and want to combine into one large clip, i currently have to open all 20 clips, go to the second cli

  • Other or cache

    In other I guess? if you do a search on a keyword on iphone it displays hundreds of deleted emails and text messages how do you clean this cache? iphone support said I would have to plug into a computer and let a tech. do it which I felt was an priva

  • Nonscrolling background not working

    I'm trying to update an old help project which used D2HTOOLS.DLL to set the non-scrolling section of the main page to have a particular background (watermark). Most pages work just fine, but one or two will not show the watermark. I can see no differ