Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-16-2003, 04:49 PM   PM User | #1
Frank
Regular Coder

 
Join Date: Dec 2002
Location: Ontario, Canada
Posts: 183
Thanks: 0
Thanked 1 Time in 1 Post
Frank is an unknown quantity at this point
Using javascript with flash

I have a very simple javascript

window.open "test.htm", "_blank", "width=750,height=520,top=0,left=0,scrollbars=NO,menubar=NO,toolbar=NO")

that I can call from an onClick.

However, I would like a button in a flash file to do the same thing. I have a bit of experience with flash but none with ActionScript. Is it possible to get a button in flash to do this, using actionscript or is there a way to call the javascript. Any help would be great.
Thanks
__________________
if ( atfirst != succeed)
tryagain();
Frank is offline   Reply With Quote
Old 09-16-2003, 11:39 PM   PM User | #2
Kev@DDN
New Coder

 
Join Date: Sep 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Kev@DDN is an unknown quantity at this point
Ahem

http://www.codingforums.com/showthre...threadid=25162
__________________
http://www.dotdragnet.com
http://www.kevinleitch.co.uk
Kev@DDN is offline   Reply With Quote
Old 09-17-2003, 02:23 PM   PM User | #3
Frank
Regular Coder

 
Join Date: Dec 2002
Location: Ontario, Canada
Posts: 183
Thanks: 0
Thanked 1 Time in 1 Post
Frank is an unknown quantity at this point
Thanks for the reply, it was very helpful
__________________
if ( atfirst != succeed)
tryagain();
Frank is offline   Reply With Quote
Old 03-16-2009, 07:28 PM   PM User | #4
brm_27
New to the CF scene

 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
brm_27 is an unknown quantity at this point
Ive got something a step further...

Im building a site that will have a flash calendar on the index page. I need to be able to click on a date on that calendar and have it load an html file into an iframe on the events page of the site...

Do I need to build some sort of JS file to be able to communicate between the two? I know how to chat with an iframe housed on the same page, but not on a different page...

Any ideas would be appreciated...
brm_27 is offline   Reply With Quote
Old 03-17-2009, 11:42 AM   PM User | #5
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Oh man, check out this thread about External Interface in Flash, that will help you mediate between Flash and JS. You'll probably have to ask in the JS forum about how to mediate between the frames, I'm not that good with JS.

http://codingforums.com/showthread.php?t=152181
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 05:24 PM.


Advertisement
Log in to turn off these ads.