ActionScript 3.0 :: Soundloop Has A Small Pause In It
Oct 2, 2009I've got an mp3 file of about 2 secs, that should be looped in my movie, but every time between the 2 secs there is a small pause where there's no sound.[code]...
View 1 RepliesI've got an mp3 file of about 2 secs, that should be looped in my movie, but every time between the 2 secs there is a small pause where there's no sound.[code]...
View 1 RepliesI am trying to create a pause button that will pause everything on the screen including movieclips/audio. Right now I can't figure out how to pause the movieclips.
View 2 RepliesI have some banners I am doing right now and have a pause timer question. I am fairly green at coding. In my first frame I have this:
[Code]...
I want it to pause each time in the last frame for 8 seconds and loop only 3x. Is there a better way to write this? I know all my code should be in the first frame but I still suck.
I am using Macromedia Flash Pro 8. I have a flash intro that has words (phrases) which slide in. I would like to add a 7 second pause between each phrase to give people time to read them (no buttons). Could someone tell me the script(s) to use with all functions, etc. included - as I am so new to all this. I have been looking for weeks & tried many codes but none seem to work - or I don't know exactly where to place them - or both
View 3 RepliesI have a timeline of 30 frames, each it's own mc (page01_mc, etc.). In each mc I show a picture or two and hear narration.I have a first, prev and next nav on the main timeline. I need to add a play/pause btn that will pause both pictures and sound. I assume I do that in each mc, but do not know where to find the code.Here is what is in each mc now:
var mySound:Sound = new Sound();
mySound.load(new URLRequest("english/Intro01.mp3"));
mySound.play()
I had a quick question, I have a movieclip with 15 frames in it with an image on each frame, and a stop action on each frame. On my main stage I have 15 different buttons, which when pressed will change the movieclip to that particular frame (so pressing button 3 would make the mc go to frame 3). I'm still rather new to AS3, but I figured the most simple way to do this was a function which was called when the buttons are pressed
[Code].....
I need to export a 60 animation from flash. It has text and image animation on the timeline, no actionscript. The swf file when published is 5 mb. When I export as an .mov, it is 768 mb. Also, there is some jumping and stuttering.
View 1 RepliesActionscript Code:
function createNames(){var counter:Number = 1; for each(var ca:Categorie in arrCategories) if(ca.Name == currentMonster.name) for each(var ch:Channel in ca.Children)
[code].....
It's pretty common on many Architectural and Engineering sites to have a small movie on the home page. For example: URL... I've made similar movies for my websites using flash, and there always seems to be a lag and an image icon while the movie to loads. Here is a site where the movie loads unnoticeably: hensonarchitect com. Is there a way to use flash and have the movie load without an image icon placeholder? The flash movie that I have in mind is only 90kb, so a preloader isn't needed.
View 2 RepliesI guess I did not finish my project yet. I have a script that will stop sound on click of the mouse, but I have a little animation running but I need to stop it with the same click of the mouse ( together with the sound) just insert stop() stop entire project and this is not good, this is a loader and it need to have ability to continue even some one shut sound of.
View 7 RepliesAll I want is to create a line (which is part of a rectangle) with a certain height (60), which I can then resize to another height. This works if I do it by hand (or mouse ), but if I use AS3, the line (or whatever object I'm using) is too small. Not only that, but the bigger the enlargment, the bigger the difference! I have attached an .fla file that contains two examples:On the right a rectangle that is being created with AS3, on the left two lines, one is just a Drawing Object, the other one a copy of that and made into a MovieClip symbolach example will be enlarged (by 200px) and in each one you can see that this results in a gap between the end of the line and the control object (red). Also, I measured the length of the line and it is indeed to short.
View 1 Repliesi want to find a easy tool to make a small flash
View 1 RepliesI have a flex project and if I build a release version of the application using flash builder with RSLs on my swf is 115k. If however I build the same application using ant the swf is 342k. Without RSLs the swf is 520k.
How do I get the swf to be as small as the one built by FlashBuilder?
Here is my ant file I have another task that copies the rsls.
<project name="EUI Client Application" default="compileClientApp">
<target name="compileClientApp" depends="compileClientBundles">
<mxmlc
[Code]....
I am trying to tile a small mc instead of a bmp image and I was wondering if anyone knows what aspects of Lee's tutorial need to be changed to accomedate that?
[Code]...
I tried a couple of things and was not able to get the mc loaded onto the stage.
I am having a little trouble understanding why my code is not functioning. It works if I subtract and combine numbers above .1 but if I use a number below .1 the _x and _y values stop at 0. I would like the _x and _y values to go into the negative. I am using Flash MX.
function movePastCorner(mc){
mc._x = 2;
mc._y = 2;
[code]......
I have a movie container (fps:30) that load other movie that I want on 20 fps in this movie I have 20frames on the 2 first frames a preloader and in the next 20 I have one MC with a image sequence, to control the fps of this Movie (MC) I use this code attach to my MC
FPS controler:
[code]...
Problem:The problem is that in each run of the MC my movie stop for 2 seconds and the loop is not continues how can I fix this problem Take a look by your self: http://138.188.237.103/cielo.swf
Code:
// msg_box_txt is a TextField for user input
// by hitting ENTER, it sends msg_box_txt.text
var my_listener:Object = new Object();
my_listener.onKeyDown = function() {
if (Key.getCode() == Key.ENTER) {
[Code]...
msg_box_txt should be cleared, empty, after hitting ENTER. the problem that it contains one empty line, and the cursor is at beginning of the second line. how can this be fixed??
im just looking to animate an object from small to big using actionscript, i understand moving objects and fading them in and out with alpha
View 2 RepliesBasically what i have is a intro mc on frame 1... then frame 2 is my preloader. then frame 3 is my videoclip atm. What i want to happen is have the preloader to at least appear for a small interval. So intro movie plays, then preloader plays. for a desired interval by going into the preloader_mc mc for a smalla mount of time. As of right now it loads to fast and the preloader_mc just goes right into scene3. here is my preloader code
// Preloader Script
// ==================================================
this.onEnterFrame = function() {
var bl = _root.getBytesLoaded();[code].........
first: i know. ZigoEngine is better, etc. but all i'm doing is a simple alpha fade out, swap in new image, alpha fade in. so i'm using the lmc_tween.as to keep it light. here's the code
[Code]...
Buteh, I sat down to create a small app to calculate X in order to solve 2nd grade equations.
So, in order to manage this I had to translate "x = -p/2 +- sqrt((p/2)^2 - q), right?
Everything works fine until I reach the step when I must perform equations with -p/2 and sqrt((p/2)^2 - q).
Adding and/or subtracting with these numbers causes Flash to return NaN.
Im doing a small PhotoGallery but it throws me an:
Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
The code in really simple but I really don�t know what this error means o what is the reason because it pop ups.
Code:
var photoRequest:URLRequest = new URLRequest()
var photoLoader:Loader = new Loader();
photoLoader.addEventListener(MouseEvent.CLICK, unLoadPhoto);
function unLoadPhoto(evt:MouseEvent):void
[Code]....
flash and working on two flash files for a website. They are small, 2.20KB and 4.10 KB. I am testing them on localhost and notice the object creates a box and an icon on the screen for both of them before they load and appear
View 3 RepliesI want to make a list of things, when I move the mouse over an item, a small picture appears next to it. when I click on an item it sends me to another scene _page_ within the flash.
View 3 RepliesI have made a total flash site but the exported site is 50 mb!! Not a usable size, so I want to know how to make this site 'smaller'. there are a ton of flash sites on the www, so I must do something wrong.. What is the normal file-size for a flash site?
View 1 RepliesI am trying to loop a small sound file (wav file because I was told wav will loop seemlessly)...in any case, got the actionscript (2.0) to work with one simple button that acts as a start and pause... but yet, the file still doesnt loop.
View 8 Repliesi,m developing a HTML site and used one animated flash button(AS2) I want a small sized window to open when a user clicks on a button. The window will contain information that i want to display.It dosnt require a normal 800x600 window to open. I just want a 1/4 size of 800x600 etc.
View 14 RepliesI know how to use Source Path ( which is just an another source folder). But could never figure out how to make use of library path.I know using SWCs too.. but how can i use a bunch of classes which are not in SWC form, in my library path ?
View 1 Repliesi am not sure if there is a similar thread posted already (i couldn't find one). This is a new class i just put together for a commercial project and i fugured it would be useful for anyone who needs simple email address validation. Its very small (2kb) and appears to be working pretty good. the useage looks like this:
ActionScript Code:
import classes.EmailValidator;
ActionScript Code:
[code].....
I am looking for a way to split a loaded mp3 Sound into small segments. I have googled around but cannot find anyth on the matter. I am begining to think it is impossible. My approach was to load the mp3, then use the extract function to extract all the bytes. now for every small section when the user wants to play it it is filled using SampleDataevent with some values from the array. At first i tried to do my idea by loading an mp3 into a bytes array then writing it to a new file and playing that file but it does not work:
Code:
var snd:Sound = new Sound();
snd.addEventListener("complete",loaded);
snd.load(new URLRequest("Burn.mp3"));
[Code]....