How can I name a button/movie so that an external script can read it?

Hi,
I have a javascript on my website that is called on any click. The script reads the name of the clicked item. This works fine for all jpg/gif images with a name, but how can I name a flash movie in such a way that this script can read it? I tried several things, the name (and id) in the published parameters, the name of the instance, of the button, etc. But nothing works?
The external javascript is this:
var theName;
function grabName(e){
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) {targ = targ.parentNode;}
theName=targ.name;
if(theName){GoogleCounter(theName);}
document.onclick=grabName;
Thanks,
Irene

You should look into using the ExternalInterface class to have Flash talk to javascript in the web page that contains it.  Here's a link that provides some information on that...
http://kb2.adobe.com/cps/156/tn_15683.html

Similar Messages

  • While updating my ipad to ios7, I could not pass the terms and conditions screen where I had to agree or disagree. It just didn't move pass that screen. I can't do anything to go forward or back. It's just stuck there.

    While updating my ipad to ios7, I could not pass the terms and conditions screen where I had to agree or disagree. It just didn't move pass that screen. I can't do anything to go forward or back. It's just stuck there.

    Try to reset the device:
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.

  • Unable to edit Flash file - Can't enter inside buttons/movie clips.

    Hi
    I am in the middle of creating a website using Flash CS5. I opened up my .Fla file one day to continue my work but I am no unable to access buttons and movie clips. When creating movie clips or buttons I am unable to get inside them, when I hover my mouse over them there is a white hand icon which never used to be there it was always just a normal mouse icon. I double click to enter inside the buttons/movie clips but nothing happens. This happens to existing movie clips and buttons on the page and even when I create new ones. Can anyone please help.. I really don't wanna have to start this website again!!
    thanks!

    Hi,
    This would normally happen when you have a Button symbol on stage and the 'Enable Simple Buttons' setting is enabled.
    Can you check in your Control menu, if the option 'Enable Simple Buttons' is enabled? If it is, click on the option to disable it and then try double clicking on your symbols.
    In case you still face the issue, can you send across your test file for investigation.
    Thanks!
    -Nipun

  • How to stop Timer event inside movie clip that does not exist?

    Hello. I am using Adobe Flash CS6.
    As this topic title says. how to stop Timer event nside movieclip that does not exist?
    I mean my fla stracture is  there are 2 frames on main timeline, and I put mcA on frame 2.
    And I put a button on root that does
    if(currentFrame ==1)
    gotoAndStop(2);
    else if (currentFrame ==2)
    gotoAndStop(1);
    And mcA has AS inside and it is
    var T_Timer:Timer = new Timer(1000,0)
    T_Timer.addEventListener(TimerEvent.TIMER, test)
    function test(e:TimerEvent):void{
    trace("Timer active")
    T_Timer.start();
    I need to stop T_TImer from root on frame 1, not on frame 2.
    but, "mcA.T_Timer.stop();" won't work.
    I get TypeError: Error #1010 error.
    I don't know how to stop this timer event. I have to stop it from root, and I can't use EVENT_REMOVED in this case.

    If the object doesn't exist you cannot do anything relative to targeting it.  Maybe you should move the timer to the main timeline where you can access it any time.

  • How to get tv shows and movies backed up on external sata drive?

    I realised a couple of days ago that several of my movies and tv shows that I purchased are no longer downloaded on my computer but are stored on the cloud. Now how do I get a backup on my drobo external disk? I don't want to fall or be without wifi and not being able to watch movies or tv shows.
    Music has a download icon next to it, but that is not there for movies and tv shows. I have my itunes folder on my drobo, and want to keep it that way...
    Anyone have a good suggestion for me?

    Your shows should be in your purchased items on iTunes. Log in to your account and you should be able to find them. Not all movies are available for a second download though, you should check on that.
    Once you've downloaded them again to your computer, you can backup with time machine, or burn them on a DVD. Read this article for further information:
    http://support.apple.com/kb/HT1751

  • I can see videos under the "Movie" section that I used to have on my iPhone and need to figure out where these are stored on my PC. Thanks

    I just need to find out the file destination of the movies listed under my m

    Hi Corey,
    I apologize, I'm a bit unclear on your exact request. If you are trying to locate the actual movie files that you are seeing listed in iTunes, you may find the information in the following articles helpful:
    Where are my iTunes files located?
    http://support.apple.com/kb/HT1391
    iTunes: Understanding iTunes Media Organization
    http://support.apple.com/kb/ht3847
    Regards,
    - Brenden

  • Can I use Acrobat 11to download pdf that only allows me to read, enter data, and print?

    I need to complete gov. forms available online as pdf.  I can review, enter data and print, but I cannot save to my computer or anywhere else.  I need to be able to save so I can return to the form and enter information as I access it.  Can this be done if I purchase Acrobat 11 and, if so, can I get the Standard edition?  I currently only have Reader.

    Yes, if you upgrade to at least Acrobat Standard you will be able to save. Since you can't save with Reader (assuming 11), the forms are probably XFA forms (created with LiveCycle Designer), which must be Reader-enabled in order to be saved with Reader. Reader 11 can save non-enabled AcroForms (forms created with Acrobat), but not non-enabled XFA forms. If you have a Reader version prior to 11, try using Reader 11 to see if it will save.
    If you can provide a link to one of the forms, I can tell you for sure what the minimum requirement for saving is.

  • How do I create a screensaver from an mov file that other mac user can download? Is there free software or shareware available for this?

    I have seen iScreensaver and PulpMotion and several others but I simply wish to convert an mov file to a screensaver that other mac can download. I haven't been able to come across a tutorial for this that works on Lion. Any guidance is greatly appreciated.

    Does anybody know how to do this without iDVD?
    You can't.  You MUST buy iDVD.
    Tell Apple how you feel.  They do read these comments, and often react.  Be nice.
    http://www.apple.com/feedback/idvd.html
    http://www.apple.com/feedback/
    (On the above link, you will notice under Mac apps they do indeed show, iDVD!)
    If that doesn't work you can purchase iLife 11 on disk (don't get the download) for about $29. You WILL get iDVD.
    or if you like downloads, go to the Apple Store via the Store button at the top, (not the App Store) and look for iLife 11 it will list iWeb and iDVD.  It IS available online.

  • How in Gods name do I move to icloud???, How in Gods name do I move to icloud???

    How do I move to icloud?  Each time I select "move to icloud", the stupid system goes looking for my iphone.  It also tells me I need a "me.com" email, which I already have.  I'm getting very ****** off at going round and round and round and going nowhere.  I'll admit I'm not the sharpest knife in the drawer when it comes to operating a computer, however, I can follow instructions, when given them.  Someone please help.

    Basic Information About Moving From MobileMe to iCloud
    Apple IDs and iCloud
    Creating an iCloud account- Frequently Asked Questions
    Frequently asked questions about the MobileMe transition and iCloud
    MobileMe services that no longer sync after moving to iCloud
    MobileMe- About moving to iCloud

  • How can I make a button in Muse that bookmarks the page the user is on?

    I want visitors to be able to push a button that bookmarks the specific page in their web browser. Is this possible in Muse? Or do I have to use third-party code?

    Hi
    As pnoypie has suggested , you can use html for this.
    You can directly insert the html which would create a link to bookmark on page or insert the html inside button widget and define states.
    Here is an example :
    http://stackoverflow.com/questions/10033215/add-to-favorites-button
    Thanks,
    Sanjit

  • How to make mouseover scroll buttons attached to textarea with external loaded text ?

    Hi,
    I am working in Flash CS3 and AS3, and I'm not good in
    scripting.
    I want to make a dynamic textarea with loaded text from an
    external textfile, and then I want custom made arrow buttons to
    start scrolling the loaded text on mouseover (not click) andt stop
    scrolling on mouseout. Ala like in this webpage:
    http://boomjinx.com/
    The part with the loaded text is fine, but I can't manage to
    script the arrow buttons to do what I've just described. Even
    though I have searched the Internet for recipes I just find how to
    scroll loaded text on click or with a scrollbar. This problem is
    starting to drive me crazy!! Is there anyone that have a recipe for
    this??

    Here's one approach:
    First you need to create a dynamic mutline textfield that has
    autoSize properties set to handle a varying amount of text.
    Then you need to embed the font because you are going to use
    a mask over the textfield to define the viewable area of it.
    Then you will use the buttons to change the textfield's y
    property to move the textfield up/down vertically. You will
    probably need to use an ENTER_FRAME event handler so that a
    continuous hovering of a button will cause the textfield to
    continue moving until it either reaches one end or the other or
    when the hovering ends.
    Before you try to tackle that though, just make it so that
    hovering a button will cause the textfield to move up or down one
    increment of distance. Just take it one step at a time.

  • Can I format a finished movie so that it will fit within a normal tv....

    I finished a 2 hr movie with many 'music video titles' throughout and when I went to play it on my TV (which is not HD or plasma) nearly half of all my titles were cut off by the edge of the screen and even the bottom of the screen. Is there a way to 'reformat' so that the entire iMovie HD screen will fit within my TV screen and all the remaining space will be filled with black? Basically, I need to zoom out my entire project.
    thanks in advance

    What you've discovered is known as the TV Safe area. You can view it in iDVD prior to burning but iMovie doesn't show the area.
    MPEG Streamclip can "rescue" your Project so you don't have to redo all of your titles. It can "zoom" (in or out) and then export your Project back to DV Stream for use in iDVD.
    Trial and error on how to use the feature. The software is free.

  • HT2729 how do I re-download a movie rental that was not viewed?  The movie is not on my laptop or my Ipad anymore.  I never watched it.

    Rented a movie.
    Transferred it to ipad2.
    iPad2 was having issue and Apple store restored to factory ofriginal state.
    All data lost.
    How can I get the movie that I rented but never viewed.
    It show up in my account history as rented.

    I have the same question

  • We have 10 ipads connected to 1 computer and 1 account. How can I change/erase an account so that the seperate offices can use itunes and synchonise itselve?

    Hi there!
    Our department (marketing) wanted to control the input of the iPads. We found out it was useless because our salesteam wanted to personalize the ipad (think about projectspecific items etc.) It is impossible for 1 person to control 10 iPads and deliver input for each different iPad. So we decided that each office can have its own account. But these ipads are already connected to 1 computer (i know you can connect them to a max. of 5 computers, but that is not enough in this case..) They can make there own account with their personal creditcard or that of the office. How can i disconnect the iPads en still remain the files on the iPads?
    With kind regards,
    Willeke

    Whatt ype of "files" are you concerned about?  Are they purchases from the AppStore or music, video etc, or something else? If you are concerned about Apps, one method of centrally distributing apps is to purchase apps with a corporate credit card, and then "gift" them to the various employees.  The "gifted" app is sent to the email address you specify and can actually be forwarded, prior to install to another user for their use...

  • How do I get music, apps, movies etc that are in my iTunes - on a PC -  into iCloud?( the stuff I want to move is not on my iPhone which I would like it to stay that way if possible)

    I have old music, apps, podcasts, books, and movies that I have already purcahsed. I am just setting my iCloud up, and I can't get anything onto it from my PC. And is it possible to keep stuff in the iCloud and only have it on my PC and not my iphone?
    Thank you,
    iCloud Rookie.

    Music is not included in the iPhone backup, because it is already on your computer, so why duplicate it?
    Music can only be synced to one computer at a time, so if you change computers the contents of the iOS device will be replaced by what is on the latest computer.
    If you have an iCloud backup and your music is saved to iCloud you can restore it by going to Settings/General/Reset - Erase all content and settings. When this completes it will ask if you want to restore your iCloud content.

Maybe you are looking for

  • Removing 'stuck' apps from an S60 3rdEd device

    Suppose you updated your S60 3rdEd device and after that you realized that your applications were not functioning, what would you do? The answer is simple - just re-install all these apps or games and the problem gets solved. But what about if you ca

  • ITunes gift card, received on different email than Apple ID email.

    Does the email/Apple ID has to be the same as the one that a iTunes gift card is sent to. Someone sent me a gift card by email, but the email it was sent to is different from the email I use with Apple.

  • DataSource Issue in BI7

    Hello guys, I am creating Generic DS  Z_ABC using VBAK table fo SD component. I am facing couple of problems while moving further, 1. When I try to Maintain Exract structure for this DS by hiding some Fields it wont let me save, it says "there are st

  • Can I receive 'NewsGroups' via Firefox? How?

    A few years ago 'News Groups' was a usual feature of web browsers. I do not see this as being available in some of the newer browsers such as Yahoo, AT&T, etc. I was told that Firefox did provide this feature. If this is true, I will want to acquire

  • Configuring XML Gateway Inbound OTA in R12

    Hi, We have followed the metalink note : How to Configure OTA For XML Gateway in Release 12 [ID 418926.1] and have done all the steps mentioned.Even then we are unable to configure the OTA. We have set the value oa_web_server for Load OXTA Servlet (s