ActionScript 1/2 :: Method Of Loading External Webpage?
Apr 20, 2010What 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 RepliesWhat 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 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.
Is there any way I can load external webpage (eg. [URL] or [URL]) in flash swf using actionscript2.0?
View 1 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.
i'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 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?
I 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 new to Flash and am working on a banner slider where there are 5 different images (slides) that come onto the scene about 8 seconds apart. Each slide I am trying to link to a web page but am getting the error; TypeError: Error #1009: Cannot access a property or method of a null object reference. at NLE_fla::MainTimeline/frame1() I'm sure it has to do with the link on the second slide not being found since the slide doesn't load right away. Am I supposed to be loading some variables first or something? Here's my code;
[Code]...
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 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 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 RepliesWell yeah, it sounds funny, but all I want is to read the value of Capabilities.version to get the right version of the Flash player? I have tried getting the version info from swfObject library, but it doesn't give the complete version info:[URL]..
FP version info have 4 numbers: major, minor, release and build. I couldn't find an API which can give me all four on all browsers without loading SWF. Hence I am looking for help here.
I am trying to load a video using a URL, and I keep getting this error:
Code:
VideoError: 1005: Invalid xml: URL: "http://pegasus.dev.webriverinteractive.com/API/Resource.ashx?ResourceID=16&FLVPlaybackVersion=2.1" No root node found; if url is for an flv it must have .flv extension and take no parameters
[Code]....
I have a main SWF e-learning tutorial and want to have video pop up on certain screens. over the main area.It would be like a person walking over a screen shot of a program.
1. Should I do an load the video through an Add Child method or load it to another level? User would click a button to see the video.
2. Can you pull out all the back ground in a program like Adobe Premiere and have a transparent background or will I need to put some form of a background in like the screenshot.
I want to use setter method for my xml object which is contain Images path. Actually I want to load images in swf using xml so for this purpose I make a xml object using URLloaing class and I want to setter and pass these object to other class ........like ImageLodingClass. My question is how to receive this object in ImageLodingClass IS it is String so how to Convert in Array for storing All path of images?
View 3 RepliesI have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.
View 10 RepliesI've learned recently that you can use txt file for simple data too, so I include it here as well.TXT contains (not sure if correct, should have same data kind as the xml):
point1&x=1&y=2
point2&x=1.5&y=2.5
point3&x=5&y=-5
XML contains:
<?xml version="1.0" standalone="yes"?>
<points>
<point1 x="1" y ="2"></point1>
[code]....
What I have:
- I have 2 dynamic textfields: text1 (variable: outPut1) and text2 (variable: outPut2)
- I have 1 input textfield: (variable:inPut)
- I have 1 button
What I'm trying to do:
- When typing point1 in the input textfield and then pressing the button,(onRelease), outPut1 textfield should show the number 1 and outPut2 textfield should show 2.
- Similar, when typing point3 in the input textfield and pressing the button, outPut1 should show the number 5 and outPut2 should show the number -5.
-It is not only for these three points, it should be applicable with say 50.000 to 200.000 more of such points, each with different x and y values.
To sum it up:So Flash (with AS2) should screen the nodes or txt (for those point names) on what was inserted in the input textfield, then fill the corresponding attributes (XML) seperately in the textfields and all that after the button was pressed. The same deal if it was done with txt, if possible (have read that with txt, loading of data would be faster?).
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 bunch of functionality which is going to be used throughout the application.I already have some utilities which work ok such as changing an AS3 object into XML.public static function convertMyObjectToXML(o:Object): XMLThis can go in a UTIL class somewhere.nother thing i would like to do is create a "createDirectory" via php. public static function createDirectory(name:string, path:String): voidThe problem is, in order to get the response from the server, i need to listen for the load to complete (or fail).So am i right to think that static methods are not possible or desirable here? How else can i solve the problem of reusing such a method throughout an application?
View 0 RepliesI created a MovieClipLoader a few days ago that is reuseable. I will be using the same preloader graphics when I am loading in external swf on my stage. My MovieClipLoader functions fine with jpegs and smaller sized swf files. But whenever I load a larger sizes swf it loads the movie before it has fully downloaded in simulation mode. The odd part is that everything works fine with smaller swf files but not larger ones . I have tested a few movies and that seems to be the common theme.
In the example below main.swf is the clip I am loading into "mcBackground".
[Code]...
I am loading 20 thumbnails. I am loading 20 large pictures of the thumbnails. Large pics load second, pushed into largePicArray They all load at different times. So I can't just throw them in their own array, and them call upon them by their elements. So I can't push 20 thumbs to array1, and 20 large pics to array2, and hope that their elements are in the same order. It won't happen.
So my Q is this. What is the easiest way to place them in the same element order after they all have loaded? So that, for example, "thumb17.jpg" can be in any element of its thumbArray, and then "largePic17.jpg" would be in the same element position, in largePicArray. If "thumb17.jpg" is in element 5 of thumbArray, I need largePic17.jpg to be in element 5, in largePicArray.
I have a few ideas, but I want to hear ideas. Maybe you know a nice, easy route?
I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:
PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();
[code].....
I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.
View 2 Replies