Mental Block this Sunday Afternoon

Dear Members of this group,
If I am creating multiple instances of a button called buy on
a movie (e.g.
buy1 and buy2) and giving each one a different name. How do I
get the name
of the instance clicked? If I use the code below I get the
name of the
original button not the instance name. So easy I presume that
I am
embarrassed asking the group.
Buy.onPress = function() {
trace(this._name);
Thanks.
Gerry.

Rothrock,
Thanks for the clarification. I am now much clearer. You have
enlightened me
this Sunday. Thanks again.
Gerry
"Rothrock" <[email protected]> wrote in
message
news:gguj7j$eqv$[email protected]..
> Well what you are saying isn't making any sense. So yeah
that is probably
> it.
>
> If you have:
>
> Buy.onPress=function....
>
> Then that means you have some object with the instance
name of "Buy" and
> you
> are telling it to give you the name of itself when you
press it. That is
> why it
> is telling you its instance name. I think you might be
confusing library
> name
> with instance name a little bit here?
>
> There is no way that with that code you are doing
anything with something
> called Buy1 and/or Buy2. If you want to work with Buy1
and Buy2 then you
> need
> to define event handlers for the events on those
buttons.
>
> There are several ways to do what you are asking. I
would probably do
> something like this:
>
> Buy1.onPress=sayMyName;
> Buy2.onPress=sayMyName;
>
> function sayMyName(){
> trace("Pressed: "+this._name);
> switch(this._name){
> case "Buy1":
> // do stuff for Buy1 press
> break;
> case "Buy2":
> // do stuff for Buy2 press;
> break;
> default:
> trace("I don't know what you pressed.")
> }
>
> }
>
>
>
>

Similar Messages

  • First direct link in google search causes "Internet Explorer blocked this site from downloading"

    I've disabled both the Adobe Reader Add-on and the Adobe PDF Link Helper to force IE 8 to open PDF's outside of the browser i.e in the stand alone reader application.
    After doing this I did some testing, a google search for "test pdf" produces numerous direct links to pdf files.  If i click any of them it causes IE to display the message bar "Internet Explorer blocked this from downloading files to your computer, click her for options.."  When I click on the message bar, it appears to download the file , then nothing happens.  Next time I click the link it opens in the stand alone reader just fine and so do all PDF files, until the browser is restarted or a new tab is started.
    This only seems to happen in IE8.  IE9 doesn't have the problem.
    If I open a web page that has a link to a PDF that always work.
    Help? I can't roll this out to prod.  Users will get very confused...

    You actually trashed the whole Internet Preferences Folder including all your preferences still in there?
    Actually, you were suppose to just trash the Internet Preference file/document which is inside the folder.
    See if updating to the latest & last version of IE for Mac will help.
    Internet Explorer (Classic) 5.1.7
    Internet Explorer 5.1.7
    Internet Explorer v5.1.7
    "WARNING:" Microsoft ended support for Internet Explorer for Mac on December 31st, 2005, and is not providing any further security or performance updates.
    Accordingly, as of January 31st, 2006, Internet Explorer for the Mac is no longer available for download from Microsoft.
    Or, you can try the following w/your older version of IE:
    Once a week Go into the system folder>preferences folder & trash the following preferences:
    finder
    ASLM
    PPC Registration Database
    Cache.waf-found inside the MS Internet Cache folder
    MRJ Cache folder-a new one will be recreated.(If not found go to System folder>Application Support>MRJ Cache folder-trash all you find inside-(DO NOT TRASH THIS FOLDER)
    Download Cache-found inside Explorer Folder
    Downloads.html-found inside Explorer Folder
    History.html-found inside Explorer Folder
    Rebuild your desktop w/extensions off. Use Techtool Lite or Trash*Desktop - may delete Finder comments to rebuild your desktop w/extensions off. Does a better job than manually & you avoid all the finger gymnatics. You just have to hold down the shift key to shut off extensions.
    Restart to turn the extensions back on again & empty the trash.
    Good luck!

  • How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari" bc I can't download the latest software?

    How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari". I cannot download this software bc my lap top is to old. The msg literally pops up everytime I make any moves on itunes and is VERY annoying.

    I have a 2006 MacBook with an Mac OS X version 10.5.
    In that case, try downloading a Safari 5.0.5 for leopard from the following location:
    http://www.apple.com/safari/download/

  • When trying to send a comment to a web site I get a message, Firefox has blocked this site, how can I turn this off?

    when trying to send a comment to discussion sites I get an error message that says "Firefox has blocked this site" actions offered "allow"
    or "X". When I enter "allow" it ignores the command and the message disappears. A lot of wasted thought and typing. How do I turn this feature off.

    See: Tools > Options > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    See: [[Options window - Advanced panel#General_tab]]
    See also: http://kb.mozillazine.org/accessibility.blockautorefresh

  • How do I defeat or whitelist the "Firefox has blocked this site from loading another web page" function?

    Often when I click a link within a web page, a message bar appears at the top of the page saying "Firefox has blocked this site from loading another page" or something similar. This happens frequently on banking or credit card sites. This is particularly annoying because it seems to disturb the operation of the link when I have to click the "Allow" box on the message bar. I would prefer to create a whitelist for this feature so it would not interrupt my banking operations. Failing that, I would like to know how to toggle the feature on and off. Failing that, I would like to know how to defeat the function.

    See:
    *Firefox > Options/Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.org/kb/settings-network-updates-and-encryption#w_general-tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Block this user

    Hello, 
    Please block this user : 
    https://social.technet.microsoft.com/profile/vishal%20gupta%20mcts,%20mcsd,mcse,%20mcsd,%20mcp/?ws=usercard-mini
    He's sdvertising his book and spamming forums : 
    https://social.technet.microsoft.com/Profile/vishal%20gupta%20mcts%2c%20mcsd%2cmcse%2c%20mcsd%2c%20mcp/activity
    Thanks. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

    Thanks. 
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • I have an iphone 3gs, and i keep getting blocked number calling me (prank calls) im getting really fed up with it all now i have had 12 calls from the same person! i was just wondering if there is any way i could block this caller from calling me?

          i have an iphone 3gs, and i keep getting blocked number calling me (prank calls) im getting really fed up with it all now i have had 12 calls from the same person! i was just wondering if there is any way i could block this caller from calling me?

    Contact your carrier and ask them.

  • Illustrator 10, Convert to Profile: mental block or sudden blindness?

    I've either hit a mental block or have become temporarily blind, but I cannot find "Convert to Profile" in Illustrator 10.0.3 Mac, running Tiger 10.4.11.
    Any hint or slap on the head that might jog my memory will be appreciated.  The Help files have not been helpful yet.  As the fortune cookie said, old age always comes at a most inopportune time. 
    Thanks in advance.
    Wo Tai Lao Le
    我太老了

    steve fairbairn wrote:
    Or do you mean Assign Current Working Space (colour profile) when opening a file?
    No!  When you Assign a profile, you preserve the numbers but you change (wreck the hell out of) the colors.  When you Convert to a Profile, you change the numbers but you preserve the colors.
    It seems that old AI 10 did not have such a menu Command in the Edit menu, as Photoshop has, so the workaround would be to close the file and pen it again, at which time you do get presented with the choice of CONVERTING to a profile.
    steve fairbairn wrote:
    Edit:
    Edit > Color Settings (Cmd+Shift+K)
    No, Changing your Color settings is a global dialog box that affects your working space, not your open document.
    Thank you for your time anyway.

  • There is no such menu item as "block this person" ...

    there is no such menu item as "block this person" when i right click the contact.
    blocking a contact is getting impossible

    Hi, therbi, and welcome to the Community,
    On which version of Skype? 
    On which operating system - computer or device?
    "Block This Person" is definitely an option for me on my Win7 version.
    Thanks,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • When I try to open a site I normally access i'm getting a bar that says,Firefox has blocked this site from opening another window then on the right side of the bar gives option to allow or not. Never did that before. Thanks

    When I try to open a site I normally access i'm getting a bar that says,Firefox has blocked this site from opening another window then on the right side of the bar gives option to allow or not. Never did that before. Thanks

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Firefox not saving passwords, what maybe blocking this pls

    I am using firefox 3.6.18 (because it is compatible with my A/V) and it no longer saves passwords. I suspect something may be blocking this; but have no idea.

    Do you mean names and passwords in the Password Manager or do you mean that you are no longer logged on to (remembered by) websites after closing and restarting Firefox?
    If the latter happens then you have a problem with cookies that are not kept or the file that stores the cookies is corrupted.
    * http://kb.mozillazine.org/Websites_report_cookies_are_disabled (Other Solutions)
    You Firefox doesn't offer to store password in the Password Manager then check that you aren't running Firefox in [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    Some sites like PayPal, Yahoo, Windows Live and bank sites use autocomplete="off" to prevent Firefox from saving and filling the name and the password.
    If a site uses autocomplete="off" then look at this article for a bookmarklet to remove that autocomplete attribute and Firefox will offer to store the name and password.
    * http://kb.mozillazine.org/User_name_and_password_not_remembered (bookmarklet)
    * http://kb.mozillazine.org/Password_Manager

  • Firefox has crashed numerous times on me tonight, and I keep getting an unresponsive script error (Script: chrome://devany/content/main.js:254) regardless of what website I'm on. NoScript will not block this script, and it's popping up with an increasing

    Firefox has crashed numerous times on me tonight, and I keep getting an unresponsive script error (Script: chrome://devany/content/main.js:254) regardless of what website I'm on. NoScript will not block this script, and it's popping up with an increasing and alarming frequency. It's completely crippled my Firefox, and getting the a large enough window between unresponsive script warnings to get the Troubleshooting Information from Firefox took me a good 20 minutes. It's a very persistent script. I've already re-installed Firefox and restarted my computer, and scanned for viruses/malware. I'm on a Mac, if it makes a difference.
    == This happened ==
    Every time Firefox opened
    == Tonight. I can't say what site I was on, though I first noticed it on DeviantArt and thought it was their new layout producing problems. ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    yay, I had this same issue, and I too browsed deviantArt and also have got Deviantanywhere add-on installed. : D
    I'm so glad that You've found a solution and shared it with us.
    I was really getting worried that I'd done something to get malware installed on my 'puter. *Phew* !!
    I'm going to disable DeviantAnywhere after I post this and hopefully this will be fixed for me too!
    I actually hadn't kept my firefox up to date. but.. *shh...*
    I updated it and after I did, it told me that there was a script running that was not responding. : )
    yay for FireFox~
    ~QuinsY.

  • My Ipod has been stolen. what do I do? Can Apple blocked this Ipod?

    My ipod was stolen on March 24th, 2012. I requested a blocked through iCloud but , I haven't seen no result yet. what do i need to do? can't apple help blocked this ipod so that the user doesn't get access to my private information.

    lost/stolen                                      
    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police and school
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Sunday afternoon: School assignment due tomorrow

    Hi all,
    I am hoping someone can offer some suggestions.
    We are a Mac household, but purchased MS Office as the adults in the house work a lot with businesses who have not converted (yet). My daughter's enlightened school has installed Macs (yay!).
    However, in typical teenager style she has an assignment due tomorrow and has just informed me that she sent the assignment home and now can't open it.
    Her document is in Pages, and of course, we don't actually have iWorks here at home .... grrrr
    I have tried opening the Pages document in MS Word, but of course it is not recognised at all. I tried opening with Text Edit but still no success: it says the file is corrupt?
    Could it be that the file is really corrupt or do I need to purchase iWorks ? I am hoping there is some workaround at the moment, just to get us through the Sunday afternoon, assignment due tomorrow blues.
    Thanks for any assistance!

    Hi Suzanne,
    You can download a free thirty-day trial of iWork (no s) '09. There's a link to the download on the iWork product page here.
    Regards,
    Barry

  • Hi, I'have selected "Block this ad" when I was in Facebook. Now I can only see an empty page when I try to use my Facebook. Any help in unblocking it? Thanks.

    Hi, I'have selected "Block this ad" when I was in Facebook. Now I can only see an empty page when I try to use my Facebook. Any help in unblocking it? Thanks.

    Apple doesn't have any built-in ad blocking components in teh OS or in Safari...so what ad blocking program or Safari extension are you using?  It should have the ability for you to change its settings.

Maybe you are looking for

  • Performance issues with unibody Macbook Pro 2009 purchased in October 2009

    I have a 3.0Ghz Macbook Pro 15" which came installed with Snow Leopard. I specified the machine with a 7200rpm 500GB drive although I had heard there were issues with these drives. I have installed Office 2008, CS/3, firefox, chronosync and fusion 3.

  • Adding field in the standard report

    Hi , i have added the one field in the standard transaction VL06 , in the outboud deliveries report according to the Note 605460. I have to add the field in LIPOV structure. after adding that field(include structure), in output i am not getting that

  • Jaxp Jar file is missing

    Hi All, I am using NWDS 7.0.0 version . Where can I get the jaxp jar file to resolve my error.... Thanks and Regards, Bharath. A

  • Tds Utility from 2005 to 8.8

    Dear All, I am going to upgrade the system from SAP 2005 to 8.8 but i have doubt about how my table structure is going to upgrade & what is pre-requasite before upgrade. As per my Knowledge SAP provided some query to transfer the TDS data 2005 to 8.8

  • IMAQ Vision - Writing Image Files: File Format

    Hi, I want to save some images in LabView 5.1.1 - IMAQ Vision 2.2.1 acquired by a camera. Several file formats are supported: BMP, JPEG, PNG and TIFF For me the PNG format seems to the most attractive one as it provides lossy-less compression and pla