Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Opening a popup with flash CS3 and JavaScript

This is a discussion on Opening a popup with flash CS3 and JavaScript within the Tutorials forums, part of the Flash English category; I did it but it does not go out for me well, podrias to put a fla in order that ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 Flash CS4 > Flash English > Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 15-11-07, 23:21
Junior Member
 
Join Date: Nov 2007
Posts: 2
Rep Power: 0
gusbat is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

I did it but it does not go out for me well, podrias to put a fla in order that it(he,she) could lower it?
Thanks
Es lo que hice pero no me salio bien, podrian poner el fla para que lo baje?
Gracias!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 16-11-07, 06:28
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

Ok,
here the files:
Attached Files
File Type: zip openPopUps.zip (152.6 KB, 37 views)

__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !

Last edited by Flep; 13-05-08 at 20:12..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 24-11-07, 03:39
Banned
 
Join Date: Nov 2007
Posts: 1
Rep Power: 0
seahawkfanabc is on a distinguished road
Post anyone here into adult dating sites?

Just wondering. ------------------------- [/url]

Last edited by Flep; 24-11-07 at 06:49..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 10-03-08, 15:16
Junior Member
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0
dolchieg is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

Hi there,

I am using the same code that you provided in the zip file above. Instead of normal window i am opening a modal window. Now how will I let flash know that the modal window is closed, because i want to stop the execution of remaining code in the button that activates the modal window until the modal window is closed.

Please help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 15-03-08, 17:19
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

Hi dolchieg,
you should use ExternalInterface class of AS 3.
Write JS functions and call them through actionscript.

Here is a sample:
Actionscript calls Javascript - ExternalInterface class of Flash CS3
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 02-04-08, 19:41
Junior Member
 
Join Date: Feb 2008
Posts: 1
Rep Power: 0
longfellow is on a distinguished road
Question Re: Opening a popup with flash CS3 and JavaScript

Hi, great tutorial.

I have the example working that uses the ExternalInterface class of Actionscript 3.0.

I would like to have multiple links on the same page. How do I adjust the code to make this work. I keep getting an error saying

function callJS(evt:MouseEvent):void {1021: duplicate function error.

Any help much appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 18-08-08, 17:11
Junior Member
 
Join Date: Jul 2008
Posts: 1
Rep Power: 0
jeljoman is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

it doesn't work. when i open it and press the button, it says:
SecurityError: Error #2051: Security sandbox violation: file:///C:/Documents and Settings/All Users/Documenten/greffix/Menu/menu.swf cannot evaluate scripting URLs within file:///C:/Documents and Settings/All Users/Documenten/greffix/Menu/begin.html (allowScriptAccess is ). Attempted URL was javascript:window.open('website.html','popper1','w idth=800,height=600');newWindow.focus(); void(0);.
at global/flash.net::navigateToURL()
at menu_fla::MainTimeline/openPopUp()

my button is called "site_btn" and the link is to "website.html" and the files are located in the same folder.

and when I exported the flash file there were no errors

maybe the problem is that it's not online.

Last edited by Onsitus; 19-08-08 at 09:10..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 19-08-08, 09:09
Onsitus's Avatar
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 1,060
Rep Power: 3
Onsitus is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

Quote:
Originally Posted by jeljoman View Post
it doesn't work. when i open it and press the button, it says:

my button is called "site_btn" and the link is to "website.html" and the files are located in the same folder.

and when I exported the flash file there were no errors

maybe the problem is that it's not online.
Right! It should be fine online!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 01-09-08, 01:24
Junior Member
 
Join Date: Sep 2008
Posts: 1
Rep Power: 0
Rdawg is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

Hi there Flep,
Thankyou for the code to what seems an impossible feat for a non-coder! :) I haven't used Flash for about 8 years and thought it would be more user friendly/GUI based by now haha.
I have your multi-button pop up code working well thankyou for that. I tried inserting 'scrollbars=yes' in the javascript window.open section but it doesn't work. Do you have a way to insert scrollbars into your multi button popup tutorial? Cheer rY
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 18-11-08, 17:38
Junior Member
 
Join Date: Nov 2008
Posts: 4
Rep Power: 0
Yaman Karaibrahim is on a distinguished road
Re: Opening a popup with flash CS3 and JavaScript

Flep this is a very usefull lesson, yet altough i applied all the codes, i couldnt get the popup work. Would you upload fla flies for single.swf and multiple.swf files so I could check what i did wrong

Thanks
Yaman
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Aprire una popup con Flash CS3 e javascript Flep Articoli e tutorials 14 03-01-09 09:03
Flash vs JavaScript seoplayer Off Topics 6 02-10-08 04:20
Flash 8 finestre popup con fogli xml di flash Actor Flash Italiano 1 07-09-08 00:51
javascript e flash tanysonic Actionscript 3.0 base 2 17-12-07 09:52
problem with javascript and flash cs3 alexyz4 Flash English 8 11-10-07 14:21


All times are GMT. The time now is 13:17.

Powered by vBulletin version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap