Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Controlling Playback Timing Of 3 Different Swfs? How?



I have a single html page that has three different swf files,
in three different table cells.

Is there a way to stably control the playback timing of the
three and keep them in sync, without making them one big
(big resolution-wise, not file size) swf?

They are basically all three small banner ads that transition
from one image to the next, but I want them to transition in
order and stayed synced up. Top banner goes, then a second
or so later right banner goes, then a second or so later, the
bottom banner goes, then repeat...

It needs to work on all the current browsers and also on both
the PC and Mac platforms...

Thanks in advance.



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-01-2003, 11:10 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Controlling The Timing Of Sound Loops
hi hi... pls help me

I'm making a kids drum machine and I'm trying to do 2 things that are very similar.

I want my 4 second (48 frame) sound clips to begin at the same time (that is, at the beginning of the 4 second cycle) and if a sound is stopped, I'd like to have it finish out its cycle first and then stop.

I think the key here may be with using onEnterFrame... but I don't know how to use onRelease and OnEnterFrame at the same time. (I've extended my timeline to 48 frames to acccomodate this)... there are probably some if/then conditions I could use too... but I'm so noobish... I'm lost...

Help?

XML Timing Event On Multiple SWFs Played
i've made a slide show that loads individual SWFs from an XML file and i'm using the timer class to cycle through them at a set interval (6 sec).

my supervisor would like some of the swf's to be different lengths of animation which means i would need to figure out when the current SWF playing is done before loading the next. so i can't use my timer (as is)

how would i change my timer:
var minuteTimer:Timer = Timer (6000, 0);

to handle my supervisors request??

thanks
scott

Controlling Playback
I would like to know if there is a way to use a controller playback (fast forward and rewind) to control numerous swfs.

For example:

Main.fla holds the controller
Main.fla calls up several demos that play linearly.

there are six demos. the demo.fla is set up with movie clips on the main timeline(to control total frame #) -- otherwise the audio alone would make a demo over 16,000 frames (the macromedia flash mx 2004 limit)


now is there a way to have the main.fla fastforward and rewind these demos so that at the end of one, it jumps to the other and and the beginning of one you can rewind to the end of the previous? So that it rewinds and fastforwards inside the movie clips not the main timelines of the demos?

please help!
thanks

Controlling Playback
I would like to know if there is a way to use a controller playback (fast forward and rewind) to control numerous swfs.

For example:

Main.fla holds the controller
Main.fla calls up several demos that play linearly.

there are six demos. the demo.fla is set up with movie clips on the main timeline(to control total frame #) -- otherwise the audio alone would make a demo over 16,000 frames (the macromedia flash mx 2004 limit)


now is there a way to have the main.fla fastforward and rewind these demos so that at the end of one, it jumps to the other and and the beginning of one you can rewind to the end of the previous? So that it rewinds and fastforwards inside the movie clips not the main timelines of the demos?

please help!
thanks

Controlling The Playback Of My .flv
hi.


just managed to make my very own, very simple .flv-file from After Effects.
like it!
and so, I've set up my .fla to load and display the .flv:

Code:
var videoConnection:NetConnection = new NetConnection();
videoConnection.connect(null);
var videoStream:NetStream = new NetStream(videoConnection);
var video:Video = new Video(700, 480);
addChild(video);
video.attachNetStream(videoStream);
videoStream.play("shine_introduction.flv");
now I'd like to fade the video in, as it begins, and fade it out again, when the video has played for 5 seconds.
I think I'll use Tweener for the fading.

so, I have to create a listener of some kind, that reacts, when the video starts playing, and a listener, that reacts, when the video has played for 5 seconds..

how do I do this?


thanks
felisan

Controlling Loaded Swfs, From Other Swfs....
alright on my site, i have a loaded movie clip with sound, which is the main bg music, and i have a samples page, and i want each sample to load up on press or whatever. now i need to know how to not just unload the mian bg music swf, but make that swf go to and stop on frame 3 (1 is loader, 2 is play, and 3 is stop) thanks alot!!

Controlling Playback Of Movie
Hi, I created a little movie for an html page and now I would like to start the playback only when the whole html page is loaded. How can I do that? Thank you for your help.

Cheers

Controlling Movie Playback
can a cursor movement control a movies playback to reverse and forward?

eg cursor moves left movie plays forward, cursor moves right mpvie plays back

cursor on or off hit area movie stops or ciontinues to play for the same frame

Controlling Playback With Actions....
Okay, here goes. I'm attempting to create an interactive Flash piece in which I have four animations. I need the animations to play at different times (each one will have a button allocated to play it), and when it's run through, the page to return to normal. The page will have also contain a background image and 2 looped animations(movie clip symbols) that I want to run constantly throughout. The problem I've encountered is this...

I can make the playback head jump to a designated frame (i.e the beginning of one of my animations), but as the background image and 2 looped animations only exist in the first frame, they disappear when the head leaves frame 1.

I know that was a bit long winded, but it's hard to find stuff in books when you don't know what your'e looking for!

If anyone could give me a brief runthrough of how all or part of this idea could be achieved I'd be most grateful!

Cheers, Skratchfanatic

Controlling Playback With Actions....
Okay, here goes. I'm attempting to create an interactive Flash piece in which I have four animations. I need the animations to play at different times (each one will have a button allocated to play it), and when it's run through, the page to return to normal. The page will have also contain a background image and 2 looped animations(movie clip symbols) that I want to run constantly throughout. The problem I've encountered is this...

I can make the playback head jump to a designated frame (i.e the beginning of one of my animations), but as the background image and 2 looped animations only exist in the first frame, they disappear when the head leaves frame 1.

I know that was a bit long winded, but it's hard to find stuff in books when you don't know what your'e looking for!

If anyone could give me a brief runthrough of how all or part of this idea could be achieved I'd be most grateful!

Cheers, Skratchfanatic

Controlling Playback With Actions.....
Okay, here goes. I'm attempting to create an interactive Flash piece in which I have four animations. I need the animations to play at different times (each one will have a button allocated to play it), and when it's run through, the page to return to normal. The page will have also contain a background image and 2 looped animations(movie clip symbols) that I want to run constantly throughout. The problem I've encountered is this...

I can make the playback head jump to a designated frame (i.e the beginning of one of my animations), but as the background image and 2 looped animations only exist in the first frame, they disappear when the head leaves frame 1.

I know that was a bit long winded, but it's hard to find stuff in books when you don't know what your'e looking for!

If anyone could give me a brief runthrough of how all or part of this idea could be achieved I'd be most grateful!

Cheers, Skratchfanatic

Controlling Playback Of MC Via Button Within MC
I am trying to build a menu that drops down on release of a button. The menu has button links, and on release of one of these buttons I want the menu to fly up and disappear and go to the respective link. it seems simple but i can't get the menu to respond to the button. I've been stuck on this for a while.

Also I have a preloader but I'm not sure if it's working correctly. if someone could verify that it would be great.

The .fla file wont fit as an attachment on the forum; download it here --> http;//www.geocities.com/alpine_edge3/oddsound.fla (~450K)


Thanks in advance for your help.

-George Marzloff

Controlling Playback Of MC Via Button Within MC
I have a drop down menu controlled by an on release button and the menu has button links. When a user clicks a link i want the menu to jump back up out of sight and the movie will go to the appropriate destination. I can't get the link buttons to control anything; it may be a problem with the target paths. (the menu is located in the 'main' scene.)

Also I have a preloader as the first scene, but I'm not sure if it's working right. Could somebody verify that it works, and that the preloader doesn't wait to show up until the whole movie is downloaded?

Click the link for the .fla:

http://www.geocities.com/alpine_edge3/oddsound.fla

Excuse the weirdness of the intro.

Thanks for all help
-George Marzloff

Controlling Playback Of A Movie (MX)
I have say 4 buttons, they control a single time line of a movie instance
Lets call the instance frames_mc which has 100 frames

So Buttons A,B,C,D
What I want the buttons to do is controll the playback relative to where it is,

I have three things I need to be done

buttonb_mc onRollover gotoandPlay the Frames_mc movie from frame 50 onwards. (This one I can do)

a) buttonc_mc if frames_mc on frame 50 stop
if not on 50 gotoandplay 20
(So what is the code for determing if the playhead is on a certain frame on a movie clip? if FrameLoaded?

b) button d_mc if frames_mc on frame 50 then play next frame -1
(What is the code for playing a movie clip in reverse to a certain frame)

help is much appreciated.

Controlling MP3 Playback Using JavaScript
I have an AS3 MP3 player on a web page that uses the ExternalInterface.addCallback() method to playback mp3 files. The xml is generated dynamically and loads properly. I am able to toggle through the songs and play them from the MP3 player, however my efforts to communicate with the MP3 player from the web page are not working properly.

I am using swfObject to embed the swf movie on the page and the following code to trigger the playback from the page:


Code:
<a href="#" onclick="swfobject.getObjectById('mp3_player').playSong({entry_id},0);">
I could use some guidance on making this connection work properly. Any suggestions?

Thanks

Controlling 2 FLV Playback Components
Is it possible to control 2 different (but on the same frame) FLV playback components but from 1 flv playback controller.

We are trying to create a video of two layer, a back ground video , and a presenter with alpha transparency in front. The plan is to add a slider to turn the opacity of the presenter up and down.

I can make it work by embedding the two video on the flash time line, but would like to be able to have them as a progressive download using the FLV playback component.

Any advice help

Ps can you change the Alpha of a FLV playback component’s video , like you can if the video is in a movie clip.

Oh yer and I’m on Flash 8

Controlling Timeline Playback
Is there are a script that will run a swf file in reverse?

For instance, if the beginning of a movie zooms in on something, a button can run the zoom in reverse?
Any help on conrtolling timeline playback would be appreciated.
Thanks in advance.

Controlling Speed Of Flv Playback
Title says it all. Is this possible, in a dynamic sense?

appreciate any response.

NetStream & Controlling Playback
i am using a netStream'd object to play streamed video.

i have 2 ?s i want to ask about

1. thru lots of trial and error, i have found that if i have buttons that will control what FLV the netStream will stream, those buttons have to be on my root, with the object, and the netConn and netStream commands in frame 1. if my buttons reside in a movie clip or in a scroll pane, the audio will stream but not the video. so i put my object, and buttons on the root and my netConn scripts in frame 1 of the root and it works fine. i have also tried putting the scripts, objects and buttons all in the same movie clip, and that didnt work either. WHY IS THAT??! i have tried pathing to my buttons inside movie clips, and have had no luck.

2. this is the script that i also have in frame 1 on the root that is supposed to 'control' my streamed FLVs

rewind is instance name of rewind button, forward is instance name of fast forward button. both of these buttons (have to) reside on the root with the video object, which is named myVideo.

rewind.onRelease = function (){
mynetStream.seek(mynetStream.time - 5);
mynetStream.play();}

forward.onRelease = function (){
mynetStream.play(mynetStream.seek[mynetStream.time =+ 5]);
}


rewind stops the movie. it pauses and then does nothing.

forward does absolutely nothing at all.

what am i doing wrong?

mynetStream is the variable name associated with NetStream.

any ideas?!?!?!

Help To Preload External Swfs Before Playback
Heya everyone this is my first post.
I'm using MX
Situation:

I have a main movie that loads 10 external movies into targets. currently they blink in in a very random order and because they need to match it looks very bad. Currently I have load movie and preloader in the first frame and loadMovies again in the second frame.(I was hoping to load them once behind a curtain in the first frame so that they would load quickly and at the same time in the secondframe)
You can see the movie at:
http://iyahfinearts.com/iyahtv/swf/final.html

What happens is that the preloader goes by so fast that it is not seen and then the second frame load movies stutter in as if they had not been loaded.


her's the code on the first frame(its been copied over from notepad so I hope its ledgible)

stop();
target1.loadMovie("kick1_smaller.swf",1);
target2.loadMovie("kick2_small.swf",1);
target3.loadMovie("kick3_small2.swf",1);
target4.loadMovie("kick1_small.swf",2);
target5.loadMovie("kick2.swf",2);
target7.loadMovie("kick2_big.swf");
target9.loadMovie("kick1_big.swf");
target6.loadMovie("kick3.swf");
target8.loadMovie("kick3_big.swf");
target10.loadMovie("smallteacher.swf");
this.onEnterFrame=function(){
l=target8.getBytesLoaded()+target1.getBytesLoaded( )+target2.getBytesLoaded()+target3.getBytesLoaded( )+target4.getBytesLoaded()+target5.getBytesLoaded( )+target6.getBytesLoaded()+target7.getBytesLoaded( )+target9.getBytesLoaded();
t=target8.getBytesTotal()+target1.getBytesTotal()+ target2.getBytesTotal()+target3.getBytesTotal()+ta rget4.getBytesTotal()+target5.getBytesTotal()+targ et6.getBytesTotal()+target7.getBytesTotal()+target 9.getBytesTotal();
p=math.round((l/t)*100)
if(p<100){
preloader_mc.gotoAndStop(p)
}else{
preloader_mc.gotoAndStop(100)
this.onEnterFrame=null;
}
if(l==t){
gotoAndStop(2)
}
}



the second frame is

target1.loadMovie("kick1_smaller.swf",1);
target2.loadMovie("kick2_small.swf",1);
target3.loadMovie("kick3_small2.swf",1);
target4.loadMovie("kick1_small.swf",2);
target5.loadMovie("kick2.swf",2);
target7.loadMovie("kick2_big.swf");
target9.loadMovie("kick1_big.swf");
target6.loadMovie("kick3.swf");
target8.loadMovie("kick3_big.swf");
target10.loadMovie("smallteacher.swf");

does anyone have any better idea or a workaround?

If you refresh the page you'll see what it should really look like.

thanks to all who reply,

Ras

Mouse Position Controlling Playback Of Mc
from somebody who is a beginer of actionscript, does anyone know the script for:

there is a mc "animation" which is around 20 frames long and
is the full length of the movie (700pixels)
and i want it to play when i have my mouse on the right hand
side of the screen and reverse when on the left side and halt when in the mouse
is in the middle of
the screen.

ive tried searching for tutorials everywhere and i can only find them on when a
mc follows your mouse and doesnt actually play.

if anyone could help it would be great cheers

Controlling Movie Playback - Looping
Ok,

I have a mc about 20 frames long. I have put this clip on the main timeline and its all cool. I have, however an action on the last
frame which tells the playback head to jump back about a 100 frames and play again.

My problem is this. I need the looping to happen and continue to happen but I only want the clip I mentioned earlier to play once and stop on its last frame. How can I get this mc to only play once even though the playback head will keep on looping past it on the main timeline?

Any help much appreciated.

Thanks

Controlling Playback Of Flash Animation
this is a very simple question. i have a flash animation which is used by several web pages (main page and sub pages). however, i don't want the animation to play in the sub pages. is there a way of controlling the animation so that you can tell it to only play on certain pages?
it is a standalone .swf file in a html page. it there a way of passing in a parameter from the html to tell it when to play and when not to? any help would be appreciated. thanks

Controlling MC Playback (forwards/backwards)
Hello all! I'm Mr. Grifter and I'm new around these parts I'm also new to AS as it applies to playback control of a movieclip so here I am.

I guess I should start explaining the concept. In my file I have a movieclip (named FloorMovie) which animates a graphic of a building (over 2000px in height). At frame 1 the building's bottom floor is centered at the registration mark. At frame 17 a keyframe is create and the building's second floor is centered at the registration mark and so on every 17 frames for each floor.

Then I drop in motion tweens in the spaces between keyframes.

In the scene, I have buttons. The concept should be clear now: hit a button and the movieclips animates forward or backward and stops at the desired floor.

I have AS in the first and only frame of the scene and it contains the following:

Code:
elevSound = new Sound();
elevSound.setVolume(25);
function stepForward(MCFrame) {
if (FloorMovie._currentframe == (MCFrame-1)) {
stopAllSounds();
elevSound.attachSound("stop_elevator");
elevSound.start(0, 1);
FloorMovie.stop();
clearInterval(step_timer);
} else {
FloorMovie.gotoAndStop(FloorMovie._currentframe+1);
}
}
function stepBackward(MCFrame) {
if (FloorMovie._currentframe == (MCFrame+1)) {
stopAllSounds();
elevSound.attachSound("stop_elevator");
elevSound.start(0, 1);
FloorMovie.stop();
clearInterval(step_timer);
} else {
FloorMovie.gotoAndStop(FloorMovie._currentframe-1);
}
}
function goToFloor(TargetMCFrame) {
elevSound.attachSound("start_elevator");
elevSound.start(0, 1);
if (FloorMovie._currentframe<TargetMCFrame) {
var step_timer = setInterval(stepForward(TargetMCFrame), 30);
}
if (FloorMovie._currentframe>TargetMCFrame) {
var step_timer = setInterval(stepBackward(TargetMCFrame), 30);
}
}
... and in each button I have code similar to:

Code:
on (release) {
goToFloor(17);
}
where the 17 is the frame at which one of the floors is centered on-stage.

The funny thing is similar code worked when I had it stuffed into each button. It stopped working once I tried consolidating the functions and simplifying everything

Any assistance would be appreciated!

Thanks in advance

Behaviors:controlling Sound Playback
Hello, I need help with an animated door (button) I created. When I click on it I want it to open and play a sound. It opens fine when clicked on release, but the sound isn't working right. It plays right away when the flash file loads and plays opposite the time I want it to. (when the door is closed) The door button I have is a movie clip with another layer in it for the sound, so I thought both the animation and sound would react together when I applied the goto and play behavior to it. I applied the behavior in the main timeline. What am I doing wrong?

Controlling Mc Playback From The Main Scene...
Help!
I'm trying to get an mc symbol to playback different sections of itself in responce to a global variable changing.
Something along the lines of placing this within a keyframe on my actions layer of the main scene:

function init() {
If(x=1){
instancename.gotoAndPlay(20);
}
}

init();

However I can't seem to get it to work and I think it's got something to do with the way in which I'm targetting the mc, as if I place similar code within an onClipEvent(mousedown) of the mc and replace:

instancename.gotoAndPlay(20);
with
this.gotoAndPlay(20);
then I seem to get it working, etc...

Any help would be much appreciated as I've searched various forums and can't really find what I'm looking for!
Thanks for your time (from a proper newbie!)

Jon

[CS3] Controlling Sound Playback Speed
Hi guys. I was just toying around with trying to get a script that could control sound playback. I'm getting close, but the playback is very choppy.

Here's the first script I've came up with. It's almost working, but it is very choppy.


Code:
//AS2
SoundObj1 = new Sound();
SoundObj1.attachSound("testsound")
SoundObj1.setVolume(25)
frames = 0
fps = 33
everyframe = function(){
SoundObj1.stop();
SoundObj1.start(frames/fps, 1)
frames+=.5
//Playback speed should be halved.
}
onEnterFrame = everyframe


So I thought, okay, I'll just add an extra sound on top of the gap to bridge the choppyness, but it resulted in the same effect as above. Why wouldn't it? One sound starts and another stops... making it a needless extention on the previous script.

So finally I realised I would need 3 sounds over interval-looped frames to get the seamless sound effect I want...


Code:
//AS2
SoundObj1 = new Sound();
SoundObj1.attachSound("testsound")
SoundObj1.setVolume(25)
SoundObj2 = new Sound();
SoundObj2.attachSound("testsound")
SoundObj2.setVolume(25)
SoundObj3 = new Sound();
SoundObj3.attachSound("testsound")
SoundObj3.setVolume(25)
frames = 0
frameswitch = 1
fps = 33
everyframe = function(){
if(frameswitch == 1){
SoundObj2.stop();
SoundObj1.start(frames/fps, 1)
}else if(frameswitch == 2){
SoundObj3.stop();
SoundObj2.start(frames/fps, 1)
}else if(frameswitch == 3){
SoundObj1.stop();
SoundObj3.start(frames/fps, 1)
}
frameswitch++
if(frameswitch > 3){
frameswitch-=3
}
frames+=.5
//Playback speed should be halved.
}
onEnterFrame = everyframe


It seems slightly improved... but only very slightly. Any ideas?

~TheWaste

Preloading & Controlling Playback Of An External FLV
heya, now i should point out, im fairly new to flash/action script and im not the most compitant programmer so you'll have to bare with me if your answers/solutions take a while to sink in

ok, I'm trying to preload an external FLV file, but i'd like it to pause, so it loads while not playing. Now, I've tried using the FLV Importery thingy in Dreamweaver, and that stops the movie until the user is ready to press play, although i have no idea if its actually being downloaded, (i wouldnt have thought so as its not being streamed :? i dunno...) Ideally, i'd like to have it preloading, and use the FLV Playback component/functionality...

my code so far:

Code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("arse.flv");

this.loaded_txt(this.getNextHighestDepth(), 10, 10, 160, 22);
var loaded_interval:Number = setInterval(checkBytesLoaded, 500, stream_ns);
function checkBytesLoaded(my_ns:NetStream) {
var pctLoaded:Number = Math.round(my_ns.bytesLoaded / my_ns.bytesTotal * 100);
loaded_txt.text = Math.round(my_ns.bytesLoaded / 1000) + " of " + Math.round(my_ns.bytesTotal / 1000) + " KB loaded (" + pctLoaded + "%)";
progressBar_mc.bar_mc._xscale = pctLoaded;
if (pctLoaded >= 100) {
clearInterval(loaded_interval);
}
}
the test page: http://www.theste.co.uk/kaka/pants.htm

Any help, suggestions, solutions would be great...

thanks

Ste

Controlling A Mc Playback With The Position Of A Mouse
from somebody who is a beginer of actionscript, does anyone know the script for:

there is a mc "animation" which is around 20 frames long and
is the full length of the movie (700pixels)
and i want it to play when i have my mouse on the right hand
side of the screen and reverse when on the left side and halt when in the mouse
is in the middle of
the screen.

ive tried searching for tutorials everywhere and i can only find them on when a
mc follows your mouse and doesnt actually play.

if anyone could help it would be great cheers

AS 2.0 - Controlling MovieClip Playback Issue
Hi,
Here's my situation:
------------------------
2 movieclips on the same layer on the root timeline: (instance name and linkage are the same)instance name: shards, 2 frames: labeled "default" and "stair"
instance name: shard_thumb, 2 frames: labeled "default_thumb" and "stair_thumb"

I am attempting to apply this code in the action panel of "shard_thumb":

Code:
onClipEvent (load) {
if (_root.shards.currentFrame == "default") {
this.gotoAndPlay ("stair_thumb");
stop();
}
else if (_root.shards.currentFrame == "stair") {
shards.gotoAndPlay ("default_thumb");
stop();
}
}

on (release) {
if (_root.shards.currentFrame == "default") {
_root.shards.gotoAndPlay ("stair");
stop();
}
else if (_root.shards.currentFrame == "stair") {
_root.shards.gotoAndPlay ("default");
stop();
}
}
The purpose is for when the movie loads, if the shard is in the "default" frame, the shard_thumb will display the "stair_thumb" frame, and vice versa if the shard mc is in the "stair" frame.

The other thing it must do, is if the shard_thumb mc is pressed while in the default_thumb frame, the shard mc will be set to the default frame label, and vice versa.

Thank you, and I hope this is not too confusing.

Looping Sound And Controlling Playback
I'm new to Actionscript and also new here. I've seen a lot of posts on this topic here and elsewhere, but forgive me, as I am having a hard time getting my particular Actionscript to work.

My goal is to have an external mp3 start playing by default, then continuously loop back to the beginning and play each time it reaches its end. All the while, I need to be able to play and pause the mp3 with buttons. So far, I believe I have everything working correctly EXCEPT for getting the sound to loop while retaining the functionality of my buttons.

Here's what I have so far:



ActionScript Code:
var soundReq:URLRequest = new URLRequest("15 Au Revoir.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
var resumeTime:Number = 0;

sound.load(soundReq);

sound.addEventListener(Event.COMPLETE, onComplete);


function onComplete(event:Event):void
{
    soundControl = sound.play();
    pause_btn.addEventListener(MouseEvent.CLICK, pauseSound);
}
   
function playSound(event:MouseEvent):void
{
    soundControl = sound.play(resumeTime);
    pause_btn.visible = true;
    play_btn.visible = false;
    play_btn.removeEventListener(MouseEvent.CLICK, playSound);
}

function pauseSound(event:MouseEvent):void
{
    resumeTime = soundControl.position;
    soundControl.stop();
    play_btn.visible = true;
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    pause_btn.visible = false;
}

Any advice is greatly appreciated. Thanks!

Controlling Audio Speed Playback
Is there any way to speed up the playback of an audio clip. But I am not looking to skip frames, I need it to chipmunk the playback.

Controlling Audio Playback Speed?
Does anyone know if there is any way to allow the user to control the actual speed of audio? For example, be able to slow down or speed up an audio loop.

Appreciate any replies.

Thanks!

Controlling Streamed Video Playback
Does anyone know if you can assign controls through behaviours to 'progressively streamed video' or is it only available with embedded video?

If so, is there a way to control the playback without using a skin.


Thanks

Controlling Order Of Functions/ Playback
whats up people,

i've been going at this problem for pretty much the whole day and i can't seem to get it. here's the deal. i want my bars to close - load content - then open up again once done loading content. unfortunately my actionscript skills aren't up to the level where i can write code unconciously so its been taking me quite some time to figure all this out. here's the code as it stands now.

function initNews() {
_global.active = this;
News.newsHL_mc.flicker(5);

eMenu.onEnterFrame = null;

//show newsNav
newsNav_mc._visible = true;

//
//:::::here's where im having problems:::::://
//
//reverses bars pos to hide content

openBars(news1,95,-95)
openBars(news2,95,-95)



loadNews(0);
while(this.active){
if(news1_mc.mBar_mc.mc_bBar._y == -95 ){

//load Content
holder1.loadMovie("images/photo1.jpg");

//openBars
openBars(news1,-95,95);
openBars(news2,-95,95);
}
}

}

all i need is a point in the right direction. please dont feel compelled to give me the whole answer(though i wouldn't mind). any help as always is greatly appreciated. thanks for your time.

++erase++

Statusbar/drag-handle For Controlling Playback
Hi,
Can anyone tell me how to make an action that shows a horizontal playback statusbar at the bottom of my scene, where I can allow the user to drag the handle to rewind or forward the movie in real time?

And happy newyear to all you nice people.
Ricki

Controlling Playback Of Animated Movie Clips
I have a movie consisting of two frames. Each frame contains a movie clip. The movie clips contain basically the same thing, but seen from different angles.

The user is given one chance to view the animation from a specific view (on frame 1 or 2) and toggle between the two views. After the user has chosen to view one movie clip, I want to make the movie clip stay at the "finished" position (i.e. stop at the frame at the end of the animation) for EACH different view. So, if the user is on frame 1 and views the movie, when they toggle to see the different view on frame 2, the finished animation of each should be showing (i.e. it should not animate each time they toggle through each frame).

I am currently controlling the viewing of the movie clips with a button that sets a variable = 1, thus playing the animation on the current frame. I also have a reset button, which sets all variables = 0 and sets the MC animations to their first frames for future viewing.

I tried setting the variables = 2 at the end of each clip and said "if var=2, loop at end of MC, else go to frame 1" but it doesn't seem to be working with the reset button (which sets the var=0).

Any help would be appreciated. Thanks...

If...then Problem Controlling Movie Clip Playback?
I have seven movie clips that need to crossfade with each other.
When you press one button it tells one clip to fade from 0 to 100 alpha using frames, but the problem is to tell the currently showing movie clip to fade down to 0 without disturbing the other clips.
I was thinking of using an IF...Then, but I'm not sure how to write the code correctly. Any help please!

Controlling Movie Playback Speed On Runtime?
Hi!

I tried to find a solution but didn't found so here i am asking for your help

I'd like to make a controller (+ and -) to change the movie playback speed. I guess i should change the frame rate to achieve the results i'm after?

The biggest problem is that i have movies in three different movie clips. The main movie and 2 empty movie clips that i'd like to be able to control from the main movie.

The greatest thing would be to be able to make a "floating layer" that would be over all the other movies.

Thanks in advance!

Controlling The Volume And Sound Playback Of Loaded Fla's
My main Fla is a small file with a holder movie clip that uses loadMovie(); to call in external Fla files. Each of these Fla files represents a music track and has said track embedded as a part of it. Is there any way whatsoever to controll the sound volume and play back of these loaded Fla files from within the main Fla file thats loading them?

Controlling Speed Of Audio And Video Playback ?
Hi!

I would like to know if there is (or will be) a way with upcoming Flash CS4 or even with Adobe Flash Player 10 capabilities (or even with Adobe Pixel Bender) to control the speed of an audio or video playback.

For example being able to play some sound slower or faster and even adjusting audio pitch (and other audio filtering).

It's been a while that I've been looking for this (back to Flash Player 6 when Flash was part of Macromedia) and with all progress achieved since then I hope there is some accelerate and decelerate feature now.

Please let me know about it.

[FMX] Controlling Playback Of Dynamcially Referenced Movieclips
Here's what I'm trying to do... I'm basically making a step-by-step tutorial. There is a nav section of just 2 buttons, one for the "previous step," and the other for the "next step."

Just to make it easier (or maybe not...) I've named all instances of my movieclips "mc1" "mc2" etc... And I've created ActionScript that notes what "page" you're on, and using a for loop, makes the movieclip that corresponds to the current page (page #2 >> mc2) visible while at the same time making every other movieclip invisible. I've got all of that working properly.

What I need to fix is... Say you view the first step's movieclip, and you go on to the next step, but then want to go back to the previous step to watch it again... What you'll see is the last stopped frame of that movieclip rather than seeing the entire animation over again.

You'll be able see what it's doing in the code...


Code:
stop();

// Declare variables
pageNumber = 1;
maxPageNumber = 12;
progressBarSize = 430;

// Show only the movieclip which corresponds to the
// current "pageNumber"... since its the beginning, it's just "mc1"
showMovieclip();

// Event handlers
nav_next.onRelease = function () { nextMovieclip(); }
nav_prev.onRelease = function () { prevMovieclip(); }




///////////////////////
//// FUNCTIONS ////
///////////////////////

// Make each movieclip invisible except
// the one that corresponds with "pageNumber"
function showMovieclip()
{
// Hide or show the movieclips
for (i=1; i<=maxPageNumber; i++)
{
if (i != pageNumber) setProperty("mc"+i, _visible, false);
else setProperty("mc"+i, _visible, true);

}

// Enable or disable the nav buttons
if (pageNumber == 1) nav_prev.enabled = false;
else nav_prev.enabled = true;

if (pageNumber == maxPageNumber) nav_next.enabled = false;
else nav_next.enabled = true;

// Calculate progress bar
progressbar1.progressbar2._width = (pageNumber / maxPageNumber) * progressBarSize;
}

// Go to the next page... meaning change "pageNumber"
function nextMovieclip()
{
if (pageNumber < maxPageNumber) pageNumber++;
showMovieclip();
}

// Go to the previous page... meaning change "pageNumber"
function prevMovieclip()
{
if (pageNumber > 1) pageNumber--;
showMovieclip();
}
I know that I can use setProperty to reference something like "mc"+i, but can I do the same thing with play()? Obviously "mc"+i.play(); doesn't work...

I'm sure there's a way I can do it. Someone please just fill me in!


Thanks in advance,
Matt

[FMX] Controlling Playback Of Dynamcially Referenced Movieclips
Here's what I'm trying to do... I'm basically making a step-by-step tutorial. There is a nav section of just 2 buttons, one for the "previous step," and the other for the "next step."

Just to make it easier (or maybe not...) I've named all instances of my movieclips "mc1" "mc2" etc... And I've created ActionScript that notes what "page" you're on, and using a for loop, makes the movieclip that corresponds to the current page (page #2 >> mc2) visible while at the same time making every other movieclip invisible. I've got all of that working properly.

What I need to fix is... Say you view the first step's movieclip, and you go on to the next step, but then want to go back to the previous step to watch it again... What you'll see is the last stopped frame of that movieclip rather than seeing the entire animation over again.

You'll be able see what it's doing in the code...


Code:
stop();

// Declare variables
pageNumber = 1;
maxPageNumber = 12;
progressBarSize = 430;

// Show only the movieclip which corresponds to the
// current "pageNumber"... since its the beginning, it's just "mc1"
showMovieclip();

// Event handlers
nav_next.onRelease = function () { nextMovieclip(); }
nav_prev.onRelease = function () { prevMovieclip(); }




///////////////////////
//// FUNCTIONS ////
///////////////////////

// Make each movieclip invisible except
// the one that corresponds with "pageNumber"
function showMovieclip()
{
// Hide or show the movieclips
for (i=1; i<=maxPageNumber; i++)
{
if (i != pageNumber) setProperty("mc"+i, _visible, false);
else setProperty("mc"+i, _visible, true);

}

// Enable or disable the nav buttons
if (pageNumber == 1) nav_prev.enabled = false;
else nav_prev.enabled = true;

if (pageNumber == maxPageNumber) nav_next.enabled = false;
else nav_next.enabled = true;

// Calculate progress bar
progressbar1.progressbar2._width = (pageNumber / maxPageNumber) * progressBarSize;
}

// Go to the next page... meaning change "pageNumber"
function nextMovieclip()
{
if (pageNumber < maxPageNumber) pageNumber++;
showMovieclip();
}

// Go to the previous page... meaning change "pageNumber"
function prevMovieclip()
{
if (pageNumber > 1) pageNumber--;
showMovieclip();
}
I know that I can use setProperty to reference something like "mc"+i, but can I do the same thing with play()? Obviously "mc"+i.play(); doesn't work...

I'm sure there's a way I can do it. Someone please just fill me in!


Thanks in advance,
Matt

Controlling A Scenes Playback With A Draggable Controller
Good morning all,

Here is a quick concept to ponder. Has anyone ever tried and been successful at controling the playback of a scene with a slider bar? I have been working wtih Camtasia some and one of the feature in the application allows for a slider bar to move the playback head forwards and backwards in the swfs scene. (Camtasia uses two swfs one for the movie with audio and animation/vidoe, one for the controller and an one xml file which holds all of the movies info such as total frames, frame rate and properties of the contol bar such as color size etc)
Instead of creating a total of three files I was wondering if this could be done in one swf.

If anyone has any feedback or nifty turtorials on this I would appreciate it!

In addition any info I find I'll be sure to post back. I'm also curious if this coudl be done with a dynamically linked sound also.

I know.... too many ideas for a Monday morning.

Keep smilin'
Cheers

Controlling Movieclip Playback In Scroll Pane Component
Hi all,

In a CBT Cafe Tutorial (http://www.cbtcafe.com/index.htm)
Flash Scrollpane Component & Load Movie Video Tutorial, there is a controler at the bottom of the Flash Movie to Stop, Start, Pause and Play the content. I would like to know how this is done.

SWFs Controlling Other SWFs?
I am working on a pretty simple menu and have come across a layout issue. As is, I have the buttons display an icon in a "fire circle" at the top of the menu bar when rolled over. It would be great though if I could have 2 SWFs: One which contained all the buttons and another with that "fire circle" (see link). Buttons.swf would of course have to tell FireCircle.swf to "on rollover goto frame x in scene x". Is this possible? So I guess my question is can you have one swf file control another?

Here is an example of the menu bar, as one swf, if you need to visualize it: http://www.blownheadlight.com/menu.swf

Thanks.

Controlling Swfs With Other Swfs
I am trying to make one main SWF movie that calls on other individual SWF movies (one being a "menu" movie). The catch is that I want the main movie to tell the menu movie where it is and have the menu movie button that corresponds to that section of the main movie to show the button in an "over" state.

Controlling SWFs
My Question:

I have a SWF file (called: home.swf) which contains 3 buttons (button 1, button 2, & button 3).

When you click on button 1, I want home.swf to goto frame 15 and stop. At the same time when clicking on button 1, I want a new SWF (portfolio.swf) to load on top of home.swf.

The above is pretty simple and I have no problem doing that, but here comes the problem..

When you push a button (lets call it exit) in portfolio.swf, I want it (portfolio.swf) to send a message which tells home.swf to go and play frame 5 (remember it was parked at frame 15),(and then portfolio.swf will unload it self).

I am not (yet) very good at variables and how to send and recieve these between SWFs, so please be specific.

Thank you, and I really appreciate the help..

Controlling Different Swfs?
hi

On the main time line i've got a stop and a loadMovie to load a .swf.
Is it possible to let the main timeline carry on, once the loaded .swf is done?

cheers

Copyright © 2005-08 www.BigResource.com, All rights reserved