New to AS3 - URL Function not working...please help!

Hi i'm very new to Flash and AS3. I've created a clip and need to link some buttons to some pages on my site but they don't seem to work. Please let me know if nyone can help me...below is my code:
b_1.addEventListener(MouseEvent.CLICK,b_1ClickHandler);
function b_1ClickHandler(e:MouseEvent)
            navigateToURL(newURLRequest("http://www.MYURL.com/.html"),"_self");
Please let me know what i'm doing wrong.
Thanks in advance!

If you are editing/testing in the Flash editor, the html end of things is nothing to be concerned about at this stage, and will likely take care of itself when it comes time.
So you run the file in Flash and do not get any error messages?  Then place a trace command inside the button's event handler function to see if the button is communicating with it....
function b_1ClickHandler(e:MouseEvent)
    trace("button works");           
     navigateToURL(new URLRequest("http://www.MYURL.com/.html"),"_self");
Also, I'm just noticing you don't have an actual file named in the url, so in case the "not working" is that you can't get the desired page to show, that may be the cause.  Normally I would suggest testing url links online rather than in Flash because it's iffy to try to get the web involved with the editor at times.

Similar Messages

  • New Apple ipad air display not working,please help?

    Please can anyone offer help? Week old ipad air display has stopped working after app froze and son double tapped home button to shut app down.Thank you in advance for any offers.

    If you are editing/testing in the Flash editor, the html end of things is nothing to be concerned about at this stage, and will likely take care of itself when it comes time.
    So you run the file in Flash and do not get any error messages?  Then place a trace command inside the button's event handler function to see if the button is communicating with it....
    function b_1ClickHandler(e:MouseEvent)
        trace("button works");           
         navigateToURL(new URLRequest("http://www.MYURL.com/.html"),"_self");
    Also, I'm just noticing you don't have an actual file named in the url, so in case the "not working" is that you can't get the desired page to show, that may be the cause.  Normally I would suggest testing url links online rather than in Flash because it's iffy to try to get the web involved with the editor at times.

  • Functions not working please help

    Hi Guys, well here it is:
    I've been working with flash for a very long time both in as2 and 3 I recently had to re-visit a project in as2 and found something odd.
    When I create a movie clip with a name:  box_mc and inside I have a function ex:
    function go()
         trace("go has been activated")
    once I go back to the root and call the function like so:
    box_mc.go();
    nothing happens. It has me totally stumped as I'm sure I've done this a million times what's up what is wrong.
    Please help I'm going crazy, is it a setting?

    I'm such an idiot, thanks a lot. Haven't done timeline animations in a while.
    Cheers

  • TS1702 After I updated my new Ipad  with IOS 6, now Map& Dictation icon are not working. please help me

    After I updated my new Ipad  with IOS 6, now Map& Dictation icon are not working. please help me

    Thank you wjsten for your soon reply. Unfortunately on these days I'm in a country that Apple don't have any retail store here and for sake of time I prefer to fix it myself to DHL it to the nearest country to use its warranty. Do you have any idea how can I fix it? Do you think it's a software issue?

  • I backed up my Iphone to itunes so i can do the new Update to IOs 7 and so now that i updated it i want to backup and restore and its not working, Please help!

    I backed up my Iphone to itunes so i can do the new Update to IOs 7 and so now that i updated it i want to backup and restore and its not working, Please help!

    An iPhone backup to a computer via iTunes stores the photos in a backup file that is only meant to be be used if needed to restore back to the phone. There is 3rd party "extractor" software available but otherwise the photos are not directly viewable.
    The backup via iTunes was a good idea and your Camera Roll photos should be there and should be able to be restored to your new phone. However if it was me I wouldn't rely on that alone. I would also import the photos to a computer where you can see and verify that you have a copy. That is a good idea at any time (not just when you know you might need it). Any phone can be lost, broken, suffer hardware issues, etc at any time and lose all data on it. Following is a link with information on how to import the photos to a computer:  Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support

  • HT4623 iOS 6.1 no longer available because you are no longer connected to the internet- this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.

    this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
    is there any other method to download ios 6.1.2.
    my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
    kindly help.
    thanks

    well in thatcase, i need another help .
    thanks for your instant reply.
    i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
    because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone.

  • HT201412 my iphone 4s does not start by power switch, it starts when i connect to pc. the proximity sensor is not working. please help

    my iphone 4s does not start by power switch, it starts when i connect to pc. the proximity sensor is not working. please help.

    Sounds like it may be a hardware issue.
    Please contact Apple Support in your country.
    Here is a list of numbers: http://support.apple.com/kb/HE57
    Regards
    J

  • I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

    I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4

  • I have 4s iPhone , I download the iOS 7. Now the front receiver microphone is not working , please help me that how to fix the problem.

    I have 4s iPhone , I download the iOS 7. Now the front receiver microphone is not working , please help me that how to fix the problem.

    I live in South Africa, and I had the same problem with my iPhone 4.
    After weeks of frustration and swearing, I was in the process of restoring my phone to a previous iOS. To do that you need to turn the "Find my iPhone" option off, since i turned it off, my problem was solved. No need to repair anything or revert back to old iOS.
    ***** that i cant use Find my iPhone, but atleast i can use my phone.

  • I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.

    I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .

    If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
    Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
    Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp

  • While updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me

    while updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me

    I would imagine your iPhone was hacked to make it work on your local carrier.
    Updating the iOs to 5.xx will lock it back to the original carrier .The carrier holding the lock are the only
    entity able to authorise the unlock .You will have to contact them and see if they unlock and the terms the apply

  • HT1414 my handsfree is not working please help me

    Hi There!
    I am using Iphone 4s and ny handsfree in not working please help me

    Try restarting you iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo. 

  • HT201320 I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration

    Contact the email provider and obtain the correct setup information.

  • The built-in mic in g50 122ca laptop model is not working. please help me out.

    the built-in mic in g50 122ca laptop model is not working. please help me out. OS: Windows Vista (32-bit)

    here is a sample code .
    so far you procedure looks good but
    i bet you have to specify the name of report , instead of 'filename'.
    see this
    Plist_id := GET_PARAMETER_LIST('P_name');
    IF NOT ID_NULL(Plist_id) THEN
    DESTROY_PARAMETER_LIST(Plist_id);
    END IF;
    Plist_id := CREATE_PARAMETER_LIST('P_name');
    ADD_PARAMETER( Plist_id, 'P_Receive_date', TEXT_PARAMETER, TO_CHAR(Receive_date,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Hearing_date', TEXT_PARAMETER, TO_CHAR(Hearing_date,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Hearing_time', TEXT_PARAMETER, TO_CHAR(Hearing_time,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Issue_date', TEXT_PARAMETER, TO_CHAR(Issue_date,'mm/dd/yyyy'));
    ADD_PARAMETER( Plist_id, 'P_Workshop_date', TEXT_PARAMETER, TO_CHAR(Workshop_date,'mm/dd/yyyy'));
    -- RUN_PRODCT(REPORTS,'..\Reports\Pro_License',SYNCHRONOUS, RUNTIME, FILESYSTEM, Plist_id, NULL);
    -- here Pro_License is the name of report.
    did you tried to see if the parameter passed using a message ?
    try
    message('parameter name'); pause; write this before "run_report".

  • My itnues for pc is not working :( it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    Please helppppp

Maybe you are looking for

  • Block material order due to shortage

    Dear All,         I want to block my order automatically when material shortage happen.So as to say when I will give material with quantity in item row in order,system will automatically check availability.If material shortage will happen,the order w

  • Info about zen 2gb with sd s

    I'm studing about this mp3 player to buy it but I have some question and I can't write to customer becouse it require a creative product serial. If I add a sd card windows see 2 different memory dri've? This mp3 can do random in different folder/sub

  • Bootcamp Cannot create a partition

    As a newbie to mac, i thought it would be pretty easy to use the assistant to install W7. Following the bootcamp procedure, Bootcamp assistant fails to create a partition. "Your disk could not be partitioned. An error occurred while partitioning disk

  • New WebUI report

    Hi All, I want to create new reports for Service Contract orders, which should be displayed in WebUI CRM2007. I am new to CRM, if anybody worked on this please let me know. Thanks in advance, Umesh

  • When adding music it creates playlist

    Whenever I click "add folder to library" I choose a folder, in this case "my music" because it has hundreds of artists in it.  And I click "add", then it starts creating a playlist for every artists in the folder.  I have had iTunes for years and thi