Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

pop up window no toolbar or resize FLASH CS3 AS2.0

Posted on 2009-04-09
8
Medium Priority
?
1,923 Views
Last Modified: 2013-11-12
Im about to go nuts.  

I have tried many different methods and now EE is my last resort.  I even tried examples posted on EE, but for some reason my window will not work.

I am making a VERY BASIC, VERY GENERIC, NOT SPECIAL AT ALL, pop up window from flash.

I want the window to be say 500 X 700 in dimension and have no toolbars or be able to resize.

The problem is when I do it from flash this way

popup_btn.onRelease = function() {
        getURL("xxx/index.html","_blank");
}

or when I actually put it on the button itself

on(release) {
     getURL("blablabla/index.html","_blank");
}

it doesnt work.

I have no clue why.  The syntax above may not be accurate 100% as I am trying this from head only without reference, but I know you guys get the idea.

Can someone show me how to do this in AS 2.0 for the flash player 8 and above, that will work on all browsers.?

Im testing this on wamp.  Could this be the issue?

0
Comment
Question by:Devario Johnson
  • 5
  • 3
8 Comments
 
LVL 8

Expert Comment

by:wal_toor
ID: 24113816
Hellow,

You need a piece of javasript to make a popup windown without browser functionality.

I have attached the javascript code and the flash code.

Hope this works for you.

greetz,
walter
this is the piece of javascript you need to place in your html page just abouve the </head> tag
 
<script language="javascript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
 
in flash you can call this javascript by using
 
on(release){
	getURL("javascript:MM_openBrWindow('popup.html','popup','width=500,height=700')");
}

Open in new window

0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 24116437
thanks for the response.

I tried but it did not work.

I know there is more than likely something very small that I am missing...I am attaching two files for you to look at too see where the problem is.

the.fla and the .html

the tab with the popup that isnt working is the "music" tab.

http://www.scholarpc.com/EE.zip

retain the directory structure and try it out...you will more than likely see my issue

thanks
0
 
LVL 8

Expert Comment

by:wal_toor
ID: 24118173
Hellow,

sorry, but there is no fla file, just the swf.

greetz,
walter
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 5

Author Comment

by:Devario Johnson
ID: 24118424
OK it should be updated now, the file should be in there
0
 
LVL 8

Accepted Solution

by:
wal_toor earned 1000 total points
ID: 24118819
Ah, found it.

The white button is your popup link. This button is inside a movieclip called 'loader'. This movieclip has an on(release) action that overwrites the on(release) function in the popup button. Just get rid of this script and it works.

search for: frame 'music' / inside 'symbol 89' / on frame 6 / movieclip 157

delete or uncomment this script:

on(release) {
if (ExternalInterface.available) {
ExternalInterface.call("window.open","http://www.adobe.com","win","height=200,width=300,toolbar=no,scrollbars=yes"); }
}

This worked for me.

greetz,
walter
0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 24118849
delete or uncomment?  or delete or comment?
0
 
LVL 5

Author Comment

by:Devario Johnson
ID: 24118889
OMFG...

THANK YOU SO MUCH....

that worked!
0
 
LVL 5

Author Closing Comment

by:Devario Johnson
ID: 31568815
Perfect!
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question