To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-29-2006, 09:17 AM   #1
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
How to make a clickable .swf ?

I have a problem. I don´t know how to make clickable .swf. I made a banner, everything works OK, but i can click on it a get to the requested page THX for help !!!
svil is offline   Reply With Quote
Old 11-29-2006, 09:18 AM   #2
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
"can´t " of course
svil is offline   Reply With Quote
Old 11-29-2006, 09:36 AM   #3
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,912
Try adding this to the main timeline
code:

var mouseListener = new Object();
mouseListener.onMouseUp = function() {
getURL("Test.html")//set to the url you want to go to.
};
Mouse.addListener(mouseListener);

blanius is offline   Reply With Quote
Old 11-29-2006, 09:47 AM   #4
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
Line 1: expecting a mouse event statement
svil is offline   Reply With Quote
Old 11-29-2006, 09:48 AM   #5
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
i add it to the action script of button
svil is offline   Reply With Quote
Old 11-29-2006, 09:58 AM   #6
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,912
like I said add it to the main timeline this sets the entire movie to react to the mouseUp
NOT a button.
blanius is offline   Reply With Quote
Old 11-29-2006, 10:16 AM   #7
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
works, thanks - BUT - when i export it as SWF and HTML page it doesn´t work again But in Koolmoves goes ok...
svil is offline   Reply With Quote
Old 11-29-2006, 11:37 AM   #8
swrzzzz
Steve R
 
swrzzzz's Avatar
 
Join Date: Jan 2005
Location: Leicestershire,UK
Posts: 195
A long shot...

How are you loading your swf into the html page?

Are you using the ACRunActiveContent javascript?

(I ask because if you havnt then an swf will not work unless you click once on them)

Also you can select to allow access to the network or local files in the export settings - try changing that

Steve
swrzzzz is offline   Reply With Quote
Old 11-29-2006, 11:40 AM   #9
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,912
Works here in browser, tested it just now in FF and IE.
blanius is offline   Reply With Quote
Old 11-29-2006, 11:49 AM   #10
swrzzzz
Steve R
 
swrzzzz's Avatar
 
Join Date: Jan 2005
Location: Leicestershire,UK
Posts: 195
I had a problem a while back trying to open links from an swf opened in a file:// rather than from a server.

Steve
swrzzzz is offline   Reply With Quote
Old 11-29-2006, 12:05 PM   #11
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
I export it from menu in Koolmoves - on my local PC it doesn´t still work - i use IE
svil is offline   Reply With Quote
Old 11-29-2006, 12:13 PM   #12
svil
Junior Member
 
Join Date: Aug 2006
Posts: 9
whole movie works on the internet www.yourdomain.com/test.swf - but exported HTMl from Koolmoves doesn´t work with it ...
svil is offline   Reply With Quote
Old 11-29-2006, 12:45 PM   #13
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,912
If you are trying this locally and using IE it's most likely a security setting in IE stopping you. Try putting the HTML on a server and trying it.
blanius is offline   Reply With Quote
Old 11-29-2006, 05:20 PM   #14
Stoke Laurie
That web bloke
 
Stoke Laurie's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 869
Make a rectangle the size you want clickable, the whole banner if you wish, take off the border, and reduce the colour content down to nill to give you a transparent box. Change box to a button, and use gotoUrl from there.
Stoke Laurie is offline   Reply With Quote
Old 11-29-2006, 06:21 PM   #15
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,912
http://www.bretlanius.com/flash/bannertest.html

code used here was simply
var mouseListener = new Object();

mouseListener.onMouseUp = function() {

getURL("works.html","_new")//set to the url you want to go to.

};

Mouse.addListener(mouseListener);
blanius is offline   Reply With Quote
Old 11-29-2006, 06:30 PM   #16
Stoke Laurie
That web bloke
 
Stoke Laurie's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 869
Thats good Brett, only thing is the curser does not change to indicate its clickable, but it would if you did it my way, no issue, plenty of ways to skin a cat - no offence pherbrick!
Stoke Laurie is offline   Reply With Quote
Old 11-29-2006, 09:52 PM   #17
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,912
Good point Stoke
blanius is offline   Reply With Quote
Old 12-06-2006, 06:01 PM   #18
pherbrick
Senior Member
 
pherbrick's Avatar
 
Join Date: Jul 2004
Location: Los Angeles
Posts: 291
Quote:
Originally Posted by Stoke Laurie
...plenty of ways to skin a cat....
MEOWRRR!!!
pherbrick is offline   Reply With Quote
Old 12-06-2006, 06:05 PM   #19
Stoke Laurie
That web bloke
 
Stoke Laurie's Avatar
 
Join Date: Jan 2006
Location: England
Posts: 869
Lol!
Stoke Laurie is offline   Reply With Quote
Old 12-06-2006, 11:25 PM   #20
Makulaf
I C SERVERS
 
Makulaf's Avatar
 
Join Date: Dec 2003
Location: Fredericksburg, VA
Posts: 506
I might be in left field here but do you have a popup blocker?
__________________
~~Drew~~
New Tutorial Site Coming
Soon
http://board.flashkit.com/board/show....php?p=4118485
Makulaf is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:25 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.