Loading Remote XML
Hi,I have a problem loading remote XML file into SWF file.Im doing a banner for a client with adds that is supose to load constantly updated XML file from my clients server and load some images into flash form it.Everything works fine when i test the movie (CTRL+ENTER), but when i publish it and test it from explorer, XML file is just not loading into flash.Any ideas!??tnxFilip
Adobe > Flash Data Integration
Posted on: 01/28/2007 09:49:13 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading .swf, Remote
hello all,
pretty simple question:
My loadmovie works fine locally, but remotely the external swfs are not loading.
The stranger thing is that I currently have a site on the same server and loadmovie works fine there.
Any troubleshooting tips, or maybe just something stupid that I am forgetting?
Thanks
Loading Remote Jpg's
Hey Gang,
Is there a way to load external jpg's from a remote location, so a user can access jpg's on our server from an swf on theirs? Must the jpg's reside in the same dir as the swf?
Best regards...
Lance
Remote Loading
www.geocities.com/thefutureisgreen/
when you click the music button, it opens a little play/pause box
using this code. everything works okay.
on (release) {
_root.contentsc.loadMovie("music.swf","1");
}
but, what i want to do, is open a different clip i made from a remote location, so i used this code, however it does not work.
on (release) {
_root.contentsc.loadMovieNum("www.geocities.com/getsome334/music2.swf", 1);
}
does anyone know what i am doing wrong here?
when i click the button with the new code, nothing happens.
Remote Mp3 Loading
is it possible to load a mp3 file located on another server in a flash movie?
Loading Remote Movies
Hi I was wondering is it possible to call in movies that are on a remote server?
Eg can i load in a swf that is at say www.site.com/flashmovie.swf into my swf? Or do all load movies have to be local???
On the same vain is it possible to pull text from a text file that is on a remote server?
Thanks in advance
Brian
Loading Remote Actionscript: Is It Possible?
I'm curious if it is possible to load an external Actionscript file during runtime, so the bulk of the movie's Actionscript can be authored and modified outside of a flash environment.
I know about the include feature, but you still need to publish the Flash file from inside Flash to get the latest version.
For instance, if you have a Flash-based site, then had an administration backend that had a section with one large text box, your Actionscript would be inside that window, and you could update it via the web, and the next time you load the Flash movie on the web, it would load in your newly-updated Actionscript.
Thanks for any assistance you guys can give me!
HELP: Loading Remote Txt From A Local Swf
Hello
I'm trying to load some remote text to my flash newsticker locally. This SWF file will be imported to my Director project
I've been trying to get the txt file from my website but the swf newsticker won't get it.
Got the news ticker from:
http://www.flashkit.com/movies/Scrip...0590/index.php
This newsticker has 2 frames with actionscript inside and a movie where the txt should scroll.
The code:
1st frame:
Code:
loadVariables("texto.txt", 0);
newsText.autosize = "left";
var maxheight = newsText._height;
var maxpos = 0-maxheight;
gotoAndStop(2);
2nd frame:
Code:
if (newsText._y < maxpos){
newsText._y = 20;
}
newsText._y -= 0.21;
gotoAndPlay(2);
The variable text file (texto.txt) is at http://www.cinemainvisivel.org/PHP/texto.txt
I reed this:
http://www.moock.org/asdg/technotes/crossDomainLoad/
http://www.moock.org/asdg/technotes/crossDomainPolicyFiles/
and this:
http://www.macromedia.com/cfusion/kn...fm?id=tn_16520
But didn't get how to do it.
Tryed the Server-side Proxy method but seems it won't work, or I'm missing something. The Shim SWF method is to complicated...
There's no pragmatic example.
Can anyone help me with this issue?
I would need a more explicit help.
Thank you very much for your time and care.
Best regards.
[F8] Loading Remote XML Confusion/Help?
I have a swf file that loads on a webpage from (www.domainA.com), that is designed to access a remote xml file on (www.domainB.com). When loaded on the page, a dynamic textbox tells me that the sandboxType is set to 'remote'.
When the application loads, it does not load the xml file from (www.domainB.com). My solution was to create a php file on (www.domainA.com) next to the flash application to proxy the data from (www.domainB.com). Although this solution works great, this puts extra load on the server with the increasing amount of people using the flash application on their webpages.
I do not have any administrative access rights to (www.domainB.com) other than to read the xml file. Is there any way to get the flash application to read from (www.domainB.com) on its own?
Loading Content From A Remote ASP
Hello,
I don't know if this is more an Actionscript question or a general question, but here it goes.
I'm loading content from an ASP using the XML class. If I run the project inside flash, the ASP reads properly, but if I run the SWF on the Flash Player, I get a security error saying that I can't access a website on the web. For testing purposes I set my SWF file as secure on the security definitions, so now I'm able to run my SWF properly (it also loads the ASP properly).
Now here's my problem: if I run the SWF embedded in an HTML file, the ASP output is never loaded (I'm opening the .html file locally on my browser).
What is the problem here? Does it have something to do with the security settings of my Internet Explorer? Or is there any other issue that I'm not considering at the moment?
Best regards,
Norberto
Loading An XML From Remote Server
I have this swf that loads an xml with 3 lines of text.
Works fine when the swf and the xml is on the same server.
The problem is that they have to be in different servers, and then the swf can't
get access to the remote xml. I read somwhere that
this is a security precaution from macromedia. Anyone know a way around this?
Any help would be very much apprechiated!
Loading Xml Into Mp3 From Remote Site
Hi,
I have created an mp3 player that loads files via xml but now that i'm trying to embed the player into different websites it won't load anything.
In fact I haven't even gotten to that stage yet. All i have done is create an html page with links to an swf hosted on another server.
I know that the swf and xml file need to be hosted on the same server, so that's not the issue. Can anyone help? Hopefully i've given you enough info.
this is the code I use on the html page:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="400">
<param name="movie" value="http://www.sanctuaryrecords.co.uk/happymondays/player/index.swf" />
<param name="quality" value="high" />
<embed src="http://www.sanctuaryrecords.co.uk/happymondays/player/index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="400"></embed>
</object>
and here is the actionscript in the flash file:
// mp3 player script
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
trace(songname[i]+" "+songfile[i]);
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = random(songfile.length);
_global.song_nr = 0;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
MovieClip.prototype.songStarter = function(file, name) {
this.sound_obj.loadSound(file, true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this.onEnterFrame;
_root.player_mc.display_txt.text = name;
} else {
_root.player_mc.display_txt.text = "loading...";
}
};
this.sound_obj.onSoundComplete = function() {
(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfiles[song_nr], songname[song_nr]);
};
};
_root.player_mc.btn_play.onRelease = function() {
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
_root.player_mc.btn_stop.onRelease = function() {
_root.sound_mc.sound_obj.stop();
};
_root.player_mc.btn_fw.onRelease = function() {
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
_root.player_mc.btn_rev.onRelease = function() {
(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
playlist.load("playlist.xml");
Loading Remote Pictures?
I have a photo slideshow template that I built in Photoshop and imported into Flash. There is a white space for the pictures and I normally have to import the picture I want there into the library and such. Is there a way that I can load the picture remotely. I want to have both a dialup and flash site so the dialup would have the plain pictures sized for the flash movie... And then when a flash user clicked on the link for the flash album, the flash movie would load that picture and center it and such into the specified place. Is this possible?
Thanks,
Ram0135
About Loading Remote MP3s...
I recently posted a question about making a button trigger an MP3 file, and Goten gave me a quick solution. Load the MP3 into a movie clip and call the URL, however this does not solve the question about making an MP3 song array, then calling the sound clips remotely to minimize download time...the question is, how do I write the AS to do this?
I have a couple of samples on calling on one song clip but not multiple ones.
BTW- thanks for your input and patience Goten.
New LoadVars Remote Loading Just Not LOaDInG
Ok heres the deal. this script works great locally but remotely it chokes.... I havent been able to figure out what the issue is yet but would greatly appreciate the pointers.
Ok I have a movie clip that does all the work with the instance name of "SmartText" inside this I have five frames "Start,Loading,return,checkit and Loading" all in that order.
in Start(the first frame) I have the following frame functions:
container = new LoadVars();
//need only change the names and maybe levels
container.load(_global.textname);
function percentages() {
percentloaded = Math.round((quant/total)*100);
if (_global.vat ==4){
_level2.txtinfo.MyText.wintext.window_text.htmlTex t= "<i>loading"+percentloaded+"%</i>";
}
else {
_level2.txtinfo.MyText.window_text.htmlText = "<i>loading"+percentloaded+"%</i>";
}
}
function finload() {
//which means if on services page
if (_global.vat == 4) {
_level2.txtinfo.MyText.wintext.window_text.htmlTex t =container.window_text;
_level2.title.htmlText =container.title;
}else if (_global.vat == 2){
//which means if on home page
_level2.txtinfo.window_text.htmlText = container.window_text;
_level2.txtinfo.title.htmlText = container.title;
}
//if on aboutus
else if (_global.vat == 1){
_level2.txtinfo.window_text.htmlText = container.window_text;
}
//if on contact
else if (_global.vat == 7){
_level2.txtinfo.window_text.htmlText = container.window_text;
}}
basically I have started the new LoadVars and created two functions
percentages(), which should generate percentage loaded and finload()which should load the info in the correct location.
Loading (second frame) I have the following AS:
quant = Math.round(container.getBytesLoaded());
total = Math.round(container.getBytesTotal());
percentages();
if (quant>=total) {
gotoAndPlay("checkit");
}
return (third Frame) I have:
gotoAndPlay("loading");
checkit (fourth Frame) I got:
quant = Math.round(container.getBytesLoaded());
total = Math.round(container.getBytesTotal());
percentages();
if (quant>=total) {
gotoAndPlay("loaded");
} else {
gotoAndPlay("loading");
}
Loaded I simply have:
finload();
stop();
thanx again to all who attempt to unravel my mistery.
cheers
Loading Remote Variables On First Frame
Heya
it's a survey, and it loads the question & answer choices from a perl script, into 2 text boxes (easy) and into 3 or more answer radio buttons (harder). i can load values into the radio button by clicking on a regular button, but i really need to load them into the radio buttons when the movie starts, with an onclipevent maybe. (tried that already)
the radio buttons are a MC. this is the script on the button that i click to load the variables into the radio buttons - this works fine:
----------
_root.answer_group.answer1.setLabel(a1);
----------
can i do the same thing automatically when the movie starts?
tanx
FK
Loading From Remote Sites Into Flash
What I need to do is to have flash load an image from my members Lycos account into my movie. I've seen similar tutorials but nothing saying exactly what I want. If someone could explain it in simple steps or upload an example .fla (Flash 5 please) I would be most grateful.
Loading An Image From A Remote Location?
Hi,
I was wondering if it's possible to load and image into a movie clip from a remote location in Flash MX. Is this possible without Flash Communication Server?
Any knowledge would be greatly appreciated
Many thanks,
Barrie
Loading Variables From A Remote Source
Hi all! Is there any way to get flash to load variables from an external remote source? I have my swf and my php file with the variables on different servers. How can I bypass the global security rules? Thanks,
chris
Remote Image Loading Question
HI.
I have an application where I need to load a set of remote images. I then need to flick between these images quickly. I could do this by preloading the images during the load-bar pre-loader section of my project and displaying them when needed.
I have loaded and used remote images and used load bars before. What I was wondering is the best method to preload images and then only display them when needed.
I could load the images in the load bar section, set them to size 0,0 somewhere off the screen and move them onto the screen and in the right position when needed. Or alpha blend them out and blend them back in when needed. Is there better method to do this?
What i'm really looking for is if some clever person knows the most efficient method to carry out this task.
Thanks in advance for any help you may be able to offer.
Loading Remote Swf Which References Other Swfs
Hi,
My scenario is as follows:
swf A on server A loads swf B from server B. Swf B references other private swfs that also reside on server B, and swf B refers to these other swfs as local files. If swf A loads swf B inside of itself, when swf B goes to load it's reference swfs, it looks for them locally on server A now. Does anybody know of a way to load swf B into swf A and still have swf B run on the remote server somehow so it can access it's local server B data properly? I realize this is a long shot, but I thought I'd ask.
Thanks,
CJ
Problem With Remote SWF File Loading
I've got a piece of flash software that reads an XML file, builds lists of slides/movies/information to include, and then proceeds to load each of the required bits into a movie clip on the stage. The user can then navigate from one item to another in a number of ways.
All my remote files are located on a single server in a single domain. I have a crossdomain.xml file set up on that server to allow my local swf file to read files from that server.
All seemed to be working well, until I tried an XML file that contains references to .swf files. When the .swf files are supposed to download, the local file hangs and never completes download.
Is there some difference with respect to the security model between a remotely hosted jpg, mp3, flv or other file and remotely hosted swf files? I'm lost in security policy hell here. Any help would be appreciated.
Thanks
Cris
Loading Jpegs From A Remote Location
Sorry if this has been posted before, I did look.
I have a flash site that has a large number of
jpegs on it, if I put all the jpegs in the site takes
ages to load. I need to know how to be able to
have the jpegs load when you go to that page.
I am using flash MX.
Thanks in advance.
(sorry if I missed any details out)
Loading Movies From A Remote Location
Hello-
One thing I don’t understand about this tutorial. How does the loaded file know how big to appear in the main movie?
http://www.kirupa.com/developer/flash5/loadmovie.htm
I'm just learning. Thanks for any help!
Loading Remote SWFs / It's Path?
Greetings to all the Helpers out there. I hope you're having a great time.
I have a question about how the PATHS of remote SWFs when loaded. Example, you have your root folder for your website. what will happen if the local will be uploaded to the server?
e.g.:
on (release) {
loadMovieNum ("c:/path/localfolder/example.swf",0);
}
How do you make that RELATIVE and not ABSOLUTE? So that when it's upload to the server, it won't have any issues on wrong paths to SWF.
Loading Remote Images Into Flash
What I would like to be able to do is to allow a user to type in a url of an image into a text box, and in the next frame have that image displayed. How would I go about this?
Dynamic Remote XML Loading Problem
Hi All,
I have a problem with loading externally generated XML, which seems to work fine locally...
here's the XML code from my actionscript:-
Code:
XMLFile = "http://remoteXMLGenerator.asp";
XML_Publish = new XML();
XML_Publish.onLoad = myLoad;
XML_Publish.load(XMLFile);
function myLoad(ok)
{
if (ok == true)
{
Publish(this.firstChild);
traceout.text = "XML SEEMS FINE!";
}else{
traceout.text = "problems were encountered";
}
}
function Publish(XMLnode)
{
while (XMLnode != null)
{.... parsing coding
Not sure how to introduce a loop to continually check if the XML is loaded, or even whether I should be using onData and data, but I just tried a basic tutorial from an O'Reilly book, and it seems like onData should only be used as an intermediate, after the XML is loaded...
Any help or point in the right direction would be appreciated here guys...
Real PROBLEM is the 5-10 second intermediate lag it takes, for the external XML generator to poll a bunch of CITRIX servers for their terminal availability before rendering out the XML data.
THX
[HELP] Remote XML Not Loading In Local Flash
( i had previously posted this topic under the ActionScript area, but with no responses, and later discovered this problem only relates to newer versions of flash )
i'm producing a cd-rom which will contain a flash projector that will auto-run when the cd is inserted.
one of the features of the Flash application is that it must read xml output from a php file off of our company's website. unfortunately, I can't seem to find a way, after scouring the internet for 2 days, digging through forums, and trying every permutation of my code I could possibly come up with.
I am aware of the cross-domain policy file, which we have in place.
I am aware the flash application needs to load this file, which it (supposedly) does. (i've replaced my company's domain name with MYDOMAIN for security purposes)
I also included this code to try and cover every base I can think of:
Code:
System.security.loadPolicyFile("http://www.MYDOMAIN.com/crossdomain.xml");
System.security.allowDomain('*');
System.security.allowInsecureDomain('*');
My application so far just chooses to silently fail when attempting to read the file I'm requesting, even though I know my PHP and XML outputs are exactly to specifications.
Adobe's website has been of NO help whatsoever, and right now the forums over there are undergoing maintenance.
I'm pulling my hair out, and in need of this community's expertise.
I am a beginner to intermediate flash developer.
I have another part of the movie which is accessing a local XML file, which works just fine. Either way I publish the movie (local access only / network access only), this thing refuses to load my remote XML and I have no idea why.
Here is the present code which (should work):
Keep in mind that results_txt is a dynamic multi-line text field, whose instance name is 'results_txt'.
I also realize DisplayNodes isn't being called below (i have tried using it, but also ... to no avail. I put it in here so if anyone figures this out, they'll know how I'm trying to report the data retrieved).
my 'certifier_xml' object calls load('http://www.MYDOMAIN.com/get_cert_xml.php?T=MN&TYPE=bsc') from a ComboBox which triggers load during the 'change' event.
Code:
results_txt.text = ""; // Reset result text when frame is displayed.
// Specify an XML object we can use to access our data
certifier_xml = new XML();
certifier_xml.ignoreWhite = true;
certifier_xml.contentType = "text/xml";
certifier_xml.onLoad = function(success) {
trace("Load attempted");
if(success) {
trace("Load succeeded");
results_txt.text = certifier_xml;
}
}
/**
* DisplayNodes()
* @param String[] nodes
* @param String field_txt
*/
DisplayNodes = function(nodes, field_txt){
field_txt.htmlText = "";
for (var i=0; i<nodes.length; i++){
var entry ="";
for(j=0;j<nodes[i].childNodes.length;j++)
{
entry += nodes[i].childNodes[j].firstChild.text;
}
field_txt.htmlText += entry+"
";
}
}
PLEASE HELP
Remote Flv Loading - Button Action
Hi all
here's my problem hope someone can help me
I've 6 .flv videos uploaded on a remote server...On my main server I've an swf movie with 6 buttons each one to play a remote flv
I've also placed on the main stage of the swf a FLVPlayBack component that should display the flv, instance name "player".
Now if the flv files reside on the same server as the swf and I use this actions of the buttons
Code:
on (release) {
player.contentPath = "flv_movies/movie1.flv";
}
everything is fine...
when I try to use the following action to load the remote flv files
Code:
on (release) {
// Create a NetConnection object
var my_nc:NetConnection = new NetConnection();
// Create a local streaming connection
my_nc.connect(null);
// Create a NetStream object and define an onStatus() function
var my_ns:NetStream = new NetStream(my_nc);
// Attach the NetStream video feed to the Video object
player.attachVideo(my_ns);
// Set the buffer time
my_ns.setBufferTime(5);
// Begin playing the FLV file
my_ns.play ("http://www.myremoteserver.com/my_rem...ies/movie1.flv");
the remote flv actually does loads as you can hear the sound...but you cant see the video! I have no idea of where the video is loading...
the swf containing the buttons with the actions is loaded on level 2 of the main stage
I need some help...let me know please (my main server has file size restrictions so I have to have them on another server)...
Loading Movies From A Remote Location
I followed the instructions on your website and were successful but I don't seem to be able to do this and not have the loaded movie loop.
Both the original movie and the movie I have loaded are set to not loop so why does it loop under these circumstances and how do I stop it?
Please help
Sharone
Loading Movies From A Remote Location
Hello-
One thing I don’t understand about this tutorial. How does the loaded file know how big to appear in the main movie?
http://www.kirupa.com/developer/flash5/loadmovie.htm
I'm just learning. Thanks for any help!
Loading Remote SWFs / It's Path?
Greetings to all the Helpers out there. I hope you're having a great time.
I have a question about how the PATHS of remote SWFs when loaded. Example, you have your root folder for your website. what will happen if the local will be uploaded to the server?
e.g.:
on (release) {
loadMovieNum ("c:/path/localfolder/example.swf",0);
}
How do you make that RELATIVE and not ABSOLUTE? So that when it's upload to the server, it won't have any issues on wrong paths to SWF.
Loading Remote Images - Bandwidth Burden?
When using Flash MX to dynamically load an image froma remote location, where does the bandwidth burden lie?
example:
webpage with my flashfile is at www.here.com and it loads a jpeg from www.there.com - does my server (www.here.com) load the image, and send it on, or does the flash file get chached on the user's computer, and load the image directly from www.there.com ?
I <i>think</i> that the flash file is chached, and the bandwidth used is from the image host, but I am looking for someone to confirm this.
Problem With Loading Remote Image To Local Swf
Hi,
I have the following code to load an image file(jpg) from remote server to a local swf. But it just says "Error opening URL".
Quote:
var swf:MovieClip = _root.createEmptyMovieClip("swf", _root.getNextHighestDepth());
var loader:MovieClipLoader = new MovieClipLoader();
var obj:Object = {};
obj.onLoadInit = function(target_mc:MovieClip) {
trace("onLoadinit");
};
loader.addListener(obj);
loader.loadClip("http://192.168.1.2/image/image02.jpg", swf);
trace(System.security.sandboxType);
I think it's a security issue. But the result of trace(System.security.sandboxType) is localTrusted.
According to the Flash Player 8 Security document, "SWF files assigned to the local-trusted sandbox can interact with any other SWF files, and load data from anywhere (remote or local).".
I have tried this image URL in the browser and it's OK.
Now I am confused. Do you guys have any suggestions?
Any help will be appreciated.
Problem With Loading Remote Image From Local Swf
Hi,
I have the following code to load an image file(jpg) from remote server to a local swf. But it just says "Error opening URL".
Quote:
var swf:MovieClip = _root.createEmptyMovieClip("swf", _root.getNextHighestDepth());
var loader:MovieClipLoader = new MovieClipLoader();
var obj:Object = {};
obj.onLoadInit = function(target_mc:MovieClip) {
trace("onLoadinit");
};
loader.addListener(obj);
loader.loadClip("http://192.168.1.2/image/image02.jpg", swf);
trace(System.security.sandboxType);
I think it's a security issue. But the result of trace(System.security.sandboxType) is localTrusted. According to the Flash Player 8 Security document, "SWF files assigned to the local-trusted sandbox can interact with any other SWF files, and load data from anywhere (remote or local).".
I have tried this image URL in the browser and it's OK.
Now I am confused. Do you guys have any suggestions?
Any help will be appreciated.
A.I Responses - Writing/Loading From A Remote XML Document
Hey guys, im a bit rusty on flash as ive not used it in so long. Im using Flash 8 (Obv, since im posting in this forum ) and have the intention of creating a small game where the user will ask the "Artifical Intelligence" questions by typing them into an input box, the AI will then respond based on the question.
Im not trying any super-advanced sub stringing of user inputted questions to pick out different clues as to what to respond, I just want a response based on the exact question asked like the following:
User - "Where do you live"
*Checks for "Where do you live" in XML document
Loads the response for displaying in a dynamic textbox inside the flash.
A.I - "I live in your cupboard"
Thats reading from an XML document, but i would also like to know how to write to the same xml document (located in the same location as the .swf on a website) so the user has the opportunity to add his/her own questions/responses to the A.I effectively building up a smart little system.
Hope ive not been too confusing
EDIT: If its easier to do this using PHP, thats fine, I would just like to learn how to
Remote Flash Files Much Larger Than Remote
Hi,
I am developing a Flash 8 Pro site
on a Mac OSX Tiger
For some reason, my published Flash movie files
are much larger than I thought
When I look at the files on my hard drive,
it's telling me that my homepage HTML is around 4kb
and my SWF is around 300kb
When I upload these to my ISP and examine these
same files (using Dreamweaver's Site Managing Feature)
these files clock in at
972 kb for the HTML
176402 kb for SWF
There are a lot of Flash Buttons on the homepage
that in turn use the loadMovie function
Why do the local and remote file sizes differ so much?
thanks
Remote Actionscript Issues - Local Vs Remote
i made web banners with the intent that the shell being the initial swf, could pull an external swf file from a remote site.
view here:
http://www.anthonythomas.com/duplicolorespn/
the main .swf file has to be under 30k, which it is. now the other .swf files load when you rollover the buttons. this method fulfills the 30k requirement on the advertisers side - also allows the creative to have higher res images/swf files hosted on our site/side.
in testing it locally, it all works great...
but when i moved the .swf file to
http://www.justinhale.com/test/
to test it -
the files hang up when you mouse over the buttons - is there a chance you could check out my source?
here:
http://www.justinhale.com/duplicolorbanner.fla
i'd really appreciate any help this forum could offer.
i checked out the security settings. security.allowDomain,
not sure if i'm using it correctly?
thank you,
jh.
Loading Remote Variables & Assigning Non English Charset Value?
Hello all,
I'm tring to write a simple flash txt scroller that loads the txt from an asp file. The code runs well if the text is in english.
But when i try to write some turkish chr to the database flash player doesn't write them or some garbage data appears at the scroller.
I sent the data as url encoded or nonurl encoded or html encoded and try some permutations of them.
I try to clear the html encode data from the entry end replace them with the chr codes but still there is same problem.
But when i write turkish txt inside a fla file they appear correctly.
Please help me.
Loading Html To String Directly From Remote Site
For example, I need load html page directly from "http://www.yahoo.com" to string variable in flash and then parse it.
Is any way to resolve this problem?
I'm trying use LoadVars class. But it cut-offs and shuffle html.
PHP Code:
var my_lv= new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace( unescape(this.toString()) );
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load("http://www.yahoo.com");
Loading Html To String Directly From Remote Site
For example, I need load html page directly from "http://www.yahoo.com" to string variable in flash and then parse it.
Is any way to resolve this problem?
I'm trying use LoadVars class. But it cut-offs and shuffle html.
-------------------------------------------------------------------------------
PHP Code:
var my_lv= new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace( unescape(this.toString()) );
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load("http://www.yahoo.com");
Loading A Movie From A Remote Location And Reloading The Main Movie
HELP!!! I have a flash movie that loads a movie (at level0) from a remote location.. There are two movies there, one that stops the movie and another that reloads the main flash movie (I just rename the swf's to toggle which one I want loaded). The problem is, when the second remote swf reloads the main flash swf, it just loops back to playing the remote swf again. I've tried using telltarget to make the main movie play a frame after the actionscript that loads the remote swf, but that doesn't work either. Are there any alternatives to doing this? thanks...
Loading Text With "remote" Text File
Ok I am using LoadVars to load an external file to a textarea, which loads fine.
ActionScript Code:
var textVars:LoadVars = new LoadVars();
textVars.load("textMain.txt");
textVars.onLoad = function(){
main_text.text=this.textMain
};
The only issue is that if the text has ' or " in the text, it shows up as a box. Any suggestions as to how to make sure it is showing as ' or " instead?
Thanks!
MM
Remote Control?
Hi everyone
Anyone got an idea how to get one mc to control another, sought of like a remote control, with play, stop, ff, rw etc??????
MadJE
Playing A Remote MP3
Hi all,
i wanna play a background sound on my Web-Site.
In the common way - everything works fine (importing the Sound-File and then export everything in the film)
But now i wanna play a mp3-File on a remote-Webserver.
I only have a url to the mp3-File.
How can i manage it to play this file.
Television Remote
hello once again..
I'm workin on making a television remote that the user can use to view different things about the site..
the remote has a power button, and the digits 0-9
each channel will be reached by pressing two buttons (1 7=channel 17, 0 3=channel 3, ect)
I've been told this can be done possibly by arrays, but I just started into actionscripting so I have NO clue how I'd get started..
but as an overview...
when the user presses the two buttons, it will load a mc in the viewing area..
any clue on how to write an array for this..?
Use Php On Remote Server
I Need help with the following:
I want to run a php script with a .swf file on a remote server.
This is my construction:
file_a.swf (_root) on http://www.server_a.de loads the file:
file_b.swf (_level10) on http://www.server_b.de which again uses loadVariables... to execute a php script that lies next to the file on http://www.server_b.de (same folder).
And that does not work.
It does work, when they are all together on the same server.
My literature (friends of Ed, the THICK one) says, the file must be on the same server as the script for some security reasons. But what is the file?? Is always the _root-file the mother of all files? Cause the executing file and the script are in the same directory...
If the above is so. Where could I find a workaround???
Christian
Remote Access?
How can an external SWF control an action in the movie timeline that it's being placed.
clip1.swf is being placed inside mainmovie.swf now i want to write a code like turning a music off in the mainmovie.swf, but i want the code to be inside the clip1.swf
is this possible?
|