ActionScript 2.0 :: FMX2004::30 Sec Timer Prob?

Aug 10, 2004

ive done a little media player for my mates website.means i didnt understand the xml and loading audio that way i decided to try another way,which was to load external .swf which contained audio.so ive done this everything working.the problem is i tried to add a timer, so that when the 30 sec sample was done it would go to the next frame which loads a different track.i found a piece of timer code which is

loadMovieNum("track2.swf", 1);
if (bytes_loaded == bytes_total) {
var time = 0;[code].....

It all works first time around but when you select the track again then it cuts out 20-25 seconds,

View 2 Replies


Similar Posts:


ActionScript 2.0 :: FMX2004 - 30 Sec Timer - Goto The Next Frame Which Loads A Different Track

Aug 10, 2004

ive done a little media player for my mates website.means i didnt understand the xml and loading audio that way i decided to try another way,which was to load external .swf which contained audio.so ive done this everything working.the problem is i tried to add a timer, so that when the 30 sec sample was done it would go to the next frame which loads a different track.i found a piece of timer code which is

[Code]...

View 2 Replies

ActionScript 2.0 :: Big Prob About Rmoving MC?

Feb 21, 2005

look at my attachment and you will see that it creates 10 little pieces of ammo. When u click on the background it should delete one of those movie clips. But it deletes 2 of them. the code for creating is on the first layer and the deleting is on the background button symbol(click on the background to find it if you don't know what im talking about).create code

Code:
_global.ammo = 1;
while (_global.ammo<=10) {[code]......

View 1 Replies

ActionScript 2.0 :: LoadSound Prob

Jan 7, 2006

I applied folowing script to load my mp3 file. Problem is my mp3 won't loop:s. Anyone see the prob in my script? i'd also like the mp3 to fade in and when I push the stop button it fades out.

loopSound = function () {
myMp3.loadSound("streamsound.mp3", true);
myMp3.setVolume(50);[code]...

View 1 Replies

IDE :: CS4 Symbol Prob When Merging FLA's Into One?

May 16, 2009

I have several files for every piece of my movie. I have SCENE1.FLA, SCENE2.FLA, SCENE3.FLA, etc and want to merge them all into one file - MAIN.FLA. To avoid library symbol conflict, first I copy the content of SCENE1.FLA into MAIN.FLA, then in MAIN.FLA, I put every symbol in the library in it's own new folder named "+SCENE1". Then at the end of the frames of SCENE1's content on the timeline, I make a little space (blank frames), and paste the frames of SCENE2.FLA. For some reason "resolve library conflict" window pops up and ofcourse I say "don't replace). Now in MAIN.FLA the animation of SCENE2 has several problems: some symbols are missing and others are misplaced (like background, that is at the wrong X/Y position). So my question is: how do I get this right? How do I fix those problems and how do you usually merge the FLA's into ONE?

View 2 Replies

MPG To FLV Prob Using Flash Video Encoder?

Oct 6, 2008

I've been using the flash video encoder to convert videos to FLV to put on websites. Today I converted a MPG file to FLV. The original MPG video worked fine, the FLV file played sound but no picture..

View 1 Replies

ActionScript 3.0 :: Prob If Url Request Is Invalid?

Jul 6, 2009

I'm making a mini flash music player and i noticed that if i input a bad filename it pops up an error msg and blocks the flash animation i'd like to know how to prevent these things i've already looked over the web my current code is:

ActionScript Code:
var musicExtOk:Boolean = false;
var musicIsPlaying:Boolean = false;
var fileValid:Boolean = true;

[code]....

btw i just added the IOError script thing after searching the web and it doesn't prevent the popup but simply shows me another error msg with the code #2044 stream error

View 1 Replies

ActionScript 3.0 :: Custom Event Dispatch Prob?

Apr 7, 2009

I have some problem with custom event dispatch, I have a main class call main.as, which will call in another class call something.as, when something.as is called it will dispatch an event. i have added an eventListener for that particular event, but it's not working.

[Code]...

View 5 Replies

ActionScript 2.0 :: Flash Php Data Transfer Prob?

Oct 1, 2009

i have a problem with flash maybe i have an online exchange table which loaded in a flash page when i import the exchange swf in a flash page on ftp it cant get the datas from php but when i open the exchange swf independently in ftp it get the datas from php and it works

View 1 Replies

ActionScript 2.0 :: Line Break Prob With Ext Text File?

Jul 10, 2009

I've found a couple of solutions to the line break problem where you end up with two carriage returns even though you only have one in an external .txt file, but they haven't worked.Here's my AS code:

var textRequest:URLRequest = new URLRequest("delete.txt");
var textLoader:URLLoader = new URLLoader();
textLoader.load(textRequest);[code]......

I've tried both <br /> and %0D, but neither of them give me a single line break, they do nothing, and the single line breaks in the txt file give me two line spacings.I've tried setting HTML rendering both on and off for the dynamic text box.

View 1 Replies

ActionScript 3.0 :: Flex 3 : Creating Dynamic Tabs Prob With Panel Loop?

Feb 19, 2010

I am building an app where the user can add tabs as needed. Each tab will have 4 panels insideit. I can't get my for loop to build the panels. It keeps erroring out.1) How do I create these with a loop and 2) I am wanting to put data from a data provider in here. How can I reference the panel in the vbox in the tab control in the future?

function addNewTab():void{
if(labelText.text!=""){
var newVbox:VBox=new VBox();

[code]....

View 2 Replies

ActionScript 2.0 :: [FMX2004]initObject In DuplicateMovieClip?

Jan 13, 2004

How do you use that??? I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash...I'm using that code :

[AS]

onClipEvent(load){
for(i=0; i = nb_titre; i++){
_root.bande.duplicateMovieClip("bande" + i, i, .......................)}}

View 2 Replies

ActionScript 2.0 :: Why Doesn't This Work In FMX2004?

Mar 15, 2004

for (x = 0; x < 10; x++){
for (y = 0; y < 10; y++){
this.createTextField("_txt"+depth, depth, x*20, y*20, 20, 20);[code].....

the above script is from senocular's isometry tutorial, but when i place it on the first frame in MX04 and test the movie -> the result is one box with text "9:9".

View 2 Replies

ActionScript 2.0 :: [FMX2004] Setting The Alpha?

Jul 4, 2004

I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:

Code:
on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}

I don't believe it is a problem with my combobox actionscript, as just putting:

Code:
set (this.ahouston._alpha,100)

in the only frame of the parent movie clip doesn't work either.

EDIT: Now it shows it with 0% alpha, but won't turn to 100%. I was wrong. It is a combobox problem.

View 7 Replies

ActionScript 2.0 :: [FMX2004]duplicateMovieClip Success?

Jan 15, 2004

I have that loop:

[AS]
for (i=1; i<this.nb; i++) {_root.bande.duplicateMovieClip("bande"+i, i, {_x:originex, _y:(originey+(bandeheight*i))});

[code]....

View 6 Replies

ActionScript 2.0 :: [FMX2004] Can't Get Root To Clear

Jan 5, 2004

I just started learning actionscript and decided to make something easy. Some draggable points and make a like between two of them, but I can't clear the previous drawn line.

View 1 Replies

ActionScript 2.0 :: [fmx2004] Disabling Movieclips?

Jan 14, 2004

im aware of the movieclipinstancename.enable=false;but i cant seem to get it to work.I want it to work because i slide in a sound control panel over my content (also in a movieclip) but the mouse still reacts to mouse events of the content under the sound control panel. eg i have a flash email form, and the icon changes to it.

View 2 Replies

ActionScript 2.0 :: [FMX2004] Cannot Use A Variable In A Path?

Jan 5, 2005

why I cannot use a variable in a path?

[Code]...

I can work my way around it, but why doesn't it work?

View 3 Replies

ActionScript 2.0 :: [fmx2004] Ramdom Xml Files?

Mar 18, 2005

I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml");and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.

View 5 Replies

ActionScript 2.0 :: [fmx2004] Set To Randomly Chose Between Different Xml Files

Mar 18, 2005

Well it is quite simple but I don't know How to do it. I have a quiz in xml and what I want to do it's to open randomly a quiz from 3 xml... In fact, there is only a place in the script where it talk about the xml : myData.load("quiz.xml"); and that's at the end of the script on frame 1... How do I set to randomly chose between different xml files.

View 5 Replies

ActionScript 2.0 :: Code Don't Make Another Rows (FMX2004)

Oct 2, 2005

[Code]...

the movies go the next row but they stay all in the same x location

View 3 Replies

ActionScript 2.0 :: [FMX2004] Prototype Only Moves One Clip?

Mar 3, 2006

i have this prototype where i send this mc to certain x position. But when i try to send TWO mcs at the same time it only sends the last one. What to do for it to work on two mcs at the same time?

here is the prototype:

Code:
MovieClip.prototype.moveOut= function ( mc, endX ){
speed = 5;
this.onEnterFrame = function(){

[Code]....

View 2 Replies

ActionScript 2.0 :: [FMX2004] Scrolling Background Tweaks?

Mar 20, 2006

I'm working on a website that is kind of set up a bit like a flash game. the background scrolls continuously with the movement of your mouse, and loops to make it appear seamless. my problem is with the quality.. it seems to skip or jump a little when it moves, and I am trying to get it as smooth as possible.

the source file is here: http:[url]....

you can just export it to see what I am talking about. what can I do to make it not so jumpy? are there settings I can adjust, or does anyone have any other code variations that would improve on mine?

View 4 Replies

ActionScript 2.0 :: [FMX2004] Zoom The Coordinate Ruler?

Jul 19, 2007

what i'm trying to create is a map system with pan and zoom functions similar to google maps. that part is easy. what i'm having trouble with is figuring out how to scale the coordinates at the top and left of the map.so if at 100% my map is viewable from mile 0 to mile 99 (numbers are only for the sake of example) then when i zoom in on the center to 150% i would need to show coordinates from mile 25 to mile 75 ... i think if that example is not clear just look at flash or photoshop. when you zoom in just look how the ruler around the stage changes with the zoom level.

View 1 Replies

ActionScript 2.0 :: Check If A Movieclip Exists [FMX2004]

Aug 11, 2004

How do you check if a movieclip exists?

View 5 Replies

ActionScript 2.0 :: Mask A Clip.loadMovie(picture.jpg); [FMX2004]?

May 8, 2004

Im loading several thumbnails from out of a database into flash, everything is stored as it should. Then i create a Rectangle called "mc_mask". This one is created as it should with the correct values. Then im looping through this for(){}. As you can see im duplicating a movieclip "mc_thumb_holder" then eval them to my array, there im loading in a Movie with .loadMovie(thumb); Now when i set the rectangle as a mask on each of the duplicated movieclips it wont work. So my question is:

[Code]...

View 2 Replies

ActionScript 2.0 :: [FMX2004] - Variables Work On Test, Not In Html

Dec 7, 2004

I've got a main movie (main) loading another movie (forms) that includes a listbox (listBox) inside a empty movieclip (comboloader).. When I test this out using a getURL?variable="+ _root.variable it works fine in the flash test but when I run it from the site the variable is "undefined"

Here's my code for the button which makes all this happen.

(all variables are set to global)
on(release){
formData = new LoadVars();

[Code]...

am I missing a _parent somewhere? Is there any reason this thing would work standalone (in flash) and not in the final file (when its loaded into another clip)

View 4 Replies

ActionScript 2.0 :: [fmx2004] Passing Variables From Html To Flash

Jun 7, 2005

I want to have links on several pages of my website which, when clicked, take the user to an html page called "portfolio.htm" which has a flash portfolio on it. This portfolio is set up with a series of buttons which load external .swf files for each project. How do I tell flash which .swf to load when the flash file opens.

ex: user clicks on "project x" on a web page called print.htm. The user should then be taken to portfolio.htm where a flash file resides and loads "project x" into a movie clip called "content_mc".

All the other posts I've read make reference to PHP. Is it neccesary to use PHP, or can I achieve this without PHP?

View 4 Replies

ActionScript 2.0 :: [FMX2004] How To Do A Rotation Like On The Laguna Beach Page For MTV

Aug 17, 2005

I am trying to do a rotation like on the Laguna Beach page for MTV. [URL]I can rotate the 3 figures around a path, but I run into problems with the depth of the figures. I guess is the z positioning.

View 1 Replies

ActionScript 2.0 :: [FMX2004] Setting Event Handler For Dynamically Created Buttons

May 23, 2005

I'm using Flash Remoting to grab a result set from a SQL Server database. Then, using the total records in the result set, I'm creating the respective number of movie clips on the stage. Each of these movie clips is an instance of the "button_mc" movie clip I have in the library, named "button_0", "button_1", ..."button_n". The library movie clip that I'm using to create the instances contains a standard Flash button.

Anyway, that part is working fine. What I want to do is dynamically generate the onRelease event handler for each of these unique buttons. When I try to do this within the for loop, it sets all the event handlers to the last item in the list. What I want to do with the event handler is change the text of a dynamic text field based on the button name.

e.g. buttonName.onRelease = function() {
myDynamicTextField.text = "button_"+i;
}

In some ways it makes sense that the event handler is always going to be the last available in the loop, as the handler is called after the loop is completed. However, I'm hoping there's a way to make the handler "stick" after the loop is completed.

View 2 Replies







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