GetURL Set Browser Dimensions?
I need to link a portion of my flash movie to an outside URL, but I would like to make the browser window which opens a specific size.
I can do this in dreamweaver, going from an html page to another html page, but I can't find a way to set the dimensions of the new browswer window coming out of the getURL function in Flash MX.
Any ideas?
DevShed > Flash Help
Posted on: September 24th, 2003, 02:16 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Controlling GetURL Dimensions
Hi All,
I created a flash portfolio site recently, and now I'm working on adding a splash page/trailer to it. Basically, I want my trailer movie to play, then load up my portfolio movie in the same window, same place. I tried doing this with a load movie action, but that kept playing the trailer underneath.
When I tried to use the getURL action, it worked fine, except the dimensions of the portfolio movie were off. It expanded itself to fit the screen, rather than using its defined dimensions, which are the same as the trailer.
Any ideas on how I can control the dimensions of my portfolio movie when I use this action? I do not want to open it up in a new window--I know how to do that.
Thanks in advance,
kevin
Setting GetURL Window Dimensions
Hello,
I'm using a getURL command (from Flash) to launch/open an html page that then plays a QuickTime movie. How do I specify the dimensions of this html page? How do I tell it to not have any scroll/menu bars or other browser stuff and be just a plain window?
This is how it looks now:
on (release) {
getURL ("movie.html", "_blank");
}
Browser Dimensions
Hi,
I'm creating a portfolio of my work, and was wandering if its possible link to an image and have that image open up in a new browser window thats the size of the image thats going to be displayed in it, so that not all of the flash page gets obscured by the new window. anyone know how to do this?
thanks!
Get Browser Dimensions?
Hello All, Im trying to find out how to get the browser dimentions
I know how to get the size of the stage from within flash, but i can't figure out how to get the size of the browser... or current HTML page.
Thanks much in advance for any help.
Browser Window Dimensions
Basic question, at least I hope so. I'm setting up a website in which all of the elements are non-Flash with the exception of the buttons.
Here's my question. The dimension of the background image is 720 x 540 pixels. I would like the browser window to match those dimensions exactly. In other words I don't want a full sized browser window when the website is opened.
Does anyone know the HTML code for this? It would be even more ideal without a border if thats possible.
Thanks for your help.
HELP Customizing Browser Dimensions
Hey all you flash gurus out there. Animator in need of assistance. I'm hoping somebody out there can give me a hand. Heres the problem.
I'm updating my website www.funkmation.com adding new clips sound and samples. Some are gifs and some are quick time movies of different screen sizes. (Right know each sample is a seperate html doc that is linked via button to my main page.)
How can I customize the size of each samples browser so each one fits as it should?
Thanx for your help.
P.S. Let me know what you think of the sight.
Setting Browser Dimensions
Can anyone tell me how to set the dimensions of my browser window to a size of my choosing, without having to use a pop-up or a secondary window.
Setting Browser Dimensions?
Anyone know how to make a new browser window open into predetermined dimensions? The goal is to click and have a jpg image pop up in a new browser window, I want to make sure that it pops up in a window that fits the jpg size. I don't know what I need to put in the code to do that.
Thanks in advance for the help!
Nebraska girl
Change Dimensions Of Mc With Browser
Hi all,
this kid here is somwhow changing the dimensions of the mc with the browser:
http://www.sksantos.com/
the mc is not just zooming out, so I guess this must be some as. Anyone got an idea or came across a tutorial?
thanks in advance,
m.
Flash Movie Dimensions From Browser?
Is there a way to get the dimensions of the flash movie from the browser? Eg. if i set the flash movie to appear as 100% by 100% in the browser can i get the dimensions that it actually shows up as in flash? I want to use these dimensions to movie stuff around based on the size of the window.
Thanks
Open New Browser W/ Page Dimensions
i have a swf file that i want to launch several different swf files in new browser windows with a set size. i know it is javascript but i cant get it to work. it is stressing me as my web page has come to a halt.
thankyou
Browser Size At Specific Dimensions
Hi,
Is it possible for a flash site to open at a fixed browser size with the "full stretch" window option disabled (like with pop-ups). I've seen a site like that which uses the following code in the html file
------------------------------
// resize window
self.moveTo(0,0);
self.resizeTo(416,310);
------------------------------
Another option would be to autoload the main window of my site directly to a pop-up window (after typing the URL and press GO/ENTER), closing the cuurent window and linching my site in a pop-up
Any suggestions
Thank you
Stanno
Retrieving Browser Dimensions In Flash
Wondering if this is possible. Here is my goal: have a flash page that spans the entire window. The stage is set to "noScale". What I want to do is adjust the stage width when the browser is resized. I want to do this because I want to keep certain elements on the far right of the screen. I'm in the very very beginning process of making my first "Full Browser Flash" site, so please bear with me. I've got the whole "Full Browser Flash" thing right, I believe. I'd just really like to know how I can do this. Sorry if this sounds a bit scattered. I worked for 13 hours today and don't have the energy to focus right now. Anyway, any suggestions or tips would be enormously appreciated.
Thanks,
Milo
Browser Scaling - How To Get Original Dimensions
How does one simply create a Textfield in Actionscript that has the dimensions of stage as seen in the html embed statement?
tf.width = stage.width or tf.width = stage.stageWidth
is no good as browser zooming has already scaled stage.width and stage.stageWidth, and then will scale the textfield - so a double scale.
This is ok if browser zooming occurs after creation, just not before.
Resize / Reduce Mc Based On Browser Dimensions?
I have this MovieClip called "main" and it's pretty wide (970px). I'd like it to get smaller if (and only if) the browser width is smaller than the MovieClip.
I thought it would be fairly easy, but it is proving to be rather elusive for my idiot self.
Here is what I have so far:
Code:
var stageListener:Object = new Object();
Stage.addListener(stageListener);
function setBackground() {
// determine middle
var middleX = Stage.width/2;
var middleY = Stage.height/2;
// reposition the bkgd to middle
main._x = middleX;
main._y = middleY;
// scale background to fit width and height
if (Stage.width > main._width) {
main._xscale = 100;
main._yscale = 100;
}
else {
main._width = Stage.width;
main._height = Stage.height;
// see if it grew bigger horizontally or vertically and adjust other to match
// to maintain aspect ratio
main._xscale > main._yscale ? main._yscale = main._xscale : main._xscale = main._yscale;
}
}
// called when the stage is resized
stageListener.onResize = function() {
setBackground();
}
Any help would be greatly appreciated... thanks!
Pixel Dimensions For Full Browser Bitmap?
Hey everyone,
I posted a similar question earlier in the general discussion but didn't really get any takers on this & am still a little baffled on this issue.
I have been working on a project that i want to have a full browser background image.
My main question is: How big should i make the actual image in terms of pixel dimensions so it will scale well in a variety of browser sizes etc & not be too overwhelming in file size, but still look crisp?
Here is an example site that is achieving the look i am going for:
http://www.daanvandoorn.com/
I have been experimenting with the StageResizer class which does work, but it scales the background image disproportionally. On the site example above the image doesn't scale up to a point but then expands proportionally, which looks better.
Does anyone know how I can accomplish this look? what size to make the image, have an example fla? anything would be great.
Thanks
Browser Adding Extra Height Dimensions To Swf Movie (but Not Distorting)
never come across this problem before.
i have created a series of flash ads for a website of mpu size (300 x 250). all i do each month is change some of the content so basically i send them the same ad each time.
this time they have complained that the ad displays incorrectly. it displays at 300 wide but around 600-750 tall.
the image does not distort, instead it displays the background colour in this new space above and below the ad. the dimensions are set in the fla to 300 x 250
anyone have any idea if this is an issue i can resolve or is it a problem with their html?
thanks
Fullscreen, Geturl, Browser Not On Top
I have a projector that calls an html page.
The projector opens fullscreen. If Internet Explorer
is not opened, the action calling the html page will
open the browser on top of the projector.
However, if Internet Explorer is already opened, when
I click the geturl it loads the html page but the browser
stays under the fullscreen projector. Is there a way to make sure
that the browser will open on top.
I have tried giving it the _top attribute in the window
box whatever that means! Nothing!!!
IE Compatible GetURL In New Browser?
This script on a button to make a new popup window works great in Firefox, but simply won't work in IE. Is there anything I can change in the following script so it will work in IE as well?
I am beginning to think maybe IE's default option is to disable all popups; if that's truly the case, is there other ways around it? I am working on loading a full sized images from a gallery by displaying it in a new window. I didn't want to load it into the flash movie because that would make the movie size huge.
Thanks in advance!
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.mokoloco.com/samples/2d-milk.htm','. m o k o l o c o .','width=420,height=450,left=0,top=0,toolbar=No,l ocation=No,scrollbars=Yes,status=Yes,resizable=Yes ,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(420/2); top_point = parseInt(screen_height/2)-(650/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");
}
GetURL With SWF W/o Browser Window
I've seen a couple of websites that, when you click "Enter", the main website SWF is loaded as a new window, but not in a browser. Can someone assist with the actionscript on this one? I'm clueless.
GetURL Browser Differences
Hello well here is my first post !!
i have a simple flash menu at the top of my page the buttons of which run a simple get URL actionscript command such as:
getURL("mainlogin.html", "mainFrame")
to make the mainframe of the page change
I then have changed the "id" tags to "name" tags in dreamweaver.
The page works well on some browsers and some machines - but on others the mainlogin.html always opens in a new window.
please help many thanks
Russ
GetUrl Not Working If Www. Isn't Used In Browser
I made a navbar for my website using Flash CS3 Professional, ActionScript 2.0. The navbar works fine if you visit the site by typing the url in the web browser www. (mysiteaddress) .com. But, if the url is typed in as just (mysiteaddress) .com. Without the www. The GetUrl links do not work.
I tries just typing in text links with html and they work fine whether or not you use www. in the url in the web browser. This problem occurs in all web browsers, Firefox, IE 6, IE 7, Safari.
In my coding in the Get Url a reference the absolute url, tried it without www and tried it just as a relative url. Nothing seems to work. It wouldn't bother me that much but, when you search in google for my site the link does not have www.
Does anyone know how to fix this?
For reference, the site is www.brianmfrange.com. If you go to brianmfrange.com the Flash navbar getUrl links will not work.
*Also if I add _blank to the getUrl code the link works and opens in a new screen. Any other way does not work.
Edited: 07/09/2007 at 08:20:28 PM by bmfrange
GetURL To Open PDF Outside Browser
I am creating a standalone Flash projector in which the user will be able to click a button to view a PDF file, I am using the getURL method to open the PDF file and it opens in my default Internet browser instead of Acrobat Reader, which is kind of expected. Is there anyway to 'launch' to open in Acrobat Reader instead?
GetURL Problem With Browser
Having trouble with delaying a GetURL command. For some reason when I click on Models at the bottom left of the page, the browser IE6&7 goes into a loop/lock and the page never loads. It's like I aske to getURL 1,000 times over. It just keeps trying to connect and never does. Any help would be appreciated.
Here is the code I am using:
on (rollOver) {
if (_root.link<>page) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>page) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>page && _root.G<>1) {
_root.G = 1;
_parent["item"+_root.link].gotoAndPlay("s2");
_root.link = page;
_root.sh1.play();
_root.sh2.play();
startTime = getTimer();
this.onEnterFrame = function() {
currentTime = getTimer();
if (currentTime-startTime>2000) {
getURL("http://www.theelanagency.com/Models.html");
}
};
}
}
Here is the website with the problem. Click on "models" at the very bottom left:
http://www.theelanagency.com/Version6.html
Thanks in advance to all you pros out there.
GetUrl Not Working In Browser
I searched and couldn't find what I need to fix this problem, if there is something already posted please give me a link and im sorry I didnt find it.
I have a flash site and I want to open a new html window from flash. The actionscript I am using is:
Code:
on (release) {
getURL("URL Here, it was blocked by the forums", "_blank");
}
When I open the page that is hosted on my server the window doesnt open, the button just acts like it has no action tied to it. What is weird is that when I view the local file everything works fine, it's just when I open the file after I loaded it onto my server.
I am using a Mac with OSX and I tried this with Safari and Firefox, both browsers had the popup blockers turned off.
I was wondering if anybody has any idea about what could be happening and how to fix it?
Thanks for any help.
:EDIT:
Ok so after about 10 minutes of sitting here it has decided to work. Im going to leave this question on here if it stops working I can get help, but if the mods would like to delete this post please feel free to do so.
Can I Specify Browser Window Size With GetURL?
Hi
Using Flash 5...Was just wondering if there is any way I can specify the size of the new browser window when using a Get URL action using "blank" as the window parameter???
Would appreciate any help...
Thanks
Sonia
New Browser Window Options (getURL)
Hello again!!
Well, I'm opening a new browser window from flash and I don't know how to set its properties (size, bars,...) as in javascript with window.open
Any help?
Thanks in advance
marlowe
GetURL Open URL In Same Browser Window?
How can I get Flash MX to open a link to a new page in the same browser window?
esp, while using POST, ie: getURL("nextpage.asp", "POST");
I googled for help, and the closest clue I could find is when you use something like this:
code:
getURL("javascript:window.open('uploadown.asp','th ename','width=300,height=300');void(0);");
It forces it open in a new window. Is there a different version of javascript:window.open that makes it open in the current window?
Thanks!
Liam
GetURL Open URL In Same Browser Window?
How can I get Flash MX to open a link to a new page in the same browser window?
esp, while using POST, ie: getURL("nextpage.asp", "POST");
I googled for help, and the closest clue I could find is when you use something like this:
code:
getURL("javascript:window.open('uploadown.asp','th ename','width=300,height=300');void(0);");
It forces it open in a new window. Is there a different version of javascript:window.open that makes it open in the current window?
Thanks!
Liam
GetURL Open URL In Same Browser Window?
How can I get Flash MX to open a link to a new page in the same browser window?
esp, while using POST, ie: getURL("nextpage.asp", "POST");
I googled for help, and the closest clue I could find is when you use something like this:
code:
getURL("javascript:window.open('uploadown.asp','th ename','width=300,height=300');void(0);");
It forces it open in a new window. Is there a different version of javascript:window.open that makes it open in the current window?
Thanks!
Liam
GetURL Open New Browser Window
I've got the following on a button but when I launched it it doesn't work...
on (release) {
getURL("javascript:NewWindow=window.open('flash_ex periment.htm','myWindow','width=760,height=490,lef t=100,top=100,toolbar=No,location=No,scrollbars=No ");
}
Any direction appreciated
TVM
Deborah
GetURL Which Is User Define, Like A Browser
I need to create a text box that the user will enter in a url and then click a go button that will sen them the the website they entered. I have done the coding but it's just not right. I have the on release command and then
getURL (url) something like that, so I set url as an expression.
Did I not name the text boxx correctly? I named it url in the instance property...I am running Flash MX.
Any help would be awesome. Thanks.
Stacy
Browser Attributes Through GetURL Command
hey guys
i'm doing a school project in the standalone player, and i need to launch IE. is there something i can add, like javascript, to the getURL command so that the IE window that opens up doesn't have any toolbars/statusbars or any of that?
that'd be a HUGE help, thanks
Getting Rid Of Blank Browser Window On GetURL
Hi,
I would like to enable users on my Flash site to download files using getURL, etc...
how can i avoid the blank browser window from coming up? i've tried leaving the method blank, or using "_blank" and such, but even though the download starts automatically, i hate seeing that huge blank pop up broswer window cover my site...
thanks,
jason
Open Custom Browser Using GetURL
Hello.
I am trying to open an existing HTML file I have through Flash. I would like to open the file in a new window with no scroll bars or browser interface. Just a simple window at a size of 400x235.
How can i do this through Flash, or would i have to use a JavaScript on my HTML page. If so what would the script be?
Thanks everyone.
Peace.
[F8] GetURL Being Blocked By Popup Browser
Is there a definitive solution to preventing getURL, when called by an onPress listener, from being blocked when targeting a blank window? I've tried:
Code:
getURL("asfunction:_root.openLink,"+mct.url)
function openLink(url_str) {
getURL(url_str, "_blank");
}
And it still gets blocked by FireFox
GetURL Working In Player But Not In Browser
this is strange.. in the attached swf, the link to another site works fine if it is run in the player in flash 8, but when it is published and the html opened in a browser, the link does nothing at all. any ideas why?
Resizing Browser Window On GetURL
What is the easiest way to resize a browser window when using the "getURL" class? Is this possible? I know how to do it in HTML.
Maybe this?
urltestBTN.onRelease = function() {
getURL("http://www.test.com", "_blank", 'width=300, height=400' "GET");
}
Problem: GetURL From Exe When Browser Minimized
All,
I have an exe that is launching a url link on a button click.
Here's the code:
Code:
start_btn.onRelease = function() {
getURL("http://www.myurl.com , "_new");
};
Simple enough. If no browser windows are open, then a new browser window
opens and goes to the url. That's fine. However if there is a browser
window open and minimized to the start bar the url goes to that browser,
but the browser stays minimized.
So the question is, is there a way to force the browser to restore open
from a minimized state?
TIA
/B
GetURL Fails Silently In Browser
Hi,
I have a very simple Flash app that is basically just a set of links for a company home page. I've used getURL to direct the users to a number of web sites (e.g. Google, a train timetable website, a telephone directory website - and so on). It works fine when I run the swf directly on my test PC. However, when I run the html file (produced by the Flash Publish function), rather than the swf file, the app works but nothing happens wjhen I click on the links. It is as if getURL was being ignored.
I have tried this using swf files saved in Flash 8 or Flash 7 versions, and in IE 6 and 7 browsers.
Can anybody help. The purpose of the app is to provide the users with links, but as none of the links work it is pretty useless.
Ian
Browser Issue With Preloader & Geturl
I'm have two issues with a new version of my site that's almost complete. First is probably an easy one which is the geturl command. It always opens the links I click on in IE. I would like it to use the default browser.
link_1.onRelease = function(){
getURL("http://www.naturalropehalters.com/", "_blank");
};
The second issue I am having is with my preloader. It works fine in IE but just stops in Firefox. I had this issue before with an older version of the site so I changed the preloader two 2 frames instead of 3 and it worked but I lost my percentage info and just had an animation.
Here is the code which is taken from the Kirupa Advanced Preloader Tutorial.
Frame : 1
loaded_bytes = Math.round(_root.getBytesLoaded());
loaded_total = Math.round(_root.getBytesTotal());
total_percent = (loaded_bytes/loaded_total)*100;
_root.loaded_text = Math.round(total_percent);
startpoint = bar._x
_root.text._x = startpoint + (_root.bar._currentframe*2.25);
Frame : 2
gotoAndPlay(1);
The code and components are all part of the main move clip and not seperate. It looks like Kirupa's example works fine but my implementation doesn't.
GetURL Without Browser Opens A (new) Window
(sorry for my poor English),
I have a small problem.
I want to send data to a server to generate an e-card > like :
http://www.theserver.com/ecard.cfm?from="+sender+"&to="+receiver+"&message= "+text+"&language=ENG&picture=pic_"+currentpic+".j pg"
It works fine with : getURL("http://www.theserver.com/ecard.cfm?from="+sender+"&to="+receiver+"&message= "+text+"&language=ENG&picture=pic_"+currentpic+".j pg","POST") but the URL appears in a (new) browser window and that's not what I want ...
I want to send the data without any reaction of the browser ...
THX
GetURL, New Browser Window, PDF Problem
Has anyone had any problems with getting a PDF file to open in new browser window from Flash?
For example:
Code:
getURL("test.pdf","_blank");
I have a client using IE7 on XP that says they see a brief popup that disappears before it is rendered. No error message is received.
She is able to open a PDF from a plain html page
Code:
<a href="test.pdf" target="_blank">link</a>
Any ideas?
Should I try converting getURL's to javascript calls?
GETURL : PC Browser Window To Front
Hi,
We have a fullscreen projector .exe.
When we click links using GETURL, if the web browser IS NOT open to begin with, it comes to the front and shows the url specificed. If the browser IS already open however, the new page loads behind the flash projector, it looks like nothing has happened.
We're Mac based and the Jugglor/jweb plugins or similar which would *seem* to do the job from what I've read are PC based.
Does anyone know of a workaround to achieve this, or infact any Mac plugins?
Cheers!
GetURL And Closing Browser Question
I'm having some problems with the getURL command in Flash 8.
We have a product demo that runs and the user can click around and view various things about our product. At the end they click an exit button, it displays a small ending video saying "call us now" and all that jazz. Then I want the user to be redirected back to our main page. Easy enough, right?
Well for some reason It's not working. Since I just want the user to be auto directed once the outro video plays I have the code getURL("http://www.ABELMed.com"); on the last frame of the scene.
I have no idea why this doesn't work. It just passes right by it and goes on to the next scene in the list like it would if there was nothing there.
Alternatively I would like to be able to close the window instead, this would be an equally acceptable way to end the video. Not sure how I could do this though, I read I could use JavaScript inside the getURL but I couldn't get it to work.
Any help for either of these questions would be greatly appreciated. Thanks!
GetURL For Downloads & Browser Compatability
Im using a simple getURL, pointed to my zip file available for dowload. But I'm having browser compatability.
On ie it finds the file but brings up a nast do you want to download this file header bar on the page, which upon acceptance doesn't download the file, but instead reloads the flash page.
on safari and firefox, i believe there are no issues.
I tried adding getURL(... , "_blank");
to see if i can get around IE's stupid bar thing, but alas although it still works in safari the window pops up and just disappears again in IE.
is there a specific code outline for linking to a file for download?
Cheers
GetURL To Resize Browser Window?
What is the easiest way to resize a browser window when using the "getURL" class? Is this possible? I know how to do it in HTML.
Maybe this?
urltestBTN.onRelease = function() {
getURL("http://www.test.com", "_blank", 'width=300, height=400' "GET");
}
Open Browser Window - GetURL Actionscript
Hi all, i am working in flash 5...
i would like to be able to open a seperate browser window from flash
so i got easy popup windows 2.1 from macromedia exchange.
but 4 some reason the authers product is not workin the way its supposed 2 so i thought i would just fill in the actionscript myself to create a centered pop up window...
*************
"javascript:window.open('" add url add "','" add winName add "','width=" add winW add ",height=" add winH add ",top='+((screen.height/2)-(" add winH/2 add "))+',left='+((screen.width/2)-(" add winW/2 add "))+',toolbar=" add tools add ",scrollbars=" add scroll add ",resizable=" add resize add ",menubar=" add menu add ",status=" add status add ",directories=" add directory add ",location=" add location add "'); void(0);"
*************
this is the java added in the getURL function and i hav less than no clue on how to fill this out properly, could some1 please fill it out so i can use as example
NB the popup is in a mc, will this affect it in any way???
Thanks ever1 and hav a great holiday ( unless u work like me
protocol
Control Browser Window Size With GetURL
Just wondering if anyone knows what I would add to my actionscript for a getURL command to make the browser window that opens up a certain size, in my case, really small.
thanks,
D
|