ActionScript 2.0 :: Assign Mutiple Flv's To A Single Group Node In An Xml Playlist??

Jun 28, 2007

I have been able to successfully build an xml video player that can play videos that all have a unique description attribute but I would like to have the user click on a title and it play through multiple videos while that one title is highlighted. Here is the code that I have so far:

var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function() {

[code].....

View 4 Replies


Similar Posts:


Flex :: Combine Mutiple Movie Clip Functions Into A Single Swc File Or MXP File For Flash?

Feb 17, 2010

I have to build one MXP package for Flash (not Flex). But i have multiple components, somthing like HelpSymbolMovieClips(have its on class), one image holder. etc. I need to combine there swc file into a single MXP file.How can i make a all these multi movieClip functionality in a single SWC file. Am bit confused about the structure of the component which is having multiple functions/MoiveClips. like (Image gallery components.

View 1 Replies

Actionscript 3 :: XML Playlist With Single-Track Looping?

Mar 26, 2012

My plan for my website is to have music tracks pulled from an XML file which act as the background music for the various .swfs loaded by the menu buttons. I.e. hit 'Home', and it takes you back to the home .swf and plays the appropriate music. I want to do this through XML rather than attaching the music directly to the .swf to cut down on load time (syncing isn't a concern), as I can't seem to retain audio quality without bulking up the .swf significantly.

I'm encountering two problems: one is that with the current code, the music only plays once, and doesn't loop. The other is that I want the functionality to play one song as an intro, and then continue to loop another. I.e., hit the home button, intro plays, followed by the looping section, and never returns to the intro unless you hit home again. I can't seem to figure out how to manage either of these things short of creating a unique function for every single button.

Here's the code I'm using:

var my_songs:XMLList;
var my_total:Number;
var my_sound:Sound;
var my_channel:SoundChannel;

[code]...

View 2 Replies

ActionScript 3.0 :: Compare A Single Variable To A Group Of Variables?

Dec 3, 2009

I'm trying to cut down the amount of code I type to complete a project. Using things like ?: and &&= over the typical if statements. Is there a way to compare a single variable to a group of variables? example...

var1==var2 || var1==var3 || var1==var4 ? doSomething : doSomethingElse;

is there a short way to check if var1==var2,var3,var4?

View 9 Replies

ActionScript 3.0 :: Assign XML Node To TextField?

May 31, 2010

I am loading an xml file into the stage of my website. I would like to have several textfields and to each one of the assign a specific information taken from the xml file loaded.[code]...

View 0 Replies

Xml :: Doesn't Parse Xml When It's A Single Node?

May 10, 2010

my script.php returns this XML

<all>
<item>
<field1>value1</field1>
<field2>value2</field2>
</item>

[Code]...

I get no problems when the number of item returned is more than 1. But when it's only 1 item I get an error cannot convert XMLList to mx.collections.IList. I tried different solutions including trying to cast it as XMLListCollection but it still gives an error for single items. Does anyone know of a way to possibly solve this?

View 2 Replies

ActionScript 3.0 :: Assign Two Url For A Single Picture?

Jan 7, 2011

I have a picture and put it into sprite,like follows[code]...

At the right top of logo.jpg,and there are two word location in the logo.jpg,one is 'home' and another is 'about us',I want to add two url on 'home' and 'about us',how to do it?

View 1 Replies

ActionScript 1/2 :: Getting Inside Others XML Nodes Programmatically, Based On A Single Known Node?

Jan 16, 2010

I have an array being generated with numbers from an XML file. Then I have the function 'maxF' that returns the maximum number inside that array. I need to get programaticaly other nodes inside the same XML file [where all these numbers are coming from] to print the date [which is a node on top of the number node]

var a:Array = [];  for (var i = 1; i<=15; i++) {  var RootNode = getXml.firstChild; eval("price"+i).htmlText = ""+RootNode.childNodes[i].childNodes[4].childNodes[2].firstChild+"

View 10 Replies

Flex :: Flash Builder - Data Provider Not Working If XML Has Single Node Value Or Less

May 20, 2010

i get this error when i retrieve an XML that only has 1 node (no repeating nodes) and i try to store in an ArrayCollection. -When I have MORE than 1 "name" nodes...i do NOT get an error. My test show that XMLListCollection does NOT work either.

TypeError: Error #1034: Type Coercion failed: cannot convert "XXXXXX" to mx.collections.ArrayCollection.

this error occurs as the line of code:

myList= e.result.list.name;

Why can't ArrayCollection work with a single node? I'm using this ArrayCollection as a dataprovider for a Component -is there an alternative I can use that will take BOTH single and repeating nodes as well as work as a dataprovider?

code:

[Bindable]
private var myList:ArrayCollection= new ArrayCollection();
private function getList(e:Event):void{
var getStudyLoungesService:HTTPService = new HTTPService();

[Code]....

View 3 Replies

ActionScript 2.0 :: Modifying Checkboxes Component Code To Assign Single Variables

Oct 13, 2003

could anyone help me modify the code for these checkbox components? right now, the SUBMIT button checks which ones of the checkboxes are checked and gets their label, then writes the appropriate labels in a dynamic text box.[code]For the program I am doing, I need to have a maximum of 6 checkmarks and each one of the checked label must go into its own variable. (see gray part of the swf) I would also like the labels to appear in the right order, right now it's inversed.

View 1 Replies

ActionScript 2.0 :: [mx] Modifying Checkboxes Component Code To Assign Single Variables?

Oct 13, 2003

right now, the SUBMIT button checks which ones of the checkboxes are checked and gets their label, then writes the appropriate labels in a dynamic text box.

// HERE IS THE CODE FOR THE Checkbox Components-----------
// Array of the instance names of the checkboxes
myCheck = [one,two,three,four,five,six,seven,eight,nine]; // Function

[code].....

View 1 Replies

ActionScript 2.0 :: Import Mutiple Mc From Library?

Apr 4, 2011

i am trying to import more than one mc at a time when the button is pressed but it wont do this, instead only 1 variable shows up

P.S. Also if I want to generate 10 variables it only generates 8? So i set the counter to 0 .

View 4 Replies

ActionScript 2.0 :: Mutiple MC Easing To New Positions

Jul 2, 2011

I have flash 8(old school) so i am working AS2.i have a menu mc which is draggable along with 4 other mc's also draggable,each time i click an item on the menu I want to have all the mc's that are on the stage move to another position(rearranged) with easing.And so on for each item (keep in mind that all of the mc's are draggable and could be anywhere the user places them at anytime.)

View 0 Replies

ActionScript 3.0 :: Object With Mutiple Reference?

Nov 3, 2009

I have an object A that containt an object B and C... ABC are extented from sprite I want to pass B as reference (like in c++) to C, the goal is to update C on frame event with information contain on B... I try to made this : - new C and add it as children to A - new B (with C as parameter) and add it as children to A When i activate drag an drop on C and read information (position x, y and other things) from B using stored parameter the information is not the current information but the information of C at the moment i pass it as paramater to B... So flash seems be made a copy of my object

View 1 Replies

ActionScript 3.0 :: Creating Mutiple 'movieclips' In A For Loop?

Jun 15, 2011

I am new to Action Scripting 3 and am struggling to create movieclips in a for loop. Basically I am trying to create a series for movieclips and add these to my stage based on an array of values.

[Code]...

View 2 Replies

ActionScript 3.0 :: Combine Mutiple Soudn In One File ?

Jun 9, 2011

i am creating an application that user can add multiple sounds and mix them .is ther a way to merge this mix in one byte array ?

View 2 Replies

Radiobutton Group Value - Get The SelectedData From The Group?

Aug 14, 2009

I've got some MC's in my library that have radiobuttons in them -- all of this created at design time -- and pull them onto the stage dynamically. My question is how do I get the selectedData from the group? The setup is like this: In a MC called pageOne, I have a group of buttons with a group name of Q1, Q2, etc. I pull the MC onto the stage like this:

[Code]...

Do I need instance names on each of the buttons and add listeners to all of them?

View 4 Replies

As3 :: Xml : Send Mutiple Records To Dynamic Textboxs In Flash?

Mar 22, 2012

Im creating a scoreboard within flash, ive got mysql data converted to xml and grabbed into flash, im trying to output the data: user, score, time into dynamic textboxs but can only get one record.If there is a better way, such as creating the textfields on output could someone point me in the right direction!

function outputXML()
{
for (var i=0; i<xmldata.item.length(); i++)

[URL]

View 1 Replies

Flex :: Events - AdvancedDataGrid Tree DropParent - Drag A Leaf From One Node To Another Node

Jan 14, 2010

I have an AdvancedDataGrid tree with a ArrayCollection as its dataprovider. Now, for instance, i drag a leaf from one node to another node. To catch the event I'm adding a Listener to dragComplete.

[Code]...

My Problem: I want to know the new node where the leaf was dropped. Actually i would have expected that in the event there is a property like dropParent. This is not the case.

View 1 Replies

Flex :: Select A Node In Tree Based On XML Node Property?

Jan 18, 2011

I have a tree im my mxml that uses a XMLListCollection as dataProvider. Itīs XML is like:

<list>
<conta nome="Plano de Contas" id="1">
<conta nome="Creditos" id="2" />
<conta nome="Vendas" id="4" />

[code]....

How can I make the node for, say, id==4 visible AND selected?

View 2 Replies

ActionScript 3.0 :: Create A New Xml Node In Node Containing Dynamic Value Inside?

Sep 21, 2011

i have a question whether we can create a new xml node in as3 node containing dynamic value inside.....
 
as like if i want to get like..var newNode:XML = <IMAGE FULL="fullimages/3.jpg"THUMB="thumbnails/3.jpg"/>
 
where the images are dynamic values...

View 5 Replies

ActionScript 2.0 :: Finding A Node In XML File Via Node Attrib?

May 26, 2005

I thought this was going to be easy! I would like to search an XML file for a particular data set i.e. set of nodes depending on a passed variable. However, storing a subset of my XML file via Code:var gallery = this.firstChild; and then searching 'gallery' as you would an array-using a for()-doesn't work since this.firstChild isn't returning an array

Code:
<gallery>
<collection title="Christmas 2004">

[code].....

View 3 Replies

ActionScript 3.0 :: Xml: Get Node Value When Passing Node Name As A Parameter

Sep 1, 2010

I've got some xml:
 
var xmlData:XML =
<1stNode>
<buttonID>first child node value</buttonID>

[Code]....
 
Then I want to read specific node value based on a value passed to a function. .
 
var buttonID = new Button;
var imageID = new Image;
var labelID = new Label;

[Code]....
 
I'm don't know how to get the value when node name is dynamically changed.

View 3 Replies

ActionScript 3.0 :: XML: Add Child Node To Existing Node?

Jun 24, 2008

just trying to get straight how this works. Say I create some XML like so:

ActionScript Code:
var sample:XML = <sample>
<items>

[code]......

View 4 Replies

ActionScript 3.0 :: Delay Between A Group Of Leaves Falling And Next Group Falling?

Oct 17, 2010

I have some code here for some falling leaves. I was wondering how it can be altered so there is a delay between a group of leaves falling and the next group falling? also to slow down at the end of the fall? [code]

View 9 Replies

Using XML To Create An SWF Playlist?

Nov 9, 2009

There will be a "pool" of SWF files- I would like to create a "shell" swf that will load an external XML file that will determine which of the files in the "pool" the shell will play. I guess this would be called an XML-driven SWF playlist.Forgive me if my terminology is rather primitive- again, I'm new to XML (I'm an animator by trade.)

View 1 Replies

ActionScript 2.0 :: Play Some Or All Of Playlist?

Aug 11, 2009

I followed along with Lee Brimlow's video playlist tutorial utilizing the list component and XML - easy enough. I'm looking to add another level of complexity to a playlist which would involve some sort of checkbox or radio buttons associated with each item in a playlist. You could then choose to display only 2 or 3 videos of a 10 video playlist, for example.I'm not expecting anyone to write the script out for me. However, I would be very appreciative if anyone could steer me in the right direction to get started. I've been searching for things like "selectable playlist" but that of results in a playlist that allows you to select which item to display.

View 2 Replies

Website FLV Player With Playlist

Oct 18, 2009

I would like to have a simple flv player on my website.But this player should have a playlist.I cn create inside Dreamweaver just a simple player skin... but it doesn't allow me to generate a playlist.

View 1 Replies

Professional :: How To Make A Playlist

Jul 23, 2010

I've been trying to make a playlist of some of the short movies i've done across the years but I am currently stuck.Is there any way to have a .swf file, load other .swf using variables defined on a separate txt or xml file? if so, is there a way that flash can do it all automatically? that way if i have to update it i only have to update the variables in the .txt/.xml file instead of updating the entire .swf file.

View 2 Replies

ActionScript 2.0 :: Flash Playlist From XML

Mar 17, 2005

[code]I need to read this file in flash and list the songs one under another to build a playlist. Not sure if I should do this in an mc, text area, listbox? But either way, I don't know how to list the songs, no matter how many. I might have asked and described it to complicated on other sites,How do you read the files in the playlist node into flash and list them?

View 14 Replies







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