Actionscript 3 :: Extracted Sampledata Loops Last Chunk Forever

Nov 18, 2011

I'm working on a virtual piano keyboard that processes imported mp3 sound samples. I've come to a solution with this question, but as I run this test code below, the sound loops its last data chunk of each sound source forever, and obviously, I want it to stop at the end of the extracted sound data. The same happens with any extracted sample data, I don't even have to mix it. I added a dynamically drawn graphic waveform so you can visually check what happens. This is my first time using the ByteArray class, so I don't know how to solve this issue.

[Code]...

View 1 Replies


Similar Posts:


Xml :: How To Parse This Chunk Of XML

Jul 24, 2010

So i have this chunk of XML:

<?xml version="1.0" encoding="UTF-8"?>
<groups>
<group>

[code].....

View 1 Replies

ActionScript 3 :: Encode Raw Data From Microphone SampleData Event

Aug 9, 2010

I get a raw data from Microphone's SampleDataEvent, and I want to encode this data before streaming to my server. So I'd like to know if there any standard audio encoder provided in actionscript3? Or do I have to implement it myself? I know that the Microphone class provide 2 codec (Nellymoser and Speex) that can be used when sending a stream to Flash Media Server( via NetStream) only. Is there any way we use this codec to encode raw data?

View 1 Replies

Flash - Adobe Cirrus: Deliver A Chunk Of Data To A Single Peer With Known Id?

Jun 17, 2011

Adobe Cirrus offers a number of options for transferring data from peer to peer: Directed Routing, Object Replication and Multicasting to name a few.I just want to send the data to one specific peer, its fine for other peers to 'see' it in transit.

My experiments with Directed Routing (the obvious answer) have not gone well. all the sendto... methods fail, while NetGroup.post works fine on the same netgroup. I am concerned about using direct connections because of reliability.

Has anyone successfully implemented a one to one messaging strategy (not one to many), which can still message between non-connected peers - (Directed Routing) or solved this problem successfully?

I am considering various workarounds, but I am quite perplexed that these NetGroup methods: sendToNearest, sendToNeighbour & sendToAllNeighbours just seem to fail, for no apparent reason.

View 2 Replies

CS3 Extracted Existing SWF And Looking For One Code?

Aug 18, 2011

This is my first time posting and naturally Im here for a little help. A past employee took my companies Flash files for a scrolling ad. The company wants the colors changed and I will admit Im a slight newbie.

I was able to extract the SWF to a flash project folder with trillix. However I can not find this command line(see link)

[URL]

In the flash file. Now I will admit Im new to flash, but I have dug everywhere I can think of in the project folder for that command line.

As you can see from the screen shot, its in frame0 on Sprit12. Ive looked in the properties of layer 1, in the properties of sprite12, and looked in the frame. Where would this be?

View 1 Replies

ActionScript 2.0 :: Input Text Not Being Extracted?

Aug 30, 2004

I am trying just to get this simple analogy working where a user just enters the answer to "8+6" and if it isnt "14" then the dynamic text should display "Incorrect" or otherwise "Correct" but it just doesnt want to work!! Spent the whole day yesterday trying to get it to work!!

I would like to attach the file but its saying that its too big..

I did everything that said on the internet, like naming variables and just assigning variables but it wont recognise the variable!

View 6 Replies

Php :: Display XML Data (extracted From PHP) In An Adobe Air Application?

Jul 14, 2009

I would like to create a small Adobe Air application which would extract XML data from my site and display it in my Adobe air application.I have the xml part setup, when i run the xml file, it displays the results in the browser. Now what i need is to display the same results in my adobe air application.For e.g. I have a simple form

<form name="review" action="admin_xml.php" method="post">
<textarea name="xml" cols="40" rows="10"></textarea>
<input class="submit" type="submit" value="Submit Request">[code]............

When i submit the form, i get all the order id's from 2009-01-01 till date and it get displayed in the browser.Is there a way to run that HTML form in an adobe air application such that I enter the XML element values it should go through the admin_xml.php file and get the results.I dont want to enter the XML Skeleton again and again. I only want to able to enter the values for those elements.

View 1 Replies

Php :: Displaying Rows - Extracted From A Database - One By One In A DataGrid

Oct 29, 2009

I have a table (session) in a database which has almost 72,000 rows. I extract those rows with the help php+mysql but when the result is returned to the HTTPService, i need to wait for some 32 seconds before the all the rows start appearing in the DataGrid at once.

Question Is there any way by which DataGrid may start displaying data one by one while the application may extract next rows in parallel. Or that the DataGrid may show data in chunks of hundreds. Like when application starts, it may show first 400 enteries in DataGrid, then the next 400 hundred are extracted until all the 72,000 rows are extracted? Or can i involve threading such that one thread may be responsible for displaying data in datagrid while the other, executing in parallel may be responsible for extracting next data from database?

[Code]....

View 1 Replies

.exe Projector File For PC Works Fine But Extracted .hqx For Mac Won't Open When On CD

Sep 9, 2009

I'm using Flash MX, AS 2, Projector 6, working on a PC. I saved two versions of my project -- one .exe for Windows and one .hqx for Mac. The .exe works fine when burned onto a CD. When opening the .hqx from a CD on a Mac, I got a message that the file is on a locked volume. I discovered that the reason for this is that an .hqx is essentially a zipped file which has to be extracted, and when a file is extracted, the unzipped files are written onto the same location as the original. When the original files are on a CD, Stuffit (Mac's zip extractor program) can't write onto that location. [So if anyone at Adobe looks at these forum posts, let me say that I think its absolutely ridiculous that the Mac version of Flash's projector files have to be extracted in order to be viewed!]

To get around this problem, I saved the .hqx on my PC, put it on a portable hard drive and brought it over to a Mac (because Stuffit for PC converts it into an .exe for PC), and unzipped it. When I'd test it on the portable hard drive or on a USB drive, the extracted file would work. When I'd bring it back over to the PC and burn a CD with both versions on it, and then test that CD on the Mac, it wouldn't work.

View 1 Replies

ActionScript 3.0 :: Read The RSS Feed From A Website And Display The Texts Extracted For That RSS With Animation?

Oct 18, 2010

I want to read the RSS feed from a website and display the texts extracted for that RSS with animation.

View 4 Replies

Professional :: Make Buttons Be Gone Forever?

Feb 21, 2011

Just starting out with Flash and have run into a problem. I have several scenes with buttons that can be pressed once and then they disappear using: myBtn1.onRelease = function(){ this._visible=false} But when I go back to the scene the buttons reappear. How can I make my buttons be gone forever?

View 1 Replies

Flash :: Delete A Movieclip Forever?

Jul 13, 2010

I create a mc and then i make an addChild of a sprite.[code]...

if i want to delete from everywhere and forever mcSwap1, what can i do?[code]...

View 2 Replies

ActionScript 3.0 :: Timer Not Looping Forever?

Oct 27, 2009

I'm using a Timer object to move some clouds across the top of a site I'm developing, and I'd like it to loop forever. Unfortunately, I'm getting pretty intermittent behavior. Sometimes the timer stops after a few seconds, whilte other times it keeps looping like it should. It seems to work best in IE 6, some of the time in FF 3.5, and almost never in Google Chrome.I'm doing the timer based on the positions of the clouds. I have two sets of clouds, and here's the related code:

Code:
var globalTweenCloudA:Tween;
var globalTweenCloudB:Tween;
var cloudTimer:Timer = new Timer(1000, 0);

[code]....

View 4 Replies

ActionScript 3.0 :: Set Streaming Sound To Off Forever?

Apr 18, 2011

I have few movieclip play one after another. For each movieclip, i put the streaming sound inside, and there is a button to turn off sound. I created this coding to turn off the streaming sound and it worked well.

SoundMixer.stopAll(); But, the problem is the new streaming sound will play again when it hit the frame that contain new streaming sound. How to overcome this problem? IS using EnterFrame event the only way to turn off the streaming sound forever??

View 3 Replies

ActionScript 2.0 :: FLV Player Loading Forever?

Apr 27, 2011

I've added a _root....flvplayback.load("whatever video I want to load.flv"); to different buttons so that I can dynamically load different videos into a single flv player.Thing is, it works intermittently, and most of the time, after having loaded one video via this method, the next video will load a preview Image but will just load forever, and then I can't play any other videos until I restart the swf.

View 2 Replies

ActionScript 2.0 :: Way To Mute Music Forever

Dec 1, 2011

I got flash player, integrated in website.When I go to my site, backround music start to play automatically But if I stop the music and go to other page of my site, music starts again.[code]...

View 4 Replies

.FLA Takes Forever To Save / Load?

Mar 30, 2010

I'm having a brutal time with a FLA. The wait time to open this thing is ridiculous, and alot of the time the program will just become nonresponsive. Its only this one specific file, as others open fine. It also has nothing to do with the hardware on my system, as we've tried the file on a variety of machines.The FLA itself contains very little bitmap art, most is vector. It's about 16mbs, but publishes down to a SWF thats about 300kb. There were some complex vector elements which were removed in a fruitless attempt to get this thing to move faster. Trying to "save as.." results in flash writing to a file extremely slowly. The resulting file will progress in size from 2 - 4 mb with about 10 minutes wait time in between. Its becoming nearly impossible for us to work in the file. how I could debug Flash itself to find out whats going wrong on load/save?

View 3 Replies

ActionScript 3.0 :: Unload SWF - Video Keeps Playing Forever?

Aug 21, 2009

I'm developing a Flash application that uses several SWF-files. I have one main SWF and others are loaded into this one dynamically. One of the SWF's I'm loading is showing a video clip. This SWF contains code to load and display an FLV-file immediately after it has been loaded into the main SWF. My problem is that I can't find a way to unload this SWF. Once I've loaded it and it starts to play the video, the video keeps playing forever. Even if I remove it from the displaylist it keeps playing. I can't see it, but I hear the sound continuing.

I've recreated this problem in a small project (see code below). In this project I have a simple button that should toggle whether the video is shown or not. [URL] works as mentioned before: it automatically starts playing a .flv as soon as it is loaded. When I run this I get the following as I click the button:

Click 1: Video shows up and starts to play.
Click 2: Video is hidden, but it's still playing (I can hear the sound).
Click 3: Video is loaded AGAIN. Now I can see the video, but I hear TWO soundtracks!

[Code].....

View 2 Replies

IDE :: Datagrid Destroys All Keypress Codes Forever

Feb 16, 2009

I made a huge swf video game that involved buttons with [code]I put a data grid on the stage on one frame.It never even enters on stage and this still happens.Make a button and plop a data grid down. publish, delete, publish again.I've done some research and found that I am not the first person this has happened to. My file is basically destroyed and I'm on deadline.

View 4 Replies

ActionScript 3.0 :: Photos To Display Randomly Forever?

Jul 1, 2009

I'm doing a photo slideshow and I have 4 photos. I have them displaying randomly with TweenLite, however I have 2 more things I'd like to do with it but I really don't know how to do them. I'd like for the photos to display randomly forever, as if the script would never end. Also, I'm curious as to why only 3 of the 4 photos are displayed when I run the swf.

Here is my script thus far:

Code:
import gs.TweenLite;
import gs.easing.*;
var photoNums:Array = new Array(photo_1,photo_2,photo_3,photo_4);

[Code].....

View 1 Replies

ActionScript 2.0 :: Make Circles In The Background Move Forever

Aug 14, 2002

I am trying to make a spaceship game and in order to make it look like my spaceship is moving I need to make my circles in the background move forever. I tried using the Continuous Movement tutorail but it makes my circles get bigger when I move my mouse and when I move my mouse all the way to the right it gets faster and left gets slower does anyone know how to change the actionscript for the circle movie clip to make it not do those things?

[Code]...

View 12 Replies

ActionScript 2.0 :: Make The Small Photos Take Forever To Load Since Their Source Is A Large Photo?

Apr 29, 2004

i sort of asked this before but never got a clear responce to it. this is sort of a two part question. one i have a dynamic gallery of images with a small picture that you click on that loads a bigger picture. I would love to be able to just have one photo that loads into the bigger mc and also the small mc. right now what i am doing is making two size photos a small 47x47 and a large141x141. does anyone know how i can use the same photo for both mc's second question. if that works will it make the small photos take forever to load since their sorce is a large photo?

View 5 Replies

Flash :: Shape When Hit With Inside Of Stage - Rotate And Continue Move In True Angle Forever

Jun 17, 2011

i want simulate Billiard ball in my project. but my code does not work good. when start with (for example) 34 degree , when hit with wall(stage in this example) return with true degree. in flash , as3

[Code]....

View 2 Replies

Flex :: Debugging - I Added Class Directory Via Flex Build Path/Source Path, And Now 'building Workspace' Takes Forever

Apr 3, 2012

I am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.

View 2 Replies

Media Server :: Flash Media Server Taking Forever To Load Large Files

Jan 12, 2011

We purchased FMIS and we are encoding large 15+ hour MP4 recordings using flash media encoder. When opening these large files for playback, which have not been opened recently  the player displays the loading indicator for up to 4 minutes! Once it has apparently been cached on the server it opens immediately from any browser even after clearing local browser cache. So a few questions for the experts

1. Why is it taking so long to load the file. Is it because the MP4 metadata is in the wrong format and the file is so huge? I read somewhere that Media Encoder records with incorrect MP4 metadata is that still the case?
 
2. Once its cached on the server, exactly how much of it is cached. Some of these files are larger than 500mb.

3. What fms settings do you suggest I change. FMIS is running on windows server R2 64 bit, but FMIS itself is 32 bit. We have not upgraded to the 64 bit version. We have 8GB of ram. Is it OK to set FMS cache to 3GB. And would that only have enough room for 3-4 large files, because we have hundreds of them.

View 1 Replies

ActionScript 3.0 :: Grr Infinite For Loops?

Mar 29, 2009

Shouldn't flash detect these before running the script and crashing and having to force quit and restart (and flash startup takes a while)? Like just give an error: infinite for loop or something? And this happened to me a bunch when working with for loops within for loops, when I accidentally used the same variable for both loops, so of course it never ended and crashed flash.

View 2 Replies

Comparing Arrays And Loops

Nov 29, 2010

The scenario is to create a lotto game that matches 6 user inputted numbers with 7 randomly generated numbers. The 7th number is a special case (eg bonus ball) WOULD LIKE TO SHOW A KIND HEARTED FALSH GENIUS ALL OF THE SCRIPT IF POSS! (its not tooo long) This code works, but it just outputs the default message: There seems to be a problem with my arrays not comparing? Part of the code is: (prioir to this the user inputs numbers, they are copied to text areas beginning with O, on a button press) On a second button press randomly generated number appear to a timer. //compareResult checks how many numbers match between the two sets of numbers to determine winnings.

[Code]....

View 4 Replies

Use The Sound Loops For Commercial Uses?

Jul 25, 2011

I'm new here and I'm wondering if I can use the Sound Loops for commercial uses?

View 3 Replies

Professional :: Using 'for Loops' With HitTestObject() ?

Feb 7, 2011

I have section of code which works for bouncing some fish movie clips off of the 'ceiling':[code].....

However, I would like to find a more succinct way to program this using a 'for loop'. I tried the following, which did not work and gave me an error (posted at the bottom). [code].....

TypeError: Error #1010: A term is undefined and has no properties.at Function/<anonymous>()

View 3 Replies

ActionScript 3.0 :: Limit On For Loops?

Apr 1, 2011

I'm pulling data from an xml doc and created 4 XMLLists to hold the children of the 4 different elements. Inside the onLoad function, I created a series of for loops to go through each list. But Flash stops after going through the first two. I'm very puzzled by this. I got around it by creating a 2nd onLoad function for the last 2 lists, but should I be using a different loop? Curious.. I inserted a break after the first 2 and then the 3rd loaded up...

View 1 Replies







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