ActionScript 2.0 :: Loading External Flv's From A List?
Jun 20, 2009
I'm making a flash app that play's movie clips on the main stage.
I have 4 buttons on the bottom for 4 different catagories of movie clips.
I plan to be able to update the catagories with 5 new movies per week (replacing 5 older movies).
My knowledge of actionscript is limited, so I have just imported each individual flv (which are hosted on a webserver) onto individual keyframes on a movie clip and just placed a simple gotoAndplay action script on buttons to play the movies.
My question is: Is it possible to have a file with the list of .flv url's on it and then each keyrame to look at the file and load a specific line.
i.e. keyframe 1 load line1 from movie list, keyframe2 load line2 from list etc etc.
This would save me alot of time, as at the moment I am going into each keyframe and changing the url of the flv when I update. If I could just change the url's on the text file, that would be great.
View 1 Replies
Similar Posts:
Sep 3, 2009
So I am trying to load a text file into flash, grab all of the files listed in it and then load them into flash. Not working. Heres my code.
ActionScript Code:
import flash.display.Sprite;
import flash.events.Event;
[Code].....
View 5 Replies
Apr 11, 2012
i developed application in action script 3.0 with adobe flash cs4 professional. In this application, i loaded another external swf which is having flash list component, but while loading the swf in main swf it showing TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::BaseScrollPane/drawBackground()at fl.controls::List/draw()at fl.core::UIComponent/callLaterDispatcher() please, kindly suggest me for this issue.
View 3 Replies
Jul 11, 2009
i have wasted almost two days on that.im loading a list of img urls from xml file:
<image>
<item><![CDATA[http://www.thelatest.co.il/images/tags/court.png]]></item>
<item><![CDATA[http://www.stockvault.net/images/sv08/random/firepit.jpg]]></item>
<item><![CDATA[http://www.stockvault.net/images/sv08/random/cloudysun.jpg]]></item>
[code]....
now, the problem is that only imges in the array that located in 1,3,4 etc position are loaded,and the mc ignores the imges in 0,2,4 positions.
View 21 Replies
Sep 27, 2003
I have an array, how can I load it into a list box? Also, I have 6 arrays, I put them each into a different layer, Is that correct?
View 5 Replies
Oct 11, 2009
I 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 Replies
Feb 23, 2011
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]....
View 1 Replies
Jun 4, 2004
[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 Replies
Nov 2, 2010
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].....
View 3 Replies
May 4, 2011
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
Jul 19, 2009
I want to load external png's through this code:
(for this code, check the mcBandPreloader in de .fla file)
Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {
[Code]....
Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?
.fla can be downloaded at [URL]
View 2 Replies
Mar 16, 2004
I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player
View 3 Replies
Apr 20, 2005
I'm trying to load a SWF movie into a target movieclip called blankmc. The SWF movie is loaded from an absolute URL (eg. [URL]/img/20042005113934movie3.swf ) My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG! Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
[CODE]...
View 3 Replies
Dec 6, 2009
I originally built this in Flash 8, then moved the files over to CS4. I have a list component where I've loaded song files through xml and everything is working great. How to make it play one of the 8 files randomly when it starts playing, instead of it always starting with a specified track (currently track one obviously). So each time a visitor comes to the site it is a different song.
PHP Code:
this._lockroot = true;
//make textfields autosize
album_txt.autoSize = "left";
artist_txt.autoSize = "left";
title_txt.autoSize = "left";
//create sound object
[Code] .....
View 10 Replies
Dec 27, 2009
How do I manage that, while the movie starts, some parts of the Display List are "hold in the backhand" and get loaded when I decide that they should.Can I only do that via external SWF-Files? Further question: Is it possible to stream the files, by calculating the download speed and starting the movie when I want it to do, or is Flash doing that automatically
View 4 Replies
Jun 26, 2009
I'm loading an xml file that contains nothing more than a list of "valid" zip codes. Here's a sample of the xml:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<zipCodes>
<zip>82930</zip>
<zip>82931</zip>
<zip>83114</zip>
...and so on.
What I need to happen is when a user enters a zip code, I need to return a "yes" or "no" based on whether or not the zip code they entered is in the xml list. So far, it only works if the zip they enter happens to be the last one on the list. This tells me that it's either not searching the entire file, or that it perhaps needs to search in a loop somehow.
Here's the code that works the closest to what I need:
stop();
var xmlLoader:URLLoader = new URLLoader;
xmlLoader.addEventListener(Event.COMPLETE, showXML);
xmlLoader.load(new URLRequest("zipCodes.xml"));
var xmlData:XML;
function showXML(e:Event):void {
[Code] ....
View 6 Replies
Jun 27, 2003
I have a list of countries that are in an xml document. I was wondering if here was a way to randomly load ten of these and place them on the stage in random places. I want to get the effect of this intro: [URL]. (not the one with the black background)
View 8 Replies
Apr 4, 2009
I got a text file in the same directory as the flash file, and I am wondering what is the problem with it loading the url. the header is live on [URL] and it doesn't want to load the urls. what would be required to get it to do this? when ctrl + enter to test the movie, it loads the url in a new window. am pasting the code below:
Code:
// CLASS IMPORTS
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
[Code] ......
View 1 Replies
Apr 10, 2009
Specifically, I am building a flash page that loads external swf files and inside some of the external swf files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf
View 1 Replies
Jun 27, 2009
Lets say I have Main.swf and sub.swf, and I wanna load sub when I press a button from Main, but sub.swf has its own external class file attached, so here is the problem, when I load sub using loader class and I would get this message from the output panel:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at subScript()
seems loader class can not access sub.swf's external class when sub is being loaded.
View 1 Replies
Apr 24, 2010
Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?
View 2 Replies
Oct 8, 2010
I have an external video list (array) that is set up to load and play in an FLVPlayback component. The client wants individual audio control buttons: 1) Up volume 2) mute 3) Down volume. I have AS on each of the buttons but it's not controlling the volume of any of the videos. The only one that works is the mute or "stop all sounds." I'm unsure on how to go about getting what I want.
View 5 Replies
Oct 8, 2010
I have an external video list (array) that is set up to load and play in an FLVPlayback component. The client wants individual audio control buttons: 1) Up volume 2) mute 3) Down volume. I have AS on each of the buttons but it's not controlling the volume of any of the videos. The only one that works is the mute or "stop all sounds." I'm unsure on how to go about getting what I want.
View 9 Replies
Dec 5, 2011
I've done some googling for the past hour, but I can't seem to find what I need.Maybe I'm overlooking something.I want a very simple, basic thing. But I have no clue how to do this.I have an external XML file which holds a list of names.I want these names to be pushed/added to an array so I can access it based on it's position in the array. (A for loop is used to read a different XML file and the child[i] is named after the same array spot, childName[i]
View 10 Replies
Apr 11, 2009
I'm trying to load xml data embeded in php into a listbox component. I have a piece of code that just loads the xml but does not display it in the list box
<code>
var yourXML:XML = new XML();
yourXML.ignoreWhite = true;
yourXML.onLoad = function(success:Boolean) {
[Code]....
View 8 Replies
Nov 19, 2010
I'm trying to load a bunch of external swfs into a tile list. Once the swfs have been loaded I'm adding them to a dataprovider which I then sort and add to the tilelist. Like so:
dp.addItem({label:e.currentTarget.content.getLabel(), path:e.currentTarget.content.getPath(), source:e.currentTarget.content, cost:e.currentTarget.content.getCost(), category:e.currentTarget.content.getCategory()});
It works fine except that the way I'm doing it I have to add a bunch of functions to each swf to know which one is loaded and pass the correct info to the dataprovider.Is there another way to tell which swf has been loaded? Something like this.URLRequest. If I could tell something about it I could compare that to my original xml and find out all the other information I need for my dataprovider.
View 2 Replies
Dec 6, 2009
I'm having trouble figuring out the code to add to this to create a random loading song every time the page is refreshed.[code]...
View 0 Replies
May 24, 2005
I created a site using Kirupa's external .swf loading tutorial. Now in one of my externally loaded .swf's, I am loading another external .swf. I've gotten this to work fine, but the second external .swf (loaded into the first) contains buttons that will swap this second external .swf with another external .swf. I can't seem to get the AS references to the variables set up correctly in order to swap the swf's. The initial .swf loads fine, but the button control gets complicated inside it. It sounds rather confusing, so I've included a link to the .fla's and .swf's below.
[URL]
The file structure:
-band.swf load's profiles_main.swf
-The buttons in profiles_main.swf are trying to load chris.swf (swapping it entirely with profiles_main.swf)
View 3 Replies
Apr 24, 2010
I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any security limitation or setting preventing external swfs loading other content?
View 3 Replies
Jan 28, 2010
Environment: Flex/As3/Cairgorm/composite component.I have two comboboxes and two datagrids such that the selection of combobox 1, inserts data into combobox two and the fist datagrid.The selection of combobox 2 inserts data into datagrid 2.I have setup the change event so that the user selection on each of the combo boxes do the right thing. The problem is that on the initial load of the comboboxes, the change event does not fire and subsequent synchronization data loading does not happen.Is there an event for getting the itemselected (1st item) after the combobox is initialized?
View 1 Replies