GetURL( ?); Opening Remote Page
i'm haveing a problem opening a remote page from my main site. underneath is the code i have on my button, what i want to happen is when the user clicks the button www.peterchang.org opens, however when the button is clicked... Code: http://www.discochimp.com/www.peterchang.org ...opens and i get a 404 error. anyone know how to get round this?
Code: on (release) { getURL("javascript:window.open('www.peterchang.org','newWin','width=800,height=600');void(0);"); }
cheers, squid.
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-17-2003, 12:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Open A Remote Page With GetURL
Hi
This is silly but I cant open a remote page. The code i got on a button goes something like this.
on (relese) {
getURL(http:/pagehere.htm,"_blank");
}
Is there a trick to linking remote pages like that.
[F8] [AS2] How Do I Hide The URL On The Opening Page Of Geturl?
Hello
I have a simple geturl:
getURL("http://art.netlink.co.il/html/hibiscus.html", "_blank");
but that shows the address (http://art.netlink.co.il/html/hibiscus.html) in the address line.
I know there is a way with JS to hide the URL. how do I do that?
Thank you!
Opening A NEW Html Page From Flash In Opera - Simple GetURL Question
Hi!
I would like to solve the simplest problem I've ever met in Flahs, but I cannot succeed. It works in IE but not in Opera. However, I would like my webpage to work under Opera too.
I would like to open a new html page in my browser from Flash. So not embed an html page, nor use Javascript connenction or something - just make a hyperlink, as I would do in html (a href).
I write:
getURL("http://www.unideb.hu","_blank");
The IE works normally, opens the website of University of Debrecen in a new page.
While the Opera makes the following:
- opens a new window
- try to open a new webpage, but not the one I specified in the first parameter of the getURL method ("http://www.unideb.hu") - it adds the webserver name (the root directory, or what) as a prefix, and tries to open the address: "weboldalteszt.atw.hu///www.unideb.hu".
- meanwhile it shuts down the original page's Flash content, so I "lose" the original Flash page as well...
If you want, you can check it:
weboldalteszt.atw.hu
after the preloader click: "Magyar"
from the menus, choose "Linkek"
and click on the first blue "e" letter, in the first row
Normally, you should see the page: http://www.unideb.hu, as it works under IE.
Can anybody help to solve this very-very simple task - I hope I will be able to put a hyperlink on my Flash page under Opera - that shouldn't be so difficult :-)
Thanks in advance,
Alex
Opening Popup Page In Standalone Projection (no Html Mother Page)
Hello,
I am creating a standalone projector (CD with autorun).
This means my swf files are NOT contained within html.
I would like to, when clicking on button, open a popup html page with specific dimensions.
I was wondering if it is possible to do that, and what AS to use,
or if I have the obligation, to openpopups, to launch my swf files WITHIN html mother page.
HERE IS THE CODE OF MY BUTTON THAT WORKS (but does not open popup):
on (press) {
getURL("URL", "_blank");
}
HERE IS THE CODE FOR POPUP BUT DOES NOT WORK (opens html page normaly):
on (press) {
getURL("URL", "", "width=580,height=400,left=100,top=100");
}
thanks guys.
Opening Popup Page In Standalone Projection (no Html Mother Page)
Hello,
I am creating a standalone projector (CD with autorun).
This means my swf files are NOT contained within html.
I would like to, when clicking on button, open a popup html page with specific dimensions.
I was wondering if it is possible to do that, and what AS to use,
or if I have the obligation, to openpopups, to launch my swf files WITHIN html mother page.
HERE IS THE CODE OF MY BUTTON THAT WORKS (but does not open popup):
on (press) {
getURL("URL", "_blank");
}
HERE IS THE CODE FOR POPUP BUT DOES NOT WORK (opens html page normaly):
on (press) {
getURL("URL", "", "width=580,height=400,left=100,top=100");
}
thanks guys.
HTML Content From Remote Page
Is it possible for flash to draw HTML content from a remote web page? For instance, I want to be able to change the content in a part of the flash movie without going into flash and re-rendering it. The content would be in some sort of HTML or PHP page.
Flash Crashing When Calling Remote .aspx Page
Has anyone had this issue and solved it:
Note, it only happens on my mac (intel 20" iMac, software full updated).
My fla calls a .aspx page which returns xml data for the site content. For testing purposes while in flash I call the file using the complete address... eg: www.site.com/getinfo.aspx . In Windows this works fine and stops me having to upload to test and saves time. On my mac when I try test like above Flash closes and gives me an error. I have this code in my AS:
System.security.allowDomain ("http://www.testsite.com/");
Please if anyone has experienced this and knows how to solve it? I love my Mac I'd rather work on it.
Thanks
GETURL Help, Opening Php
hi guys,
i want to send a single value from flash to a php page, but keep it all in the same browser window. Here is what i have so far
on (release) {
getURL("displayscore.php", "value", "POST");
}
does this involve "_self " ??
thanks for your time, i am pretty new at flash so sorry if this is a stupid question!!!
Opening Exe Files Using GetURL
Hi,
I'm creating a sampler disk of work. The work files are exe files.
It seems that flash treats these URLs as downloads, even though they are stored locally on the CD. I'd love to be able to have these exe files run without the 'download' dialog box appearing!!! Am I missing something here? Is this possible?
At the moment, to run these exe files from a link in Flash, the user has to wait for the download box to appear and select the 'run from current location' option before the exe will appear. This is NOT GOOD, in my humble opinion!!
I should use Director, I suppose, but I like to keep the projector files smaller - and Director projectors can take an age to load - especially off CD.
Any hints or tips or ideas? I'd be truly grateful!
Thanks.
Using GetURL Without Opening New Window
Hey all, here is a question i managed to answer myself a while ago but now i just cant remember how this was made ... so i have a flash animation and a php script, i want on a certain event in the flash animation (i`ve managed to do that myself) to trigger the php script without anyone knowing ... just make a http request at the .php file with a simple get and do nothing else ... sound simple but believe me i`ve worked on this a couple of hours and no effect ... whatever i do i just get the .php loaded in a new window or the same one ... or something similar ... can anyone help ? is there another function i should use ? or am i just missusing the getURL ? Thanks in advance.
[MX] GetURL Not Opening In New Window
I have a button which, when pressed, will take me to a website in a new window. The thing is, even though I use the _blank parameter it'll still open in my active window in a new tab. I'm using Firefox and Flash MX. I would like it to open in a completely different window.
Code:
on (release) {
getURL("URL", "_blank");
}
Any thoughts?
[F8] GetURL Is Opening A New Application?
So i have my code all done for a button in flash 8 (ive tried it on cs3 as well).
on (release) {
getURL("http://www.macromedia.com","_self");
}
I test movie, click the button and it opens CodeLobster which is an html editing program on my computer. No files open in CodeLobster, just the program with a blank window.
When i press publish preview in html it opens up IE and shows the button but when i click the button it doesn't do anything.
I went through in file options from control panel to make sure that no files would automatically open/load in CodeLobster, yet from the test movie it still opens up CodeLobster.
HELP?!
GetURL Not Opening In Same Window
Hey,
I'm using this in frame 5 of my main timeline:
popoutDetails.offer.onRelease = function () {
getURL("http://www.google.co.uk", _self);
}
The flash is in a html page but when the user clicks on this it opens a new window. Any ideas why?
GetURL Not Opening In Right Frame
Hi Guys, I have read previous posts regarding the subject but they all seem to come to a dead end. Due to "security" reasons flash player does not open Urls LOCALLY using the GetUrl instruction in no other frame than "_blank". I am trying to show a customer a site which hasn't yet been uploaded online and I get a bunch of new browser windows every time I click on a button. Have tried the AllowScriptAccess="always" (doesn't work), have tried renaming the mainFrame to another name (doesn´t work) and running out of ideas here.
Has anyone encountered a similar situation? How did you solve it? Thanks in advance..
GetURL Opening 2 Windows
hello everyone.
i just added a blog to my site with a buttom symbol to get to it. When I test my page everything works fine, but when I upload it to the server when I go to the site it loads two pages of my blog page and the second one is the wrong address. it takes the web address and doubles it. Is there someone who can help. Thanks a bunch
http://www.scotlandorbust.com
Opening New Page BUT That Page Loads In Behind The Page You Are On.
Is it possible to load a web page from an action script (just like when you click on a button to open a new page)
Basically I want to create a Flash banner and somewhere along the "movie" have it launch MY web page and have it load in the background, behind the browser that holds the banner.
BTW - I have the permission by the person who will host my banner.
I just have to make it work.
Can this be done???
And how????
Thanks in advance!
Opening New HTML Windows With GetURL
i am trying to open a new window using the getURL command. I can do it using the _blank and it will open the URL in a browser window.. however, I do not know how to make the size of the window a certain size... can i specify the width and height of the new window that i am opening up? any help would be appreciated.
GetURL Not Opening In Correct Frame...
I give, Uncle, you da man... Get the picture here?
I am frustrated beyond all reasoning and would love to hear some advice for what I am trying to do. Basically, I made a nav bar with buttons and what not in Flash and am trying to import it in frontpage. I get it in FP inside a cell and also tried frames, but things aren't working.
How do you write it in Flash to open a page in a new frame without reseting the animation? I don't know how to explain myself correctly, but basically, if someone out there knows how to use flash and FP together I really could use some of your advice. I want my Flash animation to never be reloaded, except if it's part of my actionscripting. I don't want anything else reseting it or making it go back to ground zero. How would you do that in FP?
Please, if this makes sense to you offer your ideas, and if not, please tell me what you think I am trying to do so I can better clarify.
Thanks,
ZogDog
Opening Local Files With GetURL
I know this may sound simple and probably is, but I can't figure it out. I'm using Flash MX and want to know how to open a local file using the getURL command. I am using a mac to create the files and the end product will be a CD-rom for PC.
Here's an example of what I want. If I have a file on a mac drive and the path is machd/files/xxx.txt, how would I input that address in Flash using the getURL so it will open up that file.
Also for the PC side I will need how to specify the path for a CD-rom for the file to open.
Any help on this matter would be much appreciated.
Wedge
GetURL Opening Multiple Browsers
This is the situation:
I have a central swf in which external swfs are getting loaded. In these external swfs I have pictures which should be clickable and opening the picture in a separate browser.
In each external swf I define a mouselistener and put the correct getURLs on mouseUp when hitting the pictures.
This works perfect in IE, but in firefox it seems that when I switch external swfs (browsing the site) and click one of the pictures in those swfs, multiple browsers get opened (exactly the amount of times I've visited that external swf).
I've tried unloading the movie and even deleting the mouselistener object, but it seems that the object still remains in memory. I think when opening a swf, that the objects stay cached in some way, so visiting the same swf a couple of times and clicking one of the pictures triggers those multiple mouselisteners, causing them all to open a separate browser...
Anyone ever had the same problem and does somebody has a solution for it?
GetURL, Opening A PDF File - Problem
I am using this code:
on (release) {
getURL("checklist.pdf","_blank");
}
and it works fine on my computer, but when i upload it to the web server it will not work. The files are exactly the same and in the same structure as on my computer, so I don't understand why it will not work. I am using the same code as above to open a JPG image and that works just fine.
Any ideas? Thanks!
http://www.sherwoodgolf.ca
Opening Document In Different Frame Using GetURL
Hi everyone!
I'm having problem sith getURL and frame.
I have a flesh button menu bar. and I'm trying to put link to each buttons and trying to open the linked document in main frame which is named "mainFrame"
so I used
on(release) {getURL("address","mainFrame"); }
but IT DOESN'T WORK!!!!! : ( I been browing websites to find solutions and this forum to find solutions and none of them seems to work. if I set as "_blank", then it opens in blank frame but when I publish this flesh menu and put it in the left frame of my main document, I can see the menu but links won't work. (except mailto link)
PLEASE HELP : (
Problem Opening A New Window Using GetURL()
Hello everyone,
I am trying to use GetURL() to open a new Window where I can play a FLV file in it. I have realised when I use the following line of code as an actionscript of a button, the new windows opens without any problem. But when I try to open the new windows by placing the same line of code in the last frame of my animation, the new window gets blocked with Windows Blocker. This happens in both Vista and Windows SP2.
getURL("javascript:window.open('http://www.myWebAddress.com/photoalbums/','Albums','width=700px, height=540px, toolbar=no, scrollbars=no, resizable=no, menubar=no, status=no, directories=no, location=no'), void(0)");
It appears the windows blocker stop the new window opening once the user didn't request it by clicking. Can someone be kind enough to tell me what is going on as I wish to open a new window and not being stopped by the window blocker.
Thank you very much and have a great day.
Khoramdin.
GetURL Opening In New Window Instead Of Frame
Using Flash for a website for the first (always been just a backend php, asp, java programmer) and having the most frustrating time with what should be the simplest thing. I have a button that on the mouse down is supposed to load a link into another frame, but instead it opens a new window with the link. In the html file I have an iframe defined with the proper name, that matches the name placed in the actionscript. What am I missing?
Here is the HTML Code:
<iframe src="home.html" width="766" name="mainFrame" frameborder="0"><iframe>
Here is the Actionscript Code:
on (release) {
getURL("new.html", "mainFrame");
}
Thanks a lot for your help!
GetURL Without Actually Opening A Window? LoadVars?
Hey is there any way to use the getURL command without it actually opening a new page? What I'm really doing is sending variables to a php page and inserting data into a database, but when i use LoadVars and LoadVars.send it's not workin for some reason. So I tried a simple getURL and that also sends the variables to the page and that works for me, but I don't want the users to see a new window popup or for the one theyre in to go to a new URL... Any thoughts? Maybe I'll post my LoadVars code too just to make sure I did that correctly... but I copied and pasted it from another LoadVars object in the same flash program that is working correctly (both sending AND loading variables)... thanks for any help!
Opening A Window Without Adress Bar With A GetURL
I explain everything in the title...I have a button, with a getUrl action, but I need to hide the address bar form the users when the window appears, how can I do it? through javascript?? any idea? thanks a ton!
HELP GetURL Results Twice Opening Of Windows
Hi there,
I'm working in a big firm with big team. We have many links to browse daily, internally through a server to open the files and work. To make it easy for the team, I have designed a small tool, something like favorite links and gave all the urls. Now comes the problem. I used the get URL function. The getURL function works but it is coming in twice, in two windows like a repeatition.
The problem is the getURL is actually working as per its defined function, it is opening in browser. And at the same time, as per the script, it is also opening from the server too. So two ways it is working. But I need to get the result only in one window. Either in browser or in normal window.
Please help!!! Example of my link is given below:
on(release){
getURL("R:/abc/123/xyz/files", "_blank");
}
If I open in html the link is working only one time. But published exe is resulting in two windows for getURL function.
Is it because of the internal server?
Is there any alternative way similar to getURL?
GetURL("javascript:function()") Does Not Work With Framset With Remote Source
Take a look at
http://www.rizon.be/frigo/js.html
click the text, you get a msg box, right ?
now go to
http://users.pandora.be/epowder/IE.html
This page is a frameset with one of the frames' source set to the first link.
When using Internet Explorer 6, the msg box does not show.
It works fine on Netscape based browsers and Safari.
The text is a button with the following code
Code:
on(release){
getURL("JavaScript:someFunction('and its text')");
}
The javascript function, simply:
Code:
function someFunction(text){
alert(text);
}
After looking for the cause for hours, i found that this issue only occurs when the source is set to a different domain. Which is always the case with URL forwarding using frameset.
How can i fix this ? Some of my clients have a frameset based URL forwarding.
thanks a lot
epowder
Opening Pop Up Windows With A Variable Passed To GetURL
Hi,
I have a flash movie that opens separate pages with a url defined by the variable url:
the code looks like:
url="http://www.mydomain.com/"+var1+"/"+var2
getURL(javascriptpenNewWindow(url,'winname','hei ght=408,width=800,left=0,top=0,toolbar=No,location =No,scrollbars=No,status=No,resizable=No,fullscree n=No')
in the html file I have the openNewWindow function defined by:
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
my question is - it doesnt work, but it does if I hardcode the url instead of using the variable. Can anyone help?
thanks
Kevin
GetURL Not Opening Link In Correct Frame
Flash CS3 Pro:
Ive had a hard time with such a simple task. Im making my nav bar and i cant seem to get it to redirect the page to the correct frame.
Here is my frame layout
<frameset rows="15%,70%,15%" border="0">
<frame name="topframe" src="topframe.html" noresize="true">
<frameset cols="20%,60%,20%">
<frame name="leftframe" src="leftframe.html" noresize="true">
<frame name="masterframe" src="home.html" noresize="true">
<frame name="rightframe" src="rightframe.html" noresize="true">
</frameset>
<frame name="bottomframe" src="bottomframe.html" noresize="true">
</frameset>
my simple flash script to redirect that i got from the flash help in the program as well as on the net everywhere.
on (press) {getURL("leftframe.html", "masterframe");
}
I've tried different ways of putting masterframe in there and cant get it to redirect to the frame it just opens up a new window with the correct link. Please any suggestions would be helpful. I've tested normal hyperlinks and they all target properly. This behavior by flash is what a hyperlink does if you spell the target name wrong. It doesnt know where the frame is so it justs opens a new window. Thanks all!
GetURL Button Opening A File That Doesn't Exist
I have a button set up with getURL to open a asp page.
getURL("set.asp","","GET");
The files are stored in the same directory and works fine locally, when I put them on my website still in the same directory, when I click on my button it tries to open a file that doesn't exist.
the directory goes
/myfiles/settings.html
when the button is clicked I want it to open
/myfiles/set.asp
but what it tries to open is /myfiles/settings.html/set.asp
Any suggestions?
Help Opening New Page
Ok I am designing in Flash MX, and am having trouble opening a new page. What I want to do is after my movie ends I want to open in the current browser my home page for my website. I was trying to use the geturl action with _self after the last frame, but when you open the web page(flash movie) it just flashes and the home page for my web site comes up behind it. If anyone can point me towards what I am doing wrong I would appreciate it. Thanks
Opening A New Web Page
hey people, i got a lil prob concerning opening new web pages in flash.
i am trying to make a variable in a dynamic text box a link to open a new page. the box is enabled html, but it doesnt seem to work.
this is a more complex problem since the link is grabbed from a database, the link is in plain text form.
grabbing the data off i have this code.
Code:
c.onLoad = function() {
for( var i = 0; i< this.n; i++){
showlinks.htmlText +=
"Site Name Site Link" + "<BR>" +
this["title"+i] + ": <a href="" + this["link"+i]
+ ""target="_blank">" + this["link"+i] + "
" ;
}
};
when i scroll over the link it the finger comes up, but the link doesnt work.
Opening Up A Page
anyone know any actionscript that will let me open up a webpage that a user types in?
a fla would be great, but any help is thanked for.
i use flash mx 2004 pro
Opening A New Page
I just built a site using dreamweaver. On the opening page, I have a flash file that contains buttons... how do i link the buttons in my flash file to my HTML pages... so that when I click the buttons in the flash file, the html pages open up?
-thanks
Opening New Page
Ive made a really basic button, that has this code attached...
on (press) {
getURL("gallery.html", _self);
}
This should replace the current page with the gallery page, but it doesnt. In Firefox it makes a new tab and in explorer it opens a new page.
What is the code for making it open in the same page?
Thanks,
Morgn.
Page Opening
Does anyone know how they make an effect like http://www.webdesignagency.net/ has for their portfolio? The way you can pull the page open with your mouse and put it back freely.
Thanks in advanced.
Buttons Opening To New Page
Ok, i think or at least thought what I wanted was pretty simple. But i'm not so sure anymore. I'm new to Flash mX and i'm just trying to make a website as something to do. Now I have a bar to the left with my buttons on it, all I want it to do is when I click say "home", i want a screen from the top or right to open up with the information. And then same for the next link and etc. But i'm stumped on how to do that. I probably look like quite the newbie, but hey, I am.
Detect Opening Page
Hello,
Say I have an xml page called bellyflop.xml, I want to put a link in it which opens a swf. Suppose I have another xml file called quoit.xml with a link to the swf. How do I get the swf to behave differently depending on which file opened it? Is there a way I can specify what happens in the link itself or do I have to write some script in the flash that checks the name of the xml page?
Any ideas??
Help With Page Opening Needed
in my attatchment to this post is a menu I am trying to make in a website, and the menu opens the page I want it to open, but the menu doesnt stay up while the page is open, and I want the menu to stay aswell as the page! click the home button in the menu to open the page, HELPPPP, you also need the attatchment in the next post I will make, the next attatchment is the page that the menu is supposed to open.
Page Opening Wrong...
I don't want to retype my whole problem, so just go to
http://www.flashkit.com/board/showth...hreadid=517294
its a thread in a different place that has my problem, and you can answer here. please help
Load Ext. Swf On Opening Of Page
Is it possible to load an external swf into my page without pressing a button?
ofcourse it is possible to load an external swf to an empty moviclip using a button with a sript like: on (release) {loadMovie ....
but i would like to do it without having the visitor pressing a button first..
-x-
Opening _blank Page
Hello,
I have a flash movie which I want you have a button which opens up an HTML page that is sized to certain specs. This code snippet works in another Web site.
On the site I am currently editing when I click on the button the IE explorer bar wants to block the pop up -- I have pop up blocking OFF. This site is an LMS/CMS (Content Management System) on another server.
I basically have a server (not mine) which I have access to. I have a mini Web site there. On that Web site there is a frame which opens up my swf -- which is on my server. The html file I want to open in a blank is on my server too. It will not open through.
Here is the code:
on (release) {
getURL("javascript:NewWindow=window.open('quiz_tes t.html','myWindow','width=550,height=500,left=20,t op=20,toolbar=No,location=No,scrollbars=No,status= No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Any ideas?
Odisey
Opening A Web Page In The Same Window
OK,
so I’ve tried to open a web page in the same browser window as my Flash animation. I used the getURL function the _self parameter and still it opened in a new window.
The code was :getURL(http://www.google.com,_self); I’ve tried every combination of parameters of the getURL function :POST ,GET ,_blank,_parent,….,and still it opened my Google site in a new window.
Please help or, give me same idea at least of what I did wrong. How do I make a Web page open in the same window as my animation, the web page substituting the animation?
Opening Page For Website, How...?
hi all!
just playing with the idea of an opening page for my website.
now i understand that without an opening page my 1st page is index, but with an opening page would that opening page now become index and my old index would now become whatever?
Getting Off I-frame After Opening New Page
Hi guys, I have a problem with an i frame. I have an html page with a flash intro file embedded into it that is being loaded as an iframe on another page. The problem is that my actionscript on my last frame on the flash has a link to the "home page". But when the link executes it loads the home page but still within the iframe. So all my pages from the website load as i frames instead of loading the actual pages on the browser. Is there any way to load the home page off the i -frame? I wouldn't want to open a new blank page but just to open up the page in the same browser but not on that i frame I ahve. Anyone have any ideas??? Thanks in advance!!
danny
|