I Can't Get The Swf HTML Domain
the script:
import flash.external.*;
var page_href ="unknown"
if (ExternalInterface.available){
page_href = ExternalInterface.call("location.href.toString");
I opened a text box with the car "page_href".
I put the SWF inside my web and saw "null" inside the text box.
What to do?
Adobe > ActionScript 1 and 2
Posted on: 01/22/2008 05:25:08 AM
View Complete Forum Thread with Replies
Sponsored Links:
I Can't Get The Swf HTML Domain
the script:
import flash.external.*;
var page_href ="unknown"
if (ExternalInterface.available){
page_href = ExternalInterface.call("location.href.toString");
I opened a text box with the car "page_href".
I put the SWF inside my web and saw "null" inside the text box.
What to do?
View Replies !
View Related
Getting Domain Of HTML Page That Embeds SWF
I want to know the URL or domain of the HTML page which embeds my SWF file. Although I can get the domain of the SWF file itelf via LocalConnection.domain, this doesnt work when the SWF and HTML files are on different servers. A ugly workaround would be to call a PHP page and let that get the domain, but I was hoping that a client-side solution exists. Can anyone provide me with tips on this?
View Replies !
View Related
MX HTML W/ Forwarded Domain...advice Needed
hey everyone,
i have a quick question i was not able to find the answer to in either the forums, or searching google.
say i have a domain name registered, which we'll call www.mydomain.com. i have this domain name forwared with masking to www.homehosting.com/home/mydomain.html.
my html that accompanies the .swf looks like this:
TITLE>mydomain;</TITLE
meta name="copyright" content="Copyright (c) 2003-2004 mydomain."
meta name="description" content="blah,blah,blah."
meta name="keywords" content="blah,blah,blah"
meta name="Author" content="me"
meta http-equiv="content-language" content="en"
meta name="rating" content="general"
meta name="robots" content="index, follow"
meta name="googlebot" content="index, follow"
meta name="distribution" content="global"
meta name="revisit-after" content="7 days"
meta name="expires" content="never"
meta name="MSSmartTagsPreventParsing" content="true"
meta name="doc-rights" content="Copywritten Work"
meta name="classification" content="Web Design"
my questions are:
1. is all of the above html that i added all for nothing since the domain is forwarded? and if not,
2. when submitting the url to google or yahoo or whoever, should i use www.mydomain.com or the "real" address www.homehosting.com/home/mydomain.html? or doesn't it matter?
thanks for any insight,
s.
View Replies !
View Related
MX HTML W/ Forwarded Domain...advice Needed
hey everyone,
i have a quick question i was not able to find the answer to in either the forums, or searching google.
say i have a domain name registered, which we'll call www.mydomain.com. i have this domain name forwared with masking to www.homehosting.com/home/mydomain.html.
my html that accompanies the .swf looks like this:
TITLE>mydomain;</TITLE
meta name="copyright" content="Copyright (c) 2003-2004 mydomain."
meta name="description" content="blah,blah,blah."
meta name="keywords" content="blah,blah,blah"
meta name="Author" content="me"
meta http-equiv="content-language" content="en"
meta name="rating" content="general"
meta name="robots" content="index, follow"
meta name="googlebot" content="index, follow"
meta name="distribution" content="global"
meta name="revisit-after" content="7 days"
meta name="expires" content="never"
meta name="MSSmartTagsPreventParsing" content="true"
meta name="doc-rights" content="Copywritten Work"
meta name="classification" content="Web Design"
my questions are:
1. is all of the above html that i added all for nothing since the domain is forwarded? and if not,
2. when submitting the url to google or yahoo or whoever, should i use www.mydomain.com or the "real" address www.homehosting.com/home/mydomain.html? or doesn't it matter?
thanks for any insight,
s.
View Replies !
View Related
Base Parameter In HTML For Flash Cross Domain Problems.
I have a Flash file that reads in XML.
I want to access the Flash file from another domain.
Had a lot of problem here.
But have almost solved it.
If I add the 'base' parameter in hte HTML and give the directory of the Flash file on the original domain, then this works.
Problem though: I access the XML file by calling it with a random number at the end - to make sure a fresh copy is loaded everytime.
It works with all browsers, apart from IE. : (
Weird: you load up......... and it works!!
You refresh: it fails to read the XML.
Within the Flash... I explicitly reference the XML file through the full URL - still no joy.
What am I doing wrong?
I couldn't find any help on the base parameter.
Any help would be appreciated.
Thanks.
Jam
View Replies !
View Related
Cross Domain Solution: Could Not Get Bytesloaded Swf External From Other Domain
hello: good evening
I leave my problem here:
I am make a measurer of internet speed that consists one preloader (swf1.swf in www.dominio1.com) who loads a swf (swf2.swf in www.dominio2.com)
The file swf2.swf visualizes perfect in swf1.swf without problems although on swf1.swf it does not take the variables from swf2.swf to show the rate of transference, total remaining time, kb loaded and kb total.
If I use crossdomain.xml on the mother directory of the site, or both sites, the problem it persists.
I need that they indicate to me like making solve this disadvantage
if somebody knows where I can obtain a gratuitous measurer of speed, please, to indicate it:-o
Thanks you very much for all
any questions???
Edited: 01/20/2007 at 11:16:44 AM by juanctkc
View Replies !
View Related
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.
View Replies !
View Related
Domain Help.....
I guess I am at a loss....this is my first domain..and havent had any problems...SO FAR!! Until now...
I have a domain hosted by http://www.one2host.com
Pretty cheap...fairly good service and options..But all of a sudden...my HOSTs web site is GONE!
It all started 5 days ago..I could get MY domain up....would load...I tried to FTP...that was down also...I go to their site..and shoot off an e-mail about the problems...next day..my site was back up..(thought maybe server went down...oh well..) But now everytime I tried to go to my WEB HOSTs site...it NEVER loads up..like the server is DOWN or smething...It has been a while now...and am curious as what you think I should do...I am already paid up for a year. I guess I really dont care..about their site too much..but it has an administrator control panel..wher you can make new POP3 e-mail accounts.and extra sub-domains...and now is DOWN...my real problem is that...they have a servercheck.cgi script that you are supposed to put in your CGI-bin and open that path in your browser..so you can the specifics about your account...(more importantly..the PATH to sendmail) I can NOT get this script to run..and I keep thinking it has to do with their site being down..
Anybody got any REAL suggestions about what to do?...Can I contact somebody to get answers about this? or what?..Like the better business bureau???
Thanks
-whispers-
View Replies !
View Related
Domain Name
I'm using XMLSocket.connect and my flash application is going to be install in on deffrent servers.
And I need to know in reallTime what is the subdomain name that my movie is runing from?
thank you all
View Replies !
View Related
Get Domain Name
hi all
is there a way of flash getting the domain that its located on.
e.g.
http://www.blabla.com/site.html (which has my swf embeded)
from this my swf can get the variable 'blabla.com'
somthing like the PHP: $_SERVER["SERVER_NAME"]
I hope this makes sence.
Cheers
Chris
View Replies !
View Related
XML, Allow Domain.
Hi people,
Got a fast question. I'm a bit lazy to read up on this subject and don't really have the time either so I came here for a fast answer. I'm loading an .xml file into a .swf ( it's not in the same folder with the .swf ) and inside that .xml file I have a path to an image, that is in the same folder with the .xml file.
From what I know ( if I'm right ) then the .swf file gives access automatically to everything that is in the same root with it ( same directory ) but how do I allowAccesss to that image that is in another folder ?
Thanks in advance.
View Replies !
View Related
[CS3,AS2] SWF<?domain>PHP
1) I have an swf thats loaded in web1.html. Now i want to send a set of variables to a php file.
BUT, i can not store a php file in the server where i have stored web1.html and the swf.
So, I create another account where I am able to store my php file. So this php wil be in some other domain.
My question is :
How can i pass a set of variables from swf file in web1.html to the php that is in this new domain?
1) Can i pass variable directly from the swf of web1.html to that PHP file?
2) Can i pass variable from swf of web1.html to an swf that is in the new domain ?
View Replies !
View Related
Getting Domain Name?
I'm wondering how I can get the domain name for a Flash file? Is there a way to get automatically get the domain name from a web server or the local HD and store it in a variable?
Thanks!
MA
View Replies !
View Related
Get Domain?
Hi
I wonder is is possible to get page url or domain.
U have file:
www.exampledomain.comAnimation.swf
Now each user can embed this file on his page using embed tag. I need to get user page url's to my statistics. In most cases loaderInfo.url work great, but not in this case - it return orginal swf File path: www.exampledomain.comAnimation.swf insted of browser url or domain.
View Replies !
View Related
SWF Is MIA On One Domain, But Not The Other?
I have a modest webpage which I use primarily to put up the occasional photo/video of the family:
http://www.staggclan.com
...and which contains a Flash file xreferencing a Flash video. This is what it is supposed to look like: http://www.dfwaug.net/test/index.html.
As you can see - the video works fine in the latter sample (its the same hierarchy). But why can't you see the video at all on my website? You can take a look at the staggclan.com source code on that page and you can see that I am NOT xreferencing my hard drive nor am I referencing an image which hasn't been uploaded (even if I were - you'd at least see a "broken image" indicator). It doesn't even include space for where that video should be - it's like it wasn't even placed there.
For the life of me I don't know what the problem is. Why will it work in one domain but not the other (both hosted by 1&1.com)? Whoever can correctly solve this problem for me will find me ETERNALLY GRATEFUL.
All the best.
View Replies !
View Related
SWF Is MIA On One Domain, But Not The Other?
I have a modest webpage which I use primarily to put up the occasional photo/video of the family:
http://www.staggclan.com
...and which contains a Flash file xreferencing a Flash video. This is what it is supposed to look like: http://www.dfwaug.net/test/index.html.
As you can see - the video works fine in the latter sample (its the same hierarchy). But why can't you see the video at all on my website? You can take a look at the staggclan.com source code on that page and you can see that I am NOT xreferencing my hard drive nor am I referencing an image which hasn't been uploaded (even if I were - you'd at least see a "broken image" indicator). It doesn't even include space for where that video should be - it's like it wasn't even placed there.
For the life of me I don't know what the problem is. Why will it work in one domain but not the other (both hosted by 1&1.com)? Whoever can correctly solve this problem for me will find me ETERNALLY GRATEFUL.
All the best.
View Replies !
View Related
Allow Domain
I am creating a application that requires access to my web server. unfortunatly i am new to flash and know only a little bit of AS2. Does anybody know the script to allow access to the web in AS2 and AS3?
Thanks
Jake
View Replies !
View Related
Web Host/Domain Name
Hello everyone,
I am in the market for a Domain name and web hosting service. Anyone have any suggestions that they have or are dealing with now that is a good fair company? I want to be able have ftp rights so I can update my site as often as I wish, plan on using a lot of flash so I am thinking I need a company that has some nice broadband.
View Replies !
View Related
Where To Purchase A Domain Name
ok... are there hidden fees with some domain names or something, cuz when searching to buy one ive noticed prices from $5 to $20 for one year, with just the purchase of one no hosting of it
anyone know a site that sells the cheapest 1-2 year price? so far ive found
http://www.namecheap.com/ $8.88
for 1 year.... has anyone purchased from these sites? or any others that sell for about less then $10 per year or $20 for 2 years?
View Replies !
View Related
Grab Domain/URL
I am using flash MX.
Is there any way I can get my flash movie to grab the url in the address bar and display it in a dynamic text field.
I.e if I have a .swf placed on my homepage - http://www.myhomepage.com
is there any way I can get the .swf to display 'http://www.myhomepage.com' when the domain is loaded?
Thanks.
View Replies !
View Related
Using LocalConnection.domain()
Hello all,
I've been browsing around trying to figure out how to get the full domain (subdomain and all) into a variable. So far I have used:
var LC = new LocalConnection();
var movieDomain = LC.domain();
to get the domain, but that only returns "mysite.com". I am trying to get the subdomain included as well, ie. "subdomain.mysite.com". Is there a way to get this?
Thanks,
Steve
View Replies !
View Related
Nice Domain Name
Hi
Little queery on domain names. A design company that I have seen in my area has this domain name:
http://un.titled.co.uk
Does anybody know how you go about getting a domain name without 'www' and with something else in its place? (like the 'un' part of their domain name).
Would really appreciate it!
Deadhands
View Replies !
View Related
Checking Which Domain SWF Is In?
Is there a way to simply check which URL a SWF resides on?
I want to have something load in if it's on one site, and something else load in if it's on another. Just want to check the URL the SWF is embeded in.
Such as:
if (mydomain == "www.somesite.com") {
//do something
} else {
//don't do something
}
Thanks!
View Replies !
View Related
How Can I Verify Domain Name
hey guys
i am making a movie.. i have to need a url validation type functions...
When the SWF file is displayed at mywebsite.com, it displays an image within that directory, or displays nothing at all.
When the SWF file is displayed at any-other-doamin.com, it displays a predefined image such as no-site.gpg
in short i need to get "url variable withing movie..where this movie is uploaded"
how can i do it?
thanks in advance
View Replies !
View Related
Password Is Domain Name
I'm looking for the code for a password protection script. It would open a webpage that has the same domian name as the password.
password: "forum" would open "forum.html"
Any suggestions?
Thank you.
View Replies !
View Related
LocalConnection.domain()
I've been using this to return the domain that my flash movie is live on.
But is it possible to refine this? I would like it to not just return the domain but also to return the directory the flash movie is held in.
Is this possible?
Thanks.
View Replies !
View Related
Load Swf Only At My Domain
Hi,
I have a flash movie made already but wants to have it loaded / shown only when it is played from my website domain n not others or even in local computer.
How do I write a script to check the URL variable such that if the SWF is opened from mydomain.com, it will load. If the SWF is opened from otherdomain.com or local computer, it will not load / display nothing at all.
I searched the forum and found something similiar
http://www.flashkit.com/board/showpo...68&postcount=6
However I am not opening an image but the whole flash file from my website (php). I want to prevent users from gaining access to my swf files from outside my domain like from the temporary internet files where the swf is downloaded while viewing. Even if they click the swf file from the temp internet folder, it should open up from my domain, if not, it should not display anything.
Please help! I am still quite a beginner at Flash or Actionscripting. All advice are appreciated!
View Replies !
View Related
Cross Domain
Hi anyone know why all of a sudden my flash has stopped accessing my remote server script from a web browser.
I have the crossdomain.xml file in the root of my remote server.
the flash file works fine when I run it locally (ie off my desktop(different server)) but when i put it in a web page on another server it fails to execute the commands.
any help would be appreceiated
cheers
B
View Replies !
View Related
LoadMovie By Domain?
Hi, 1st post here
I'm looking for a solution to load an external .swf into a "container.swf",
depending on the domain were the "container.swf" is.. so, for example, I can place the same container.swf on 3 different websites (example: dn1.com, dn2.com, dn3.com) and I can then define which of my external movies will be l loaded into which domain, maybe in a .txt-file etc.. anyone has an idea how to do that?
loadMovie > var.txt > movie123.swf?
Thanks for any help
View Replies !
View Related
Cross Domain
Hello,
I have been messing around with socket servers and had few questions about cross domain. If I have a flash client on a webhost and my server on another host, when the client connects to the socket server will it send a policy request to the socket server or look for crossdomain.xml in the root directory?
I would appreciate any help i can get.
Thanks
View Replies !
View Related
Help With Cross Domain From An SWF
Greetings flash world,
I am currently stumped on a project. I am giving a weather report through a flash player. However for the twist, this is not a browser run flash file. This is being run from my desktop.
This runs into problem when dealing with the "sandbox" security system flash has set up. My file will go grab the information from xml files. Starts off getting the city from an xml file on the user sides computer (the one with the SWF file). Then it contacts Environment Canada and using the city name, it asks for the code number and province (Canadian program) in which to grab the weather from. Then re contacts EC, and using the code number and province, it finds the weather report and downloads that information into the SWF to be displayed on the fly.
Now all this does work perfectly while running it straight out of the Flash pro program. However if you run the SWF it runs into the security problem and doesn't bring back any information past grabbing the city name from the local XML file.
In an experiment I set flash up to run through a php server to go grab the information. This does work... however once again I am not running my SWF through an internet browser (what PHP needs). So that isn't working.
And as for a conformation.xml file or anything, the server I am trying to access of course isn't my own and there for i can not add such a file to the server to allow flash to access it from another domain, such as my computer.
So how can I access cross domain information from a local none browser run SWF file?
See if you can rap your mind around this one. No one seems to have an answer as of yet to solve this problem.
View Replies !
View Related
[F8] Help With Cross Domain From An SWF
Greetings flash world,
I am currently stumped on a project. I am giving a weather report through a flash player. However for the twist, this is not a browser run flash file. This is being run from my desktop.
This runs into problem when dealing with the "sandbox" security system flash has set up. My file will go grab the information from xml files. Starts off getting the city from an xml file on the user sides computer (the one with the SWF file). Then it contacts Environment Canada and using the city name, it asks for the code number and province (Canadian program) in which to grab the weather from. Then re contacts EC, and using the code number and province, it finds the weather report and downloads that information into the SWF to be displayed on the fly.
Now all this does work perfectly while running it straight out of the Flash pro program. However if you run the SWF it runs into the security problem and doesn't bring back any information past grabbing the city name from the local XML file.
In an experiment I set flash up to run through a php server to go grab the information. This does work... however once again I am not running my SWF through an internet browser (what PHP needs). So that isn't working.
And as for a conformation.xml file or anything, the server I am trying to access of course isn't my own and there for i can not add such a file to the server to allow flash to access it from another domain, such as my computer.
So how can I access cross domain information from a local none browser run SWF file?
See if you can rap your mind around this one. No one seems to have an answer as of yet to solve this problem.
View Replies !
View Related
[CS3] About Cross Domain
Hi,
I'm new to this forum, want to ask about cross domain issue. If we call a swf (using embed) from another domain where the swf is loading some images (and those images are in the same domain as swf), is there any cross domain issue?
View Replies !
View Related
Swf And Referring Domain
Is there a way to find the domain of the page that loads my swf. For example, someone embeds an swf served from my server on their www.myspace.com page. Is there is way for me to determine that the request is coming from myspace.com at runtime?
I have the option of using AS 3 if it provides a solution.
View Replies !
View Related
Loading XML From Other Domain
I think my problem is quite simple but i hope there is a solution:
I want a SWF to load an XML file that is on another server
just for this example: swf is on www.mydomain2.com/myswf.swf
and my XML code is like this:
ActionScript Code:
function xmlLoaded(success){
if (success){
_root.myText_txt.text = myXml.firstChild.nodeName;
} else {
_root.myText_txt.text = 'error parsing xml';
}
}
myXml = new XML();
myXml.ignoreWhite = true;
myXml._parent = this;
myXml.onLoad = xmlLoaded;
myXml.load('http://www.mydomain.com/myXML.xml');
the problem is, as soon as the XML is not on the same domain as my SWF it can't load the XML.
Am i doing something wrong? Is this a security issue?
I hope someone has a solution.
View Replies !
View Related
Loading SWF From A Different Domain
Hi all,
I am have trouble loading SWF from a different domain.
Files:
index.html (localhost)
index.swf ((localhost)
external.swf (different domain)
Index.html holds index.swf, index.swf has a movie clip that loads external.swf using loadMovie(). When i double click on index.html, everything works just fine, external.swf does load inside the movie clip. But when i run index.html on the webserver (http://localhost/index.html) the movie clip does not load external.swf. I think it has something to do with the swfs being on different domains.
Please tell me how to fix this problem
Thanks
View Replies !
View Related
Domain Lock With AS3?
Hi,
I was wondering if anyone can tell me how to write a domain lock in AS3? That means locking an SWF file to a certain domain so that it will not run on any other URLs. Maybe there are any tutorials out there that I haven't found yet?
I remember darkly how it was done in AS2 but I guess there are better/safer ways in AS3?
View Replies !
View Related
What Is The Right Application Domain?
Hi,
when you make an Flash Site, and separate the sections from this Site into particular Swf's, which Application Domain would be the best?
For example on this Image:
Should it load into the current Application Domain, that's on the Image the "Application Domain 1".
Or would it better to load it into a new Child Application Domain, "Application Domain 3" on the Image?
View Replies !
View Related
Cross Domain XML
So...when I'm accessing an XML file on another domain, I know I need to use a cross domain XML file to allow access to that said file...
However, do I need to reference that cross domain file from inside my ActionScript? Or does it just have to be in the same directory as the the file I am accessing?
View Replies !
View Related
Loading JPG From Another Domain
I'm trying to load a jpg from another domain than the flash is run from (http://localhost for example), the images are loading, but the Event.COMPLETE and Event.INIT arent dispatching.. and i really need to handle them.. How do i do that?
Here's the scipt example:
ActionScript Code:
var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest("http://www.modernlifeisrubbish.co.uk/images/illustrations/google-as-a-giant-robot.jpg");
ldr.load(urlReq);
addChild(ldr);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);
function imgLoaded(event:Event):void
{
var contt:Bitmap = event.target.content;
contt.scaleY = .5;
contt.scaleX = .5;
}
View Replies !
View Related
|