| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Oct 2001
Posts: 4
|
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? |
|
|
|
|
|
#2 |
|
Wind Chaser
Join Date: Feb 2001
Location: Calgary, Canada
Posts: 306
|
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Oct 2001
Posts: 4
|
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 |
|
|
|
|
|
#4 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
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? |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Oct 2001
Posts: 4
|
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.. |
|
|
|
|
|
#6 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
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? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |