A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: **HELP** With "getURL" Script

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    1

    **HELP** With "getURL" Script

    Hi everyone, i was wondering if somone could help me out with my problem in flash that im having...

    this is my script so far for my "Enter" button

    stop();
    enter_btn.onRelease=function(){
    getURL(http://www.geocities.com/se7ensided/)
    }

    so i add this into my actions layer...and i keep getting errors and my actual window with my button in it just keeps looping even though i scripted it to stop...

    when im inserting the getURL part it asks me to have (URL,window,method)
    in the brackets..... so if i wanted to open it into a new window/browser then what would i do? and whats the method part? if somone could help me that be great!

    Thanks Darren

  2. #2
    Avoiding the real world. NeedleInMySpine's Avatar
    Join Date
    May 2005
    Location
    Canada
    Posts
    188
    code:
    on(release){
    getURL("yourURL.com","_blank")
    }


    If you put those actions on your button it should work. You dont need to have the actions all on your main timeline. Make sure the actions pannel says actions-button.
    Knowledge is power, power corrupts, study hard, be evil.

  3. #3
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    use _blank to make it pop up ina new browser..

    like this:

    getURL("http://www.geocities.com/se7ensided", "_blank");

  4. #4
    It's a long way to the middle launchpad67's Avatar
    Join Date
    Oct 2004
    Location
    Prescott, Arizona
    Posts
    1,387
    Yep, you forgot the " " (quotes) on the url path.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center