473,788 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Popup windows from Flash 8

1 New Member
I am trying to open several individual windows from a Flash 8 movie. Here is my script (so far):

on (release)
getURL("javascr ipt:NewWindow=w indow.open("227 7.html","acc15-2277",width="25 0",height="200" ,left=100,top=1 00,toolbar=No,l ocation=No,scro llbars=No,statu s=No,resizable= No,fullscreen=N o,NewWindow.foc us(),void(0)");
return;
}
and here is the error message I am getting:

**Error** Symbol=m-main, layer=Layer 776, frame=1745:Line 2: '{' expected
getURL("javascr ipt:NewWindow=w indow.open("227 7.html","acc15-2277",width="25 0",height="200" ,left=100,top=1 00,toolbar=No,l ocation=No,scro llbars=No,statu s=No,resizable= No,fullscreen=N o,NewWindow.foc us(),void(0)");

**Error** Symbol=m-main, layer=Layer 776, frame=1745:Line 3: Statement must appear within on handler
return;

**Error** Symbol=m-main, layer=Layer 776, frame=1745:Line 4: Unexpected '}' encountered
}

Total ActionScript Errors: 3 Reported Errors: 3

Please, can anyone help me solve this?
Dec 31 '06 #1
4 9148
atyboy
3 New Member
I am trying to open several individual windows from a Flash 8 movie. Here is my script (so far):

on (release)
getURL("javascr ipt:NewWindow=w indow.open("227 7.html","acc15-2277",width="25 0",height="200" ,left=100,top=1 00,toolbar=No,l ocation=No,scro llbars=No,statu s=No,resizable= No,fullscreen=N o,NewWindow.foc us(),void(0)");
return;
}
and here is the error message I am getting:

**Error** Symbol=m-main, layer=Layer 776, frame=1745:Line 2: '{' expected
getURL("javascr ipt:NewWindow=w indow.open("227 7.html","acc15-2277",width="25 0",height="200" ,left=100,top=1 00,toolbar=No,l ocation=No,scro llbars=No,statu s=No,resizable= No,fullscreen=N o,NewWindow.foc us(),void(0)");

**Error** Symbol=m-main, layer=Layer 776, frame=1745:Line 3: Statement must appear within on handler
return;

**Error** Symbol=m-main, layer=Layer 776, frame=1745:Line 4: Unexpected '}' encountered
}

Total ActionScript Errors: 3 Reported Errors: 3

Please, can anyone help me solve this?
Hi there...
Just follow this link...http://www.flash-db.com/PopUp/index.php
Jan 5 '07 #2
chunk1978
224 New Member
Hi there...
Just follow this link...http://www.flash-db.com/PopUp/index.php
this doesn't work in Flash 8

**Error** Scene=English MAIN MENU, layer=™ and ©, frame=62:Line 2: String literal was not properly terminated
getURL ("javascript:Ne wWindow=window. open('http://www.imagectrl.c a/english/policy.html','I MAGE_Ctrl Service P','width=400,h eight=300,left= 0,top=0,toolbar =No,location=No ,scrollbars=Yes ,status=No,resi zable=No,fullsc reen=No');

**Error** Scene=English MAIN MENU, layer=™ and ©, frame=62:Line 3: ')' or ',' expected
NewWindow.focus ();

**Error** Scene=English MAIN MENU, layer=™ and ©, frame=62:Line 4: String literal was not properly terminated
void(0);");

Total ActionScript Errors: 3 Reported Errors: 3
Mar 17 '07 #3
chunk1978
224 New Member
this doesn't work in Flash 8
please excuse my last post. this code will work, but only when the flash movie is tested online (localhosting works too)...

so... thanks for this information :-)
Mar 17 '07 #4
sergiozambrano
1 New Member
It doesn't work on Safari, locally or on the Internet.
As soon as I export the swf as version 8, it fails.
Version 5 works fine.

I've tried even building the flash object from an external.js (also for avoiding to click it in order to start responding) no success.

Firefox 2.0 won't work either on Mac.
May 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

21
1815
by: Eugene | last post by:
Hi.... I have a little javascript popup box that people click on to open up an information panel. I made some little blinking star anims on the page that stop blinking after the popup has been activated - and stay "off" even after the popup is closed. any fix for this?
1
1689
by: zeb | last post by:
Hi, How can I have a flash played in a popup window when I load my index page ? Thanks in advance...
15
18744
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me find what how it is done? First go to http://www.sitepoint.com/forums/showthread.php?t=184025&page=1&pp=25 Click on Last ? on the page
18
2988
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead. If you do have any ideas I would really like to hear them. Thanks Colin - 0 - 0 - 0 - I want a glorified popup/context menu on a button that shows only when
11
7347
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz 1.7.12 (linux kubuntu). It does work with konqueror. It seems to work with firefox on windows but not with IE (not completly sure though).
1
1458
by: dnavarrojr | last post by:
I am looking for code to reproduce the mouseover popup Flash Video windows on www.pond5.com and www.revostock.com Thanks!
8
6590
by: teenIce | last post by:
Hi all, I need help...I have a flash file name test.swf and there are button to launch another swf file. I try to use loadmovie() method but it replace my old swf with the new one. What I'm trying to do is more like popup for the old flash. Hope you all can help me. Thanks in advance.
3
2816
by: Wolfman | last post by:
Hi guys I thank you for being the most helpful and responsive tech group around, and I have a new one for you. Have you ever embedded Hulu on a page before? I use it quite extensively in popup "player" windows, and as each popup page requires slightly varied object/embed parameters specifying to which Hulu file to link, I've been creating a different HTML page for each popup. Now however, I face creating a multitude of individual popup...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10118
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5403
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.