Local/HTTP Detection
Is it possible to detect whether an SWF file is launched locally or through a HTTP protocol? Any hints/tutorials?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 12-30-2006, 12:18 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Local SWF Accessing XML Over HTTP
I have not found a way to get my local SWF (which will later be a projector for a CD-ROM) to access an XML file located on www.mydomain.com (where mydomain is my company's server). I've tried using the System.security.allowDomain('http://www.mydomain.com'), i've tried using a crossdomain.xml policy file on our server, and even having a local php passthru script to try and retrieve this--but to no avail.
Ideally, I don't want the CD to have to force the user to install or update anything, just retrieve the XML data i want from our server. So far, the ActionScript documentation has been so vague it's impossible to get this to work.
Please help!
Can Local Connection Control HTTP Overlap?
Hi all,
This is my first time in this forum.Now I'm facing with a big problem.Pls kindly help me all
I have an Web based flash games and what I need to do is "I need to restrict the login browser to make one PC can run one login at a time".
Let say,While the player is using the games , then if he open another browser and want to play at the same time.The game cannot permit to play the game at the same time on this same pc.
So can I use to control that by using Local Connection?
Thanks in advance.
Writing Files From Within Flash (local, Not Http)
Is it possible to generate a text document from Flash? I am trying to figure out how I can put a string into a new text document that resides local to the SWF. I know there are differences in security when you are local vs. http, so if anyone knows of a way, i'd greatly appreciate a point in the right direction.
Cookies work when you're using the same machine, but i'd like to use a text file to save some settings for use with a USB Flash drive or CD.
Page 2 - Writing Files From Within Flash (local, Not Http)
Quote: Originally Posted by Tann San Heya, I think it will only execute .bat and .exe files. Other file types get opened by whatever the OS has setup to execute that file although as you've noticed some don't seem to work at all e.g. somefile.lnk
I think you might just have to get used to the brief flicker of the command prompt. Before they restricted most chars in the fscommands file path arg I would of recommended:
saveData.bat > NUL
which would usually hide all batch file output and probably the command prompt along with that.
ah. I'll probably switch to another language to make the exe. One that can definitely run as hidden or minimized on its own. Thanks for the help, this thing is looking good!
Local Or Online Detection
Hi,
when I develop locally flash projects with external XML, I use a xml link like this :
file.load('xml/home.xml');
But, when I put the project online, I don't want to have the XML file in cache so I use this line instead :
file.load('xml/home.xml?nocache=' + random(65000));
So my question is, is it possible to detect if I'm calling the flash locally or online???? So this way, I would not need to change manually the path
thank
turb
Flash 5 Server Vs. Local Drive Detection
Is there any way for flash 5 to detect whether it is being run off a server or off a local drive?
I ask because I am using a getURL that is sending a variable to a html page. This works fine off the local drive using:
getURL ("mypage.html%3FmyVariable="+Number(variableNumber ));
And off the server using:
getURL ("mypage.html?myVariable="+Number(variableNumber)) ;
But neither one of these works on the other. So if I can detect whether it's on a server or not I can write a simple if statement.
Any help is greatly appreciated,
Gracias
Flash Detection: Install From Local Source?
Hi folks,
Is it possible to have the Flash 7 player install from *local* source files?
In other words, the end-user has a Flash presentation on CD. If the player's not detected in their browser, they don't have to head out to the Web to get it......the files are right there on the CD.
Is this possible for both Mac & Win? If so, where can the source files be obtained?
Many thanks,
Jason Paris
Local Storage Settings Panel Event Detection
Hi, is there a way to detect the close event on the Local Storage Settings Panel of the Flash Player, or a way to know it has been closed after a System.showSettings(1) call ?
thank's
G
HTTP Status 404 Http://localhost:8080/flashservices/index.html
Why if I type "http://localhost:8080/flashremoting/gateway" (flashremoting is the context root)in the address bar, I will get a HTTP Status 404 error: The requested resource (/flashservices/index.html) is not available.
If every thing is ok, it should show a blank page, right?
Thanks
By the way, if I set gateWayUrl to "http://localhost:8080/flashremoting/gateway", I will get an error of "flashgateway.adapter.NoSuchServiceException: No service named flashremoting is known to Flash Remoting MX."
if I set it to "http://localhost:8080/flashremoting/", I will get an error of "NetConnection.call.BadVersion"!
I am quite confused now, can anyone help me out?
I am using flash mx 2004 pro, flash remoting mx with components installed. And tomcat 5.0
[F8] Links In Single Swf To Http:// Http://www And Https://
Hey everyone, I have an swf with several links to "http://www.infiniteguitar.com/blahblah.php". You can see the swf on the top left of the site here: http://www.infiniteguitar.com/ where it says "Lesson Links".
My problem, is that the links only work when the address bar in the browser specifically says "http://www.blahblah" with the "www". However, if I used the following URLs, the links don't load:
http://infiniteguitar.com
https://www.infiniteguitar.com
Is there something I have to do in the actionscript to make the links load no matter what the beginning of the URL says. I'd like the links to work on secure pages as well as when the "www" is not present in the URL.
Thanks for any help!
Local Runtime Sharing? Local External AttachMovie?
I've been trying and searching through the forums but I think I am searching for the wrong keywords.
Is there ANY way of setting it up so that I can use attachMovie/removeMovieClip on external swf's? I've found these runtime sharing options but I am unable to make much sense of them. What I am creating is something that would always be run locally on a machine and not up on the web.
I want to use this one main 'engine' type of file that loads heaps of different movies into it. All of them swf's. Of course I realise that I could do things the loadMovie way, but it seems in this case like an option not really suitable for what I want to do.
Thanks for any tips
Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button
on (release){
getURL("folder/folder/file.htm","_self");
}
i also tried scripting it on the time line when that didn't work.
any ideas?
Thanks,
kool
User Defines Local Image And Add It To A Local Swf(CD) ?
I have to run flash (swf) locally, which in my case means a CD.
What I want to do is allow the user to have a browse (local) function and pick an image from his hard disk and use that image to see a flash movie (swf) with his/her selected image in it!
Then after the user watched the movie with his/her photo on it, the user should be able to send this movie in a site(upload it). then naturally the user should be able to see it online at that site as well!
So my questions are how to have a browse function that puts the selected image somewhere I would like it to and then use this image in a flash movie (that will be a game with the photo on it).
And I guess then to send it online I do not really have to publish a new swf with the image in it, I can send seperately the swf (game) and the image file to the server through php? Did i get that right?
So far I know flash 8 has a new class for browsing, but how do I take a file selected from a user locally and use it in the movie again locally? load variable can do that but I should know the name of the file selected and also be possible to even select a local file??
Basically it is for educational movie. It will run from a CD. there will be many interactive exercices. At the end of the section there will be one game that in order to make it more personal I want to allow the users to add their photo at the game. So far everything should take place locally. Then if the user desires should be able to send in a specific site the movie he/she just watched(which means with their photo in it).
ANy ideas how I do that.
Even general ideas will help!
Thank you
Problem With Local File And Local Link
Hi to everybody,
I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html
When I click into some link that point to some local file like as:
c: est est.htm
I don't obtain nothing the page still remain index.html.
If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!
How can solve it without upload all file everytime into some web server and without install some local web server?
Thanks in advance to everybody for any tips and sorry for my bad english!
John
GetURL Works In Http://www.site.com But Not In Http://site.com
I'm using a getURL function to pass some querystring parameters which changes what content is displayed on the page. The function works correctly on the address 'http://www.site.com', but for 'http://site.com' there's no action at all aside from the cursor change. The two addresses are pointing to the same files. The function is as follows:
Attach Code
this.onRelease = function() {
getURL("http://www.site.com/Default.aspx?Region=1", "_self");
};
How Can I Get A Local Path Of The Local Disk With Swf
Since FileReference.download() doesn't download multiple files, I want to download files with php ftp_get by FTP.
I need to pass the local path of the local disk where I can download the files from a remote serveur. How can I get a prompt to have a user choose a folder on his computor (local disk), if any way possible?
Loadmovie --- Http://www.mysite.com ::: Http://mysite.com
Ok, I'm aware that when using loadmovie and embedding your main Flash movie into HTML, absolute URLs are best used.
Does anyone know why they only work with the http://www prefix rather than http:// ?
Or more importantly, anyone know how I can get round it?
Here's a couple of examples:
http://www.telekin.co.uk/outback/
http://telekin.co.uk/outback/
Click on one of the 3 boxes in both instances and you'll see what I mean.
I've tried searching but got nowhere. Anyone else had this problem?
Thanks in advance!
Http://www.domain = OK Http://domain = ERROR?
I have a page that if the URL path in the browser is http://www.domain the page works fine but if the path is http://domain I get that message informaing me that a script is causing it to run slowly and to disable running the script. I really don't understand how to troubleshoot this as it is the exact same page either way. I dont really understand why that can cause flash to malfunction?
Any ideas?
Thanks.
Local To 'other' Local Coordinates
Hi, I have a clip with twenty points in it.
I am trying to do a point hit test with these and a shape a few clips down - but nowhere near the _root.
I have used local to global before but would really like to just see what the coordinates would be on the other clip.
?? Cheers, M@)
Local Exe Can't Load Local Swf's Into It?
Hi!
I have created a presentation with Flash that has an exe file which loads swf files to it with loadMovie command.
Some of our clients have had problems with this. They can execute the exe file fine, but it doesn't load any of the swf's or other external files into it. All the files are local on users computer on the same folder.
At some computers this works fine, so it seems like it is some sort of security thing that an exe file cannot load anything external to it. Has anyone had similar problems?
-sumo-
Local Time Of My Country And Local Time Visitor
Dear all,
For a client's website in Holland, I would like to display the current Dutch date and time and I want to show for instance American visitors their local time.
Could anyone help me by providing the code for the Dutch time (as I know how to display the local time of my visitors)?
Thank you very much!
Michiel Schenkius
Detection Inside Detection
To serve as a collision detection I've made a stage-size movieclip.
Code:
onClipEvent (enterFrame) {
_root.vlak.onRollOver = function() {
trace(1);
};
}
Inside this movieclip is a button with a move over frame changing its color when the mouse is over the button.
But when the original movieclip is detected with an Rollover, the button stops working. It keeps focussing on the entire movieclip "vlak" and doesn't notice anymore when the mouse is over the button insice the movieclip. Is there any way to fix that?
Http: // Oh My God
I've got this actionscript on the send button of a flash form mailer. I sourced the mailer from the flashkit fla library.//
on (release) {
loadVariablesNum ("mail.php", 0, "POST");
-----------------------------------------------------------------------
It then calls this php file...//
<?php
$TextVariable = '&results=';
$response = 'your message has been delivered.';
echo $TextVariable;
echo $response;
mail ("scottclarkuk@hotmail.com", "mail from site", "
your message has been delivered.:
name: $fullname
email: $address
user comments:
$query
Sent From : $REMOTE_ADDR
");
?>
This works on some systems and I've had mail come thru from other systems BUT on others the following is displayed in a new browser window...//
HTTP Error 405
405 Method Not Allowed
The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.
Please contact the server's administrator if this problem persists.
HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HE LP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP !!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!!HELP!! HELP!!HELP!!HELP!!HELP!!HELP!!
What does this error message refer to and how can I resolve it? It seems to me that the problem doesn't lie in the actionscript or the php, as it has been working for some systems. So.....
Thanks for taking the time to read this
Scott
How Is This Possible?http://www.kff.com/
plz someone tell me how can i give this reflection in my site using my name (furqan) if there is possible, then plz provide me any source code or link about this
thanx
Furqan
XML From Http
Ever spent weeks making something, then when finally uploaded you remember that flash can't reqest XML from an http address. I have.
I need help.
There must be a way.
Http://www.dhtmlshock.com/
It's not a question but an url :http://www.dhtmlshock.com/
Here you can find how to center your pop-up window, uuuhm even a timer on the your MIE, it's all here
I found it to be quite usefull...
Http://www.nixthinx.com -
I have come up with my own website. It works great on a PC. but when I see it on a Mac, I get this weird band in the popup window at the bottom. I tried changing Scripts, but nothing seems to work.
I dont know what the real problem is...but if it has anything to do with Flash..any help is welcome!
http://www.nixthinx.com
Nikhil
Http:/20%/www. PROBLEM
my problem is:
text1="bla";link1="www.bla.com";
BUT MY OUTPUT IN EXPLORER IS
http:/20%/www.bla.com
can any-one HELP?!!!!
Http://www.volkswagen.co.uk
anyone know if there is a an open .fla for the kind of nav/menu on the homepage of http://www.volkswagen.co.uk
Http/1.1 403 Forbidden Mac IE?
I asked the following question a while back and someone directed me to the moock.org website. The problem that they were referring to at the moock.org website was somewhat similiar but the fix did not work. The problem that I am having is I get a http/1.1 403 forbidden error message when getting redirected using getURL from one flash movie to another flash movie on a macintosh computer running IE5? The crazy thing about it is that if I do a refresh when I see this message the page appears as it should???? It works on all other combinations except for mac and ie. I have both files in the same directory and have tried everything I can think of. I am using Flash5. Does anybody have any idea on how I can resolve this issue.
LoadVariables Without Http?
it seems like anytime I try to use a loadVariables command and I give it just "somescript.php" or "somescript.jsp" it doesn't work? But if I put the absolute URL, it does work. Is this a known issue? do I need Flash MX? what gives?
Http://www.rui-camilo.de/
preloading:
can someone tell me how to do a gallery with buttons that preloads like in this website http://www.rui-camilo.de/ ??
how do the buttons work in sequence and know which one is loaded etc., ?
Http://www.johnnyenglish.com
Hello
Can someone help me track what the swf file URL is on a movie site for Johhny English...http://www.johnnyenglish.com
I need to try and grab the frames of Johhnny English absailing in the loader sections...
If you check http://www.johnnyenglish.com/home.swf
Once inside there is a sequence of him absailing from a rope...sometimes its a different loader - but sometimes you will see it..
I wondered if anyone had one of those swf extractors that could tell me teh URL of the loader sequence so I can grab those frames of him....Of could anyone email me those frames or images? - I ahev been asked to work on a DHTML for this site and the cleint wont supply the absail images even though they request an absail DHTML!!!!
Also
I am after an application called Gordon 1.1.7
The Gordon 1.1.8 version is readily available - but it means I have to repay for a new serial number - I lost my old application of 1.1.7 and can't find a way of getting it anymore...
Can anyone help if so can you email the application to me at
julian.pranskypoole@blueyonder.co.uk
Thanks so much in advance
Jools
Http://www.swanyhunting.com/
I absolutely love this site. I have a few questions on it an di was wondering if anyone could help answer them. First, when the pages loads and the cougar seems to fade in with a nice glow. Does anyone have an FLA or can even point me in the direction of how it's done. I'd really like an example of this effect so i can learn it. I really like it and am not quite sure how it's done. Secondly, anyone know who designed this site?
Http://www.yourmomrocks.net/ma/tca.fla PLEASE HELP..
I know this is probably easy.
If some one would take a look at this file and tell me why this button is bring the movie back to the beginning I would appreciate it.
http://www.yourmomrocks.net/ma/tca.fla
The file is incomplete however if you would go under Domonstrations, then WheresMyRebate.COM, the button is called Rebate Tracking..
I am using MX 2004 and trying to create a projector.. Thanks
Http://www.evolvemedia.com/
Hey yalls-
I was wondering if anybody had any idea of how to create a navigation bar like the one on http://www.evolvemedia.com ...
a cliet of mine loves how it works....and to be honest...it is quite nice.....the problem is, i don't know how it's done...
any help would be great!
Thanks in advance!
-Brian
Http://www.frederique.ch
hello,
I present myself: I am a 36 year old young woman, impassioned by the cinema, Internet and Flash.
I invite you, by the present one, to come to visit my 4 galleries of animated photographs, dedicated to Mr. Keanu Reeves and to the Matrix trilogy, on the homepage of my website to the following address:
http://www.frederique.ch
I will be grateful to you to give me your opinion and I thank you in advance.
please have my best greetings
Http://www.goredsea.com
I did not found this site in this forum - http://www.goredsea.com/EN_gomaps.aspx
If somebody knows how is possible make that zoom component or some tutor. would be good for me.
I make on one map and i would like have the zoom possibility too.
Thanks for all topics.
I like this site.
Jan
HTTP Referrer
Is there a way using actionscript to determine which page (url) the user came from?
Http://www.constructiondurable.com/
http://www.constructiondurable.com/
I really like this website because it's full flash but still make's scrollbars appear when needed!!???
How did they do that?
Please Tell Me...http://www.tronicstudio.com/
Man i'm just down and out on the forums I can't get help from anyone. Please, if you have any advise on this please post below. I searched and searched for three days and I just can't find what i'm looking for. This site:
http://www.tronicstudio.com/
They have a style on the windows that I need. I basicly viewed this site on a 12 inch monitor and on a 22 inch monitor and found that they both looked the same how can I get my pop up fullscreen to automaticlly size up to the monitor?
Help With A Http:// Uploader?
I have a website that the client wants to add a client access section to. They want thier clients to have access to files on the server. Normally this is done through ftp, but they want it done through http. how hard is that to set up through flash. does anyone have any links to tutorials, it would be greatly appreciated. Thanks!!!
Load Jpg From Http/ftp?
hi!
here's my problem; i need to load a jpg from a http/ftp source because it changes recently. how do i do this?
thanx
bender06
Http://www.manipulator.com/
I am trying to figure out the code for a navigation like http://www.manipulator.com/.
I was wondering if there were any movies or tutitorials I was missing that would help.
Thanks
How Do I Get The Http Address?
i am trying to get a flash ".swf" file to set a variable for the url that the file is embedded on. i know there has to be a way! I am using the " this._url; " to get the url, but all it gives me is the url to that swf file. I want the entire page's address to be my variable, not the swf url. I am trying to send that variable over to a php page to write it to mysql, but i can't get it to give me the right variable.
lvOut.address = this._url; //this sends the variable to php
it does send the variable, but the variable is not the full url to the page it is loaded on, it is the url to the flash file
Please help!
I would like example codes, not other sites or posts! Thanks!!!!
|