Solved

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

Posted on 2009-04-09
8
1,910 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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 250 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

821 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