Solved

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

Posted on 2009-04-09
8
1,900 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
Comment Utility
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
Comment Utility
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
Comment Utility
Hellow,

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

greetz,
walter
0
 
LVL 5

Author Comment

by:Devario Johnson
Comment Utility
OK it should be updated now, the file should be in there
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 8

Accepted Solution

by:
wal_toor earned 250 total points
Comment Utility
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
Comment Utility
delete or uncomment?  or delete or comment?
0
 
LVL 5

Author Comment

by:Devario Johnson
Comment Utility
OMFG...

THANK YOU SO MUCH....

that worked!
0
 
LVL 5

Author Closing Comment

by:Devario Johnson
Comment Utility
Perfect!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now