TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

New Question?

Page: 1 Reply
Apr 15th 2001#1715 Report
Member since: Mar 24th 2001
Posts: 3734
how do I make a hyperlink in Flash that supports Javascript.

The hyperlink has to pop up a fixed-size window, and the only way I know how to do that is with Javascript.

After about 7 freakin' hours of trying things, I have determined that I'm sick of Imageready and decided to try this out in Flash.



Reply with Quote Reply
Apr 15th 2001#1729 Report
Member since: Mar 18th 2001
Posts: 1452
Put the Javascript popup code in your HEAD tags as normal.

Then call it from flash in a Get URL function. In the URL box, add the function:

javascript:YourFunction()

Ive got bits about that on my site, but its as simple as calling the function of the script you would normally put in your HEAD tags.
Reply with Quote Reply
Apr 15th 2001#1739 Report
Member since: Mar 24th 2001
Posts: 3734
Great!......that should solve all my problems then.

Thanks for your help!.
Reply with Quote Reply
Apr 17th 2001#1837 Report
Member since: Mar 18th 2001
Posts: 55


This is one way: set object actions pallet to expert and paste in the code for a button.

on (press) {getURL ("javascript:window.open('main.swf','NameofWindow','width=780,height=500,top=20,left=5'); void(0);");
}


This opens a window of the above dimensions, with no browser buttons.

Also centered.

depending on what you have to do the code would reflect that.

Rogue
Reply with Quote Reply
Apr 17th 2001#1851 Report
Member since: Mar 24th 2001
Posts: 3734
Well I know how to make a new window, that's not what I"m asking.

I need it to go into a slice, not a new window, but thanks anyways.
Reply with Quote Reply
Apr 17th 2001#1856 Report
Member since: Mar 18th 2001
Posts: 55

well explain what you want to do, no mention of slice.

Do i take it to mean you want to do a rollover, and/or replace one of the slices of a graphic, with some thing
else.

I did this a while ago: rollover the center of the circle

http://webskills.outreach.usf.edu/spring2000/gmetcalf/indexhome.html

Rogue

let me know
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum