General Question About common Instance Names in Flash CS4 (AS3)

I tried something interesting recently. I had code effecting an object with the instance name : object_mc.
Now I added another object and gave it the same instance name.
The result was, that the code only effected the most recent added object (no error).
Is there a way in flash to have multiple objects with the same instance name all being affected by one piece of code?
~ Thanks for any thoughts, advice or facts. ~

Advice: avoid it... if you want to control different instances, give them different instance names.
It depends on what you mean by "one piece of code".  Directly using the instance name to target the movieclips will work as you have seen already... Last one added gets the attention.
To use the instance name to take action is doable more along the lines of testing each movie to see if it has the name, but still, you would have to target each using a different means. 
For the piece of code below I have some number of objects on the stage and I test to see if they have an instance name assigned (object_mc) that is shared by some of them, and I am able to move them if they do, but I cannot use the instance name to target each of them for action... in this case I use the getChildAt method.
for(var i=0; i<this.numChildren; i++){
if(this.getChildAt(i).name == "object_mc"){
  this.getChildAt(i).x += 200;
  object_mc.x += 25;  // only moves the last object added

Similar Messages

  • Giving things instance names. Flash cs4

    Ive been using adobe flash cs4 for a while now and have had little trouble giving things instance names. Now though, whenever i double click on something like i normally do to give it an instance name, the blue box no longer comes around it, i click on properties, and change the instance name. I now get a dashed line along the lines of the picture. and when i go to properties, it just says shape, and I cant edit the instance name. Just position and size, then the fill and stroke.  What is going on?

    You do not assign instance names to objects in the library.  Instance names are assigned to object on the stage.  Instance names are unique for each item on the stage.... meaning the same library object can be used multiple times... each instance of it will have a different name.  If you want to assign a name you do it either by manually entering it in the properties panel or thru actionscript code when the object is added to the movie.

  • General question about iTunes Match and multiple libraries

    Hello to everyone,
    I have a general question about the iTunes Match service, which is available since yesterday in my country (Italy). Currently my library situation is the following:
    Computer A (desktop, Windows 7): "big" iTunes library (about 20 GB), at the moment not associated with my Apple ID
    Computer B (MacBook Air 2011): "small" iTunes library (about 5 GB), associated with my Apple ID
    At the moment, both my iOS devices (iPhone 4 and iPad 2) are synchronized with the smaller library on the MacBook Air.
    Question is as follows: should I subscribe to iTunes Match, would it be possible to upload the "big" library (provided I associate it with my Apple ID) to iCloud while keeping my devices synchronized with the "small" one?
    Ideally, at the end of the day, the situation should be the following: both iOS devices with music from the small library + possibility of downloading songs from iCloud (coming from the big one). Is this possible?
    Maybe the question sounds stupid, but I want to be sure about this before paying for the service.
    Thanks a lot.

    Yes, you could also associate your larger library with iTunes match if you associated your Apple ID with it. However any purchases in the library made from another Apple ID will not be matched with iTunes much.
    If both libraries are part of iTunes match, then all your devices will see all of the content from both libraries, which content you choose to have on those devices and which you have accessible via iTunes match is entirely up to you.

  • Newbie question - general question about e-mail sync

    Hi,
    I have a general question about email sync and BlackBerry smartphones.  Are there any devices that allow email syncing with a Microsoft Exchange 2007 system that do not require the BlackBerry Enterprise server?
    Thanks; sorry if this has been asked before but I was unable to find it in the forums, documentation, etc.  Everything I found assumes that for this kind of environment you will be using a BlackBerry Enterprise solution, but I can't assume.
    Thanks again.
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    If the Exchange server has anything that faces the internet (OWA, POP, IMAP), then BIS can be used to handle email (only email...calendar and contacts require BES to sync OTA).
    Or, a PC, inside the network (but with an internet path) and logged into the email server (using Outlook), can be left running, using the RIM Desktop Software's Desktop Redirector capability to forward  messages to the BB.
    Those are basically the options.
    Hope that helps! Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • General Question about SAP Documentation. Where to find?

    Hello,
    I am relatively new in the SAP business and so I have some general questions about the SAP Documentation.
    Often internet-links like
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/FIBP/FI-AP-AP-PT.pdf
    are posted here by group members.
    But where do these group members find these documents?
    All I can see at help.sap.com is IDES (the model company created by SAP)and the WWW-version of the SAP-Bibliothek.
    Were can I find these PDF-Files?
    I would appreciate any hint and tip!
    Thank you!
    Kakue

    thats true! i dont know how to find either. Everytime i need something i ask on the forum.
    Here's a good link
    http://www.easymarketplace.de/online-pdfs.php
    Plz reward points if helpfull

  • (Help) Using Input text in Flash CS4 AS3

    I am trying to take a user's input (His Name) and then greet the user on the next frame using the name he previously entered. I googled for 2days and was unable to find a way to do this on flash CS4 AS3, i guess because im very new to flash (only 2-3weeks )
    Any help would be greatly appreciated, and i am sorry if this was already answered in the forums.
    thanks for reading.

    If your interested... here's some general "rules of the road" that are basically courtesies...
    Don't post the same question in different forums (crossposting).  Folks that help don't like that because they can waste their time providing the same response someone else already offered elsewhere, or their helpful info gets no attention because the OP (original poster) got wrapped up in the discussion elsewhere and never went back to the other forums.  I saw one time where the OP suffered from doing this... the first person to respond in one forum said what they wanted couldn't be done, while my response in another forum showed them how to do it... but they accepted that it couldn't be done and never returned.
    Don't post in someone else's posting unless the exact same situation applies to you and it is a current posting.  It is a bit rude to step into someone else's posting just to get attention, which some people do... some with totally unrelated problems.  Or if your problem is even slightly different, it can end up confusing matters for all involved... trying to juggle helping two people where different solutions are needed.
    If you get one problem resolved and have another you want help with that does not involve the first, start a new posting.  People search these forums so it helps to have topics match the postings, which will not apply if mutliple topics get resolved under one title.  I recently saw one person tell someone to start a new posting even though they were following up to clarify something of the solution they received... that's wrong and is more likely someone with a case of points greed... as useless as points are, it happens.

  • How can I NOT let collision happen in Flash CS4(AS3)?

    I have been playing with collisions for quite a while, but cannot seem to get it just the way i want it to be.
    I made a new rectangle into a Movie Clip, with an instance name : "block_mc"
    I made a sphere into a Movie Clip, with an instance name : "ball_mc"
    I made the sphere(ball_mc) movable with the arrow keys.(see post:http://forums.adobe.com/thread/491457?tstart=0 )
    Now I wanted to try and make the sphere(ball_mc) stop moving so it wont hit the rectangle(block_mc), so that the rectangle(block_mc) would act like a solid object.
    Meaning the sphere(ball_mc) would not be able to touch the rectangle(block_mc). It would act like a wall.
    Now my problem is I don't know if there is a way of not letting objects collide?
    I tried the ".hitTestObject()" but that did not work for me.
    ~ Thanks for Help and Advice~

    I apologize, for this confusing long question, I simply ment to ask:
    Is there a way Flash CS4(AS3.0) will not let Objects on stage collide?
    ~Thank you for any Tips, Advice and Help~

  • Need help in screen capturing for flash CS4 AS3

    Hi, i need help!!!!!!!!!!!!!!!!!!!!!! URGENT!
    I am currently doing Augmented Reality.
    I got my marker to detect my model but my problem now is how to screen capture the content that is in swf.
    (As in capture the dae model shown in the comp not from webcam.)
    & also i just want to capture the swf window not the whole desktop.
    I read online, they say its impossible?
    Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
    (Moreover, does anyone know how to detect multiple dae models with different markers?)
    Anyone can help??? Thanks in adv!!

    My current program (Flash CS4, AS3) only can capture what the webcam sees.
    How do i change it to screen capture (something like print screen) with my .DAE models?
    In the case, when i click on the capture button, it print screen.
    Here's part of the code that capture what the webcam sees.
    private function captureImage(e:MouseEvent):void
       bmd.draw(stage);
       bmp = new Bitmap(bmd);
       bmp.x = 140;
       bmp.y = 40;
       addChild(bmp);
       capture.visible = false;
       saveButton.visible = true;
       discardButton.visible = true;
    Really really need help! URGENT!
    Thanks!

  • General Questions about BI

    Hello,
    I want to get into SAP BI and have some questions about it.
    Is there a big downside in installing only the BI components without the Java BI components, or is it even possible if you want to work with BI. What are the general differences between BI and Java BI?
    I think the main aspects i will work with will be data warehousing and some basic reporting.
    The reason why i'm asking is that i want to run the BI components in the same system as the ECC Server (its just a test system). I read that the Java BI component needs EPC and EP and that would probably be too much for a single system (6 GB RAM).
    Thanks a lot in advance,
    Martin

    Thanks for your hints, they were really helpful.
    As i mentioned i mainly want to work with the general Data Warehouse and Reporting capabilities, so i think it should be okay.
    Actually i'm planing to write about BI and SAP within my master thesis.
    Another question, what will be with SAP BI in the future regarding the Business Object acquisition? Is there still any point in learning SAP BI or will SAP BI disapear in the future? I heard that the basic BI functionality (e.g. Datawarehouse ) will still be used but the reporting capabilities  would be disappear. I'm not sure if that is right and i'm really new to this topic. So any comments are welcome.
    Thanks,
    Martin

  • Scale out question: how does instance name affect primary/secondary node

    Hi:
    OBIEE 11.1.1.6.4, Windows 2008
    On a test instance the following happened:
    1. Enterprise install of OBIEE 11g had problems
    2. Reinstalled OBIEE 11g, but the installer created an instance2
    3. All was well with this install
    4. Performed all necessary shared catalog and RPD steps
    5. On a second server, installed OBIEE 11g using the scale-out option
    6. On second server, this created an instance1 directory
    7. All components start up and we can log into OBIEE using either server1 or server2
    Question:
    Does OBIEE use the instance names in a scale-out? Our primary node is instance2 and the secondary node is instance1, though on a separate server. Will this cause a problem?
    Thanks for any help.

    Hello,
    This can be run on any of the replicas that the availability group participates in to return the primary instance:
    select primary_replica FROM sys.dm_hadr_name_id_map nim
    inner join sys.dm_hadr_availability_group_states ags
    on nim.ag_id = ags.group_id
    WHERE nim.ag_name = 'MyAvailabilityGroupNameHere'
    Sean Gallardy | Blog | Microsoft Certified Master

  • I have a handful of general questions about Firefox OS as a consumer..

    I couldn't find a better place to post this, so I'm trying on here.
    I'm in the market for a tablet (high-end), and I'm holding off on getting an Android-powered one because of Firefox OS. However, I have some general questions and concerns regarding performance, software and hardware. Here they are.
    1. Is the Firefox OS interface as responsive as a native experience on say an iPad or an Android tablet? (Is there any lag on swipes between screens, button presses, etc?) If not, will it be in the future?
    2. Will I miss the Android marketplace or the Apple app store, being restricted to only HTML5 apps? Do you think this will become an irrelevant question as the HTML5 app ecosystem grows?
    3. Do you think the quality of HTML5 apps will be inferior to those from existing app stores because they are free?
    4. Will the Firefox browser be the only one available in Firefox OS? (i.e. will there be the option to use Chrome, Opera or any other browser if the user so wishes?)
    5. Will Firefox OS include useful utility apps, such as an alarm clock, a calendar, a weather app, etc?
    6. I read a lot, both on the web (news, video game reviews), as well as ebooks. Will Firefox OS on a tablet be a pleasant experience conducive to e-reading? (Will it include a good ebook reader app?)
    7. Will there be a high-end Firefox OS tablet that is comparable in specs to the Nexus 10? (i.e. impressive screen resolution, powerful CPU/GPU, lots of inputs/outputs like USB, HDMI, microSD, etc) When do you think such a device might become available?
    8. Would it be possible to flash Firefox OS onto say a Nexus 10 or other tablet or phone if one wanted to use it as their OS instead?
    Thanks!

    1. Depends on the phone but a avererage power android phone would likely cost the same as a high end firefox os phone.
    2. HTML 5 is really the future of the web, I've heard that Firefox will let you package apps to be playable offline, but not sure if thats true.
    3. I '''think''' Firefox OS may have paid apps that will be restricted to users who buy them.
    4. I think Mozilla will be nice enough to let Google and Opera make browsers. Google let Mozilla do that with FF for android.
    5. See the simulator https://addons.mozilla.org/en-us/firefox/addon/firefox-os-simulator/
    6. too early to say
    7. too early to say, but Foxconn (helps apple) makes some apple products, so yes in the future is see a high end Firefox OS tablet 2-3 years down the road.
    8. not sure
    NOTE: Please note that we are only contributors, we dont develop firefox os.
    You can ask more on the IRC channel as there are likely devs there.
    https://client00.chat.mibbit.com/?server=irc.mozilla.org

  • Asking general questions about 'computing' matters.

    Hello
    I'm new to the Mac world - I posted my first question on the forums today!
    I have reviewed the discussions site - everything seems very specific to apple products. Where, if anywhere, could I post a general question - like this one:-
    I have a notion that when one connects to a server directly (Usenet newsgroups for example) one makes a deliberate 'hole' in one's firewall, be it software or simply because one is using a NAT router. Sending messages to and receiving posts from Usenet is far quicker than using email, so I'm fairly confident that this is so.
    I am well aware that any URL one visits can instantly determine much information about the connecting machine. (see http://www.browserreport.com/ as an example).
    Anti-malware programs can only detect known viruses and spyware - I see no reason at all why, once one has granted a direct connection facility, between a group on a private server to
    one's own machine, malware could not relatively simply be injected onto one's computer.
    If the malware was currently unknown, how would one ever know?
    Thanks in anticipation of a helpful response
    David B

    HunterBD wrote:
    I'm new to the Mac world - I posted my first question on the forums today!
    Excellent!
    I have reviewed the discussions site - everything seems very specific to apple products. Where, if anywhere, could I post a general question - like this one:-
    Unfortunately, not in this forum. This forum is specifically about the discussion forum itself. It is kind of like a meta-forum. Hopefully, the moderators will just move your post somewhere more appropriate. (As indeed they just did!)
    I have a notion that when one connects to a server directly (Usenet newsgroups for example) one makes a deliberate 'hole' in one's firewall, be it software or simply because one is using a NAT router.
    Kind of and kind of not. Firewalls are greatly misunderstood. But essentially, yes, any internet connection you establish has some risk involved. However, the risk of making an outgoing connection is infinitesimally smaller than setting up a server to let hackers bang on 24x7.
    Sending messages to and receiving posts from Usenet is far quicker than using email, so I'm fairly confident that this is so.
    Really? I don't think so.
    I am well aware that any URL one visits can instantly determine much information about the connecting machine. (see http://www.browserreport.com/ as an example).
    Not really. It depends on what you are doing. You always give away your IP address, unless you are behind a proxy. In that case, you give away the proxy's IP address. But the proxy still knows who you really are.
    If the protocol in question supports such information, then it can be determined. A web browser does send some information about you, but you can easily change it and masquerade as some other browser. With other protocols, it isn't so easy to tell what kind of OS or software is being used.
    Anti-malware programs can only detect known viruses and spyware - I see no reason at all why, once one has granted a direct connection facility, between a group on a private server to
    one's own machine, malware could not relatively simply be injected onto one's computer.
    If the malware was currently unknown, how would one ever know?
    You wouldn't
    Don't grant anyone direct connection to your machine.

  • General question about Mountain Lion

    I've kept clear of Lion on both my MACS because of all the "bad press" it got, I'm still running Snow Leopard on my MACS and I've never had a day of problems with either. Also I run Logic Studios on both my MACS and didn't want to chance having issues with interface compatability, lack of drivers and such. My question is kind of simple and for better or worse comes down to opinion, what is the general feeling about Mountain Lion? Is it a big improvement over Lion? Is it more stable with less bugs? Any issues running Logic? I'm "playing with the idea" of upgrading but I want to do my research first. If Mountain Lion is not a big improvement over Lion or if people are having issues with running Logic I'm going to stick with SL.
    Thanks for your opinions in advance.

    Be cautious about listening too much to replies you're likely to get. These sort of questions in a place like this are like magnets to people who are having problems and want to complain about it. You're likely to hear some horror stories that don't represent the majority of cases.
    ML has been excellent so far for me, faster than Lion and no serious bugs I've discovered so far. But if you upgrade, be sure to do your homework: backup, check compatibility of all your software (including things like printer drivers) and repair the hard drive with Disk Utility before installing.

  • Where to direct a general questions about foreign films subtitles?

    I recently purchased a foreign film "Break Ke Badd" from the iTunes store. Although, it didn't specify that it had English subtitles, I assumed it did. After the full download, I tried to watch it and there weren't any English subs. I contacted iTunes and they more than happy to refund the money back to my account. Now after a few weeks, the iTunes store DOES list Eng subs for this film. I don't want to purchase it again and have to contact iTunes for another refund...Therefore my question is, is there a general question contact one could use to find an answer to my question. Basically, to verify that this movie, indeed has English subs before I re-purchase. 
    Any info is appreciated!

    Yes I know as the [https://support.mozilla.org/en-US/questions/ Questions] section is more for desktop Firefox support and the place I linked to is for "Firefox OS" support in English where some who are involved with it do post in it occasionally.
    I would have moved that [https://support.mozilla.org/en-US/questions/962783 thread] to the "Firefox OS" English section, however I cannot as the [https://support.mozilla.org//questions/ Questions] and [https://support.mozilla.org/forums Contributor Forums] are not the same.

  • Round trip workflow with proxies between Premiere and AE / a more general question about how these programs work?

    Hi all,
    I'm new to editing with proxies in Premiere and have some questions about how to handle the relationship with After Effects. Say I have a rough cut (with proxies) and I want to send it to AE to do some effects. The simplest thing to do seems to be to replace the proxies with the originals in Premiere, send the project to AE and do my thing. But if I then want to send the project back to Premiere, it will involve the original files, which are too machine-intensive for me to edit. In theory, it seems like there should be a way to send the project with original footage to AE, do effects, send it back to Premiere, and then replace it with proxies to do further editing while retaining the effects.
    This leads to a confusion about how AE works. When I do an effect, am I correct in assuming that it does nothing to the original file? If that's the case, it seems like it shouldn't matter (in the editing stage) what file AE "applies" an effect to (proxy or original). But I feel like there's a hitch in this workflow. The same question could also be asked about going back and forth in Speed Grade.
    Perhaps there is no real answer to this and the best option is to save effects and grading for after I have picture lock, but sometimes that's not entirely possible or convenient, etc.
    Hopefully this makes some sense—It's a little hard to explain.
    Thanks.

    Hi Mark,
    Here are the specific sections of the manual that should give you the best explanation regarding the Check out/in workflow for FCP projects in Final Cut Server:
    Check out:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =5
    Editing:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =6
    Check in:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =7
    -Daniel

Maybe you are looking for