ActionScript 3.0 :: Multiple FLVplayback/multiple XML Playlists?

Aug 7, 2010

I'm using the code of the -Web video template: Dynamic video playlist- (with no thumbs)and a ComboBox on the stage. It's OK but I need a help to understand how I can use 3 FLVplayback and 3 XML playlists.Since I can't use multiple classes in a .fla and since I need only one ComboBox that triggers all the 3 FLVplayback with their own XML playlist..
 
-My code with one FLVplayback is the following:
 
package { import flash.display.MovieClip; import fl.video.FLVPlayback; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.text.TextField; import fl.controls.ComboBox;

[code]....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: FLVPlayback After Multiple Runs?

Jul 13, 2011

I am working on a piece of software that was written by someone else (that person is no longer available, but part of my job is repairing/maintaining this software).The software has multiple pages, each is a swf that calls loads and plays an FLV file. I've noticed that the audio is inconsistent after multiple runs.For instance, I'll repeatedly run the code in the Flash player by pressing CTRL + E in Adobe Flash (so no html yet). No changes to the code or anything, just play once, close the Flash player, immediately play again, close, and so on. The first few times, the audio loads and plays with no problems. After a few runs, I've noticed that the audio no longer plays.

I put in trace statements to see the state of the player content, and while when it runs correctly, I'll get the usual "playing", "connectionError", etc., on the times when audio does not play at all, the state is "undefined," like the player content was not created.Again, to clarify, this happens with no change in code or file locations. And the problem is always apparent as soon as I run the swf, because on the first page the state is "undefined" if the audio doesn't play (so in other words, it's not like one particular page breaks it partway through). From what I see there is also no persistent data that should carry over from one execution to the next.

View 0 Replies

ActionScript 3.0 :: Flvplayback Component Viewing Multiple Flv's?

May 14, 2009

i have set up a flvplayback instance and when a button is clicked i want it to load in and play a new flv
 
i have the following code:
 
// Add FLVPlayback Class (required for Playing flv's)import fl.video.*;// Create a new FLVPlayback object to hold the video var myVideo:FLVPlayback = new FLVPlayback();// set the width of the videomyVideo.width = 544;//set the video's widthmyVideo.height = 304;//set the video's heightmyVideo.x = 200;//set the video's horizontal positionmyVideo.y = 88;//set the video's vertical position// set the video source to the current video stored in the variable myFlvmyVideo.source = myFlv;// put the video on the stageaddChild(myVideo);
 
all this works fine and the first flv loads and plays fine no problems

[Code]...
 
I know how to use netstream but unless there is a way to use skins with it its not the way i want to go.

View 3 Replies

ActionScript 3.0 :: Loading Multiple Videos In FLVPlayback

Jun 4, 2009

I am building a video player which should load multiple videos in a FLVPlayback. When the loading of the first video has finished, the second one should start, using the VideoProgress Event.

My code looks like this, videos is an array with the paths to the videos:
 
flvPlayback.addEventListener(fl.video.VideoProgressEvent.PROGRESS, progress);
flvPlayback.addEventListener(VideoEvent.COMPLETE, onComplete);
private function progress(e:fl.video.VideoProgressEvent):void

[Code]....

Now I have the problem when I test this locally, the first video is invisible sometimes when starting to play. This is not happening everytime, but sometimes the video is not shown, but I can hear the sound, and I can see the scrubber on the seekbar moving.
 
I already tried to check in the progress function if the video is already playing, and if not, set a timer that will call the progress function again in 1 second.

View 7 Replies

ActionScript 3.0 :: Cannot Have Multiple Flvplayback Instances Using Fullscreen

Feb 20, 2012

I am using AS3 with CS5. I created a flash project which contains multiple instances of flvplayback. Each plvplayback plays a separate video and each has its own controls. It all works fine when playing, pausing and controlling the videos. The problem is with the fullscreen functions. If I click the fullscreen button on the first flvplayback, it makes the second video go full screen. If I click the second video fullscreen button, it opens fine into its own video except when I do it three to four times. After three to four times of toggling fullscreen on the second video, it opens the first video into the browser larger than its original size but not full screen. I have tried recreating the flvplayback instances by re-importing the video files. Each flvplayback has been given its own instance name. Even when I create a separate custom button, not part of flvplayback, and give it the command to launch fullscreen on the first video, it still opens the second video to fullscreen. When I use just one video and remove the other ones, toggling fullscreen works fine for that particular video.

View 1 Replies

ActionScript 3.0 :: Stopping Multiple Instances Of FLVPlayback?

May 8, 2008

i have one FLVPlayback instance on the Video page and another on the Discography page...when i navigate away frm either of the two pages, i need the loaded flv to stop playing... so i've used the following code for my navigation buttons : (the navbar is a movieclip on the maintimeline...video_mc and discog_mc are also on the main timeline... flvPlayer is the instance name of the FLVPlayback component..)

Code:
stop();
//setting destination frame label variable
var destin:String;

[Code]....

View 3 Replies

ActionScript 3.0 :: Sync Multiple FlvPlayback Instances On Stage?

Jun 7, 2011

i have 4 flvplayback components on stage loading 4 different videos. How do i sync them?

I have ensured they are all fully buffered i.e fully loaded and then play them all at once. But they keep getting out of sync. I.e i am checking the sync with the playheadtime. I had written an timer/enterframe event to check for out of sync at and pause and seek times to the fastest playing player . But this happens for every second. i keep gettting a very jittery video with breaking sounds due to the constant pause /seek / play cycle.

How can we sync multiple flvplayback videos properly.

View 1 Replies

ActionScript 3.0 :: Html Webpage Load Multiple Flash Simultaneously Which Uses FLVplayback Component?

Mar 28, 2012

Can a html webpage load multiple flash simultaneously which uses FLVplayback component ? Because I am trying to create a webpage then loads and play multiple videos in flv format simultaneously and was thinking of using 3 or more flash file to play the videos.

View 5 Replies

ActionScript 3.0 :: Putting Multiple Instances Of The FlvPlayback Component In Different Frames And Using Buttons To Navigate To Frames

May 2, 2011

there seems to be no accepted method of playing multiple flv using buttons. My latest attempt has me putting multiple instances of the flvPlayback component in different frames and using buttons to navigate to those frames. It works but nothing anyone has posted anywhere will result in removing the flv when you go to a different frame and instance. This was simple in AS2. Load movie to a traget and each time you load a new movie the other one goes away. REALLY goes away.

View 7 Replies

Flash :: Using An External Class With Multiple Frames On The Timeline And Multiple Stage Placed Buttons

Sep 21, 2010

I have a problem when making flash applications with more than one frame that has symbols placed on it in that I can't declare all of the event listeners for the objects at the same time and I have found that even if I put them all on the first frame, add the event listeners, then click through to the next frame then the buttons won't work on that frame.

Does anyone have any idea how I could solve this? I did consider myself a fairly competent AS3 programmer until I realised I had no idea how to handle this sort of thing. Solved: I initialised the clips from my external class and then addChild'd and removeChild'd them as I needed to and placed their x and y on addChilding.

View 2 Replies

ActionScript 2.0 :: Multiple Conditions - An Object Will Go To A New Frame If Multiple Buttons Are Pressed?

Aug 12, 2009

i have an if statement, an object will go to a new frame if multiple buttons are pressed

PHP Code:[code].....

now i want it so that if one condition is met the mc will goto frame 2, if 2 conditions are met, frame 3 and if 3 conditions are met, frame 4.i know i could do this with a lot of if statements but i have a lot of movie clips to use this code on, so is there any way to write an if statement that will trigger different options if multiple conditions are met?

View 4 Replies

ActionScript 3.0 :: Mysql Database Design = Multiple Students + Multiple Results

Feb 9, 2011

This is more of a database design issue but almost everybody here uses database integration with their apps so I feel it is important. I am integrating AS3 + mysql + php and need to clear up the database design for multiple students results in various activities. Developing an online e-learning course with a "dashboard" or teacher control panel with all kids results in each activity. I have read the database design rules by Codd etc... understand the need for parent and child tables so information is relational and not duplicated etc... BUT I am not sure how to design the results part. Various students do various lessons with 10 activities which each give a mark out of ten. The table would be updating every few seconds as 10,000 users would be online at the same time

1. Would I create a results table with all the students results going in the same table ie: Tom would be the first row

[Code]....

View 5 Replies

Flash :: Multiple Loadmovie() Ends Up With Multiple Videos Played At The Same Time?

May 24, 2010

i use loadmovie() to load youtube videos inside my flash website but when i load another video the old one doesn't stop, so i tried unloadmovie to destroy it but it seems that i did a mistake in my code

This is how the code looks to stop the old one an load the new:

vloader.unloadMovie();
vloader.loadMovie("http://www.youtube.com/v/Alw5hs0chj0&hl=fr&fs=1hJ-mPcGtC");

How to do that? use other objects or classes, i only want to edit that code.

Note: I have an empty MOVIE CLIP called "vloader" where i load the video player.

View 2 Replies

ActionScript 3.0 :: Flash For Loop Loading Multiple Images Into Multiple Movieclips

Feb 5, 2012

[Code].....

I have a group of 16 images that I would like to load 1 of each into each movieclip. I want image1 to be inside of visual1, image 2 inside of visual2, and so on. the images are named like, 1960s_(1).png where the 1960 (year) part is coming from the rangeNum variable. The above gives me this error: 1061: Call to a possibly undefined method addChild through a reference with static type int.

View 4 Replies

ActionScript 1/2 :: Drag And Drop Multiple Boxes And Snap To Multiple Locations Then Reveal Button

May 3, 2011

I'm Trying to develop a small game where the user chooses from a range of boxes of the left of screen and can drag 3 of them separatley to 3 holding boxes on ther right. each box can be dragged to any location and the order is not important. Once the 3 holding boxes are all full I want a new button to appear. I completed a tutorial and I've got one box working perfectly but no matter what i try I can't get it working with multiple boxes and locations. Below is a list of the instance names of the movie clips plus my actionscript. I've attached a link to the flash file.
 
[URL]
  
INSTANCE NAMES
 
box 1 = "circle_mc"
box 2 = "circle_mc2"
both the grey boxes are called = "targetCircle"

[Code].....

View 6 Replies

Flex :: 'fake' Multiple Series For Single Chart Or Same DateTime Axis For Multiple Charts?

Apr 11, 2011

I want a chart that has several separate series running in rows across. They are largely separate charts and should not overlap, but all share the same horizontal datetimeaxis. They don't share the same y-axis, however and that's where I'm getting stuck.I have tried having a linechart series and then a plotchart series, but it will only allow a single <mx:series> per chart without having them inside the same series which as far as I can tell will place the charts on top of each other in the z-axis. I can stack them and have them completely separate charts, but it was proving to be somewhat irritating having them align correctly.

Is there any reasonable way of combining multiple charts into one like this? Basically having rows in a table where each row is a different chart but the columns are consistent. or am I going to be best served just by stacking separate ones? an illustration of what i'm going for is here: http:[url]........

View 1 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects To Multiple Target?

Sep 10, 2009

im creating a small drag and drop game in AS3-
 
I have 4 objects and 4 targets,
 
I want to be able to drag any of the 4 objects onto any of the targets, right now all I can manage is to allow each object drop onto one specific target only.
 
I thought by calling all my target names by the same instance name eg target_mc that would work but only one target will ever work.

View 8 Replies

ActionScript 3.0 :: Loading Multiple Images To Multiple Loaders With A Loop?

Sep 2, 2010

i have been building a library that has thumbnails which you click to view the full image. i have built the application it works but i want to change the way the image on the actual thumbnail loads using code instead of manually adding the value to the url loader component.

var myX;var instanceN:String;trace(instanceN);var currentLoad:uint = 0;// current loader and image loadingvar thumbnailURL:String;//Thumbnail URLvar thumbReq:URLRequest;// Thumbnail url requestfor(var k:uint = 0;k < iL_btn.length; k++)[code].....

the loop runs fine without the last line of code which i've commented out.the make up of these thumbnails are a uiLoader component which are each inside there own movieClip.what i wanted this to do was every time the loop runs it currentLoad adds 1 to its value then that value is subbed into instanceN:String and thumbnailURL address that bit works the trace statements read correctly.but my issue is using the instanceN value as the instance name path which then loads the current thumbnailURL value which is the URL address for the thumbnail picture.when i try to load the url address using the commented out code above i got the error .TypeError: Error #1010: A term is undefined and has no properties.the trace statements correct values below

the first value is the currentLoad value.

the second value is the instance name path.

the third is is the URL address for the thumbnail.[code].....

View 3 Replies

Professional :: Multiple Buttons Linking To Multiple Pages From One Movie?

Aug 28, 2011

I have a flash movie with 3 buttons I am trying to link relativley to pages within my site, I have one working fine but can't get the others to link and when I try it makes the one that is working, work no more..

Below's the code I am using for the one that is working;

import flash.events.MouseEvent;var getIndex:URLRequest = new URLRequest("../index.html");
//---Enter Button---\

[Code]....

View 5 Replies

ActionScript 3.0 :: Multiple Scenes With Multiple Instances Of The Same Slide Show

Sep 8, 2009

Ok so here is my XML slideshow Actionscript:

ActionScript Code:
stop();
var xmlRequest:URLRequest= new URLRequest("graphicImages.xml");
var xmlLoader:URLLoader = new URLLoader(xmlRequest);

[Code]....

So I figured that the coding of separate scenes would work independently of one another, but I guess I was dead wrong, because when I apply this to a different scene and change the XML path for a different set of images, I get all sorts of conflict errors when I test the entire movie. I have my flash film set up so that each link send the user to a different scene, which plays a unique intro for each, and then the slideshow appears on screen and the viewer can navigate the images.

Is there a work around for this? Or am I going to have to break my flash movie into separate movies? Or should I just add a suffix to all my vars and functions so that they are unique for each scene?

View 1 Replies

Ajax - Making Multiple Asynchronous Calls To Fetch Result From Multiple Services In The Single Click Of A Button In Flex?

Dec 27, 2010

In one of our project we are using flex for front end, blazeds/java in the backend. Its an existing code where services are prewritten. I have to make calls to 3 services in the backend (basically 3 remote objects) and get their result and store the result in an object and show the data of this object in a view.
Now in front end we are using Flex and Parsley Framework. I was thinking of the following approaches.

1) Making commands for each service call and storing the result in a shared object (model) and then displaying this model in the view. In this approach the problem is some services are needed in some other web pages, but they donot need the same model. How should i handle this scenario ? Should i make a asynchronous remote call and fetch the result and then again dispatch and event with the event object storing the result.

2) Making a service call , wait for the result then make another call and wait for the result and then make other call, not sure if this is the right way ?

View 2 Replies

ActionScript 3.0 :: Control Multiple Sounds In Multiple Timelines

Mar 10, 2009

Here's the setup:

-I have a music score that will be streamed in via actionscript

-I also have multiple short sounds (SFX) in multiple nested MCs

-these SFX sounds are customized using the ide edit interface, so it would be a pain to use actionscript to play each sound

What I need: To have 1 mute button for the music, and 1 mute button for the SFX, both on the root timeline.[code]...

View 7 Replies

ActionScript 3.0 :: Loading Multiple Images On To Multiple Movieclips?

Sep 16, 2009

I have 50 images that need to be on stage, which will be embedded into 50 different movie clips. I named the movie clips image1-image50 and the images are in an external folder named 1-50. Every freaking article or tutorial I have found clearly explains how to upload one image, or just one at a time. I can do that, and spend 2 days renaming all the functions, but I do not want to do that. Is there a better way to just load all 50 images, place them accordingly?

View 3 Replies

ActionScript 2.0 :: Multiple Buttons Activating Multiple Items?

Jan 5, 2010

I have a map with a list of items to the side. I want the list to work as buttons and highlight both the button and the particular image on the map... and when you click you link to a certain location.I also want to be able to MouseOver the map, have both the image on the map and the corresponding 'button' from the list highlight - but when you click, you go to a different location than if you would have clicked from the list.I have it set up - but something is conflicting. Here is how I have my code set:

Code:
BUTTON_ONE.onEnterFrame = function(){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();[code].......

View 1 Replies

ActionScript 3.0 :: Multiple Videos To Play With Multiple Buttons?

Feb 4, 2010

I am creating a stand alone DVD to be used with Flash player. I am wanting to add different videos that play with different buttons. The following is the code I have for the video to play when the corresponding button is clicked..... My problem is how do I get that video to "leave" and stop playing when another button is pushed to play a different video.
 
Educators_btn.addEventListener(MouseEvent.CLICK,clickEducators);
function clickEducators(evtObj:MouseEvent)
{
gotoAndStop("OE")

[code]....

View 2 Replies

Professional :: Copy Multiple Object On Multiple Layer With ALT?

May 27, 2010

In version before flash CS5, we could copy multiple objects from multiple layer by just click and drag + ALT, that was really usefull and it becames vital for me. Now in the CS5... the click and drag + ALT on multiple objects from multiple layer is copying all objects to only one layer !

View 3 Replies

Professional :: Drop Multiple Images In Multiple Frames

Aug 22, 2011

I have 260 images that I need to place on different frame. Instead of dragging them one by one the image on the stage, is there a way to drop all of them in one shot but each images is on a different frame?

View 3 Replies

ActionScript 1/2 :: Multiple Drag And Drop, Multiple Targets?

Mar 25, 2012

I'm making a Multiple Drag and Drop in Multiple Targets educational puzzle for 6-7 y/o kids that tries to teach them a bit about which plants grow in which environments in the country. So, I have a map of Mexico divided in 3 diferent zones: desert, forest and tropic, and 6 different plants (of 3 different groups: cacti, pines and tropical flowers, 2 of each) scattered across the stage and around the map. The goal is for the kids to drop the plants in the right zone and then to click a "verify" button that triggers a validation process. Each of the plant's movie clip has 2 frames with a stop(); action on each: the plant graphic spans across both frames and the second frame has a red error sign over the graphic that indicates an error has occured (if that's the case). Then the validation process triggered by the "verify" button is supposed to move the playhead of each wrongly placed plant move clip to the second frame to show which plants are misplaced and move the main timeline's playhead to a frame that contains a "Please try again" text and a "Restart Puzzle" button. If all the answers are right, an animation plays saying that it was VERY WELL DONE! .
 
I searched the internet for some tutorials and found a file that is pretty close to what I need. I've tried to adapt the code to my puzzle but have failed miserably. The file is here if you want to check it out (scroll to the bottom of the page, it's called Soldier.fla). I'm not pasting the code here because it's VERY long, but I will if required. If you want me to upload the files somewhere else and link them here, I will. If you need me to send them to you I'll be glad.

View 10 Replies

AS3 :: Flash - Listening For Multiple Events On Multiple Objects?

Sep 20, 2010

I currently have an over, out and click event for 8 different objects. The over and out events are identical for each (tween expands object and then shrinks it back for the out state).I have previously asked for an easy way to declare those events, and now I was looking for an easier way to handle them.

Here's my code:

//-----------GARAGE
function growGarage(e:MouseEvent):void{
scaleTweenX = new Tween(map_garage, "scaleX", Elastic.easeOut, 0.648, 1, 0.5, true);

[code]....

I've tried using a single function and then using "this" as the object of the tween but that expanded the entire stage.

View 1 Replies

Flex Chart With Multiple Series And Multiple Axes?

Jun 1, 2011

There is a serious issue I am facing with flash builder charts.

When I load the chart the first time I get this -

But if I refresh the page immediately in the same browser, I get this -

The second one is the expected one. This issue just repeats if I close the browser window and open it in a new browser window. For explaining properly, I am attaching the source code here -

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved