Loading XML From Diff Domain
Hey all,
Is there any way to load xml from diff domain from where the flash file is loaded?
I know by default, flash doesn't allow this for security reason. I wonder if tehre's a way around it?
Thanks!
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-10-2004, 04:28 PM
View Complete Forum Thread with Replies
Sponsored Links:
Viewing External Data From A Diff. Domain
i read from somewhere that its impossible unless you have access to the other domain's server.
but i seen others use it.
like how some gaming sites offer these flash-sig size banners that show the players stats. they can be used on most sites/forums. (i.e: shatter-rock)
doesnt these use external data to update the stats?
or when playing a simple mp3 on your myspace on those special flash mp3 players with playlist. arent the mp3's and player itself on a different domain &/or server?
i just want to be able to add a dynamic field that reads external txt thats on my server. why doesnt it work?
View Replies !
View Related
Loading Main Timeline Diff. From Loading External Swf's?
Last edited by enkriptid : 2008-06-30 at 04:16.
hey peoples, im still learning how to load things , my methods are working so far..
what ive been doing to load external swfs is using a intermediate "loading swf" that works between the main timeline and the desired swf to be loaded.. so far it works and is simple enough for me to work with now, but my question is, how do i go about preloading the main timeline if there are mc's being exported .. i tried my previously mentioned method but no dice.. if theres a rock-solid technical answer id like that..my goal is to have most of my site(illsci.com) in actionscript .as files, doc. classes and xml as of now so im looking for a method i can implement using script if i can, if there is one. perhaps a metatag trick of some sort
View Replies !
View Related
Loading Same Jpeg In To 2 Diff Movies?
I have a quick question (i hope)
How do i load the same jpg in to 2 different movie clips? Here's the code I have:
Code:
my_mc.loadClip("1.jpg", "container");
My holder movie clip is called container. I have another one that needs to display the same image. If I name the second clip by the same name it doesn't work (as it shouldn't). So how do I easily display the same image in a different holder without reloading it again?
Any help would be great.
Thanks!
...
Edit: the reason I dont want to just duplicate the first holder after the image loads is because the second holder is resized, rotated, etc, so doing it with code would get complicated.
View Replies !
View Related
Loading Same Jpeg In To 2 Diff Movies?
I have a quick question (i hope)
How do i load the same jpg in to 2 different movie clips?
Code:
Code:
my_mc.loadClip("1.jpg", "container");
My holder movie clip is called container. I have another one that needs to display the same image. If I name the second clip by the same name it doesn't work (as it shouldn't). So how do I easily display the same image in a different holder without reloading it again?
The reason I dont want to just duplicate the first holder after the image loads is because the second holder is resized, rotated, etc, so doing it with code would get complicated.
Any help would be great.
Thanks!
View Replies !
View Related
Loading Sound Into Diff. Level
Hello ladies and gents,
I'm loading a sounf module in a different level to keep file size small and which can be downloaded. The module itself works, but when I load it into a dif. level the loops won't start playing?
why is that?
thx,
m.
View Replies !
View Related
Loading Sound Into Diff. Level
Hello ladies and gents,
I'm loading a sounf module in a different level to keep file size small and which can be downloaded. The module itself works, but when I load it into a dif. level the loops won't start playing?
why is that?
thx,
m.
View Replies !
View Related
Website Not Loading Properly In Diff. Browsers
Hi everyone. I was hoping somebody proficient in Flash could help me out with a problem.
I've recently designed a website that doesn't work well in all browsers. It works great in Safari but it doesn't well in Firefox and Internet Explorer. When I try browsers other than Safari, parts of the website fall outside of the screen and the website is positioned too high in the browser window rendering some parts of the site not visible.
In the hopes that somebody could help me, I have uploaded the flash file here:
http://www.2shared.com/file/2923560/...25/Fresko.html
I have taught myself flash and I have an unconventional way of working but the site functions well. In conclusion, my main problem is the positioning of the website in browsers other than Safari. I would like the website to work flawlessly in all browsers. Any help would be greatly appreciated!
View Replies !
View Related
Pre-Loading A Sound Than Playing In Diff. Scene
Hey, This topic is in another thread but the title is no longer suitable for the subject.
I need to pre-load a song so I can begin to play it the second I need on another scene.
How?
This is what my loader looks like, it displays the number of bytes loaded and the %... but after I do lojazz.stop() or Stopallsounds() I can no longer start the song back up. Even with lojazz.Start()
This is my code:
Code:
this.onPress = function() {
_global.boogie = true;
};
if (boogie) {
if (starter<1) {
loJazz = new Sound();
loJazz.loadSound("http://www.thecolonyrp.com/music.mp3", true);
lojazz.stop();
starter += 1;
}
nowUp = loJazz.getBytesLoaded();
allUp = loJazz.getBytesTotal();
showBytes.text = nowUP;
percent = parseInt(nowUp/allUp*100);
showPercent.text = percent+"%";
this._alpha = 100-percent;
if (percent == 100) {
this._visible = false;
}
}
Please help, thank you.
View Replies !
View Related
2 Diff Resolutions, 3 Diff Movies?
i've been browsing the forums about different screen resolutions. i've seen the codes that need to be used. so do i have to make 3 different versions of a website to compensate for 3 differnt types of screen resolution?..what's the easiest way to go about doing this?...because when you change the movie properties in an FLA, it throws the whole stage out of whack... seems like 3 times the work almost..thanks for any advice...
View Replies !
View Related
Loading Externals: Button And Dynamic Field In Diff Movies W/ CSS
I am using mc and few scenes. I am trying to have a button in one mc load an external txt in another mc with the dynamic text field.
this is the script for the button classDescription in a MC called nav_menu
on (release) {
var style_sheet = new TextField.StyleSheet();
var css_url = "photo_style.css";
style_sheet.load(css_url);
holder.styleSheet = style_sheet;
loadVariables("classDesc.txt", this);
}
I want it to load classDesc.txt into the dynamic text field (instance name is holder) in a MC called body_dynamic.
What is needed to get it to load the external when the button and the text field are in different movies?
View Replies !
View Related
Loading Externals: Button And Dynamic Field In Diff Movies W/ CSS
I am using mc and few scenes. I am trying to have a button in one mc load an external txt in another mc with the dynamic text field.
this is the script for the button classDescription in a MC called nav_menu
on (release) {
var style_sheet = new TextField.StyleSheet();
var css_url = "photo_style.css";
style_sheet.load(css_url);
holder.styleSheet = style_sheet;
loadVariables("classDesc.txt", this);
}
I want it to load classDesc.txt into the dynamic text field (instance name is holder) in a MC called body_dynamic.
What is needed to get it to load the external when the button and the text field are in different movies?
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
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
Loading SWF From Another Domain
I have a SWF file that needs to be hosted at images.domain.com and the site resides at domain.com. I have several SWF files that work completely fine. Then I have one (unfortunately) crucial file that uses a animated movie clip to create a rollover roll out link as described in http://www.kirupa.com/developer/mx2004/button_effect.htm to link to the other pages. That movie clip link which is generated in the ActionScript does not work in IE or FF for PC. HELP. Do a need a crossdomain file?
View Replies !
View Related
Loading Xml From Another Domain
I have a flash file that uses actionscript to read a remote XML file. Thanks to kirupa.com for the tutorial that allowed me to accomplish this. Everything is working pefectly except one little issue.
When the movie loops it requests the XML file again. How can I have it request the XML file only the first time and just re-utilize the data?
Thanks in advance.
View Replies !
View Related
Loading Sound From Another Domain - Possible?
Ok, I'm loading up an XML list of sounds, and some of them are on other domains.
First,
I strip the URLs down to their base URLs and then add them to a quoted, comma separated list ('domainone.com','domaintwo.com','...'). The list is saved as a variable "domainList"
After I have this text list list created, I do this:
System.security.allowDomains(domainList).
Then I proceed to try loading the sound (my_sound.loadSound('url_of_sound/sound',true), and as I thought, I can't.
Is there any way to load sounds from another domain???
I thought the allowDomain method let the app have access to the domains listed. How exactly does this work?
View Replies !
View Related
Problem Loading SWF From Another Domain
I have a SWF file that needs to be hosted at images.domain.com and the site resides at domain.com. I have several SWF files that work completely fine. Then I have one (unfortunately) crucial file that uses a animated movie clip to create a rollover roll out link as described in http://www.kirupa.com/developer/mx20...ton_effect.htm to link to the other pages. That movie clip link which is generated in the ActionScript does not work in IE or FF for PC. HELP. Do a need a crossdomain file?
View Replies !
View Related
Loading Images From A Different Domain
Hey all,
I'm trying to load images from a domain different from that which the swf resides on.
Loader has security restrictions on it, so I can't load the images using it. And I don't have access to the machine serving the images to put up a cross-domain policy.
However, I read that such restrictions don't apply to URLLoader and sockets.
So I had the idea to try and use URLLoader, with a binary data type, to load the images.
i.e.
Code:
var bitmapLoader:URLLoader = new URLLoader();
bitmapLoader.dataFormat = URLLoaderDataFormat.BINARY;
When the operation completes, I then want to try and copy the binary data into a Bitmap object.
Code:
var loader:URLLoader = URLLoader( e.target );
var bitmapData:BitmapData = new BitmapData(imageWidth,imageHeight,false,0xFF0000);
loader.data.position =0;
bitmapData.setPixels(new Rectangle(0,0,imageWidth,imageHeight), loader.data);
var loadedBitmap:Bitmap = new Bitmap( bitmapData );
The problem is that there are fewer bytes than pixels, so I get a End of File error. For example, for an image of width 50 and height 75, there may be 2124 bytes.
The images are JPGs, so I'm guessing this is part of the problem The data is presumably JPG encoded.
Here's where I'm stuck..getting the raw pixel data out of that ByteArray and into the BitmapData, and then into the Bitmap.
Maybe I'm going about this in a much too complicated way, but if someone can help or suggest an easier alternative I would be much obliged. Many thanks!
View Replies !
View Related
X-domain Font Loading
Hi all,
I'm trying to update our as3 library. One of the main things I want to get rid of is the hacky old font loader (uses the old linked symbol exploit to get font loading to work).
The new font loader I'm building uses Font.registerFont to load a swf containing a font symbol. All is well until I put the font swf on another domain. Although all the loading works and I can load other assets of the second domain Font.registerFont fails and throws an error:
ArgumentError: Error #1508: The value specified for argument font is invalid.
I'm even able to access the font class and can verify that "is Font" equals true.
The code looks something like this (please note, I've replaced my real domains with domain_a.com and domain_b.com):
font.swf (compiled by flex 3) served from domain_b.com
ActionScript Code:
package {
import flash.display.Sprite;
import flash.system.Security;
import flash.text.Font;
public class Font_Test extends Sprite
{
Security.allowDomain( "localhost" );
Security.allowDomain( "*.domain_a.com" );
[Embed(source='../fonts/AvantGarde-Book.otf',
fontWeight='normal',
fontName='AvantGardeBook',
mimeType='application/x-font',
advancedAntiAliasing='true'
)]
private static var avantGardeBook:Class;
Font.registerFont( avantGardeBook );
}
}
Start-up code in my main.swf (compiled by CS3) served from domain_a.com
ActionScript Code:
Security.loadPolicyFile( "http://www.domain_b.com/crossdomain.xml" );
And here's the cross domain policy
HTML Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="localhost"/>
<allow-access-from domain="*.domain_a.com"/>
</cross-domain-policy>
Loading the font.swf from within the main.swf
ActionScript Code:
...
/**
* load all the fonts
*/
protected function loadFonts () :void
{
var loader:Loader, fontList:XMLList, fileName:XML, context:LoaderContext;
context = new LoaderContext( true, new ApplicationDomain( ApplicationDomain.currentDomain ) );
if ( _xml[ "fonts" ] ) {
fontList = _xml[ "fonts" ].asset.( @type=="FontFile" );
for each ( fileName in fontList ) {
loader = new Loader();
loader.load( new URLRequest( getFullAssetFilename( fileName.text() ) ), context );
loader.addEventListener( Event.INIT, fontCompleteHandler );
_loaders.push( loader );
}
}
}
...
Load complete hander in my main.swf
ActionScript Code:
...
/**
* invoked each time a font has finished loading
* @param event - dispatched by the font's loader
*/
protected function fontCompleteHandler ( event:Event ):void
{
var loader:Loader, fontClass:Class;
loader = event.target as Loader;
fontClass = loader.contentLoaderInfo.applicationDomain.getDefinition( "Font_Test_avantGardeBook" ) as Class;
// outputs true
trace( new fontClass() is Font );
try {
// Fonts loaded from other domains can't be regsitered
Font.registerFont( fontClass );
}
catch ( e:Error ) {
// traces "ArgumentError: Error #1508: The value specified for
// argument font is invalid." when the font.swf comes from another domain
trace( e );
}
trace( Font.enumerateFonts( false ) );
}
...
Anyone got any ideas?
View Replies !
View Related
Loading As2 Intop As3 From Different Domain
I'm trying to load an as2 swf into an as3 container. The as2 swf is on a different domain so I'm using a LoaderContext with the loader. I get to load the file but the as2 code doesn't seem to execute at all.
Code:
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, onLoadHandler);
var context : LoaderContext = new LoaderContext(false)
context.securityDomain = SecurityDomain.currentDomain;
context.applicationDomain = ApplicationDomain.currentDomain;
loader.load(new URLRequest(urlString), context);
private function onLoadHandler(e : Event) : void
{
contentMedia = DisplayObject(loader.content);
this.addChild(contentMedia);
}
I have a stop() on the first frame of the as2 swf but the timeline starts playing anyway.
View Replies !
View Related
Loading Text From Another Domain
Hi, sorry if it may seem like a novice question but I'm working on a flash file with AS3 and I'd like to load a variable with data from another domain.
Basically, the data comes by invoking a specific URL eg. http://www.domainA.com?username=UserA
and it spits out a text of statistics in plain text.
Now my flash movie may be hosted on http://www.domainX.com/myflash.swf
and I'm trying to make an ActionScript that would invoke domainA to load the data into a variable in a flash movie being served from domainB. Both domains are owned by me but I do not want to involve server side scripting to achieve this.
My question is: Is there any way to load that data into my flash movie?
Thanks
View Replies !
View Related
Loading Images From Different Domain
Hi All
I am having some difficulties loading a bunch of images from a different domain. I am using a Loader Object with a listener attached, that starts loading the next image in queue when the previous is done loading. Somehow only the first image is loaded and the queue doesn't get processed. It's like the COMPLETE handler doesn't get triggered. This only happens when I load from a different domain.
I have set up a crossdomain.xml file, so this isn't the problem.
Code:
function loadImage():void
{
imageLoader = new Loader();
var imageURL:String = domainURL + urlArray[loadImageCounter];
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageOnLoadHandler);
imageLoader.load(new URLRequest(imageURL));
}
function imageOnLoadHandler(e:Event):void
{
loadImage();
}
Hope you can help
Thanks!
View Replies !
View Related
Cross Domain - Loading
Hi
I have an Issue in getting the LoadVariables call working , Below is the scenario that I am trying to Implement.
1. Flash shell is placed in a https://abc.company.com
2. The Flash Shell(1) is calling a Perl Script thru LoadVars which is placed @ https://test.company.com/cgi/test.pl
The Data is not returned from the Perl Script But Run from Flash IDE I was Able to get teh values,
Could some One Help me in Finding a Soluation For This
Thanks
Sembian
View Replies !
View Related
XML Loading... Works On One Domain But Not The Other?
Okay... so I have a problem.
I made this Flash application that reads live commentary from an XML file and displays it on screen. There's a refresh every 30 seconds because the data is likely to change alot since it's a live commentary.
The SWF file was made in 2 versions, using the same code, for two different URLs, both located on the same server (www.sportal.de and www.sportbild.de).
The path to the application is "oc2006"... the server is using SSI (server side includes) so there is one HTML file but it loads different templates depending on what URL you come through.
So the links to the Application are:
http://www.sportal.de/oc2006/ and
http://www.sportbild.de/oc2006/
This is where I start going insane- because the XML files are located in the sub-folder "live/commentary/ergebnisse/olympia/" (from the server-root, not from the "oc2006" folder)... and the first commentary file that is opened on startup is "2006-02-10.xml"... opening that file is no problem.
The actual problem is this: when the application reloads, it seems to not be able to access the file anymore from the sportbild-domain. It works just fine on sportal (which is the "native" domain name of the server).
On either URL, you can access the file, though, if you enter it into the location. Using either one ("http://www.sportbild.de/live/commentary/ergebnisse/olympia/2006-02-10.xml" or "http://www.sportal.de/live/commentary/ergebnisse/olympia/2006-02-10.xml") gives you the same file... only that on sportbild, it seems to be unable to access the file on reload while it works just fine on sportal.
I am absolutely lost... I am thinking it might be a caching problem... because it's not a cross-platform access- since thel ink I'm using in my script to access the file is something like "../../../../live/commentary/ergebnisse/olympia/2006-02-10.xml"... so no matter where the SWF is, it should access the file correctly- and like it said- it works on load, just not on reload.
The "Es liegen keine Daten zu diesem Kanal an diesem Tag vor." is the default message I have it display when the array that should contain the data of the commentary returns empty.
And that is only in Firefox, too... in MSIE, it works on either domain. So maybe it's Caching after all?
Any ideas, guys?
*dies*
View Replies !
View Related
Loading Image From Other Domain
As the title specifies....
The question is how to load a picture to the flash dynamically using an xml from other domain.
(Detailed: An XML feed has image links. These links are out of my domain. I have to display these images as well as the feeds. I displayed the feeds using asp; XML file is also other domain. But I have no idea about displaying images)
How can I do that??
View Replies !
View Related
Problem Loading Swf From Another Domain
Hello,
I have the following situation
domain1/index.html
domain2/flash.swf (this one loads flash[1..n].swf and xml[1..n].xml)
domain2/swf/flash1.swf ... flash2.swf
domain2/xml/xml1.swf ... xml2.xml
index.html contains
Code:
<script type="text/javascript">
var so2 = new SWFObject("http://domain1/flash.swf", "main", ...........);
so2.setAttribute("RedirectUrl", "bla-bla.html");
so2.addVariable("bla-bla",getQueryParamValue("bla-bla"))
so2.write("bla-bla");
</script>
When I load in browser index.html onle the main swf file is loaded. no XML or other SWFs are available even if they are on the same domain as the main swf
I also tried to put the following code on both root domains
Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Any other ideas.
Thank You
View Replies !
View Related
Domain Loading Problems
Hi Kirupians!
I hear theres this thing called the securitySandbox, and while I though I knew roughly how it works, I'm stuck trying to load an html page from another domain.
I have a swf file on www.domainA.com loading an HTML page called http://www.domainB.com, i'm just loading the data from the html page, not loading any flash, i just need to transfer some data from one of my websites to another, but I keep getting this:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://labs.signalsondisplay.com/exp...TimeWasted.swf cannot load data from http://www.signalsondisplay.com.
at HeadlineParser()[D:workFlexTimeWastedHeadlineParser.as:18]
at TimeWasted/styleStage()[D:workFlexTimeWastedTimeWasted.as:110]
at TimeWasted()[D:workFlexTimeWastedTimeWasted.as:30]
anyone got an idea ? I'm only using a URLLoader, thats all
View Replies !
View Related
Cross Domain Loading Of FLV's
Alright, I was told that I need some sort of file on the domain hosting an FLV in order to load it from another domain. Is this true? If so, step by step, how would I go about loading this FLV if I were to say.... put it on newgrounds, and host the video myself. I've posted on the newgrounds forums, but that place is a joke.
View Replies !
View Related
Loading File Txt From Other Domain
Hi all
How do I solve this problem?
Flash
I have flash file running at domain http://www.test.com/myswf.swf
Text and image under:
http://www.run.com/file/text.txt
http://www.run.com/img/me.jpg
How do I load the image and text file from http://www.test.com/myswf.swf ?
I used below tag..this works locally but not in browser...
loadVariables("http://www.run.com/file/text.txt", "");
Somebody please help...is there any way out?
thanks
reverse
View Replies !
View Related
Cross Domain Asset Loading
hi folks,
has anyone come across this before:
I have a flash application that does various things like booking vc equipment and meeting rooms over the web. It talks to PHP to do this. Before you can book something you have to logon. The logon is handled by a custom swf I wrote and is shared by other apps I have.
The booking application is on one subdomain, while the login swf is on another subdomain, both subdomains are under the same domain, which is allowed in Flash MX (loadMovie works). In Opera and IE it works fine but now and again, there's a version of IE6 that refuses to let the Flash player load the login swf from the other subdomain.
any ideas peeps?
Cheers,
Alistair
View Replies !
View Related
Cross Domain Data Loading Help
Hey, I am trying to load data from another domain from within an .swf file. Here is the actionscript I'm using in the .swf file:
Code:
var msoService = "http://www.makeshiftonline.net/honservice.php";
System.security.loadPolicyFile("http://www.makeshiftonline.net/crossdomain.xml");
System.security.allowDomain("makeshiftonline.net");
MyLoadVars = new LoadVars();
MyLoadVars.sendAndLoad(msoService, this, "POST");
trace("Sending Info");
MyLoadVars.onLoad = function(success)
{
trace("Loaded Info");
_root.createTextField("MyTextField", 1, 0, 0, 200, 200);
_root.MyTextField.multiline = true;
_root.MyTextField.text = this.pic_url;
}
A few notes about this:
- When I'm testing this, I'm loading it on my LOCAL machine... ie I'm editing the file in Flash 8 Professional and then going File > Preview > Flash... will this just by nature not work?
- The loadPolicyFile() and allowDomain() calls are just there as an act of desperation. I don't know if I need them.
- There is a file named crossdomain.xml @ http://www.makeshiftonline.net/crossdomain.xml that gives access to anything with the wildcard *
honservice.php outputs the following:
Code:
&name=Drew&pic_url=http%3A%2F%2Fpix2.hotornot.com%2Fthumbs%2FHU%2FH8%2FKS%2FKE%2FALNQESSVBYTP.jpg
this is essentially two variables: "name" and "pic_url" that have a name and url (urlencoded of course).
In the trace() output on my script, it just says "Sending Info" and a blank canvas. No text field, no entrance into the onLoad() function or anything.
Could someone shed some light?
View Replies !
View Related
Embedding And Cross-domain Xml Loading
Hi,
just wanted to run this by everyone- I'm making the usual kind of XML/flash based gallery (*yawn*, right?) - in this case target is embedding on Bebo/Myspace - i.e the swf file gets served from my own domain as part of the Bebo/Myspace page.
I was wondering if flash counts this situation as example of cross-domain xml loading : that is if the html page is on bebo/myspace but the .swf and requested XML are on my domain.
Thanks!
Chris
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
Loading External File From Diferent Domain Name
If u upload text file and swf files in one domain name its working fine. If i uploaded in different domain location message is not displaying in flash file.
In my flash file i add this script in first frame to load external file
loadVariablesNum("http://www.domainname/textfile.txt", 0,);
I've hosted text file in this domain name address and flash file in my domain name address, but the external message is not displaying.
Pls. give me an idea. I hope u'll reply to solve my problem
Thx sathish
View Replies !
View Related
Issue/problem: Loading Data From Another Domain
Hey
I have a big problem I hope som Flash/Internet guy can help me with.
Its about a swf file I want to put on another domain. When the user click on one of the links in the swf file, then then have to get access to a picture on my server. I cant make it work ? maybe it isnt possible at all ?
(I have to make it this way because I dont have access to the other server - I can only put the swf file there, so all the content have to be on my server, but could be brilliant if it worked)
Please help. If you want I can send you the sourcefiles too, but take a look at this little movie, where I explain the problem (and sorry my very simple english)
Case movie
http://www.laerit.dk/Flashsite/flashsite/test/index
I would appreciate all the help I can get.
Kind regards Marcus
View Replies !
View Related
Loading An External File From A Seperate Domain?
I am creating a members zone for my website, the swf reads an xml file with all the user's data in it, the main account I have on the net does not support php so I'm using a free hosting account that has php to write to the xml file when someone signs up.
My problem is that when I attempt to load the xml from the freehosting address it just does nothing and doesn't even read it.
The swf is at the main domain: jacobclarkezone.com, and the xml is at an external address: jclar150.my-place.us.
Can anyone help?
Thanks in Advance
View Replies !
View Related
Loading PHP File Cross-domain Problem
Hey,
I have a project i am working on, but first i needed to test this.
I have a SWF named "index.swf" (with a index.html), that is running on a rented server of mine. (www.rocks-n-roll.com)
The SWF contains 2 layers.
The first layer contains 2 dynamic textfields names "text1" and "text2".
The second layer has some actionscript:
ActionScript Code:
stop();
var loadFile:LoadVars = new LoadVars();
loadFile.load("http://bladermodule.dasmalbuch.de/test.php");
loadFile.onLoad = function(succes:Boolean){
text1.text = this.variable_me;
text2.text = succes;
}
The "test.php" is located on the second domain.
This is the code written in it is:
PHP Code:
<?php
echo "variable_me=works&";
?>
So the SWF-file on the 1e domain has to load the php file from the second domain. But it doesn't work.
text1 displays: "undefined"
text2 displays: "false"
But if i call the php file in a regular browser (like this "http://bladermodule.dasmalbuch.de/test.php") it displays:
Quote:
variable_me=works&
My flash code isn't wrong, i have tested this local.
My PHP file is OK.
So does anyone got some suggestions ?
View Replies !
View Related
Security Issues Loading External AS2 & AS3 From Another Domain
I have a problem where I am loading external content from another domain, and that content can be either jpg/png or swf -- and the swfs can be either AS2 or AS3.
However, there is no easy method of detecting before something has loaded whether or not it is an AS2 or AS3 swf. And when you do load in a swf there are two different issues:
This works fine for AS2/JPG/PNG files, causes security errors for AS3 files
ActionScript Code:
loader.load(urlRequest);
This works fine for AS3/JPG/PNG files, causes errors for AS2 files
ActionScript Code:
loader.load(urlRequest, new LoaderContext(true, ApplicationDomain.currentDomain, SecurityDomain.currentDomain))
Has anyone else encountered/solved this issue? The best method would be to detect beforehand what the actionScriptVersion is, but of course that's impossible to do before loading it. Reloading swfs that have the wrong loadercontext would be a work-around, but it is problematic and an overhead issue, so not desired.
I can't imagine this isn't a common problem for generic loaders, but I can't find any reference to dealing with it.
View Replies !
View Related
Problems With Loading A Flash File On Another Domain. :(
I've got a problem that i am pulling my hair out over. :(
I have a SWF file that reads and XML file and loads images that are mentioned in the XML file.
OK so far. I can test on one domain and it works fine.
Problem: I need to call the SWF file from another domain, called anotherDomain.com say for example.
I need to have it be simply in a HTML file.
I don't have the option of reading it in from another SWF file on the anotherDomain.com domain.
All I can do is reference it from the HTML.
Problem: the SWF file loads OK... and even data in the XML file loads.
BUT: the images *DON'T* load. :(
I've tried a million different things... and nothing works.
One thing that did work for only one file I tried was to put references of the jpg's be absolute URLs, i.e. htpp://www.firstDomain.com/... etc.
But this only worked for one file... other files I have tried refuse to work. :(
I suspect the first file may have been Flash 5... this maybe would explain thigns... as Flash got new securtiy features in later releases.
I've really been pulling my hair out over this one.
I've done lot's of reading and have read about the allow.access (or whatever it's called) and about the cross domain issues.
Striclty speaking... I didn't think this was an issue for my problem... but I implemented the suggested rules anyway.
Stll no luck. :(
An still I have no luck. :(
Are there any example anywhere of actual files (source files that is) that implement the crossdomain issue?
Any advice on my problem?
Thanks.
OM
View Replies !
View Related
GetBytesLoaded() And GetBytesTotal() Return Nothing When Loading Content From Another Domain
I have created a movie that loads various media using loadMovie() and then in many cases performs actions on the newly loaded MCs once the loading is complete. I'm relying on getBytesLoaded and getBytesTotal to know when to run these actions.
This works just fine when the content is on the same server as the movie, but I also need to load content from another domain and this is where it falls apart. The media is actually loading just fine into the target MCs, but the functions that should be running when loading is complete never do. The problem is that getBytesLoaded() and getBytesTotal() both return nothing when the content is loaded from another domain.
I'm stuck with loadMovie and the getBytesLoaded/getBytesTotal check as this movie must be published for Flash Player 6, but I have actually tried using loadClip() and onLoadInit() and I get the same problem - onLoadInit() never runs.
Another weird thing is that testing by previewing in flash doesn't show this problem - the content loads fine and getBytesLoaded and getBytesTotal both return values as expected. It's only when I publish the movie and view in a browser that I have this problem.
Where am I going wrong?
Thanks!
View Replies !
View Related
Issues When Loading Flash Player From Local Domain
I have a webcam streaming to Flash Media Server via the Media Encoder. I have published the .swf file with the flash player and rtmp://99.999.999.999:1935/live/livestream address to my website on a hosted webserver.
When I am on another internet source, the player on my webpage loads and works fine. However when I load the webpage in a browser on the same network that has the Media Server and Webcam on it, the browser freezes up.
I need some help with a solution that will cause the rtmp:// address to switch to a local host address. Any suggestions.
View Replies !
View Related
Ie7 Loadmovie Loading Jpg And A Slow Server Problem That Shuts Down Domain For Client
The flash movie does a createnewmovieclip followed by a movie.loadMovie on a jpg image. Most of the time the image loads up and there are no issues, but sometimes this server is slow to respond and for a time there is no image. If you wait about a minute to two minutes the image will load up, but if in that period of time the user gives up and closes the movie its all over with, the root domain will not deliver any further content to that client. In order for the user to see anything from that domain again they must close out ALL instances of IE first and then start over.
This does not seem to happen with firefox or safari ever. Often the image might not load right away, but closing the movie early is not an issue.
I'm thinking i need to rewrite my loadMovies to detect if they haven't loaded in after a few seconds and then call the loadMovie again, or something along those lines but looking for suggestions from people who have seen this and dealt with it.
View Replies !
View Related
|