IDE :: CS4 Loop In Mediaplayback?

May 30, 2011

i'am doin a presentation and i put music bg in a mediaplayback component, but i need it in a loop.

View 1 Replies


Similar Posts:


Mxml - Mx:MediaPlayback Flex Tag?

Oct 22, 2009

I'm trying to compile gui/flex/songs.mxml in the fourth edition of Bruce Eckel's Thinking in Java book and am getting a compilation error with Flex 3.4.

Here is a simplified version of the example that gives the same error:

[Code]...

View 1 Replies

Calling From XML Playlist And Playing MP3 With MediaPlayBack

Jan 15, 2010

I've got a problem to play MP3 with MediaPlayBack, calling from a XML playlist. The playlist seems to work but not the MediaPlayBack which doesn't load the MP3...

Here is my XML code named mp3list.xml
<?xml version="1.0" encoding="utf-8"?>
<musiques>
<musique url="musique/01.mp3" desc="titre 1" />
<musique url="musique/02.mp3" desc="titre 2" />
<musique url="musique/03.mp3" desc="titre 3" />
[Code] .....

View 4 Replies

ActionScript 1/2 :: Stop Mediaplayback Playing

Nov 3, 2010

I have a instance on MediaPlayback and a button on one of my frames, i need to the button to either stop/pause the media file, is there anyway of doing this?

View 3 Replies

AS2 :: Setting PlayheadTime Of MediaPlayback Component

Nov 8, 2010

I'm building a custom Audio Player. The whole thing drives a MediaPlayback component. I have a scrubber set up that moves with the progress of the song. I want to be able to click and scrub with it though. Currently I have it set to set the playheadTime equal to the percent distance the slider is dragged to times the totalTime of the playback component. After the release of the slider I trace out the playheadTime and it seems to be fine, but I can't get it to resume playing at all. Here's the code in the controller:

var totalDistance = bar_mc._width - slider_mc._width;
var wasPlaying = false;
this.onEnterFrame = function(){

[Code]....

View 1 Replies

ActionScript 2.0 :: Use The MediaPlayback Component With An External .flv?

Jun 9, 2004

I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.

View 1 Replies

ActionScript 2.0 :: MediaPlayback ProgressBar Isn't Working

Jun 9, 2004

I'm trying to use the MediaPlayback component with an external .flv The video shows fine, but for some reason the progressbar isn't working.

View 1 Replies

ActionScript 2.0 :: Flash8 Mediaplayback Play All Tracks

May 26, 2009

I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.

Here are the parts for the mediaplayback:

lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {

[Code]....

But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.

View 2 Replies

ActionScript 2.0 :: Flash8 Mediaplayback Play All Tracks?

Oct 13, 2009

I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album. It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.

Here are the parts for the mediaplayback:

lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {

[code]....

that is for when you click (or press) on a selected item in the "lista" List.

I tried something like:
for (var i = 0; i<num_total; i++) {
player.setMedia(urlnow+"/"+lista.selectedIndex[i].data, "MP3");
player.play();
}

But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener...

View 1 Replies

ActionScript 2.0 :: Flash8 : Mediaplayback Play All Tracks?

Sep 5, 2010

I am working on a mp3 album collection project and I am using Mediaplayback component for playing the mp3 files, a List component to show all the tracks (and select one) and the songlists are stored in XML data located in one folder for each album.It is working fine, but I want to have a button to "Play all tracks" like when you place a CD in the Windows Media Player, that is, starting playing the first track and so on.... until the last one.

Here are the parts for the mediaplayback:

lista.addEventListener("change", ifchanging);
function ifchanging(evento) {
if (evento.type == "change") {

[code]...

But it just play the last track. I think it must go on one of the events or in a if..else including the EventListener... I'm just beginning on ActionScripting and I am using parts of what I saw in other codes.

View 2 Replies

ActionScript 2.0 :: Non Terminating MP3 Download With MediaPlayback Component

Sep 10, 2005

Whenever an MP3 is initiated to stream (well, progressively download really) with the mediaPlayback component, it will contue to dl to the cache until done or the browser is refreshed. The occurs even when the component has been unloaded from an empty movieclip. This is an issue when folks browse alot of MP3s on the site, because even though it's inaudible, suddenly there are many files simultaneously dl'ing to their cache. Cant find a stop stream type of command in the media class, which I think is the only class for the media components. If I were doing real streaming with the Comm Server for example, I could use stopStream.

View 1 Replies

ActionScript 2.0 :: MediaPlayback: Dynamically Loading Videos?

Feb 28, 2007

I currently have this code:

Code:
var vLoad = new Array();
vLoad = vidURL.text;

[code]....

View 1 Replies

ActionScript 2.0 :: MediaPlayback - Play Sound From Library?

Aug 11, 2010

I have a MediaPlayback component on stage, i have a sound with linkage name "sound1" in the library;

Why mediaPlayback.contentPath = "sound1" wouldn't work?

View 1 Replies

ActionScript 2.0 :: Mediaplayback Component, Control Bar Arrow Pointer Doesn't Move As Media Plays

Jul 4, 2011

Ive used mediaplayback component on a webpage and it works fine except the playhead pointy thing doesnt move as the video plays. Isnt it supposed to do that ? It just stays at the start while the video is actually playing.If i drag the pointer to a different part of the streaming bar then it does what its supposed to do but that doesnt look right.

View 2 Replies

ActionScript 1/2 :: Mediaplayback Component Set "Preview" Image?

Dec 22, 2009

I've searched high and low and haven't been able to figure out a way to set a preview image for video I'm loading in using the mediaPlayback component. Using Flash CS4, AS2.

View 1 Replies

ActionScript 3.0 :: Create A Loop So Icons In Menu Continually Loop Indefinitely

Apr 16, 2010

I would like to create a loop so the icons in the menu continually loop indefinitly.[code]

View 2 Replies

ActionScript 3.0 :: Use A Loop To Create Text Field With The Loop's Current Value

Dec 11, 2010

I am attempting to use a loop to create text field with the loop's current value. The code looks like this:

ActionScript Code:
for (var i = 1; i<=10; i++) {
var 'nameHolder'+[i]+'_txt':TLFTextField = new TLFTextField();
'nameHolder'+[i]+'_txt'.x = 40
'nameHolder'+[i]+'_txt'.y = 40
'nameHolder'+[i]+'_txt'.text = "Hello World"
}

So essentially what it should do is create 10 text fields at 40, 40 with the text: "Hello World".

View 7 Replies

ActionScript 2.0 :: Infinate Loop For M.clip.the Looping Part Does Not Want To Loop?

Jun 13, 2004

i'm trying to do an infinate loop for my m.clip.the looping part does not want to loop...it loops back to my firrst frame even though there are two same picture in the movie clip.....here's a sample of what i use for the infinate loop script..

[Code]...

View 2 Replies

ActionScript 3.0 :: Loop With Varying Values Depending On Where Are In The Loop?

Jul 20, 2009

I have need of loops / nested loops that pick different figures depending on where you are in the loop. The whole function needs to run through 'ml' times. 'ml' is a dynamic figure. Loop 1 = While the loop is within the first 12 iterations, 'exconemp' must equal 100. For iterations 13 - 24, 'exconemp' must equal 102.5, for 25 - 36 it will be 105.06, for 37 - 48 it will be 107.69. This needs to change every 12th iteration until it has reached 'ml'. The calculation takes the value of the previous 'exconemp' and then multiplies that by 0.025.

Loop 2 = While the loop is within the first 120 iterations, 'abc' must equal 0.015 and any further iterations must use 0.01. This must also work in a way to figure out whether 'ml' is higher or lower than 120 and work accordingly. My main issue is this - how do I get the loops to run through as this: While the iteration is < 12, do this, THEN take the final figure (12th iteration) and start on 13 - 24, do this THEN etc etc. How do I produce a THEN statement? I can get the code to pick up the final values, but not change along the way.

[Code]...

View 6 Replies

ActionScript 3.0 :: Accessing Loop Variables Outwith Loop

May 5, 2011

Say, I had a loop in a function...

[Code]....

How would I refer to a in another function

View 8 Replies

Actionscript 3 :: Declaring Variable In Loop Or Before Loop?

Nov 9, 2010

Should I declare the _mcContainer var before the loop or no? (performance increase?)

for(var i:uint = _startIndex; i <= _endIndex; ++i){
var _mcContainer:MovieClip = _mcParent["i_" + _position];
}

[Code]....

View 1 Replies

Actionscript 3 :: Defining For Loop Iterator Before The For Loop?

Jun 2, 2011

Recently I'd been criticized for structuring my for loops like so:

var i:MovieClip;
for each(i in array)
{

[Code]....

This reads better for me personally, yet I'm being attacked for it. Is there any difference?

View 2 Replies

Actionscript 3 :: Compare Two Different Arrays Using For Loop Within A For Loop

Nov 29, 2011

basically I need a loop within a loop to compare two different arrays in my actionscript3 lottery game. I have attempted the loop but I cannot seem to get it to work ...

[Code]....

So basically within this code check_win is a button. Once the button is clicked it runs the loop. It is meant to take an instance of matches which contains 6 properties and loop until index is greater than matches. According to my output this is happening but the second loop doesn't appear to do anything.

View 1 Replies

ActionScript 2.0 :: 1 For Loop To Loop Multiple Arrays?

Aug 25, 2010

How do i word a for loop to make it loop through multiple arrays?I want 1 for loop to loop through multiple arrays in order to move/alter objects.I want to keep the arrays separate.

ActionScript Code:
characters = new Array();
characters[0] = male;

[code]........

View 3 Replies

ActionScript 3.0 :: Get The ID Of An Item In A Loop Inside A Loop?

May 15, 2011

I'm trying to make a matching pairs game. First of all I'm making all the tiles, using a loop inside a loop. How do I get the ID of an item inside that loop? My code looks like follow:

Code:
var matches:Array=new Array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8);
makeTiles();
function makeTiles() {

[Code].....

View 3 Replies

ActionScript 2.0 :: Loop Starts At 0 And Not 1 So The Loop Ends At 6?

Aug 27, 2005

dayVal = day.value;

for(dayVal = 1; dayVal/7 != 1; dayVal++)
{trace (dayVal);
}

the loop starts at 0 and not 1 so the loop ends at 6 does any one know how to resolve this issue?? its so that what ever number dayVal is it will be rounded up to a number that is Divisble by 7 .

View 4 Replies

ActionScript 2.0 :: XML Nested Loop - Access The Loop Later?

Feb 19, 2007

Basically, I have data organized by date in an XML file. I'm trying to make a website application that will allow the user to click on a date (in a text field) to see another textfield populate with all the data under that particular date. So far, all the information loads into the textboxes at the same time. How can I get it to only load information under a particular date when somebody clicks on that date?

Before I started this project, I was convinced I could do this by manipulating the [j] (see code below) in the myFunc2 function. Currently, it's set up to increment blank_mc._y by whatever value is returned by [j]. But for some reason this doesn't work. I feel that if I could atleas get this part to work - I could probably do the rest.

AS code:

Code:
function loadXML(loaded) {
if (loaded) {
var nodes = this.firstChild;

[code]....

View 1 Replies

ActionScript 2.0 :: Pass The X Variable From One Loop To Within Another Loop?

Mar 2, 2007

I have some code that seems to have a problem. I can't seem to pass the x variable from one loop to within another loop.

Code:
var myLv = new LoadVars();
var myNv = new LoadVars();[code]....

View 2 Replies

ActionScript 2.0 :: Have Pause Within 'for Loop' Before It Runs Through Next Loop?

Mar 20, 2007

wondering if anyone knows if its possible to have a pause within a 'for loop' before it runs through the next loop? heres the script i've built up so far, i'm running off other variables and arrays to pull in the logos and the animating in is working fine except that they all run in at the same time, basically what i want is that they would run one after the other with a 5 second gap between them..[code]so i did that and put wait(delay); after the var boxcounter=2; in each of the If statements.. but no luck... can anyone shed any light? or suggest a way it get it to hold for a few seconds before running though the loop again? or am i going about this in completely the wrong way??!

View 5 Replies

ActionScript 1/2 :: Pulished Intro To Website Continues To Loop Eventhough Loop="false"?

Jun 30, 2011

I have published my intro to my website I checked "Loop" and unchecked "Loop" under the Flash section of publishing no matter which I it continues to loop and not go to my website.  This is the action I am using:[URL]...

View 1 Replies







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