ActionScript 3.0 :: Sing Two Arrays To Load A Sequence Of Videos In 2 Zones Of The Flash Movie?
Nov 2, 2010
I'm currently using two arrays to load a sequence of videos in 2 zones of the Flash movie.
var zoneAarray:Array = new Array("movie1.mp4", "movie2.mp4", "movie3.mp4");
var zoneBarray:Array = new Array("movie4.mp4", "movie5.mp4", "movie6.mp4");
var clipA:String = zoneAarray[0];[code]....
Everything works fine, but I would like to import the list of videos from an XML file instead of hard-coding it in Flash
View 5 Replies
Similar Posts:
Jun 14, 2004
im doing actionscript to link pages.The needs is : have a set of .swf file movie ,i need to let the user to click on the .swf file they would like to see later .Examples: the user click 1.swf and 2.swf , so it must show 1.swf then 2.swf.i already try out this using array but how can i using array to loadmovie and trace 2 movie like the case above.
View 14 Replies
Nov 3, 2009
I've multiple videos stored as MovieClip objects and would like to merge them into a single MovieClip video object in order to play all of them in sequence (so that a user thinks it's a single longer video).
View 7 Replies
Jul 12, 2011
I want to make an application in AS 3 in which a XML will be read and it contains all the tracks that I want to be played. But every movie must be played in fullscreen, and the transaction can't be seen by the spectators. So who is seeing the playlist must not see what is 'behind the movie'. Only movies being played sequentially in fullscreen. Is it possible to be made?
View 1 Replies
Aug 2, 2007
I have flash movie that I'm loading other movieclips and swfs into.At the moment when I load in a new swf, the timeline plays through the intro sequence, then when I select new content to load into replace it the movie simply vanishes without showing the outro sequence.It's been puzzling me for a while now but i've seen it used on many flash sites so i'm guessing there's definately a way to do it.
View 4 Replies
Jul 6, 2004
i m doing a program which contain few text. When i click a button,'step 1' text will be view. When i second, 'step 2 ' text will be load out and 'step 1' text is still in the stage.. the method i m using is array.i put my text in an arrays.
View 9 Replies
May 26, 2011
I am wondering where I should start with using Flash to create a video chat.
View 1 Replies
Jun 16, 2010
watch this Flash file I've created that includes a video.
[URL]
When importing the .flv file of the video into the Flash project, I chose the imbedding method. I realize this increases the size of the overall .swf file when doing so. On the first watch (before the file is cached) it tends to pause while loading and/or jumps. I've tried other methods (like choosing the file has already been deployed to a web server, and play methods such as progressive download from a web server, stream from a Flash video streaming service, and stream from a Flash communication server). When choosing those other methods, the video loads nicely but the audio sounds a bit more distorted while playing. So, at present, I'm using the embed video in SWF and play in timeline option. Does anyone have any other suggestions to improve the video buffer speed, performance and the overall loading and quality of the Flash file? I'm still using Flash Professional 8.
View 5 Replies
Jan 25, 2011
I have a swf file, which plays 6 videos one after the other in a loop. This file is very huge so it is taking more than a minute for it to start playing after the page finished loading. I have taken the original video file, and split it into 6 files. I plan to have 6 tiles in the flash file as soon as the page loads, and when some tile is clicked, the video is loaded dynamically only that video or swf file so that it saves the loading time and once this is done, i want it to revert back to the main page with tiles. I am just starting off with flash and I have no clue how this is possible in flash. I am not asking for code, i need some tips to get started.
View 1 Replies
Sep 14, 2009
There are 10 buttons on the stage and a display area. Clicking any button runs this function[code]...
This works well for the first few videos but after 5 or 6 unload/load cycles, the player gets slower and slower and eventually stops responding. I thought the basic idea of unloadMovieNum was to remove a movie from the stage and reclaim the memory but this doesn't seem to be the case.
View 9 Replies
Sep 17, 2011
Has anyone seen a Flash video player out there that will load and play two videos at the same time, such as for comparing videos? A potential client is looking for something along the lines of this. I've not been able to locate anything out there,and I'm wondering if there's a usability reason for this...Obviously, you wouldn't want the audio playing for both at the same time, and the bandwidth issue for something like this might be a concern too. My feeling is that you wouldn't want to restrict a user to just playing both videos at once, but give them the option to play them separately or at the same time, with controls for each audio and playback.
View 1 Replies
Apr 11, 2009
Okay so I am trying to load external swfs which load videos dynamically.
I can load the swfs into the parent fla fine (if I remove all the code and just place a circle or something on the stage of the swf), and the swfs are also loading their respective videos correctly. But when I try to load the external swfs, if they contain any casting related code in them, I'm getting an error
[AS]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at swf1_fla::MainTimeline/frame1()[/AS]
Is there some specific method to casting within external swfs?
My code for loading the videos is this:
[AS]var vc:NetConnection = new NetConnection();
vc.connect(null);
var vs:NetStream = new NetStream(vc);
[Code].....
View 1 Replies
Apr 13, 2009
I have a movie clip with hit zones over buttons. It looks like a cam corder and when you roll over them a thumb moves to that button and when you click. The thumb presses on the button. That all works great. I want to put buttons in the main scene over top of these that will change things on the screen when you click it. And get urls of the videos that I have on my website. But when I put the hitzones over other hitzones the ones in back dont work. Is there a way to make them both work or am I going to have to make everything contained in the movie clip? So in short can I have two buttons on top of each other that do two different things?
View 8 Replies
Oct 16, 2007
I am developing an application to display different time zones. Class works fine only once, later it fails to update the movie with dials of clock. I not sure what could be the issue, I am using delegates as methods weren't called previously.
[Code]...
View 2 Replies
Jun 8, 2004
I have a main movie with 12 buttons (numbered 1-12), each button loads the relevant swf into a blank 'content' MC on the main stage.
I also need to have 1 button called 'start' which plays whichever swf is due next. ie; if you are on swf no. 3 pressing start will load swf no. 4.
How do I do this, what do I need to look into?
I guess a simple way would be to have the 'start' button tell the 'content' movie to go to a certain frame which has an action on it to load whichever movie is next...
View 2 Replies
Apr 17, 2010
it has interactive picture gallery where you roll over with the mouse and click on the desired photo to see it on bigger size. I would like to replace the big photos with videos of my showreel. you can go and check it out: [URL]. Flash only allows me to exchange for the same file this case pictures.
View 6 Replies
Sep 19, 2009
I just want to make a timer counting down to an event and I found this one:
Code:
//Create your Date() object
var endDate:Date = new Date(2009,9,5);
//Create your Timer object
//The time being set with milliseconds(1000 milliseconds = 1 second)
var countdownTimer:Timer = new Timer(1000);
[Code] .....
which works good enough for me, but the problem is that I need this timer to count the same time no matter in which time zone are you, but unfortunately this isn't the case.
View 4 Replies
Sep 29, 2002
I have two swf's. One main movie and one sound movie. The sound movie exports the sounds,
providing linkage which I want to use in an actionscript in the main movie. How do I call upon the sounds from the second movie? The reason why I have two files is that Flash doesn't allow me to choose in which frame the sounds will be exported, it's the first frame or who-knows-when. Would it be a good solution to load the sound swf into the main movie, placing it during the preload of this, and export the sounds with linkage names from this and (later) call upon them from the main movie? Is it possible at all? If it is, how do I do it?
View 4 Replies
Mar 6, 2009
What would be the simplest way of linking a set of 6 swf files to play in sequence, automatically, and without maxing out the master files timeline?
View 5 Replies
Dec 7, 2005
can i adjust the speed of play of a timeline. For instance when a button is clicked i want the timeline to speed up to a certain point and stop. Not to play at the normal speed?
?#2
i have the following code
Code:
mousex = _root._xmouse;
[Code]....
this works fine, however if i load a movie clip on top of this one the _hits are still active..when the loaded movie clip is unloaded, the movie behind has moved based on cursor movement. how do i deactvate the _hits on command?
View 3 Replies
May 11, 2009
I have been trying to create an automatic slideshow at a click of a button. I have tried a few ways using timer class to show images(stored in an array) for a few seconds but i can't seem to get it working. Below is the code that i am trying to get it working..if there is any kind soul out there,
[code]...
View 4 Replies
Oct 15, 2010
I'm planning to break my Flex applications into different modules and need some advice regarding the loading of modules.Currently, on load of the application, I need to add 5 modules as children to HGroups under a viewstack.I'm using a ModuleManager to perform this and listens to the ModuleEvent to add the elements as IVisualElement under the HGroup.
View 1 Replies
Dec 29, 2010
I am trying to load an image sequence separate movieclips and then play the image sequence by changing the alpha in sequential order. (If there is a better way of doing this loading external images using a method similar to loadMovie then please feel free to share.).
I have accomplished loading the images and changing their alphas to 0 so they are not visible. Now I am trying to animate them using onEnterFrame to change their alpha in sequential order. Here is code I am attempting to use. I don't get any errors but I don't get any image changes either.[code]...
View 9 Replies
Jul 28, 2009
I want to to load a series of swf files into a scene sequentially. I stumbled onto some Actionscript 3.0 code in this forum that accomplishes this.
var a:Array = new Array("1.swf", "2.swf", "3.swf");var l:Loader; function didLoad(e:Event){addChild(l);doLoad();} function doLoad(){if (a.length) {l = new Loader();l.contentLoaderInfo.addEventListener(Event.COMPLETE, didLoad);l.load(new URLRequest(a.splice(0,1)));}} doLoad();
Unfortunately, I also want to be able to load the swf files into movie clips in the scene. This code doesn't do that. It loads the swf files on top of each other sequentially. I want to be able to position the swf files side by side. how to tweak the code to load the swf files into movie clips in the scene.
I can't seem to make it work. No matter how much I play with it:
[Code]....
I've since lost contact with the person assisting me. I've read up on arrays, and I don't think that this is my problem or why I can't get my head around it. Maybe its the loop?
View 5 Replies
Jan 21, 2011
I am running into some trouble adding an array into another array to create a multi-dimensional array.The code appears as below:
var slideDataArray:Array = new Array();
var slideShowDataArray:Array = new Array();
slideDataArray[0] = xmlData.SlideShowParameters.SlideShowImagesDirectory;[code]........
I am looking for a means of placing the slideDataArray into a 'slot' or value of slideShowDataArray so that I can in the end pass the slideShowDataArray as a parameter to another function.As of now, the last slideDataArray appears 11 times (the loop runs 11 times) in slideShowDataArray and the way the code is written the slideDataArray is unique every iteration of the loop.
View 1 Replies
Jan 23, 2003
i have to load a sequence of external swf files inside a MC.I have no problems with that, but i want to, load the first, and after is fully loaded, make a timer that waits 30 seconds, and then loads the second external swf file.i dont have the original fla files of the external swf files.
View 1 Replies
Sep 29, 2009
I'm having a heck of a time trying to get a number of external SWFs loaded into one main SWF in successive order, the next one playing after the other has ended. To complicate matters, the external SWFs have FLV files in them.
using Flash CS3
Actionscript 3.0
So, here's essentially what I'm looking to do: - I have one main SWF file (call it main.swf)- load several SWF files into this file so they play in order (let's call them movie1.swf, movie2.swf, movie3.swf, and so on) - these external SWF files all have FLV progressive downloads (not embedded, becuase then my audio doesn't sync up) - I want movie1.swf to load and play in the main file, then detect when the movie is complete, and unload that audio/video then load in movie2.swf, and so on.
This script seemed promising, but loads all of my SWFs on top of each other, making for some ::interesting:: audio... (i have it pasted in actions on first frame in main.swf)
var a:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf");var tl:MovieClip=this
var index:uint=0;
loadF(new Event("nada"));
[Code]....
Maybe there's some code that can be pasted in the individual SWFs?
View 2 Replies
Mar 16, 2010
I built a flash player that has many external flv videos. The player functions perfectly when played in flash with the test movie function. It also plays fine in deamweaver when the .html file is imported into it. The problem is once the player is uploaded onto a site with all the files in the same folder the .html loads and the flash file functions perfectly but the videos do not load.
The skin of the videos load, but the area where you would be able to seek through the video has a rotating green barber shop looking thing like it would be downloading the videos, and the videos never load. I have debugged it and it came up with no errors. So now I come to the people that have more experience than me with this. I would be happy to forward a link or swf file to anyone if it can help see where the error is. I'm thinking it is a few lines of code that I am unaware needs to be in my file. I will leave it to the experts.
View 9 Replies
Nov 11, 2010
having trouble loading videos that exist already at a URL on the web. Its a pretty straightforward loader, so I'm not sure what the problem is... I'm getting the error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
Here's the code:
ActionScript Code:
var vidLoader:Loader = new Loader();
function loadVid(ref:String):void{
[Code]....
View 4 Replies
Mar 16, 2011
I have exported a movie made in premier pro into a png sequence. Now I'm trying to put it in flash but when I import it, there doesn't seem to be a way for each png to occupy each key frame. Do I have to manually insert and align each png? That seems crazy because I have like 108 pngs.
View 5 Replies