ActionScript 2.0 :: Let A Xml File Load Swf Files Into A Movieclip?
Apr 28, 2006How can i let a xml file load swf files into a movieclip
View 1 RepliesHow can i let a xml file load swf files into a movieclip
View 1 RepliesI'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code]...........
They click on the topic and the swf file opens up ( I do not integrate it into my site ) It draws the questions and answers from an external txt file. I want to minimise the amount of storage on my site, so I want to make this one swf file be able to get questions from a different range of txt files depending which topic pupils choose.
Currently in the first frame it says
loadQuestions = new LoadVars();
loadQuestions.load("spain.txt");
Would I need to insert a frame in front of this with a selection of buttons which would refer to different topics. Then on this frame an if else kind of clause ? Hope you can understand the message and offer some guidance. lesley
I can't figure out how to load external swf files(9) into my master.swf file one after the other. This is the Actionscript i have written so far.....(AS2)
var myItems:Array = new Array("swf01.swf", "swf02.swf", "swf03.swf", "swf04.swf", "swf05.swf", "swf06.swf", "swf07.swf", "swf08.swf", "swf09.swf");
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myMCL.loadClip("myItems[0]", this.getNextHighestDepth());
The first swf loads alright into my master swf but i can't for the life of me work out how to load the rest after each one has finished loading. Don't know if i need a for loop or what?
I wrote this script a while ago and it's worked extremely well for me ever since. I use it in nearly every project I do. But the other day I was asked to do a project where I could only use Flash 7.
This is a class I made to easily handle multiple file preloading by passing it an array of files to load. It only has two useful methods. One gets you the current total progress (total of all the files 0-100%) and an onLoadComplete. The actual usage is in the top of the file. It works great under Flash 8, so go ahead and use it.
1 is there a way to load an external mp3 file randomly from a list of files in a folder? is there a "rand" function (as in php) or something to get random numbers?
2 how can I display the ID3 tags?
im having a problem..i,e. i need to load an external swf which is in as3...and need it to be played in my as2 swf layout. with a time slider ,play, pause ,next, previous for that swf movie clip. pls give ur mail id i can sent my original files.
View 3 Replieshow i can load a SWF file in Area of my Environment ?i want load a exist swf file in one movieClip in other project.
View 1 Repliesi want to load an image to empty movieclip using xml: i use this code: sample.xml
<?xml version="1.0" encoding="utf-8"?>
<sample>
<image>
[code]....
it doesnt show any errors but i cannot see my image load into my empty movieclip.
I read a tutorial online on externally load swf file into a movieclip of the main swf.[code]
View 5 RepliesI'm loading an external logo (.swf) into a movieclip. The user would actually select what logo to load from a list. After loading the selected logo into the empty movieclip, the user can than apply certain changes such as changing the logo colors, the size, the rotation and the position of the logo over a certain product.What I want to do is to expand on this by allowing the user to select whether they want the logo tiled across the product
View 3 RepliesI want that my movieclip load a file swf named "main.swf" and then trace its Bytes. Below i reported my script.
[Code]...
I'm trying to load an image found in a xml file into a movieclip but am not having much luck... I get this error (I changed the path to shorten):
Error opening URL 'file:///Cpathonmycomputer/myflashproject/undefined'
the code I'm using looks like:
Code:
var _imgme =_xml.firstChild.childNodes[_currSong].childNodes[3].firstChild.nodeValue;
imgholder.loadMovie(_imgme[_currSong], 1);
imgholder is the MC on the stage, _currSong is the current xml child being read.
I want to load my external SWF file using the following code in "Panel4_mc" instead of on stage. How can I do it" function btnClick(event:MouseEvent):void {
[Code]...
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
View 4 Repliesi know that:
sample_mc1.loadMovie("example.swf",1)
//will load "example.swf" into the current "sample_mc1" of the same swf file
however how can I load 'sample_mc1' to a movieclip located in a external swf file?
I want to load Variables from a .txt-file to edit the properties of a movieClip. For example: 700 is written in the .txt-file. After loading the Clip the x-position of the clip should be set to 700. How can I do this?
View 14 RepliesBased on the Kirupa Flash XML Gallery, I tried to expand it as far as I could. Right now, it loads the images, generates buttons dynamically according to how many images are in the XML que, and each image is hyperlinked. I want to load in a swf file dynamically via XML into an another empty movieclip everytime I go to a new image. In another words if I have 9 images in my gallery, each image is assigned a swf file to load into another empty movieclip.
View 1 Replieshow to load for example two xml files, and how to address each of the files? The red comments will explain what I want
[Code]...
I simply have one FLVPlayback component in the background and a movieclip on the layer above with an FLVPlayback component inside it. The first FLV component is constantly looping a five-second video. So all I need is for the movieclip containing the second FLV component to load the right file, fade in, and when the video ends, fade out. Absolutely all of that works... apart from the fading in. What I noticed was that my movieclip was fading in correctly, but the FLVPlayback component was empty and transparent until the fade had finished - then it played the clip. Here's my code, which gets called at random intervals:
[Code]...
I'm in the process of making a web page that'll successfully checked as XHTML 1.0 Transitional ([URL]), but as soon as I place in the fixit.js script under the flash object and view the page in IE, all the flash elements turn white. Quote:
[Code]...
Anyone knows how to place in flash files in xhtml files on IE without manually controls by clicking on the flash file.
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replieswhat I'm trying to do is make a preloader that will preload about 20 external SWF files before it lets you get to my main file. I want to do this because my main file needs the SWFs to be ready to go once its done loading. I have looked around and i found a few ways to do this with the "if (loadedBytes>=totalBytes)" and the code loops back till the files are done loading... this would be just what i need but i cant seem to get it to work. the file just seems to start loading my files but does not loop and just runs the time-line even once i state what frames i want it to loop.
View 6 RepliesI have a question about loading external data. When I had all my actionscript export to frame one, it would slow down the preloader and not show up until it was far into the progress bar animation. So I moved everything to frame 2. The problem with that is now my menus which are populated from an xml file are not there when the site starts to play. How can I get my xml data to load on frame one, but leave the .as fils to load in frame 2?
View 6 Replieshow do I change the settings so that the flash file looks for as. files in a certain file.
View 1 RepliesI have a rotaing menu that loads in images from an xml file, I would also like it to load in text info from the same xml file to the left side of the images that load in. In my main .fla have created a movieclip and called it 'textInfo' and inside that I have two dynamic text fields called 'headerText' and 'bodyText' where I want to load the text in. this is what I am using to loading in the text in my actionscript, is this correct?
[Code]...
I am trying to load a jpg into a loader so I go into the properties then change the content path to input a URL. It works fine on the stage but when I put it inside a button it doesn't work....
View 2 RepliesI am trying to make a mp3 player with different channels of music. The player can load an xml file and then it does play on complete. My problem is loading a new xml file with different music and having it play the new playlist.
View 1 Repliesi am new to AS 3.0. can anybody tell me how to load a jsp file in AS 3.0. is it same as xml loading or ?
View 1 RepliesI load a page with JavaScript and CSS files included in it from multiple iframes embedded in my flex application, are these JavaScript and CSS files loaded multiple times in the browser for each iframe? If yes how can I avoid it or what are the best practices?
View 1 Replies