Trying to make a hyperlink with AS3 on Arcade button

Hello all,
I do not know really anything about ActionScript. I have completed a tut on it but that is all. I am trying to make a hyperlink from a classic arcade button but the code I found is apparently from AS2.
My question is can anyone help me create this button for my website?

Hi,
Below is the AS3 code to navigate to adobe.com upon button(whose instance name is 'myButton') click
myButton.addEventListener(MouseEvent.CLICK, gotoPageFunction);
function gotoPageFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://www.adobe.com");
navigateToURL(request, '_blank');
Thanks!
ps: please mark this post as Answered if this is of help to you

Similar Messages

  • I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    Where are you located?
    Just go and buy an iTunes gift card at any store in your country.
    Then follow all the steps you did, but when it asks you for the credit card number, there shoujld be a GIFT CARD option which will let you load your account witht eh funds form the gift card without providing a credit/debit card #.

  • Ive tried to make a purchase with my other apple id but i keep getting prompted to purchase this app again....i want to continue in the game im working on but i dont want to wait the 30 days until i can use my new prepaid credit card(mastercard)....both i

    Ive tried to make a purchase with my other apple id but i keep getting prompted to purchase this app again....i want to continue in the game im working on but i dont want to wait the 30 days until i can use my new prepaid credit card(mastercard)....both ids are linked to my facebook does that help?

    Ive tried to make a purchase with my other apple id but i keep getting prompted to purchase this app again....i want to continue in the game im working on but i dont want to wait the 30 days until i can use my new prepaid credit card(mastercard)....both ids are linked to my facebook does that help?

  • I'm trying to make a timelapse with 900 pictures converted into 30 fps to get a 30 seconds video but after exporting my movie why is my video length 15 minutes?

    So, I downloaded a slideshow templates and I'm trying to make a timelapse with 900 pictures converted into 30 fps to get a 30 seconds video but after exporting my movie why is my video length 15 minutes?

    What settings are you using to export the video with?  I think 29.97fps is the only one that works with LR 5:
    http://lightroom-blog.com/2013/09/17/timelapse-again-in-lightroom-5-2/
    http://lrbplugins.com/shop/presets/lrb-timelapse-presetstemplates/

  • Trying to make a DVD with an old/non-existent version of iDVD!

    Ladies and Gentlemen,
    Please could you help me?
    I work at a school in the UK, and have recently been able to purchase an external Lacie DVD drive, as the school’s computer (currently an iBook G4 with OSX 10.3.2 and a 1GHZ Power PC Processor – 640 MB Memory and a 40 GB HD) wasn’t shipped with one – however, I have a problem…
    Trying to make a DVD that will play in a stand-alone DVD player – I followed the advice in iMovie Help – but was stopped suddenly on finding that I do not have the relevant version of iDVD (which version (if any – I can’t see it anywhere!) was shipped with iMovie 4.0?). Is it possible to download a copy of iDVD 3 or later from anywhere compatible with OSX 10.3.2 and iMovie 4.0?
    The iMovie Help has an additional option to ‘export your movie in a format appropriate for DVD authoring’ which has let me burn the movie as a (name).DV file – but this is not compatible with any DVD player I have tried. I noticed a while ago on this forum that someone was talking about Toast but I do not have this, but I do have Roxio Easy Media Creator 7, which was bundled with the burner – but is only compatible with a PC – would I be able to build a project in iMovie, transfer it to a PC, and use REMC7 to do what toast would?
    Finally, I was wondering if anyone has any experience of using Avid’s free DV software – and if they would recommend it (and also if I would be able to make DVDs with it?).
    Well thanks for reading if you got this far – and I’d appreciate it if you could offer any advice (I know I’ve not been very concise)…
    Kevin.
    iBook G4   Mac OS X (10.3.2)  

    Thanks for the welcome Karsten! I’ve checked the installer disks – which appear to have all the main pieces of software, but not iDVD. If you or anyone knows where it might be hidden that would be great. Thanks for all the other info too!
    Thanks Lennart – I don’t think my computer could support iLife ’05 as it is running Mac OSX 10.3.2 and I’ve just been looking at its system requirements which state it requires 10.3.4 minimum – if you know differently, please let me know. As an alternative I have considered getting iLife ’04, but your comment about iLife ’05 being the first version to support external drives worried me (“iDVD 5 is the first iDVD version that officially supports external burners“ does this mean there is an unofficial option for iLife ‘04? Perhaps a patch similar to the one mentioned by Karsten), does that mean iLife ’04 would not support an external Lacie DVD writer?
    What is the earliest version of Toast I’d be able to use (as a money saving option!)?
    Thank you both, and apoligies for my amateurish questions…
    Kevin.

  • HT5622 I tried to make a purchase with a credit card to I have been using with I Tunes for 2 years.  Now it's saying my security code is wrong??????

    Tried to make a purchase thru Itunes with a credit card I have been using for years.  Now it wants my security code which I entered three times and it said it was wrong (I know the correct) number.  Then I changed to another credit card, and it is still denying by purchase.  I was prompted to go to this website so here I am.  Can you please help me out
    Thank yyou

    whenever you attempt to put a card on itunes it puts a temporary $1 authorization hold for 24 hours - 48 hours depending on your bank - since you attempted so many times that is why that $1 is showing up so often - are you using a debit card? because if you are then if even the authorization hold doesn't go through like it should it will show a "ghost" charge that will drop off soon - it isn't fraud though - make sure your billing address is correct - if that doesn't work contact itunes store at getsupport.apple.com - click itunes - itunes store and follow the prompts and you can chat or email them.

  • Is it possible to make a timer with AS3 which is accurate upto one millisecond.

    I am new to AS3. I have somehow developed a auditory and visual reaction timer by taking script from here and there. I know its not accurate and I also know that I will write it correctly when I have learned the script thoroughly,
    But I was checking the net about the timer class and various posts on it and  I am vexed with a question "if its possible to make an accurate timer with AS3?" can somebody please tell me for sure. and I will be grateful if I know how to make it correctly. I can post the code which I have written ( assembled ).

    the answer is, maybe. but for, for most coders, the answer is, no.
    getTimer() is accurate to within 1 ms.  but that allows you to determine time/elapsed time and does not call or execute code on a regular timed schedule. it can be used with the timer class or enterframe events to do some things accurately.
    however, the timer class is not accurate in the way beginning coders think.  it will, on average, allow calling a function at close to the designated interval if there are no performance issues with your swf.  it does not allow each function call to occur at a regular interval.

  • How do I make a hyperlink with dynamic data from a php data base table?

    Level - Dreamweaver infrequent user
    I have a standard master-detail couple of pages using MySQL and PHP. This function is working correctly. One of the data items on the Details page contains the name of a PDF document (including the .pdf suffix). The PDFs are stored in the PDFs library under the Site Root. I am wanting the ability of the page user to look at the associated PDF. Keeping it as simple as possible I just set up a text field 'View Report' followed by the Dynamic Text for the document name. I tried defining the Link Properties with the PDFs library name (plus the root level) followed by the code I thought it needed to identify the selected PDF document ( <? php echo $row_rslivesDetail['ReportLink']; ?> ). The first part is correct because when the code failed I changed it to a fixed PDF document and that worked. I've tried various combinations but not been successful. Can someone please suggest what I'm doing wrong with the code.
    Regards
    Cliff

    Do the PDFs actually reside in your MySql database or are they just in a folder on your server?
    To parse files from a folder, you could use something like this:
    <h2>PDF Files</h2>
    <?php
    class SortingIterator implements IteratorAggregate
    private $iterator = null;
    public function __construct(Traversable $iterator, $callback)
    if (!is_callable($callback)) {
    throw new InvalidArgumentException('Given callback is not callable!');
    $array = iterator_to_array($iterator);
    usort($array, $callback);
    $this->iterator = new ArrayIterator($array);
    public function getIterator()
    return $this->iterator;
    ?>
    <!--results-->
    <h3>2014</h3>
    <?php
    function mysort($a, $b)
    return $a->getPathname() > $b->getPathname();
    $item = new SortingIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator('pdfs/2014/')), 'mysort');
    foreach ($item as $file) {
    echo '<li><a href="' . $file . '">' . $file->getFilename() . '</a> - '. round( $file->getSize() / 1052) . '  KB </li>';
    ?>
    </ul>
    In my example above, pdfs is my main folder and 2014 is my sub-folder. 
    Results echo inside a list with each file name hyperlinked.  See screenshot.
    Nancy O.

  • Music trouble while trying to make a slideshow with iPhoto

    I am trying to make a slideshow for a family member. I have assorted the pictures in the correct order and that part is done. However, when I went to go and add music to the show, iPhoto only lets me pick one song that I can play continuously throughout the show or just once. I would like to try and put about 5 or 6 songs on to go with the pictures but I can not find any way I can do this. I would greatly appreciate any suggestions on what I can do or what software I may need to buy instead. Thank you very much.

    Welcome to the Apple Discussions. This is what Terence is referring to:
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Trying to make a payment with paypal and the page opens in German. Can't make a payment if I can't read the language. Browser is set correctly. Please advise

    Trying to make a payment on a website and the whole page is in German. Browser setting is English. Can't imagine why this would happen. Please advise...time sensitive.

    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"

  • HT204053 I tried to make a purchase with my apple id after changing the experiration date on my credit card and it does not work

    I tried to make a purchase from the app store ( the French app store using my French apple ID and credit card) , i had just changed the experition date for my credit card and it did not work, should I do anything else?
    Thanks

    Then you should contact them:
    http://www.apple.com/emea/support/itunes/contact.html

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Trying to make a variable with for loop

    Trying to pick up a movieClip  instance from my library and set it on stage and make it clickable, (dropdown/dropup) menu). 
    Can anyone help with what I am doing wrong?
    var MenuItem1:Array = new Array("text1", "text2", "text3","text4");
    CreateM(MenuItem1.length);
    function CreateM(Menu1:Number):void
    for(var i:Number=0;i<MenuItem1.length; i++)
          var this["M1"+i]:TextField = new TextField();
          var this["M2"+i]:takki = new takki();
          this["M2"+i].y = this["M2"+i].y-(i*50)+(stage.stageHeight-this["M2"+i].height);
          this["M1"+i].text = MenuItem1[i];
          this["M1"+i].y = this["M1"+i].y-(i*20)+(stage.stageHeight-this["M1"+i].height);
          addChild(this["M2"+i]);
          addChild(this["M1"+i]);
          this["M2"+i].addEventListener(MouseEvent.MOUSE_OVER,clicking);
    function clicking(event:MouseEvent):void
    trace("I am clicking button"&&this["M2"]);

    Try something like this:
    var MenuItem1:Array = new Array("text1", "text2", "text3","text4");
    CreateM(MenuItem1.length);
    function CreateM(Menu1:Number):void
    for(var i:Number=0;i<Menu1; i++) { 
        this["M1"+i] = new TextField();
        this["M2"+i] = new takki();
        this["M2"+i].y = this["M2"+i].y-(i*50)+(stage.stageHeight-this["M2"+i].height);
        this["M1"+i].text = MenuItem1[i];
        this["M1"+i].y = this["M1"+i].y-(i*20)+(stage.stageHeight-this["M1"+i].height);
        addChild(this["M2"+i]);
        addChild(this["M1"+i]);
        this["M2"+i].addEventListener(MouseEvent.CLICK,clicking);
    function clicking(event:MouseEvent):void{
    trace("I am clicking button" && event.target.name);
    Be aware, that you have to work with the positioning, and that the TextFields are overlapping the takkis, so that the clicking is only possible in a minor fraction of the takkis.

  • Newbie trying to make it go with MSN

    I have been through a number of posts but I can't seem to make this thing go.
    All my family use MSN for video chatting on PCs. We have the new iMac with the camera built in and iChat 3.0.1. How can I set up Video chat with Audio so that I can communicate with them? aMSN doesn't have audio with it's video, at least that is what the literature says...
    Is this even possible? Apparently even setting up Jabber won't include the audio with the video.
    Of course, up until very recently, I haven't had the desire to meddle with this stuff, but now it seems I have little choice...
    The last of the luddites I tell ya.

    aMSN is free. I've installed it, but have not tested it as I don't know anyone that has MSN to test it.
    The best option I can recommend is using iChatAV via the AIM protocall (AIM or Trillian for the pc user) or using Jabber (not sure if their is a windows Jabber client that supports video either)

  • Long time PS user trying to make LR4 cooperate with Photoshop CS5

    How can I "Edit in Photoshop" (ctrl+E) without having Lr4 dump the PSD in the middle of my raw files? Why is it even doing that?
    I have everything tightly organized on disk, with strict separation between raw files and PSD master files, so this is really the last thing I need. All I want is a rendered file from Lightroom opened into Photoshop, and staying there, so I can save it from Photoshop. Is that at all possible?

    Normally you don't get any message on editing in PS from Lightroom.  It simply passes the file to PS to render (behind the scenes) using ACR.  You get the warning if LR thinks the version of ACR in PS is older than the one built-in to LR.  In this case, the safer option is to get LR to convert to TIF or PSD (whatever you've set in the edit option), and PS then opens this.  Technically it will need ACR7 (with Photoshop CS6) to be fully compatible, but ACR6.7 is supposed to work (though with the RC version you still get the warning for some reason). 
    However, provided the version is compatible, or you choose "render in Lightroom" then the LR edits get through to CS.
    As others have said, LR is pretty good for managing all versions of your files, and for that it makes sense to keep all the versions in the same folder.  By default, the Photoshopped version is "stacked" alongside the raw. 
    In LR you may often have only one version of an image - the raw.  If you need multiple LR-edited versions, Virtual Copies mean you still need only one file. If you use photoshop you get another (PSD or TIF) file (more if you have multiple edited versions), but I keep them all stacked together so I can see them in one place in LR.  However, I don't have multiple further versions for web export, print export, an export for a gallery, another export for an album...  Lightroom's "Collections" and export presets make it very easy to create temporary exports for a specific purpose (e.g. for the web).  Then I delete the exported version once it's on the web (or whatever).  If I need that web set again, I recreate it in LR from the originals - only takes a few clicks - which means I benefit from any further editing I've done. 

Maybe you are looking for

  • Itunes wont open, not a quicktime problem

    i have looked everywhere, tried everything. My quicktime will open but my itunes wont. i click it and my curser stalls like it is about to open but never does. sometimes that white agreement box flashes but goes away without a chance to read or click

  • How do I retro-fit my old LaCie CDRW burner?

    I have connected my old LaCie CDRW burner (c. 2000??) with a Firewire/Thunderbolt converter but the device is not recognised in my System profile. I have looked for drivers on the LaCie site but cannot find the correct version. I would like to restor

  • Managed Servers vs. Admin Server - heap sizes

    I have a question. I opened a support ticket with BEA yesterday, the technician got back to me and completely confused the hell out of me. We're looking to upgrade to WLS10 with an admin server/managed server design. I was under the impression that e

  • IPads with DVD port?

    I think iPads should have a DVD port and a flash drive port.

  • How to play just one song?

    How can I get my iPod to play just one musical piece--to not automatically go on and play every song after it continuously? I listen to classical and symphonies can be 40-60 minutes long. I would like it to stop after one so I can then choose another