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


Similar Posts:


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 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

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







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