ActionScript 2.0 :: Start Point 4 Sin Wave?
Jan 2, 2004i have mc cruisin along a sin wave curve, code:
[code]...
Q: how can i set an orgin/start point?
i have mc cruisin along a sin wave curve, code:
[code]...
Q: how can i set an orgin/start point?
how to make a video start playing at a specified point in the middle of the video rather than from the beginning. Not sure if it's something that easily can be done in Dreamweaver or if it's involved with the flash settings.
View 21 RepliesI am using Senocular's code to dynamically create part of a circle using curveto.I am wondering how to change the start point, like where the circle outline starts. It is currently starting on the right of the circle, I would like it to start on top. How would I go about doing that?Here is Senocular's code:
Code:
// x: circles center x, y: circles center y
// a1: first angle, a2: angle to draw to, r: radius
[code]....
I've been working on a video-centric project that requires a very specifically designed video player, which I've built from scratch -- no skin. Things were going great until I actually uploaded the video and SWF to my server and tried it out. Here's the issue: The video, which is an F4V that's been imported into Flash as an external asset -- I'm not using NetStream, nor am I using a Flash media server -- starts loading almost immediately. But when you use the custom-built scrubber bar to jump ahead in the video, it freezes up until, I presume, the video has loaded to that point, at which time the video starts again. If you open the SWF and let it sit for a few minutes, this isn't an issue -- you can jump back and forth as much as you want.
So clearly the problem here is that the video is loading from the beginning and the user can only get to a certain frame when that frame has already been loaded. But it must be possible to start loading from a specified point, right? After all, the video doesn't load all together and become available only when the whole thing is done. It starts loading at 0:00 and continues progressively. I just want to change where it starts loading by telling it not only to play at that point but to start loading at that point, too.
Basically the code below has been designed so that a video starts at 52 seconds (rather than the beginning) when you press play. It works good right now, starts where it's supposed to, but I want to change the code so that it autoplays the video starting at 52 seconds. The problem with this though, is that when I try and set it for autoplay, the video starts at the beginning and doesn't wait for it to load to 52 seconds before it autoplays. Any input on the coding? I need it just so that the autoplay doesn't kick in until the video is loaded to the 52 second point
import fl.video.MetadataEvent;import fl.video.VideoProgressEvent;
import fl.video.*;
my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, rewind);function
[code]....
I'm having a problem and I do not think the solution. I'm new using Flash.I have a video player and now we are implementing an HD button, the player always starts the video and 360P format and stream begins, if the user click on the HD I need to save the time of the video when it was clicked and then call another file. mp4 720P and start it at the same point that was recorded.I've tried various ways using CONNECTION.STREAM.seek(TIME); and always starts at (0), I feel that because of not being in Buffering he does not understand
View 1 RepliesGood afternoon staff. I'm having a problem and I do not think the solution. I'm new using Flash. I have a video player AS3 and now we are implementing an HD button, the player always starts the video and 360P format and stream begins, if the user click on the HD I need to save the time of the video when it was clicked and then call another file. mp4 720P and start it at the same point that was recorded. I've tried various ways using CONNECTION.STREAM.seek(TIME); and always starts at (0), I feel that because of not being in Buffering he does not understand. Can anyone help me solve this?
View 0 RepliesI was trying to modify the kirupa "falling snow" tutorial into a water bubbles effect which is just making it up side down. However, I was having trouble to make the bubble start from a certain point in a movie. For example, I was trying to make the bubble start from the bottom of the screen, but it didn't seem to work for me. Therefore, I was hoping if there is someone who can help me to solve the problem.
View 7 RepliesI am trying to use Flex Video Display as a preview player. The player is streaming the video from the server.While The buffering is not complete, if we try to drag the play head to an area beyond buffered region, the player will drag the playhead back to the current playing position. I need to implement the player like you tube video player which allows to drag to anywhere in the track even when data is not fully buffered.Is there a way for doing this.
View 1 RepliesI'm trying to have a movie clip with 4 buttons that moves to the four corners of the stage.Depending on which button is clicked, the movie clip goes to that corner.he trouble I'm running into is determining the variable start points. If the end goal is the lower right corner, it needs to be able to move there from the upper left, the lower left and the upper right. So I need to set the starting position as a variable I assume, but can't get it working.
View 2 RepliesI'm designing a platformer game, in which the code is all held within the character MC. I want to pause the game using something like 'delete this.onEnterFrame' as a start point to terminate code. The code layout within the character is like so:
onClipEvent (enterFrame) {
...
this.onEnterFrame = function(){ //within clip event
...
if(btnon == 1){ // when button pressed(on stage)) global value of 1 is true
delete this.onEnterFrame;
}...}}
Due to the fact its within a clip event structure, it doesn't pause it, instead it slows everything down. Would I have to construct all my code in a frame layer or can I still use an MC to terminate this?
Setting up a web page to progressively stream video to whoever goes to that page. We are not streaming live video but streaming a video fileon the server.
The Question: Instead of starting the video at the begining we want the video to start at some mid-point based on the time of day... (therefore emulating "joining" a live broadcast.)
Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate. ie starting the second mc moving while the first tween is still moving.
View 1 RepliesI have a long mp3 file hosted on a standard apache server (30 minutes long so far, but I would like it to work with longer sounds too).I'd like to start playback of this audio within at a specified point. When attempting to use Flash Actionscript 3, my basic tests show that ALL the audio from the start to the position I choose is buffered before playback (Sound.bytesLoaded was my friend here). If I start one second in, it takes about 3 seconds to start playback, 30 seconds in, takes about 25 secondsObviously with a really long mp3, like skipping playback to the middle of a 3-hour audiobook, this isn't going to be practical.Here's the ActionScript 3.0 code I'm using:
button.addEventListener(MouseEvent.MOUSE_DOWN, function():void {
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("http://example.com/audio.mp3");
[code].....
I'm working on an animation where some guys sings and in order to make that look good, i need some good lip syncing. Since this is not short clips, but a whole song on 2-3 minutes, it's very hard for me to make the lip sync perfect because I have to replay from the beginning in order to hear the music. So question one is: Are there a way that I can play the movie in the middle and still hear the music? And so the second question is that I can barely see the sound waves in the Music layer, even though there's lots of music. Here's a picture of how big the sound waves are: And that's in the middle of the song! The problem is not that the music is too low, because it's quite high. So question number two is: Are there a way that I can make the soundwaves bigger in the music layer without affecting the music itself?
View 1 RepliesI want to stimulate sea wave,but I have no idea about it. Is there an example code for it? I know as3 can make many good graphics and text effect, so I want to learn it eagerly,but I don't know which book should I read. Anyone could introduce a good book for me about as3 algorithm? More example code are better in the book.
View 3 RepliesI wander if anyone knows a way how to make a wave effect in flash. In fact anything that would remind of sea would be accepted.
View 7 RepliesThe problem with Math.sin() is that I cant figure out a way to control the increment. Still this seems like a lot of code for such a simple concept.
[Code]...
I am implementing this code for drawing the sound wave. It is in the adobe livedocs at soundmixer . My problem is how to widen up the sound wave? For example I would like it to be 655 pixels. I can change it to draw to different channels and also change the height of the drawing but cannot find how to change the width of the whole drawing
package {
import flash.display.Sprite;
import flash.display.Graphics;
[Code].....
how to create an interactive wave using actionscript and flash api? I mean the interaction like this but not so complex (I need jsut about 10 to 20 peakpoints)URL...
View 2 RepliesI've been trying to piece together a way to have an image with a flag wave fade in as soon as the movie loads. Once the image is faded in almost all the way, I want the waving to slow to a stop so at the end, it's a static image. I've gotten most of this accomplished, however, once the flag wave slows and stops, the entire image shifts up and to the right. I'm sure it has something to do with some displacement variable, but since I'm no coder I can't seem to figure out how to stop this.[code]...
View 1 RepliesI want to make a movieclip move on random sine wave. (sine path)I m trying to do this for a week and cant get it good.I want to make the curves random. and acceleration too.(it will be a fish like character swimming)Like as in this game : http:[url]..........(the small character which swim and move smoothly)this is the portion of code im using now.
var tempEnemy:MovieClip = _root.attachMovie("enemy1","enemy_1,1);
tempEnemy._x = 500;
tempEnemy._y = 0;[code]..........
I have different cards, I need to reveal them in a wave like form, i.e. the cards open and close at different timings sequentially and systematically such that they form a wave. I have the cards in an array alr. How do I implement this animation in the most efficient way?
View 2 Replieshow can i play wave file using flash .
I m able to play mp3 files using following code
[URL]
How do I infinitely loop an mp3 file in standing wave. I've tried LoopSource with SoundGenerators etc, but I've had no luck. I can find no usage examples in the documentation or online of someone looping anInfinitely mp3:
var player:AudioPlayer = new AudioPlayer()
const generator:SoundGenerator = new SoundGenerator(sound)
source = new LoopSource(new AudioDescriptor(), generator)
player.play(source)
I know AS3 can create visualizations using sound waves, But I'm trying to find something that will show the wave length within a mp3. So as it's playing, you'll see when the audio is spiking or dipping.
View 4 RepliesI want to create a organically moving background for an application I'm building by creating a line that animates in a wave and changes in thickness. This is the background the designer made and that I want to animate
martijnreintjes.com/docs/lines.jpg <= darn
I don't have enough right to post a picture. I tried to use the Hype framework but couldn't get it working properly. I think I need to work with some Math functions but I don't know exactly how to tackle such a thing.
how to create a sine wave using flash as3?and how to add changes to the wave based on changing frequency and wavelength using a slider.
View 2 Replieshow do i make this sine wave picture effect ,wave on the horizontal insted of the vertical
)
( vertical as it is now
)
[code]....
This is a project I am working on for my job's website. When you rollover the red dots I want the wave animation to play but I also want words to come up in the blue bar describing the location of that specific dot (e.g. Singapore), but I dont want the wave animation itself to have rollover because that causes problems. Right now the "dot" button has a "hit" area that plays the wave movieclip so the wave doesnt have a rollover property. I tried just adding another rollover property to the whole "dot" movieclip that would display the descriptions, but that made it where the wave mc wouldnt play on rollover. I also want the wave to play out in its entirety, not disappear as soon as you rollout.
View 8 Replies