ActionScript 2.0 :: Loading External Webpage In Flash Swf
Oct 21, 2010Is there any way I can load external webpage (eg. [URL] or [URL]) in flash swf using actionscript2.0?
View 1 RepliesIs there any way I can load external webpage (eg. [URL] or [URL]) in flash swf using actionscript2.0?
View 1 RepliesSo here's our project hosted by our school. [URL] We dont have a preloader so you have to wait til it's loaded. After the dialogue, you will enter the first GAME (training phase). We call it MEMORY MATRIX. The game is an external swf so it is expected that it will load right away after the button is clicked. The problem is it wont function the way it is expected to and the sound wont load also.
Actually we have 6 external SWFs all in all to be loaded by the main swf. 2 external sounds and 2 external JPEGs and memory matrix is just one of the external files. The paths are correctly set. There are no sub folders. The index.htm is placed together will all the files needed for the game. If I run this using my files here on my desktop, it functions well.
What method is used to load a flash web in to another flash webpage? Something like Iframe do in HTML. Will loadmovie do it?
View 3 RepliesI found a flash movie on the internet and I modified it to meet my needs and works perfectly, but when I uploaded to my website it doesn't load correctly: it should have load the spiral carousel photoslide but instead it loads only the background photo. The flash movie is inside a folder with all the flash files included including the actionscript files, I uploaded that folder to my website and in my index.html page I've put my flash movie.
View 3 Repliesload a webpage withing a flash document,
this is what i want to happen, i want the flash to stop animating/looping (i already have that done) and then instead of opening a seperate page to load a website i want it to load within the swf. CS4 ActionScript 3
I am trying to load the contents of a web page into flash, however I keep getting undefined when I trace the data. For example:
var api:URLLoader = new URLLoader();
api.dataFormat = URLLoaderDataFormat.TEXT;
api.load(new URLRequest(this._api_url + 'logged_in?key=' + this._api_key));
trace(api.data);
It points to the right address, why isn't my data loading though? Do I need to have a crossdomain policy?
is it possible to load a webpage withing a flash document,this is what i want to happen, i want the flash to stop animating/looping (i already have that done) and then instead of opening a seperate page to load a website i want it to load within the swf
View 1 RepliesI seem to have an issue with a flash I have written. The person who I made it for is telling me that first time he loads the page with the Flash in it, it loads fine. However, at this point if he navigates to another portion of the site, then goes back to the Flash page, he says it freezes on the loading bar. Consistently everytime, but only on his work computer, not home computer or lap-top. I think it might be a caching issue in IE, but I am kind of stumped, anyone ever experience this?
View 9 RepliesWhen page is loaded I can scroll it with mouse, But when I load first external movie clip the mouse scrolling function disappears. Is there anything I can do? I have search in flash mx 2004, and tryed to use // Mouse.onMouseWheel but nothing
View 14 Repliesi'm working in CS3, with AS2
I'm taking a website i put together, and plopping it on a DVD.
There are 3 parts to it.
One, is the flash .exe, which brings up a small splash page with general info on me. At the bottom there are two links to webpages i made. I would like to keep all the websites files ON the DVD, and not have the end-user need to have an internet connection, although in these times, i guess i could get by that way.
2nd part, is the webpage's main page. The main page contains a flash frame, in which there are six buttons, each with AS(2) looking to a folder on the DVD, to bring up another URL in the same window. Ru:
Code:
on (release) {
getURL("D:/main/1/index.html","_self");
weird thing is, this works when on the hdd, but as soon as i put it on the DVD and try to run it from there, the main page doesn't connect/open the link I specified. I've also tried it:
Code:
getURL("1/index.html","_self");
and that doesn't work either. i'm not if i'm missing something small, but if need be, i can post a chopped down zip or rar with the files needed for someone to take a look at.
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.
View 2 RepliesI have a Flash website with an online shop. The shop part uses javascript and cgi in separate html pages. I want to insert a link to a URL from these web pages back to "scene 3.0 (home)" in my main .swf file. The .swf is embedded in an index.html file so a link to the URL [URL] starts the flash movie back from the start with the intro and everything. I want it to skip the intro (scenes 1.0 and 2.0) and go directly to the "scene 3.0 (home)" scene.
View 2 RepliesI'm trying to play an external .flv in a .swf and embed in a webpage. I feel like I'm doing everything correctly and everytime I create it, it works offline. When I upload all the files online, nothing shows up. When I right click on the live webpage where the file should be playing it sees the swf, it's just playing and/or displaying anything.
View 1 RepliesI am using movieclips as buttons and i want to navigate through my website using the movieclips. I am using AS2.
View 1 RepliesI am trying to load variables from my webpage onto my .swf
ActionScript Code:
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, loading);
[code]....
This code works perfect for loading variables in a &var1=1&var2=2& etc...But how can I load variables from the page?like do I need to put in &array_name[incrementing_var]=value& and then when i go to access it it should be loader.data.array_name[0] but this doesn't work for me? I realize my URLLoaderDataFormat.VARIABLES is for variables but can i still pass arrays with this? or do i need a new format? or do i need to pass the values as variables and convert them into an array in my AS?
I've created 5 buttons to load 5 different external swfs into my webpage. I use the following script. How do I unload it when the next button is been clicked. [code]
View 3 RepliesI'm calling an external xml file and loading it into Flash. I can only pull the varables out in the onLoad function. Here it is.
var courseXML:XML = new XML();
courseXML.ignoreWhite = true;
courseXML.load("presentSlidesOne.xml");
courseXML.onLoad = function(bSuccess:Boolean):Void {
[Code]...
I've been trying to figure this one out for a couple of days now, and it's driving me nuts! I'm new to flash (I'm using CS3 with AS2), but I've managed to convert a template into an almost finished site. My problem is this: I've made an external slideshow swf which works fine if used by itself. It's saved as a flash 7 AS2 according to the program (Aleo Slideshow Gallery Maker) used to generate it. It's in the same directory as the main swf file. I'm not sure of the code to load and play the external slideshow swf with a button in the main swf file. Do I need to change the html as well as the swf script? I've tried all sorts of things, but I can't figure the script out on how to finish the flash to include the slideshow. The SWF files inquestion are attached - I'm just using sample iamages at the moment. When I go to the gallery page, I want to be able to click on the fly to load and play the slideshow.
Attachments:
slide_btn.swf (17.8 K)
backup70.swf (881.4 K)
I am trying to find simple code to load an external text file to a CS4 .fla file. (Actionscript 3) I have found numerous tutorials and script on google but every one of them gives me syntax errors... I just want to be able to change the text without having to republish the swf every time...
View 1 RepliesHow would I go about loading php in Flash. I have read tutorial after tutorial and basically all the ones I find suck. I can't find any detailed tutorials for doing this. So could somebody explain in detail how to do this or point me in a good direction? I don't know much about actionscript and I don't plan on doing much more with actionscript then just loading external php files.
View 2 RepliesI'm creating an all flash website. My main page has a image mc on the root timeline, in a set location and I'm attempting to make that image change whenever a menu button is clicked, by loading an external swf.I've followed the "Loading Techniques" tutorial here on Kirupa for the AS and the image change works well, except for one thing...When I click on my menu buttons the images change as I've assigned them, but there is a flash of the original image which is sitting on my root timeline. How do I get rid of the original image, upon each click of my menu buttons?
View 1 RepliesI have been trying to get text to load into Flash from a .txt file. Right now I have a dynamic text box set up with an instance name and I am using this code:
homeContent = new LoadVars();
homeContent.onLoad = function () {
homeContent_txt.text = this.content;
homeContent_txt.multiline = true;
[code]....
But when I load the page the word "undefined" shows up inside the text box. Not the actual text from the .txt file. But that is the only thing I get. No error or anything else.
Im having trouble loading external flash files into another flash file....Iv read so much about it but all the tutorials i found are missing so many details....like...how do u target the external flash? Also i would like a movieclip button to open the external flash file..
View 6 RepliesI have a CD and have all my files in it and I want to load them into my flash file, how can I do it?
View 7 Repliesi have been working with a few basic flash presentation to learn the ropes. However, I am working on a flash file which, when compiled, pulls in flash content from elsewhere in the Parent folder. I have read through the FAQ and cannot find the answer, as there doesn't seem to be any Actionscript which handles the importing of these external files.
Are there other methods that I am unaware of? I need to edit these other files, however I find it more beneficial to first understand how the Flash file is compiled before editing.
In my flash, the socket server returns some xml data that I need to parse, but it seems that the only way to start the XML object is with the XML.Load() which loads an external file, but my XML file is already loaded into a variable
trace("raw: "+msg);
msgArea.htmlText += "update remote player loc";
var playerLocXMLOb = new XML(msg);
[Code]....
This is a AS3 project created in FlashDevelop. It targets flash player 10.[code]...
create such a strange loop and error? I´ve been trying to solve it all day. Maybe some kind of settings in FlashDevelop or parameters to the MXMLC compiler?
I'm using the Loader class in AS3.0 to load external images. I need to load a random image each time and I'm using a timer to load a new image after 5 seconds or so. When I load the first image,
[Code]...
The problem is that my fading routine does not work. One image loads, and the next one appears straight away when it is finished loading.
My code feels like a bit of a hack...is there a nicer way that actually works...?
I've been using flash functionality in order to fill in dynamic text variable with an external data. The script works fine, except that now runs very slow - around 30 seconds or so.
myData = new LoadVars();
System.useCodepage = true;
myData.load("get_content.php?id="+_root.id); //get external content[code].............