WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Flash Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2007, 04:48 AM
gelcreative's Avatar
gelcreative gelcreative is offline
WebProWorld Member
 

Join Date: Nov 2003
Location: Kent, UK
Posts: 73
gelcreative RepRank 0
Default Turning a graphic into a button to launch URL

Hi

I don't use Flash except for very basic stuff, but have been given a Flash file and asked if I can turn a simple bit of text (that's a graphic instance it seems) into a link to a URL in a new window).

I worked out that I had to make it into a button which I did.

I've got what now appears to be a button, but I have no idea how to work that Up|Over|Down|Hit layer. I seemed to be able to add an action to the last frame of the layer -

on (release) {
getURL("http://commercial.geodesys.com/piconline", "_blank");
}

but when I export it - it gives me an error:

**Error** Scene=Scene 1, layer=Layer 67, frame=101:Line 1: Mouse events are permitted only for button instances
on (release) {

Total ActionScript Errors: 1 Reported Errors: 1

I thought I had created a button and added it to the layer.... so no idea why is says its not a button instance?

I'm stuck and out of my depth. Please can anyone help. The file is zipped here:

http://www.gelcreative.co.uk/geodesy...header-jv1.zip

Thanks for any help anyone can give.

Jane
__________________
Web design | CD-ROM design | Presentations
______________________________
www.gelcreative.co.uk
Reply With Quote
  #2 (permalink)  
Old 03-16-2007, 10:24 AM
WebMasterKrames WebMasterKrames is offline
WebProWorld Member
 

Join Date: Aug 2005
Location: Florida
Posts: 98
WebMasterKrames RepRank 0
Default

Up = what the button looks like normally
Over = what the button looks like when the user mouses over it
Down = what the button looks like when the user is clicking it
Hit = this is the hotspot that can be clicked, it is not visible, just draw a square over the area you want to be clickable

Do not add any action script to these frames. Get out of edit symbol and in the scene (with your actions script window open) just click on the button and now add your "on release" code.
Reply With Quote
  #3 (permalink)  
Old 03-26-2007, 06:53 AM
gelcreative's Avatar
gelcreative gelcreative is offline
WebProWorld Member
 

Join Date: Nov 2003
Location: Kent, UK
Posts: 73
gelcreative RepRank 0
Default

Thanks, it worked fine. I think I understand now.
__________________
Web design | CD-ROM design | Presentations
______________________________
www.gelcreative.co.uk
Reply With Quote
  #4 (permalink)  
Old 03-26-2007, 07:51 AM
WebMasterKrames WebMasterKrames is offline
WebProWorld Member
 

Join Date: Aug 2005
Location: Florida
Posts: 98
WebMasterKrames RepRank 0
Default

You're welcome
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum
Tags: button, graphic, launch, turning, url



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0