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




Playing One Layer At The Time



Hello Everyone.

Just regestered with this board and already have tons of questions to ask so I hope I can find my answers here but ofcuz will ask one at the time


I am kinda new to flash and only been working with the software for few weeks but already learned quiet alot from it or tho I think but there are few small things that stop me from compliting my work.

for example: I have lets say 2 layers( 1=Intro and 2=Movie and I want layer 1 to run first and then switch and play layer 2. I been trying to look in tutorials of flash etc but just couldnt figure out how it works. I know its not hard to do its just I never figured out how it works and I rather hear it from real person then read it from the book.

Many thanks for your time reading or replying to this post.



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-10-2003, 05:56 AM


View Complete Forum Thread with Replies

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

Playing External Movies One By One When I LoadMovie One Time In First Layer?
Hi alll,

I am a newbie here.

I have problem with loading external movies like this:

+ 2 of my external movies is quite big so if I wanna load two of mine (movie a + movie b) in first frame. After loaded, I wanna play the movie a the play the movie b in my time line. I(s is possible for me to do it?

Can someone help me?

Thanks alotz

Misa

Playing External Movies One By One When I LoadMovie One Time In First Layer?
Hi alll,

I am a newbie here.

I have problem with loading external movies like this:

+ 2 of my external movies is quite big so if I wanna load two of mine (movie a + movie b) in first frame. After loaded, I wanna play the movie a the play the movie b in my time line. I(s is possible for me to do it?

Can someone help me?

Thanks alotz

Misa

Playing Only A Layer Of The Movie
so i have a nav. bar with 4 options, the movie is 15 secs. long and all it does is have a motion tween between 2 spots.

what i'd like to happen is that the motion tween only activates for the button that the mouse hovers

i understand it would be on(rollOver)
{
//something
}

i just don't know what the something would be. thanks.

Playing FLV In A Layer - Control Problems
I have several FLV files that I need to play in a layer that is hidden when page loads. If I set 'autoplay' in the parameters for the FLV player in my flash file, it of course, starts to play the video when the page loads (but is not seen). Once the layer is visible, everything works works as it should.
If I turn off 'autoplay' and construct a script to setup a NetConnection and related variables, I can delay video playback until a certain point in the Flash timeline . But the associated skin has no control of this playing video. If I click 'play' on the skin, it starts another iteration of the video -now two are playing at the same time. I obviously need to pass the proper variables to the skin, but I'm not sure how. Or should it be in reverse? Get the variable established by the FLV player?
Thanks for any ideas!

EDIT : more info:
I am currently testing locally, but have the video and related files on the server and have been successful with a standard skin control.
The goal I have is to #1: Have the video play in the layer when told to by the main timeline. (less button pushing by visitor) #2 - Have action script (a button) stop the video, fade out the skin (actually image is placed on top) and then hide the layer.





























Edited: 11/08/2007 at 01:04:20 PM by Bill@AudioVision

Controlling Mcs Playing On The Root Layer
Here's my set up. I have a flash presentation on the main (_root) timeline. There is a separate layer and frame for each of my mc's which display the main content of the presentation. mc1 on frame 2, mc2 on frame 3 etc etc. On the main timeline i also have play/stop, skip forward and skip backwards buttons (buttons not mc's).
The presentation autoplays when it is opened. W

hen the user clicks the STOP button i want the controls to skip back to the first frame of the mc that is currently playing. My problem is that when all of the mcs are named something different, so how to i make the button know which mc is currently playing and go to the first frame of it?

Is there specific code that refers to "whatever mc is playing go to its first frame and stop"?

Thanks

Playing Sound In Loaded Layer Problem
Hello,


I'm sure this question was covered before, please forgive me if so.

I've created a flash movie that loads content into seperate layers. One of these layers is called music.swf and contains sound in the library. I've created a stop and start button and have attached the sounds to these with the following script:

mySound_sound = new Sound ();
mySound_sound.attachSound("setemID");
startButton_btn.onRelease = function (){
mySound_sound.stop();
mySound_sound.start();
};

stopButton_btn.onRelease = function (){
mySound_sound.stop();
};

mySound_sound2 = new Sound ();
mySound_sound2.attachSound("didID");
startButton2_btn.onRelease = function (){
mySound_sound2.stop();
mySound_sound2.start();
};

stopButton2_btn.onRelease = function (){
mySound_sound2.stop();
};

this is all working perfectly. However when I load this music.swf into my main movie (into a layer) it no longer plays the songs.

I'm a bit thick at the 'ol actionscript so if you can find the time to give us a hand it would be really appreciated.

many thanks

Playing A MovieClip From A Frame In The Action Layer
Hello.

I want to be able to tell a movieClip to play on a certain frame in the "Scene 1" actions layer. Below is what I have, however it doesn't work correctly.


Code:


mc.onEnterFrame = function() {
_root.mc.gotoAndPlay(95);
}



It seems to play only the first frame and then stops, like a gotoAndStop would do. I also tried setInterval but that doesn't do a thing.

Thanks for any help on this.

Brian

Time Independent Layer....please Help
Is it possible to make a quasi "time-independent" layer in flash (for drop dpwn buttons, etc)? when i make the drop downs, the play head keeps jumping to the frame with the appropriate submenus, but then everything else is changing (with the playhead). Is their any technique you can use to maybe make the drop down buttons time independent, so that by activating their script, the playhead doesn't jump to another part of the movie so that everything else vhanges as well?

thanks!

Making Buttons On A Lower Layer MC Inactive When Another MC Is Playing.
Hi there,

On my stage I have two movie clips. One is a navigation and the other is a blank movie clip that loads the results of the navigation.

When something in the navigation is clicked the blank movie clip loads a movie which then covers the navigation and you have to click 'close' within that clip to get back to the navigation... however when the blank movie clip is loaded you can still see the mouse change eto a hand when it's over where navigation links are below (hope you're still following)...

Is there a way for me to make those buttons INACTIVE when the blank movie clip is loaded overtop?

Newbie Question - How To Adjust Time For Each Layer?
I have a video running for 30 seconds. Want to add text and I put the red marker where it begins but it simply makes it go to the end of the video. I tried dragging the end and right clicking, double clicking and I just can't figure out how to adjust those sliders.

Movieclip Playing Inside A Button....problem With Layer Path Crap
I have a button with code on it that effects a movieclip within said button. For some reason i can't get the commands to the movieclip...I don't really understand all that _child _parnet stuf so it's probly what i need to do here...this is the code i need to send to the movieclip within the button

on (rollOver) {

menu1.stop();
fra = menu1._currentframe;
if (fra>12 and fra<24) {
menu1.gotoAndPlay(fra-12);
} else {
menu1.play();
}
}
on (rollOut) {
menu1.stop();
fra = menu1._currentframe;
if (fra<12) {
menu1.gotoAndPlay(fra+12);
} else {
menu1.play();
}
}

Playing Two FLV's At The Same Time
Hello,
OK, this seems like it would be simple, but I cannot get it to work. I have 2 flv's that have to play at the same time - one is a prof. in front of a electronic microscope and the other is the actual feed from the microscope - so I need them to be able to be controlled by one set of components. So, I have tried everything in my ability. Currently, the setup is as follows:
I have 4 layers
Actions - where this script resides
myVideo.playPauseButton=myPlayButton;
myVideo.seekBar=mySeekBar;
myVideo.volumeBar=myVolumeBar;
Player - play/pause, seek, and volume bar reside
Scope - FLV of microscope
TH - FLV of talking head

Both my Flv's have an instance name of "myVideo" and when I test the swf, only the last layer plays and is controlled (if the Talking Head is in the last layer that will play and vice versa).

I cannot figure out, nor find anything, anywhere on how to control both these FLVs with only one comonent.

Any help would be appreciated.

Thanks much

Jason

Get The Time Of Only The Flv Thats Playing
hi todd thanks for all your assist so far i have lookedat your time code for the flv player witch is fantastic but i was wondering if it is possible to have only the time of the video thats on rather than the time of all of the flv's in the list

or would i need to find out the time of the video and add it in with the xml node.

thanks for any assist

All Scenes Playing At The Same Time
In my Flash movie all three of my scenes are playing at the same time. When the movie loads it looks like all three scenes begin playing at the same time and I can't figure out why. I have tried various coding issues and made sure that all Scenes had a stop command on the first frame. Does it matter if a movie in frame one of a scene doesn't have a stop command in it's first frame....???

The code in my scenes is as follows:
Scene1:
stop ();
fscommand ("fullscreen", "true");
--there is only one frame here with two layers that have embedded movies and action script making them play in the right order
Scene2:
the first frame is labeled "secondSceneLabel" and referenced from a button inside a Scene 1 movie with the code:
on (release) {
_root.gotoAndPlay ("secondSceneLabel");
}
then the Scene2 frame 1 has the following code:
stop ();
with (_root.REsituationMenuClip.fallingBoxes) {
play ();
}
Scene 3:
the first frame is labeled "thirdSceneLabel" and referenced from a button on the main timeline of Scene2 with the code:
on (release) {
_root.gotoAndPlay("thirdSceneLabel");
}
then Scene 3 frame one has the following code:
stop ();
with (_root.approachMenuClip.fallingBoxes) {
play ();
}

I don't know if that was extraneous information and there is something unrelated to this code causing the problem .Maybe it is really simple and I am just overlooking it . Please help when you can.
Thanks,
Christine

Playing And Recording: Same Time
Hi, I was wondering how to go about playing a movie in flash and simultaneously recording/writing the mouse movement. Specifically, I would like to import a quicktime movie (which I think I can handle), and then track/write the mouse location while the movie is playing. Hopefully this writing of the mouse movement would be exportable to an external file, and it would be in sync with the movie.

Any help, thanks?

Playing Sounds In A Certain Time...help?
I'll be plain and simple:

i want to load some sounds to my movie let's say... every 15 secs a different sound in order to don't make my movie always with the same sound...

i think that this is possible to do with actionscripts, but i'm only initiating in flash now, so... can u help me?


Thanks in advance

2 Scenes Playing At Same Time
am having this weird thing going on with my flash file - i have 2 different scenes where 1 is supposed to play after a button is clicked, but now the SOUND from the second scene plays at the same time as the first scene. it plays for 3 seconds and then stops.

why is this happening?

*stressed*

Playing All Labels OR One At A Time...?
Hi
Before launching into a project I am trying to plan out how best to build it... I am creating a training demo for software using flash MX.
I am building a menu with buttons which will play specific frame labels on one timeline - at each label I will be creating the specific animation.... I think this is the best way to do this..
I have no problem assigning the actions to the buttons for each frame label... and at the end of each peice it will return the user to the main menu - again no problem..

the problem comes when I want to create one button on the menu which will play through ALL frame labels without retuning to the main menu at the end of each animation - How would I do this

Is it an onenterframe command... ?? bit mixed up here, any help would be appreciated..

Perhaps you might know of a better way to create something like this????

Thank you in advance of any help

FLVs Are All Playing At The Same Time
Hello,

I am pulling 2 FLVs into separate video objects via an XML file. It's working great. The problem is, they both play at the same time.


PHP Code:




//------------NETCONNECTION SETUP-------------//
var nc:NetConnection = new NetConnection();
nc.connect(null);

//------------NETSTREAM SETUP-------------//
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(5);
Video1.myVideo.attachVideo(ns);

var ns2:NetStream = new NetStream(nc);
ns2.setBufferTime(5);
Video2.myVideo2.attachVideo(ns2);

//------------XML-------------//
var xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = loadXML;
xml.load('FLVs.xml');

//----- parse the nodes of the xml into an array-----//
function loadXML(s:Boolean){
var vidArray:Array = [];
    if(s){
        trace("success");
        xmlNode=this;
        var total:Number=xmlNode.firstChild.childNodes.length;
        for (var i:Number=0; i<total; i++){
            var flv:String=xmlNode.firstChild.childNodes[i].firstChild.nodeValue;
            vidArray.push(flv);
        }
        trace(vidArray)
}
//-----VIDEO OBJECTS set after xml load completion----//

ns.play(vidArray[0]);
ns2.play(vidArray[1]);

};







Is there a way to load them here, paused, and innitiate the ns.play from within the movieclip's timeline? It seems not to work unless it is asked to play from within the loadXML function here. I just need to be able to control in my timeline when they play and when they don't. Thanks in advance if you have any suggestions!

Playing Two Scenes At The Same Time?
Hi,

I've tried to put a menu in an external movie clip and then include it into one of my flash scenes. This doesn't work properly for me. 1) The content changes a little bit when I convert, it's details but important ones. 2) Actionscripts are missing, the stop-function for an example is missing.

As you can notice I'm a beginner!

So, What I want to do is playing the menu as a scene, but "on top" of another scene. In other words, I want to put the menu scene on top of another scene (where all the backgrounds and art work is).

Thanks,
Anyone?

Can I Have 4 Sounds Playing At The Same Time?
how can i play 4 sounds at the same time but still have control over the volume of each attaced sound?

so for eg, 1 playing, 3 muted

or 2 at full volume and 2 at half volume

is there a way to do this? as ive tried attaching the sounds to buttons but you cant control the volume then!

Thankyou

How Do You Time When 2nd Mp3 Starts Playing
I have a client who built a Java app to compose music tracks. They have mp3 files broken down into segments (intro, verse, chorus, turnaround, etc) that the user can piece together to form complete songs.
My job is to find a way to preview their selections in a Flash player. Their Java app does a great job at building the composed mp3's, but they still need a way to preview their selections when the user is composing.

So far I've been unable to get the mp3's to playback seamlessly. I've tried to preload progressive downloads and I've tried streaming. I can get the mp3's to preload but I can't get the player to play them without a pause.

Any ideas?

How Do You Time When 2nd Mp3 Starts Playing
I have a client who built a Java app to compose music tracks. They have mp3 files broken down into segments (intro, verse, chorus, turnaround, etc) that the user can piece together to form complete songs.
My job is to find a way to preview their selections in a Flash player. Their Java app does a great job at building the composed mp3's, but they still need a way to preview their selections when the user is composing.

So far I've been unable to get the mp3's to playback seamlessly. I've tried to preload progressive downloads and I've tried streaming. I can get the mp3's to preload but I can't get the player to play them without a pause.

Any ideas?

How Do You Time When 2nd Mp3 Starts Playing
I have a client who built a Java app to compose music tracks. They have mp3 files broken down into segments (intro, verse, chorus, turnaround, etc) that the user can piece together to form complete songs.
My job is to find a way to preview their selections in a Flash player. Their Java app does a great job at building the composed mp3's, but they still need a way to preview their selections when the user is composing.

So far I've been unable to get the mp3's to playback seamlessly. I've tried to preload progressive downloads and I've tried streaming. I can get the mp3's to preload but I can't get the player to play them without a pause.

Any ideas?

Playing Multiple Mc At One Time?
Hi. I have a website that I'm designing and I need a way so that when I press a button it goes to a frame it creates two new emptyMovieClips and plays the two movies at the same time. I have it working with just one movie clip and the code I have is:

on (press) {
gotoAndPlay("mar");
this.createEmptyMovieClip("original_mc", depth++);
mcA = ["IceAd_next_mc", "Marriott_fade_mc"];
index = 0;
xx = 448;
yy = 105;
mc = this.attachMovie(mcA[index], "mc", 0);
mc._x = xx;
mc._y = yy;
trace(mc);
this.onEnterFrame = function() {
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
mc.removeMovieClip();
attachMovie(mcA[index], "mc", 0);
mc._x = this.xx;
mc._y = this.yy;
}
}
};


}


I also can make it work for the second movie clip alone, but not together the code for the second movie clip is just below. Is there a way to combine the two so that they both play at the same time?

this.createEmptyMovieClip("text_mc", depth++);
mcA = ["ICE_txt_mc", "MAR_txt2_mc"];
index = 1;
xx = 217.5;
yy = 367.5;
mc = this.attachMovie(mcA[index], "mc", 1);
mc._x = xx;
mc._y = yy;
trace(mc);
this.onEnterFrame = function() {
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
mc.removeMovieClip();
attachMovie(mcA[index], "mc", 1);
mc._x = this.xx;
mc._y = this.yy;
}
}
};


Thanks!

How Do You Time When 2nd Mp3 Starts Playing
I have a client who built a Java app to compose music tracks. They have mp3 files broken down into segments (intro, verse, chorus, turnaround, etc) that the user can piece together to form complete songs.
My job is to find a way to preview their selections in a Flash player. Their Java app does a great job at building the composed mp3's, but they still need a way to preview their selections when the user is composing.

So far I've been unable to get the mp3's to playback seamlessly. I've tried to preload progressive downloads and I've tried streaming. I can get the mp3's to preload but I can't get the player to play them without a pause.

Any ideas?

How Do You Time When 2nd Mp3 Starts Playing

I have a client who built a Java app to compose music tracks. They have mp3 files broken down into segments (intro, verse, chorus, turnaround, etc) that the user can piece together to form complete songs.
My job is to find a way to preview their selections in a Flash player. Their Java app does a great job at building the composed mp3's, but they still need a way to preview their selections when the user is composing.

So far I've been unable to get the mp3's to playback seamlessly. I've tried to preload progressive downloads and I've tried streaming. I can get the mp3's to preload but I can't get the player to play them without a pause.

Any ideas?

Actual Playing Time
How can I determine the EXACT play time of a swf file? Is there a formula on how to add the total frames to a number and determine the exact play time in seconds?

Thanks in advance

_S

Playing Multiple Swf-s At The Same Time
Hi All!

The probelm is: i've got an swf whith some animation, which I want to move in the background. I've got an other one, which is the standard navigation bar, which loads another swf-s. Standalone both movie works correct.

I want to create a third movie, in which I load the other two, and they play at same time (the background animation plays, and during that i can navigate). But however if I use the loadMovie command, only one movie plays at the same time (which's layer is lower).
Suggetions? I tried to do somehting with levels, but i couldn!t figure out anything.

TIA:

Bkereskenyi

Playing Multiple Sounds At The Same Time
Hi,

I have a movie that has a tune playing in the background on startup, which loops continuously. What I need to do, is have a stop and play button, which plays and stops a different sound over the one that is currently playing without effecting it.

My problem is that my stop button stops everything ( and im not using stopAllSounds(); ), im using a sound object and saying ( engine_sound.stop()

any help much appreciated

thanks

Playing A Movie When No Action Has Been Taken For A Certain Time
Hi,

I want to find out a movie clip can be played when the user has not taken any action for a certain time ?

Lets say the user does not click on any buttons for a certain time, then I want a movie clip to start playing

Thanks

Playing Multiple Flvs At The Same Time
I want to have two flvs playing at the same time that is controled by one flvplayback component. Can anyone suggest what code to use?

[F8]Most Amount Of Sounds Playing At One Time?
Trying to produce a piece of work which could require the use of up to 100 sounds at once, however, I am finding that it won't play more than 32 samples at one time, is this a restriction in Flash as to the amount of sound channels that can br used at any one time or a memory typed limitation??

If it is Flash, what is the maximum amount of sounds that can be simualtaneously playing at any one time?

AttachSound - Playing 2 Tracks At The Same Time
Hi guys,

I was wondring is it possible to play 2 sounds at the same time using the attachSound method? Not able to get it to work and cant find any help anywhere on the net.

The code im using at the minute is:

--------------------------------------
mySound=new Sound();
mySound.attachSound("song1");
mySound.start();
mySoundVolume = 50;
mySound.setVolume(mySoundVolume);
--------------------------------------

Thanks!

Playing Sound Clips One At A Time
Hi all,

Quick question, how can I play my soundclips one at a time? when i use sound.attachSound() followed by sound.start() followed by sound.attachSound() followed by sound.start() and so on, they all play at the same time. Is there a way to get them to play one after each other?

Thanks in advance

Michael

Multiple Videos Playing At The Same Time
Ok, this is a tricky one for me, because I'm new in actionscript (i'm not even sure if I'm posting this in the right place):

A client asked for a start page where 4 videos should play a movie from same movie file with delay from 1 to 4. The pictures in the movie appear first in movie 4, then 3, 2 and finally 1. Each with a different time sequence. A few seconds after the first one loads and start playing, the second one will load and start play also, then the 3rd one, and finally the 4th. After they all load, they will keep playing (eventually looping) at the same time (No, there's will be no audio)

I think the effect is something like this, only that in my case the videos should appear in a sequence: http://www.feelsomething.com.au/

I tried to simply import some videos as flv, then putting them in different frames of the timeline, but as soon as a second video loads, the first one stops playing. The same thing happened with videos loaded from an external server.

Any help, please!!!

Playing Multiple Movies At The Same Time
Hello, everyone - a newby here in need of help!

I am not sure what am I doing wrong but when I have more than one movieclip playing on the stage the movieclips slow down. When there is only one playing it goes at the normal speed. I want the movie clips to play at the same speed throughout whether there is 1 movieclip playing or 5 movieclips playing.

Please help!

Playing Back Multiple .flv At The Same Time
I am working on a site that has one feature .flv playing besides 5 smaller thumbnail .flv loops placed directly below this. I have done other sites with up to 3 .flv playing at the same time and besides the obvious bandwidth issues, did not have the problem that I am seeing now.

No more than 4 .flv will play at the same time, all others (in this case 2) will not even display. All .flv are being streamed and range from 3 - 5 megabytes in size.

Is this a known issue? Is there a limit to the amount of .flv that can be displayed at the same time?

I would appreciate any insight...

Multiple Streams Playing At The Same Time?
I'm busy buidling my first flash application wich includes FMS2. I've got a mic connected wich records a few audiochannels to FMS, no problem there.

Now i want to play these audiochannels at the same time a progressive movie is playing. But the audiochannels have to be synced perfectly with the mvoie.

So my question is how can i regulate that after the progressive movie is fully downloaded and starts playing that at the streams play without interuptions at the specific times they need to play.

Sorry from my English grammer :)
And many thanks!

Playing Multiple Things At Same Time?
Hello,

I'm trying to play multiple things once one of the buttons (which is a move clip) has been clicked.
there's one movie clip that animates something, another that animates something else, and i also want the button itself (a movie clip) to play a rollout animation. what's the best way i could do this?

thanks very much for the help.

Movie Clips Playing At The Same Time
Hi,

I have two MC's playing at the same time. The first movie clip has the following AS:

this.createEmptyMovieClip("vhost_mc", 1000);

vhost_mc.loadMovie ("http://.....");

When I put a stop(); at the beginning or end to this code, it only plays the first movie clip and the second movie clip doesn't play.

Please help. Thanks!

Playing Multiple Copies Of The Same Swf At The Same Time
I have a problem with Playing multiple copies of the same swf at the same time.

The thing is that I want to have a button and when pressing the button I want to load a swf file. I want the file to load at diffrent position everytime and I also want it to remain visible when Im pushing the button another time for another copy.

I got this code so far but it only plays one copy of the swf at the time.

but.onPress = function () {


_root.createEmptyMovieClip("samlat",1);

samlat.loadMovie("kanin.swf");


var xrandom = Math.round(Math.random()*300);
var yrandom = Math.round(Math.random()*300);

samlat._x = xrandom ;
samlat._y = yrandom ;


}

how should the code look like? I have tried with loadMovieNum but then I cant position the swf.

I also tried this

but.onPress = function () {
var nr = Math.round(Math.random()*300);

trace(nr.toString());
namn="samlat";
nummer=nr.toString();

_root.createEmptyMovieClip(namn+nummer,1);

namn+nummer.loadMovie("kanin.swf");


var xrandom = Math.round(Math.random()*300);
var yrandom = Math.round(Math.random()*300);

namn+nummer._x = xrandom ;
namn+nummer._y = yrandom ;




but then no swf at all shows up.

any idea what to do??

Only Playing A SWF File One Time Per Session
I am working on a flash website made of many .fla files. In each individual .fla file, it calls in various external .swf files. On one of the .swf files is only audio that loads when the user plays the movie. When they go back to the main menu and select that particular flash movie or section of the website again, the .swf file triggers and plays the audio again. Basically, I do not want that audio to play each time they re-enter that section of the website or I do not want that .swf file to reload if it already has been loaded during that session. Any thoughts on how to accomplish this? Currently I have the following, but it is not working. The .swf file with the audio still loads every time:

haslistenedtoaudio = false


if (haslistenedtoaudio == false){
loadMovieNum("audioMovie.swf", 3);
haslistenedtoaudio = true;
}

Thanks!

Stop A Certain Time In A Keyframe And Then Keep Playing
Hi
I am trying to make an animation with 5 keyframes, the animation should stop a few seconds in each keyframe and then continue playing.

Should i duplicate the keyframe many times in the timeline so that it will stay unchanged for more time?.

Or is there any actionscript i can add in the keyframes to stop reproduction and then start again in say 5 seconds?

Thanks in advance.
Gaston

Playing A Sound At Specified Time Intervals
Help...

I need to play a sound at specified time intervals. Specifically I would like to create a tick-tock sound every second. I just can't seem to figure out how to do this. Below is the actionscript I have created so far. You will probably laugh when you read it, but, this is actually the first time I have tried it.....so don't laugh too hard...

icncDate = new Date()
seconds = icncDate.getSeconds()
minutes = icncDate.getMinutes()
hours = icncDate.getHours()
if (seconds<10) {
    seconds = "0" + seconds
    };
if (minutes<10) {
    minutes = "0" + minutes
    };
icncTimeTextField = (hours + ":" + minutes + ":" + seconds);
tick = new Sound ();
tick.attachSound(tick);

Not sure what to do now...Thanks in advance....
erik

Erik Rudnick, CCIE No. 9545
mailto:erik@kuriosity.com

Audio Rollovers Playing @ Same Time
How do I make it so when you roll off a button the sound quits, so the various button sounds aren't conflicting? I'm new to action scripting. Thanks!

Playing A MovieClip From A Frame On A Time Line
I have a movieClip of 10 frames.
in the first frame i put stop();
i want when i enter frame 2 on the main timeline
to tell the movieClip to start playing!
i tried to do on an empty layer this code :
stop();
tellTarget("myMC") {
gotoAndPlay(2);
}
but it's not working!
what to do?
thanks in advance
peleg

Real Time Varies When Playing Movie
Hello,

When I try replying my movie in the flash program, the frames per second rate slows down as it starts to play the tween frames, then speeds up again until it goes into another tween. With a 30 fps movie, it can slow down as much as 3 to 4 fps. This happens whether I try playing it on the stage, or use the "test movie" feature.

In order to watch it play real time, I have to export it and then play it in my quicktime player.

Is this normal?

I am using Flash 4 in Mac OS 9.2, running as classic under OS 10.1

Thank You,

Allasso

Playing Sounds At Different Volumes At The Same Time With Actionscript
Hi,

any one know how to play two different sounds simultaneously with actionscripting, but at 2 diferent volumes?

Ive tried
FRAME ONE:
_global.backgroundsound = new Sound();
_global.backgroundsound.attachSound("backgroundsou nd");
_global.intro_speak = new Sound();
_global.intro_speak.attachSound("intro_speak");

FRAME TWO:
_global.backgroundsound.setVolume(20);
_global.backgroundsound.start(0,1);
_global.intro_speak.setVolume(100);
_global.intro_speak.start(0,1);

but this sets the volume to 100 - in both sounds played?

thanks for any help,

Mads

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