ActionScript 3.0 :: Channel.position - Increased Checking Of Mp3?
Jul 9, 2010
I have finally narrowed down a problem I've been annoyed with for some time.
Code:
var request:URLRequest = new URLRequest(url);
snd.addEventListener(Event.COMPLETE, completed);
snd.load(request);
channel = snd.play();
[Code]....
Duplicates... I have basically found it's not checking the mp3 frequently enough, no matter what the frame rate is set to. I've got this running at a steady 100fps. Before you say.. Yes it's actually running at that speed, if I use code to move something about, it's extremely smooth and fast. I also had the framerate reporting to a text box, and it was saying 99.9/100 constantly. I've also tried using a timer instead of Enter_Frame, but it's the same issue - Just not checking the mp3 often enough!
View 2 Replies
Similar Posts:
May 30, 2009
Calling channel.position on an ENTER_FRAME event, I notice that it's not being updated every frame, but it looks more like every frame and a half.
var sound:Sound = new Sound(new URLRequest('music.mp3'));
var channel:SoundChannel = sound.play(); // assume the sound is completely,
// totally, 100% loaded
[code]....
View 1 Replies
Apr 3, 2009
I have this tween function that moves an object 100 pixels as soon as it enters the frame.
if (currentValue % 15 == 1) {
var rab1:MovieClip = rabbit1._x;
var myHoriTween:Tween = new Tween (rabbit1,"_x",Regular.easeInOut,rab1,(rabbit1._x = rabbit1._x + 100),2,true);
myHoriTween.onMotionFinished = function (){
this.stop()
}
My idea is to set up a loop to watch the tween, once it advances its 100 pixels from where it started I want to do a few things before I go to the next frame. Right now I'm using a timer, but it limits my ability to control the playhead.
I've been trying to create a loop to check the current _x and trace it so I can see it advancing as its tweening but it's simply too advanced for me.
View 1 Replies
Oct 6, 2010
I have an app. in which I have placed a ViewStack with (16) Tabs, and Im using a Timer set up to cycle every five (5) seconds through these VS Tabs automatically.
Each VS Tab has an IFrame included to load a particular web site, and I use the auto cycling to not need to go to each Tab manually and wait each time until the page loads before I can use it.
(Note: The IFrame does not need to do anything else other than to show the page nothing else)
All works very well on the work computer running the app. with CPU activity of around 20 to 30%, but when I address the app. on the sever I have increased CPU activity starting with around 30% on the first sequence, and running the second Tab sequence it is going up to around 90% in Semi-auto or Full-auto modes with five (5) seconds beak in between Tab switches and between each sequence.
To explain more in detail I do have six (6) sequences and an arrangement which uses Semi-auto or Full-auto mode (Looping).
I do use (timerName.reset) instead of (timerName.stop) and have also have used (timerName.removeEventListener .) as each Timer sequence get called separately.
View 1 Replies
Jul 22, 2010
I have 3 swfs, and let's label them MovieA, MovieB, and MovieC. MovieB is a child of MovieA, and MovieC is a child of MovieB. So the hierarchy goes like this: MovieA -> MovieB -> MovieC. Each of these movies have their own document class, so they are each essentially a class extending MovieClip.
Now I have this other external class which contains only static variables. Let's call this class "TestClass" and let's say one of its static variables is called "testVar". So in MovieB's document class, I imported TestClass and set testVar = "hello world". In MovieC's document class, I imported TestClass and traced TestClass.testVar. When I publish and run MovieB, testVar is successfully traced as "hello world". Now when I publish and run MovieA, testVar is traced as undefined.
View 10 Replies
Jul 7, 2011
I'm using a Amf channel , How to add security to My channel..
View 2 Replies
Mar 24, 2009
How is a movie clip programmatically alpha'd? I've tried everything in my .as script, I run the movie, and nothing happens.
View 4 Replies
Aug 8, 2011
I need to send a live streaming to Adobe Flash Media Server encoded with on2 VP6 8 bit alpha channel (chroma key) so all clients see only the speaker with no background.what hardware or software support realtime encode VP6 alpha channel
View 1 Replies
Jun 20, 2010
If you subcribe a Consumer in Flex, you need to assign a ChannelSet to the Consumer. In my case, I create a ChannelSet and then add a Channel to that ChannelSet.Apparently, the added channel is the current channel of the ChannelSet. But what if I would add two Channels to the ChannelSet? Do I need to set the currentChannel before subcribing?If there are two channels in the ChannelCet, and I trigger the login method on the ChannelSet, will both Channels be authenticated and connected?
View 1 Replies
Apr 1, 2011
The only way i can describe this is showing the code I have already then trying to explain what i want to do.Basically, I am creating a soundboard game, where at the bottom of the screen I will have a bar which is a movieclip, and I will be dragging other movieclips onto it and then clicking pay, and using an array and .push they will play in order. I am trying to put the sounds onto the movieclips using code.[code]...
View 2 Replies
Feb 21, 2010
I want to have a video with a different language on each channel, to give the viewer the possibility to switch dynamically. That's easily done with setPan, however you end up with the audio playing on only one channel, and that's pretty bad, specially if you watch in headphones. So my question is:
how do you take one channel from an FLV stream and send it to both speakers?
View 0 Replies
Jan 20, 2010
I am experimenting with video using the alpha channel capability of the FlashCS3. I followed the tutorial on the gotoandlearn website on how to create chroma keyed video. I exported an avi video file having removed the background. Ive used Flash video encoder for VP6 and flash player 8 with encode alpha channel ticked. However my swf is not showing the video, just a white blank where it should be. It puts out the audio only.
This is the log file.
FILE SUCCESSFULLY ENCODED
- Source file: C:downloadsflash greenscreenvideoscreentestalpha.avi
- Output file: C:downloadsflash greenscreenvideoscreentestalpha2.flv
- Video codec: On2 VP6
- Alpha channel encoded: yes
- Deinterlace: no
- Frame rate: 25 fps
- Key frame interval: 50 frames
- Video data rate: 40 kbps
- Width: 720 pixels
- Height: 576 pixels
- Audio codec: MPEG Layer III (MP3)
- Audio data rate: 16 kbps (mono)
- FLV duration: 00:00:10
- Encoding time: 00:01:00
View 1 Replies
Jun 7, 2007
i can now getPixel() from a external jpg but what i finallly want to achieve, is getPixel32() the alpha value is always FF(255)
[URL] take a look on this sample~ in this sample the photo is partially transparent, i can see that in photoshop if i put my code in this file, the color picker can tell the alpha changes. that why i still think there is a chance for getting the alpha value from external .png~ just don'y know how to achieve it T_T (i've try transparent png and also alpha channel added png, doesn't work like the sample)
Code:
import flash.display.BitmapData;
import flash.geom.ColorTransform;
import flash.geom.Matrix;
[Code]....
View 2 Replies
Nov 3, 2009
I have some png images which were converted to movieclips and exported. I would like all clicks on the transparent parts of the png to be ignored by a movie clip on a closer layer and have a movie clip under the transparent parts receive the event. Is there a way to do this? When I convert the symbol to a movie clip, the authoring tool automatically puts a bounding box on it so all clicks in the bounding box are detected. I tried searching mouse events and alpha channel stuff on the forum.
View 3 Replies
Jan 8, 2010
The pause button in my MP3 player resets the track to the beginning, there is something wrong with my sound channel because when i trace the position it is always zero.[code]...
View 1 Replies
May 9, 2007
I have a little video showing a text animation on a black background. The alpha channel is encoded. I want to integrate that video under flash but I want the alpha channel to be taken into account and I don't know how I can do that. After integrating the video, I get always that black background, how can I remove it?
View 4 Replies
Jul 11, 2009
I have an mp4 file that i made and i made it 7.1 surround sound, and i'm pretty sure that this 7.1 surround sound works, as it can be played in VLC. i'm using netstream to load my files now. How do i make it so that flash can playback all 8-channels of sound?
View 3 Replies
Sep 24, 2009
Using Flash CS4. I have some images with transparent backgrounds that I'm putting into Flash. Placed in Flash at original size, transparency looks great. However, when I scale the images to any different size, the edges of the alpha channel get real rough, not smooth and aligned to object. I've experimented with png, targa, gif, but all seem to have this problem. Is this some issue with Flash? I don't remember seeing this problem in say Powerpoint.
View 3 Replies
Jun 25, 2011
I have this FLA with animation and when played, the animation has alpha channel. I cant understand why when I look in the library I see the frames without the alpha channel and also when I try to export/extract the image again the image dont have alpha channel. How is it that in flash this image has alpha channel and how to get it out like that into PNG? Here is the link to download the FLA:[URL]..
View 1 Replies
Nov 29, 2011
Is there any SWF to Video converters can convert flash to AVI with 32-bit RGBA transparency? Whats good?
View 3 Replies
Jul 1, 2009
I have a swf which, for some reason, has four RemoteObjects pointing to the same ChannelId, but they are listing that channel as being at two different spots. In four of the five RemoteObjects, everything behaves as expected, but in the fourth (WidgetService), the version on dev is switching from dev.context.root toloc.context.root. To make matters more confusing, it only does this on the dev server (QA and production are fine, as are local builds).The relevant information from the config files follows:
#This is from build.properties, which is used by Ant
#to build the swf on the server
flex.sdk.dir = /path/to/sdk/flex_sdk_3.2.0.3958
[code].....
View 1 Replies
Jan 13, 2010
Is it possible to use an AMF Channel in a Flex HTTPService client application without using Adobe Livecycle, BlazeDs or similar in order to do real time asynchronous request from an HTTPService?
View 1 Replies
Feb 10, 2010
I'm using NetConnection, NetStream and a flash.media.Video control to play back video files stored on the local machine. Works great for FLVs, and for H.264-encoded MP4s, but for non-H.264 MP4s, I often get audio, but no video.
I realize this is to be expected. What I'm wondering is whether there's a way to reliably detect that the video portion of the file is unplayable, irrespective of the audio. Of the many events available in NetStream, and even in the client callbacks (onMetaData, etc.), I don't see anything that explicitly informs for an unplayable video track -- I see NetStream.Play.NoSupportedTrackFound, and NetStream.Play.Failed, but for these videos -- i.e., playable audio, non-playable video -- I don't get either one, presumably because the audio works.
View 1 Replies
Apr 5, 2010
Is there a better way to use the sound channel is AS3?
var mySound:Sound = new Sound();
playButton.addEventListener (MouseEvent.CLICK, myPlayButtonHandler);
var myChannel:SoundChannel = new SoundChannel();
function myPlayButtonHandler (e:MouseEvent):void {
[code]....
View 2 Replies
May 5, 2011
I am encountering a weird problem. I have a flex application that calls a HTTPService from another domain to retrieve some data. I have created a crossdomain.xml in my flex application with <allow-access-from domain="*"/>.
When i run my application http:[url]...., i can retrieve the data without error.But if i run my application http:[url]....., i encounter the Channel.Security.Error.
View 1 Replies
Jul 9, 2011
I have an application running on flex and php, connected using amfphp, i added a secure channel to services.conf of amfphp [code]how do i know if flex is actually using this secure channel? i tried [code]from the php side and they are both false ... but if i remove these checks it works fine, I'm using wamp, with mod_ssl, and working from localhost
View 2 Replies
Sep 14, 2011
I know the SoundMixer.computeSpectrum and Sound.extract() methods , but those methods deal with the total sound output. Instead, is there a way to deal with every single SoundChannel, so as to provide a graphical visualization of each of them?
View 1 Replies
Nov 6, 2009
I am really close I can feel it. I am doing something stupid I know. I have a file where one button simply controls stop and play of a looping audio stream. (by overlapping the buttons and making them visible or invisible depending on buttonClick) I have it where it does work for stop/start but I really need to to Play/Resume.
[Code]....
View 2 Replies
May 6, 2010
is there a way to add alpha channel to an image that is imported to a library and doest have alpha channel? e.g if i use setPixel32 to set a pixel of an image, the alpha channel is ignored. do i have to copy the entire image data into a new bitmap or is there a better and faster way?
View 1 Replies
Dec 6, 2010
I want to check a hit test between a point and a png bitmap with an alpha channel. I know bitmaphittest is for 2 bitmaps. Hittest is for 2 bounding boxes and hittest point is for a point and shape, but it doesnt work with a alpha channeled bitmap. So what do I use to test a point against an alpha mapped bitmap?
View 6 Replies