Having Problem with Code Snippet on Button

I have imported a psd template into Flash to link my buttons to a webpage, not sure which to use AS2 or AS3 , so I locked all the other layers on the template. right clicked on the actual button I wanted [linked] > Covert To Symbol > Gave Instance Name, then what exactly do I do next? Click on the button again? I have this code which I believe worked once :
clickhere_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
navigateToURL(new URLRequest("http://www.youtube.com"), "_blank");
My error messages are posted :

For that code to work it needs to be in the timeline, not on the button, and the Flash Publish Settings need to have AS3 selected.  You have at least one syntax errors as well.  For what you show there is a missing closing brace " } "as indicated in the errors.

Similar Messages

  • I anyone having problems with the Sleep/Wake Button?? it doesn't do anything

    I anyone having problems with the Sleep/Wake Button??
    It doesn't do anything

    if you press it and it does nothing, it may be broken. did you drop it?
    try pressing and holding the top power button and round home button on the front for 6-8 seconds and you should see an apple appear.. if you do see the apple, the power button worked.

  • Problem With Code/Design View Buttons

    (My bad...perhaps a more clear title will help...)
    OK, I am working with DW CS4 v.10.0 Build 4117 on a Win XP Pro SP3 platform.
    When working with my site files, they open in Code view.  The Split and Design buttons are grayed out.  When I click on the Layout button, the checkmark is sometimes next to the Code option, but sometimes next to the Design option (even though the page is clearly displayed only in Code view!).
    In order to view the file in Design view or Split view, I have to click the Layout button, Click on Code, click on the Layout button again, click on Design or Split View and then it will show the page file in that manner.
    This is SO frustrating!  Is this a bug in CS4?  (I scanned through the other topics and can't seem to find anything about this.)  I don't remember having this problem with CS3 and have spoken with other DW CS3 users who also say they have never had this happen.
    What can I do?
    Thanks in advance for any assistance you can provide.
    Susan

    OK, all of my site page files are .php extensions.
    Here is the code from one of my pages.
    <?php require_once('Includes/RandomizerInside.inc'); ?>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Gerald R. Ford International Airport</title>
    <link href="Includes/style.css" rel="stylesheet" type="text/css">
    <?php require_once('Includes/MetaInformation.inc'); ?>
    <?php require_once('Includes/JavaScriptInside.inc'); ?>
    <?php require_once('Includes/CommonJs.inc'); ?>
    </head>
    <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <script language="JavaScript1.2">mmLoadMenus();</script>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr bgcolor="#00306c">
            <td colspan="2"><img src="NavImages/i-header1.jpg" width="760" height="96"></td>
        </tr>
        <tr>
            <td width="185" valign="top" bgcolor="<?php echo"$bg_color"; ?>">
       <?php require_once('Includes/InsidePageNav.inc'); ?>
      </td>
            <td rowspan="2" valign="top" bgcolor="#FFFFFF">
       <table width="100%"  border="0" cellspacing="0" cellpadding="10">
        <tr>
         <td>
          <!-- PAGE CONTENT GOES HERE -->
          <!-- This is the only section you can make changes to -->
          <p align="right" class="PageTitle">NEWSROOM<br><img src="NavImages/spacer.gif" width="555" height="1"></p>
          <p class="BodyCopy"><a href="Pubs.php">Airport Publications</a> | <a href="PR.php">Press Releases</a></p>
          <p class="BodyCopy">To stay current on the latest GFIA news, bookmark this page and revisit it often.</p>
          <p class="BodyCopy">The GFIA Newsroom contains electronic copies
                 of <a href="Pubs.php#1"><i>Airport Connections</i></a>, the airport's quarterly newsletter, financial reports, and more.</p>
          <p class="BodyCopy">Members of the press should
                  be sure to visit the <a href="Media.php">media information</a> page for contact phone numbers and other valuable resources.</p></td>
        </tr>
       </table>
      </td>
        </tr>
        <tr>
            <td bgcolor="<?php echo"$bg_color"; ?>" style="vertical-align:bottom"><img src="NavImages/i-navimage<?php echo"$random_number"; ?>.jpg" width="185" height="300"></td>
        </tr>
        <tr>
            <td colspan="2">
       <?php require_once('Includes/Footer.inc'); ?>
      </td>
        </tr>
    </table>
    </body>
    </html>
    Any and all assistance will be GREATLY appreciated!
    Susan

  • Is anyone having problems with the main screen button of the Iphone 4?  More often than not I have to press the button 10-15 times to open or close a screen..

    My Iphone 4 main button on bottom only intermittently works...usually have to press it 10-15 times to get it to work..other times(like whenever I schedule a n appt with the genius bar to check it out), it works fine.  Driving me crazy...only 6 mos old.

    Try this: http://forums.adobe.com/message/2796075

  • I am having problems with my wake button responding, any ideas?

    Having problems with iPad 3 wake button responding.  I have reset iPad; but no help.

    If you mean the button on the front (home button) then it is probably a hardware fault, I would recommend taking it back to the apple store. But for now, I have a work around, go to - Settings, General, Scroll down to accessibility and turning on 'AssistiveTouch' this then gives you a temporary work around.
    If you mean the top button (wake/sleep) then I'm afraid there is nothing that can be done other than getting it repaired, again take it to the Apple Store.
    Hope this helps

  • Having problem with gmail smtp server.  Since going to google 2-step, and entering 16-digit code in gmail account, I can receive mail on my iMac, but cannot send.  What do I do?

    Having problem with gmail smtp outgoing server.  Since going to google 2-step, and entering 16-digit code in gmail account, I can receive mail on my iMac, but cannot send.  I keep getting an error message that Mail "Cannot send message using Gmail (my assigned name) server."  What do I do?

    Confirm you did this: https://support.google.com/mail/answer/1173270?hl=en
    You might also try removing all gmail passwords from your keychain in Keychain Access. Then connect again and enter the password code given by Google.

  • Im having problem with my itunes, i tried to put new gift card abunch of time but its always tells me that in put invalid security code.. what should i do now?

    Im having problem with my itunes, i tried to put  new gift card abunch of times but it keep telling me Invalid security code. What should i do now pls. help me, can't update all my apps anymore they dont let me!!

    you have to log in to your account on the computer iTunes and edit your payment information there.
    iTunes Store: Changing Account Information
    http://support.apple.com/kb/HT1918

  • I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    You are absolutely right.  Thought Enter meant Enter.  I was wrong.  Thank you for the help.
    Rod Rogers, Broker
    Accredited Land Consultant (ALC)
    Metcalf Land Company, Inc.
    Office: 864-585-0444
    Mobile: 864-316-0297
    Fax: 864-583-6000
    <http://www.metcalfland.com> www.metcalfland.com

  • TS1702 Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

  • Recently having problem with flickering on monitor (viewsonic vg2436wm).  When coming out of sleep mode.  The screen goes gray, sometime out.  Have to press power button to get screen on.  Problem stops.

    Recently having problem with flickering on monitor (viewsonic vg2436wm).  When coming out of sleep mode.  It will flicker, the screen goes gray, sometime out.  Have to press power button to get screen on.  Problem stops.  Getting more frequent.  After sometime problem stops. My system is a Mac Mini 2010, 2.4 intel core 2 duo, 2 GB, running OSX10.8.5

    See if it's related to this...
    The 2012 macs (and later apparently) not waking normally from sleep after hours being in sleep. (noted here ...
    http://www.xlr8yourmac.com/archives/feb13/022813.html#2012macswontwake
    "Why 2012 iMac/2012 Mac Mini won't Wake After Hours of Sleep (Hibernates/Powers Off)")
    The sleepimage file still reappears even if never slept. Delete it (hibernate off, etc) - within minutes its back.
    A note on that here - http://www.xlr8yourmac.com/feedback/Chameleon_SSD_Optimizer.html
    About iMac sleep...
    http://forums.macrumors.com/showthread.php?t=1529750
    Try this: "sudo pmset autopoweroff 0" and "sudo pmset standby 0"
    http://xlr8yourmac.com/archives/sep13/091313.html#10.8.5SleepEjectTip

  • Having problem with my wifi button on my iPhone

    Having problem with the wifi button

    I'm going to ask the mods to move this to the iPhone part of the forum

  • Hey everyone I am haveing problems with Flash Button

    Hello everyone I am new here so I am haveing problems with
    Flash Button because of the html address it wont go to the address
    that i put into it it keep going to
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesigner.net
    why does it do that? this is a link problem issue with flash
    button in macromedia dreamweaver 8?
    someone please help me?
    Jeremy

    >
    http://www.faithdesigner.net/www.faithdesigner.net/pricing.html/www.faithdesig
    > ne
    > r.net
    In the dialog box for the Flash Button, in the link box, put
    the full
    absolute path if an external page. Including the
    http:// part.
    http://www.example.com/page.html
    for pages inside your site- use the browse to file icon, and
    use a relative
    path.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • HT1766 anyone having problems with the start button

    Is anyone having problems with the Iphone 4 start button not working

    What is the start button?
    Do you mean the on/off button, or the Home button?
    If either one is not working at all, more than likely there is a hardware problem.

  • I'm having problems with quizzes in Adobe Presenter 10

    I'm having problems with quizzes in Adobe Presenter 10, upon publishing, the text just disappears and the buttons look weird, also the text on submit buttons doesn't show?

    I created a dummy test project with one slide and two quiz questions.  I uploaded to a Connect 9 server for AICC testing.
    Publishing as SCORM, running in IE8 gets the following results:
    Publishing as SWF gets me the following errors:
              Webpage error details
              User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
              Timestamp: Mon, 11 May 2015 20:53:59 UTC
              Message: Expected identifier, string or number
              Line: 101
              Char: 5
              Code: 0
              URI:<REDACTED>/data/html/presenter.libs.js
    After I close this error, my LMS just churns trying to load SCORM.htm.
    Publishing as Both gets me the following errors:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
    Timestamp: Mon, 11 May 2015 21:07:30 UTC
    Message: Expected identifier, string or number
    Line: 1
    Char: 467
    Code: 0
    URI: <REDACTED>/data/html/Project.js
              Webpage error details
              User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
              Timestamp: Mon, 11 May 2015 20:53:59 UTC
              Message: Expected identifier, string or number
              Line: 101
              Char: 5
              Code: 0
              URI:<REDACTED>/data/html/presenter.libs.js
    After this error I get an object expected error on the "loadPrContent()" function in the SCORM_utilities.js.
    After that it's just a blank page.
    Publishing AICC to a Connect 9 server, publish as BOTH, Accessing in IE8 gets the following results:
                   Webpage error details
                   User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
                   Timestamp: Tue, 12 May 2015 19:19:45 UTC
                   Message: Expected identifier, string or number
                   Line: 1
                   Char: 394
                   Code: 0
                   URI:<redacted>/output/data/html/Project.js
                   Webpage error details
                   User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
                   Timestamp: Tue, 12 May 2015 19:21:49 UTC
                   Message: Expected identifier, string or number
                   Line: 101
                   Char: 5
                   Code: 0
                   URI: <redacted>/output/data/html/presenter.libs.js
                   Webpage error details
                   User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8; InfoPath.3)
                   Timestamp: Tue, 12 May 2015 19:23:00 UTC
                   Message: Syntax error
                   Line: 1
                   Char: 1
                   Code: 0
                   URI: <redacted>/output/data/resources/ha/wr_/OpenAjaxManagedHub-all.js
    After closing the final error message, I get a blank screen.

  • HT1657 I am having problems with sound in my rental movies

    We rent movies all the time but lately we are having problems with sound for our movie rentals.  We watch the first half hour without a problem than the voice is choppy all the time.  Sometimes it is good for five minutes than noting for a while.  We  have tried everything we could think of with no avail.  I could see one movie but the last 5 or so have been the same.  Done trying we need to fix this!  Help!  Any ideas?

    First try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears. Try again to see if the problem persists.
    If you still have the same issue, it's possible that something is lodged in the earphone jack. This can cause the iPad to think earphones are plugged in when they are not. Use a vacuum to try to suck any dust, lint or other foreign matter from the jack. If that still doesn't work, try CAREULLY using a toothpick.

Maybe you are looking for

  • How do we create a custom format for printed contact information?

    We are trying to create a custom family directory for genealogical purposes.  Family members are individually saved as Outlook 2010 contacts with a special number field that (when parsed) designates their generation, birth order, and relationship to

  • Application Error (0xc0000005) when starting iTunes - Please help

    I get the following Application Error message when I try to start iTunes: "The application failed to initialize properly (0xc0000005). Click on OK to terminate the application." I cannot think of anything that has changed on my PC, but something must

  • A little help in TicTacToe

    I wrote this code that works and does everything alright and plays the game, but i need the game to be able to check if a square is already occupied and tell the user to input again. I am not doing well there. here's what i have... // tic tac toe gam

  • Using a Duron 1.3mhz FSB 200 on Msi K7N2

    This is what I've got, MSI k7n2-l,amd 1.3 duron 192k, 60g WD HD, ATI 8500LE 64mb, samsung DDR333 256 mb,   My question is, did anybody have any problems  using a Duron CPU on this motherboard or would this cpu work ok with my memory sammsung ddr333.

  • Font render issue after upgrading to iOS 4.2.1.

    Hi, I happen to have a friends iPhone, trying to restore it with original firmware 4.2.1, but it keeps a font issue where it has trouble getting it right. http://www.stepserver.nl/~step/3gs1.PNG http://www.stepserver.nl/~step/3gs2.PNG I tried to reco