Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > Projectors and CDs

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-26-2001, 06:26 AM   #1
englund
Registered User
 
Join Date: Oct 2001
Posts: 4
Question Dynamic Text field - pop up window

I have a Windows projector file (as opposed to a swf embedded in HTML) that uses a scrolling dynamic text field. Within the dynamic text I have a link to an external web page.

I want the web page to pop up, sized with no menu bar. Since I can only use JavaScript on the page that pops (the dynamic text only supports a very limited set of HTML) I'm at a loss. I'm using

<script language="JavaScript">
<!--
resizeTo(250,350);
//-->
</script>

and 'scroll=no' within the body tag of the webpage so it is the proper size. But I don't know how to get rid of the browsers menu. Any suggestions?
englund is offline   Reply With Quote
Old 10-26-2001, 05:42 PM   #2
kingarturo
Wind Chaser
 
kingarturo's Avatar
 
Join Date: Feb 2001
Location: Calgary, Canada
Posts: 306
Default

Hi there,

See if this helps;

http://www.actionscripts.org/tutoria...sh/index.shtml

Peace.
kingarturo is offline   Reply With Quote
Old 10-26-2001, 06:47 PM   #3
englund
Registered User
 
Join Date: Oct 2001
Posts: 4
Default

Unfortunately that's the only way I now. But it only works if you have a flash project embedded on a web page. I'm using a projector file so there is no HTML page in which to paste the Java function openNewWindow. The only HTML page is the page that OPENS.

Brent
englund is offline   Reply With Quote
Old 10-26-2001, 10:23 PM   #4
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default try this

this prototype might help - but that is a pretty iffy might. my guess since i havn't tested it in a projector file is that it will open a blank browser which will open the window you want. but im not sure so it may be worth a try. heres the
Code:
Movieclip.prototype.openWin = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { 
	getURL ("javascript: var myWin; if(!myWin || myWin.closed){myWin = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + "')}else{myWin.focus();};void(0);");
}
 
//usage
onClipEvent(mouseDown){
	//url, winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable
	openWin("about:blank","blank",400,200,0,0,0,0,0,0,1);
}
sorry about the lack of wrap.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 10-26-2001, 10:59 PM   #5
englund
Registered User
 
Join Date: Oct 2001
Posts: 4
Unhappy

Thanks for the input tg. Perhaps I'm asking more of a HTML question than flash.

I see where you're going but I have multiple links within the dynamic text, so I would think the onClipEvent(mouseDown) would not work. But I'll play with it and see if I get any bright ideas.

I was hoping perhaps there was a DHTML tag that would remove the menu after the browser was launched just like the 'resizeTo(width,height);' resizes the browser as it launches.

Brent

Last edited by englund; 10-26-2001 at 11:09 PM..
englund is offline   Reply With Quote
Old 10-27-2001, 03:57 AM   #6
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default hmmmm.

the usage doesn't necessarily need to be on the clip event... it is just an example of the use for the code, you could put it in the press event of a button or inside a hit test or what ever you may need.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scroll bar for html dynamic text field won't work with html Dawnthea ActionScript 1.0 (and below) 4 08-16-2004 10:36 PM
If anyone's bored, a custom class . . . retrotron ActionScript 1.0 (and below) 22 05-24-2003 11:01 PM
Dynamic text field search GVJ Simple Stuff (Newbies) 2 03-21-2003 09:51 AM
linking to dynamic text field?? K33N Simple Stuff (Newbies) 12 02-01-2003 02:33 AM
dynamic text field not setting text yorkeylady ActionScript 1.0 (and below) 1 01-26-2003 04:21 PM


All times are GMT. The time now is 04:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.