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








Launching Movies After A Period Of Inactivity


I've a flash file made up of 2 pages. My problem is getting movie to run in each of these pages after a period of inactivity.
The source to my flash files are:

http://www.beatrixnichols.co.uk/aw0501h.fla
(1MB hence not uploaded)

and

http://www.beatrixnichols.co.uk/aw0501h.swf

To begin, after an intro it will stop in a frame on page 1.
(Frame location is: [Scene 1: Layer 1(frame65) / Symbol 57: Layer 1(frame 1) / 506LL: Layer 1(frame 1) / 0033: Layer 3(frame 20) / buttons: Layer 12]

In this frame is a movie clip which I'd like to play if there is no user interaction after 3 seconds. And that movie clip is in the following path

Movie Clip Location: [Scene 1: Layer 1(frame65) / Symbol 57: Layer 1(frame 1) / 506LL: Layer 1(frame 1) / 0033: Layer 3(frame 20) / buttons: Layer 12 / myMC 1]


Additionally another movie I am trying to play after a period of inactivity is on page 2 which is accessible by placing your mouse over the arrow to the right.

The frame location for this is :[Scene 1: Layer 1(frame65) / Symbol 57: Layer 1(frame 1) / 506LL: Layer 1(frame 1) / 00333: Layer 3(frame 1) / buttons: Layer 12]

and the movie I'd like to play after a 3 second period of no interaction is: [Scene 1: Layer 1(frame65) / Symbol 57: Layer 1(frame 1) / 506LL: Layer 1(frame 1) / 00333: Layer 3(frame 1) / buttons: Layer 12 / myMC 2]

I have read about possibly adding a listener to my mouse and using setInterval, so when 3 seconds has elapsed, I'd load my movie. (I couldn't get this working

I'd be really appreciative if I could get an example using the .fla I provided.

ps: I am using flash MX 2004

Thanks




FlashKit > Flash Help > Flash ActionScript
Posted on: 10-04-2006, 06:49 AM


View Complete Forum Thread with Replies

Sponsored Links:

How To Reload Scene After Period Of Inactivity?
I've got a three-scene movie (preloader, intro, main page) in which I want the main page to return to the intro if there is no activity on the main page for 10 minutes.

As a beginner I'm guessing this would entail the SetTimer() function but am unclear how to avail myself of it.

Can anyone help me?

View Replies !    View Related
Jumping To Frame After Period Of Inactivity
Hello, I am using Flash MX 2004.

I am working on an interactive quiz which will be in a gallery setting. I am trying to find the code that will make it to where the movie jumps to a certain frame (specifically the beginning) if there is a period of inactivity (for example, if it's abandoned in the middle). Does anyone have this code handy?

Thanks!

View Replies !    View Related
Is There A Command That Executes After A Period Of Inactivity?
I've been searching all over the net for a way to have a webpage go back to a set page after a period of inactivity. Something where if the mouse hasn't moved for say, five minutes, then it automatically goes back to the main page. Is that even possible? Maybe I'm just looking in the wrong place. I'm not sure what exactly you would call it, or what to look for.

Any help would be greatly appreciated. Thank you.

Specter34

View Replies !    View Related
Is There A Command That Executes After A Period Of Inactivity?
I've been searching all over the net for a way to have a webpage go back to a set page after a period of inactivity. Something where if the mouse hasn't moved for say, five minutes, then it automatically goes back to the main page. Is that even possible? Maybe I'm just looking in the wrong place. I'm not sure what exactly you would call it, or what to look for.

Any help would be greatly appreciated. Thank you.

Specter34

View Replies !    View Related
Launching Director Movies With Flash
I am creating a portfolio CD Rom of all my multimedia projects and would like to do so exclusively with Flash. I will need to have the ablilty to launch projects created in Flash as well as ones created with Director.

Typically the way I've seen other people create this type of CD Rom is to create all the navigation elements and animations with Flash and then "house" these elements within a Director file. Is there a way to do this without using Director at all? ...possibly by converting all my Director movies to Shockwave files.

Does anybody have any experience with this?

View Replies !    View Related
Launching Director Movies With Flash
I am creating a portfolio CD Rom of all my multimedia projects and would like to do so exclusively with Flash. I will need to have the ablilty to launch projects created in Flash as well as ones created with Director.

Typically the way I've seen other people create this type of CD Rom is to create all the navigation elements and animations with Flash and then "house" these elements within a Director file. Is there a way to do this without using Director at all? ...possibly by converting all my Director movies to Shockwave files.

Does anybody have any experience with this?

View Replies !    View Related
Play All Button Launching Many Movies In Order?
Hey all you gurus on this board,

I am in need of a way to have a "Play All" launch three different mini-movies from a menu selection.

The menu selection interface is comprised of four buttons:

movie1, movie2, movie3, and play all.

All of the single movie launcher buttons work fine.

I simply tell the main _root to go to a small cool transition frame label, and launch the new movie on top on _level1. At the end of the presentation, the user clicks the close button, and the mini-presentation goes away with the following code:

unloadMovie(this);
_root.gotoAndPlay("transitionBack");

Is there any way for the movie to flag its completion and/or set a play all flag to true if the user clicks "play all" such that all three movies will, in order:

Open, play, close
Open the next, play, close
Open the third, play, close and return to selection menu using gotoAndPlay("transitionBack);

Let me know if you guys can think of anything...I'm stumped. Thanks!

View Replies !    View Related
Mouse Or Key Inactivity
Can anyone help me? I am creating a presentation in MX and need to get one flash movie to load another one but only if the the mouse (or keys) are inactive for 3 minutes. Any ideas?

View Replies !    View Related
Detecting Inactivity
You know how a screen saver is loaded once there is a certain period of inactivity.

well i need to go back to the first frame if there is no activity for ... say 40 seconds.
I have a data projection. It's an exhibition and i don't want other people comming in and looing at a screen that the last person user.

I guess it's to do with cursor detection. and counting seconds.
I'm not a good coder. Actually i suck at coding.

Thanks in advance.

View Replies !    View Related
Inactivity Detect? (please Help)
Hello there!

I have a flash piece currently being run on a touch screen monitor. No biggie, since your finger basically becomes the mouse.

BUT, here's the deal. The first frame is a "Touch Here to Start" button. Touch it and it moves you into the main content. So far so good. The client would like the screen to go back to the Touch Here to Start frame after say 5 minutes of inactivity.

I hadn't seen anything previously on this, does anyone have an example or can someone help me out???

Thanks!

View Replies !    View Related
Need To Check For Inactivity
I have some buttons and when they are pressed a variable get set to true.
Example:

pressed = true;

If any button does not get pushed for 15 seconds then I need to go back to the beginning. How do I do this?

View Replies !    View Related
Mouse Inactivity?
ActionScript Code:
// This example is set to evaluate half a second pause (500)    if (Number(getTimer()-lastClick)<500) {// Add your doubleclick actions here        if (Reaction._visible eq false) {            setProperty ("Reaction", _visible, True);        } else {            setProperty ("Reaction", _visible, False);        }    } else {        lastClick = getTimer();        // Add single click actions here    }


This is a double-click detector.. I was just wondering, since I've never seen lastClick, is there such a thing as lastMove?

I'm thinking of using onClipEvent (MouseMove) with a x and y detection timer, or could the one above have some hope?

View Replies !    View Related
Inactivity Detection
I would like to detect whether the mouse has been inactive for about a minute and if so i would like to load another swf. (Back to the main menu)
Obviously, when the mouse is moved, it would have to reset the timer.

I know in theory how i might do this with mousemove or getTimer but i am not skilled enough to write the script. Still learning.

Any ideas?

View Replies !    View Related
Timer & Inactivity?
Hi friends! My first post. And hopefully not my last!

Ok. Here's the deal. I need a "screensaver" for my fullscren flash. How do i proceed?

Im doing a touchscreen solution. based on a fullscreen flash projector. Is there a timerfunction that i can call on? How do i make it return to the main mc?


Thanks in advance!
/C - Sweden.

View Replies !    View Related
Inactivity Timer
I want my interactive (fla) to go to frame 1 and play, if the mouse has not been moved for x amount of time (say 30 seconds).

The interactive is for an exhibition and I have found people do not return the interactive to the first page when they have finished with it.

So I would be delighted if somebody could help me with the actionscripting for this problem.

Thank you in advance.

View Replies !    View Related
Detect Inactivity
I've got a movieclip which hide my video playlist & when i change the page it don't hide it anymore..works fine


So i was asking myself if i could detect the inactivity(maybe with the mouse?)
,for example if there is no activity(of the mouse) for 20-30 min the playlist could be hidden again (movieclip visible)


Thanks for your help

View Replies !    View Related
Fullscreen Period.
i want to go full screen with the adobe air. how do i do this.

im using air because flash player forbids keyboard events on fullscreen. and i cant disable keyboard shortcuts with as either.

View Replies !    View Related
Testing For User Inactivity
any suggetions on how to test for use inactivity ?

View Replies !    View Related
Detecting Activity And Inactivity
timer / detecting inactivity << super urgent
hi guys,

wondering if you can help me out with a little problem.

i've been ask to develop a flash based interface for some info for a conference. what they want is to have an intro frame with a spinning logo.

When a user comes to the system (kiosk) to interact... the mouse movment/ any key press should automtaically take it to the main screen (another frame/scene)

is this doable?

2. also... i need to find a way of detecting inactivity. possibly using a timer. after 1 minute of inactivity mousemovement/key presses the screen should return to the spinning logo frame.

is THIS doable? ...


cheers guys.

View Replies !    View Related
Mouse Inactivity Detection
hi everybody!!
I need "something" that makes my projector reset to the first frame of the timeline, in case nobody is at the desk for a couple of minutes...how would be the script for such a control?? should it be attached to a mc or how??
thanks!

View Replies !    View Related
Action After Time Of Inactivity
Hello

I'm working on a project and I've got a little problem.
If there has been 2 minutes of inactivity (no buttons clicked, no movement of the cursor ...) on one of the pages, there should be an action, in this case go back to the beginning.

I don't think it's that hard to make, but I wouldn't know where to start.

All the help is welcome

Thanks in advance

Sjep

View Replies !    View Related
[F8] Mouse Inactivity Detection
Hi,

Just wondering if anyone can help me with creating a function that is called if the mouse is not moved for a set period of time (ie. 1 minute) and then cleared once the mouse is moved again.
Kind of like a screensaver.....
I already have the code I want to be called after a minute of inactivity, I just dont know how to write the function to call and clear it.

This is what I need to call after the mouse is idle for 1min.
code:

display = function(){
delay = 2000;
forwardInterval = setInterval(flip_mc, "flipForward", 3000); flip_mc.onLastPage = function(){
clearInterval(forwardInterval);
lastPageInterval = setInterval(closeLastPage, delay);
};

function closeLastPage() {
flip_mc.flipGotoPage(0);
clearInterval(lastPageInterval);
forwardInterval = setInterval(flip_mc, "flipForward", 2000);
};
};


Can anyone help me out ?

View Replies !    View Related
[F8] Fading Out Sounds After Inactivity
I have 32 sounds setup in a grid format, where each time a button is moused over, a sound loop constantly plays, and each time it does the volume increases by 25%, up to 100%.

Basically what I am trying to do is to get these sounds to fade out over a certain time period, say after a minute of looping, then return to their original state, regardless of the current volume of the sample.

Possible methods I can think of are to use the setInterval method as a timer, and maybe place a timer on each button which would reset the count each time one is moused over, then the last button to be moused over carries the timer going to the defined time, and when reached makes all the sounds fade out somehow..?

I think the resetting the movie at the end would be quite simple to do, as I have a button within the movie which resets it, and the code on that is to go to the second frame of the scene, stop all sounds, and return to the first frame.

Help is very much appreciated, thanks!

View Replies !    View Related
Mouse Inactivity Detection
hello..
i want make a screensaver for my flash
i get a coding :


var inactiveTime = 5000;
// 5 seconds
function tooLong() {
trace ('you took long');
}
var intrvl = setInterval(tooLong, inactiveTime);
onMouseMove = function () {
clearInterval(intrvl);
intrvl = setInterval(tooLong, inactiveTime);
};
onKeyDown = function () {
clearInterval(intrvl);
intrvl = setInterval(tooLong, inactiveTime);
};
Key.addListener(this);


i've changed the trace ('you took long') with loadmovie('flash.swf','page'), but it doesn't work.
anyone can help me???

View Replies !    View Related
Need Swf Movie To Play During Inactivity..
challenge:
I'd like to have a swf movie play on top of main swf movie when stylus is inactive, then disappear with any activity from stylus. (kind of a sleep screen mode)

bigger challenge:
I'm not good with actionscript and need things spelled out.

If you know of a simple tutorial, or can create one, I'd be so grateful!

View Replies !    View Related
Mouse Inactivity Detection
MOUSE AND KEY INACTIVITY DETECTION

I wondering if anyone can something about mouse and key inactivity settings and how to make a script for it.

It is meant to be a trial work there i have a pet or such a thing that moves and jumps as long as you are active with your mouse or key pressing.

if not that script will take you to the beggining because the pet is run away.


But it would not be anything commercial or like that but a trial ENTERTAINING pet for my homesite. YOU TAKE CARE OF IT BY mouse click and move, and even keypress (i thougt to make soundclips to each and every of letters but it is not difficult)

So can anyone this, or have ready script or maybe can give me some leading clues about it. Is it possible to make in flash. because i tried to find some mouse inactivity script of some kind but there are no such.



Erik

View Replies !    View Related
Return To Start With Inactivity
Hi all,
I have built a kiosk using MX.
If a user at the kiosk has moved into the site by selecting on various products (eg now at frame 200), and the same user hasnt returned the site back to the start menu (eg frame 1), how can I use actionscript to move back to frame 1 based on a period of inactivity (eg 30 seconds)?
Hope this makes sense.
Thanks
Rod

View Replies !    View Related
Mouse Inactivity Timeout
I tweaked some code and made a timeout function for my movie. It works okay when the user does not move their mouse for 2 seconds. But I want it to not timeout if the user presses any key, and this will not work. "onKeyDown" is not working, it's being ignored. My code is as follows:


Code:
// Time value, in milliseconds, after which, failing any mouse movement, an action is to occur.
numMouseTimeoutMS = 2000;
// Define what is to happen should the mouse be moved.
_root.onMouseMove = onKeyDown = function() {
// Clear preceding setInterval ID.
clearInterval(itvMouseID);
// Set new interval.
itvMouseID = setInterval(fncMouseCheck, numMouseTimeoutMS);
};
// Function run by setInterval.
fncMouseCheck = function () {
// Clear interval.
clearInterval(itvMouseID);
// Whatever action is supposed to happen on timeout
gotoAndStop("pause");
};
stop();
Any ideas how I can make it not timeout if the user presses any key?

View Replies !    View Related
Detecting User Inactivity..
Fun Fun Fun... yet another utility class for your guys' using pleasure.

Saved as, IdleUserWatcher.as


ActionScript Code:
class  IdleUserWatcher{    // is the user active?    private var __isActive : Boolean = false;    // the id for the interval    private var intervalID : Number;    // how long to wait before calling is idle... default is 10 seconds    private var idleTime : Number = 1000;    // a list of all objects listening    private var listeners : Array;    // readonly property for isActive    public function get isActive () : Boolean    {        return __isActive;    }        public function IdleUserWatcher ( idleTime:Number )    {        if (idleTime != undefined)        {            this.idleTime = idleTime;        }                Mouse.addListener (this);        Key.addListener (this);        listeners = new Array();            }    /* Adds a listener to the listeners list */    public function addListener(listener:Object) : Boolean    {        for (var i:Number=0; i<listeners.length; i++)        {            if (listeners[i] == listener) return false;        }        listeners.push(listener);        return true;    }    /* Removes a listener from the listener list */    public function removeListener(listener:Object) : Boolean    {        for (var i:Number=0; i<listeners.length; i++)        {            if (listeners[i] == listener)            {                listeners.splice(i, 1);                return true;            }        }        return false;    }        /* Events */    private function onKeyDown () : Void    {        setIdleInterval();    }    private function onMouseMove () : Void    {        setIdleInterval();    }        /* Private Methods */    private function setIdleInterval()    {        this.__isActive = true;        clearInterval (this.intervalID);        this.intervalID = setInterval (this, "broadcastIdle", this.idleTime, this);    }    private function broadcastIdle(watcher:IdleUserWatcher) :Void    {        watcher.__isActive = false;        for (var i:Number=0; i<listeners.length; i++)        {            listeners[i].onUserIdle();        }        clearInterval(watcher.intervalID);    }}



This an EXTREMELY simple class to use, here is what the code looks like to use it in an fla.


ActionScript Code:
// here you simply tell the object how long to wait for the user// before deciding he/she is inactivevar idleWatcher = new IdleUserWatcher(1000);// then we register an object to listen for the onUserIdle() event from// our IdleUserWatcher objectidleWatcher.addListener(_root);// IdleUserWatcher has one property, it returns whether or not the user is activetrace(idleWatcher.isActive);function onUserIdle(){    trace("BUZZ!!! COME BACK!!");}


Have fun with this.. I've officially decided that every site I do will now have a screensaver! WOOT!
_Michael

View Replies !    View Related
Mouse Inactivity For Kiosk
I searched through different inactivity actionscripts but couldn't find what I was looking for. Can someone please help me?

I have a standalone/movie (fullscreen) for a kiosk and need a script that will detect if the mouse is inactive for 5 minutes. If so, I need it to go to and stop on a label on the timeline. Please indicate where the script(s) should reside.

Any help will be greatly appreciated. Thank you!

View Replies !    View Related
Want To Disappear A Swf File After A Certain Period
Hi,
I want to vanish my swf file after a certain time. How can I do it? Let i upload a swf file on 21 Augsut 02 at http://www.a.com, now I want that this swf file will not work or disappear after 23rd of august. how can I do it. Please help.
Thanks

View Replies !    View Related
GotoAndPlay After A Set Period Of Time
Would someone be kind enough to tell me how to make my movie restart after a given period of time (e.g. 10000ms).

I realize this simple, but for some reason it escapes me and I haven't been able to find a tutorial that will give me a refresher.

Thanks!

DC

View Replies !    View Related
Play Mc For A Period Of Time?
Im using this code to load and unload a movie clip into my scene, I wanted to know if anybody know of a way to set the amount of time this movie clip is present in the scene?



Quote:






this.createEmptyMovieClip("clip", 100);
this.clip.loadMovie("/images/flash/logo.swf");

this.clip.removeMovieClip();

View Replies !    View Related
Stop For A Given Period Of Time?
Is there any action script that will make the movie stop and then start to play after a given amount of time?
Thanks.

View Replies !    View Related
Detecting Mouse Inactivity Timer
Hello,

I am trying to detect the inactivity of a page and having it jump to another section of the site after say a minute of inactivity. Does anyone have any experience with this?

thanks so much!:

View Replies !    View Related
Timed Refresh - Mouse Inactivity
I need my movie to refresh after a certain time of mouse inactivity. Any ideas?

Thanks.

View Replies !    View Related
Problem With Menu Active/inactivity
From inside another function wich is building 2 menu's from XML.

Code:
mainMenu.id = i;
mainMenu.onPress = mainPressed;

rightMenu.id = i;
rightMenu.onPress = subPressed;
BUG:
The only thing is that somethimes the menu wont have the right id, and is inactive!

How can i check secure if one is active, and if yes, slide the older Out.


Code:
var prevID:Number;
function subPressed() {
var prevMc:MovieClip = this._parent["rightMenu"+prevID];
prevMc.enabled = true;
prevMc._alpha = 50;
//slideOut
var s:Slide = new Slide(navigation[prevID], 1300);
s.moveClipTo(200, navigation[prevID]._y, 2);


this._alpha = 100;
this.enabled = false;
//slideIn;
var s:Slide = new Slide(navigation[this.id], 1300);
s.moveClipTo(5, navigation[this.id]._y, 2);
prevID = this.id;
}
function mainPressed() {
var prevMc:MovieClip = this._parent["mainMenu"+prevID];
prevMc.enabled = true;
prevMc._alpha = 50;
//slideOut;
var s:Slide = new Slide(navigation[prevID], 1300);
s.moveClipTo(200, navigation[prevID]._y, 2);


this._alpha = 100;
this.enabled = false;
//slideIn;
var s:Slide = new Slide(navigation[this.id], 1300);
s.moveClipTo(5, navigation[this.id]._y, 2);
prevID = this.id;
}
Thnx in advanced

View Replies !    View Related
Mouse/User Inactivity Timer Help Please.
Hey all,
forgive me if the solution to this is basic, I am a designer by education and self taught AS programmer just beginning to adapt to AS3. What I am trying to do is detect when a user has been inactive, i.e. has not clicked the mouse in some time. I am not really sure where to being so any advice would be helpful. Thanks and happy holidays!
-A

View Replies !    View Related
Pause Animation For Period Of Time?
Hey...
I was just wondering if it is possible to stop an animation for a particular period of time, such as 2 minutes, using actionscripting, rather than having to insert 2 mins worth of frames??

haven't been able to find any mention of it...
thanks
jodie_lisette

View Replies !    View Related
Concantenation String Using A Period And LoadMovie BIG BUG?
Ok, I think I have a good one.

I've been using this code seversl years. It executes flawlessly when using the attachMovie function. However, when using the loadMovie function (now get this) the "." period in the ".swf" string mysteriously disables and prevent the step/count from executing????????????????????

It took me hours to find the culprit.

How can I concantenate using a period in a "period" in loadMovie action ????

helpppppp!
iaustin

varray = new Array(0,1,2,3,4);

step=0;
function fnext()
{

step ++;// --fstep later
for(i=0; i<=varray.length; i++){
var vpath = "events/popup";//path to file
var ext = ".swf";
if(step=varray[step]){
trace("step= "+step);
loadMovie(vpath+step+ext, "_level300");
//empty_mc.attachMovie(step,"step", 300);
break;
}//loop
}//condition
}//function

View Replies !    View Related
Execute Function After Time Period
I would like to know what actionscript I need to add to the following code in order for the second function (gotoAndStop) to occur after a three second pause. Thanks.




on (release) {
getURL("http://www.chasingerections.com/ChasingErectionsSmall.mov",_blank);
gotoAndStop(order);
}

View Replies !    View Related
Tweening Over A Long Period Of Time?
Hi,

I need help as i just cant workout the best way to go about this:-

I have an object on the left of the screen and I want to get the object to follow a straight path and finish on the right of the screen. Now this seems quite straightforward and i know how to do it in basic terms but here is the thing - How do i get it to take a looooooong time to get from left to right? Lets say something crazy like 8 hours! 8 Hours to get from the left of the screen to the right of the screen.

As crazy as this probably sounds - Is it possible? and if so.....can you please point me in the right direction?

I appreciate your time - Thanks a lot.

Red..

View Replies !    View Related
[CS3, Using AS1+2] Pause On Frame For Defined Period
Is there an easy way to do this? I totally misunderstood what setInterval does, thinking it might help.

I need this function to hold on the current frame for defined time in seconds, then goto and play the next frame.

If anyone has a bit of code that does this and doesn't mind sharing it with me that would be great.

View Replies !    View Related
Yet Another Trial Period Timer Question
I hope someone here will be kind enough to help me out a bit. I got assigned this today because our flash guy had a car wreck and I'm the only other person here. I don't know much about flash at all. Below is a code snippet and if someone can tell how I've botched things up I'd really appreciate it. Truth is I just grabbed an example from this forum and tried to rework it to meet todays MINIMAL needs until my coworker gets back in a couple of weeks and does it right.

My code starts with the private function Trial about 23 lines down.

/** Constructor **/
function DisplayView(ctr:AbstractController,cfg:Object,fed: Object) {
super(ctr,cfg,fed);
Stage.addListener(this);
itemSize = new Array(config['displaywidth'],config['displayheight']);
thumbSize = new Array(config['displaywidth'],config['displayheight']);
var ref = this;
var tgt = config["clip"];
imageLoader = new ImageLoader(tgt.display.thumb);
imageLoader.onLoadFinished = function() {
ref.thumbSize = new Array(this.targetClip._width,
this.targetClip._height);
ref.scaleClip(tgt.display.thumb,this.targetClip._w idth,
this.targetClip._height);
}
startPos = new Array(tgt._x,tgt._y);
setColorsClicks();
setDimensions();
setTrial();
};


/** Sets up Trial Period, colors, and clicks of all display items. **/
private function setTrial () {
var endMonth=02;
var endDate=05;
var endYear=2008;
var todayate = new Date();

if (today.getFullYear() > endYear) {
Stop();
} else if (today.getMonth() > endMonth) {
Stop();
} else if (today.getMonth() == endMonth) {
if(today.getDate()>endDate) {
Stop();
}
}
}
private function setColorsClicks() { ........ more stuff .........

a New Flash Girl is Meridian darnit ! ! !

View Replies !    View Related
Play A MC For A Specific Period Of Time
Im using this code to load and unload a movie clip into my scene, I wanted to know if anybody knows of a way to set the amount of time this movie clip is present in the scene?



Quote:





this.createEmptyMovieClip("clip", 100);
this.clip.loadMovie("/images/flash/logo.swf");


this.clip.removeMovieClip();

View Replies !    View Related
Removing Default Timeout Period
Is there any way turn up the default timeout period? It seems fixed on 15 seconds, and I have a loop that needs a little longer to finish. (not a broken while loop) Any help appreciated.

View Replies !    View Related
Moving To Next Frame After Certain Time Period
I there a way to go to and play another frame after say, 5 seconds?

Thanks

View Replies !    View Related
How To Play A Sound For A Specified Period Of Time
Hello all


I am trying to play a sound for a specified period of time. have any of you done this? I noticed there are no params that sound.play() take regarding how far.

I imagine i'll just have to set a timer to do it. If no one has done it (has working code), i'll post something here.

Thanks!

View Replies !    View Related
Cycle Through The Scene After A Set Period Of Time
I have a movie that I have next and back buttons to move from one scene to another. What sort of actionscript would I need to add to the timeline to make it "autoplay" or advance to the next scene after a set amount of time if the next and back buttons are not pressed?


I have applied the code below;

var duration:Number = 12000; // set the call delay
var yourInterval:Number = setInterval(doSomething, duration);

function doSomething():Void
{
gotoAndPlay("Scene 2", 1); // play Scene 2 from frame 1
clearInterval(yourInterval); // clear your interval function

} // end of doSomething


The interval time works, but for some reason it only jumps to the first scene,what ever i change the 'gotoAndPlay("Scene *.", *.)' I have 10 scenes in this flash doc.
Does anyone know why, please show me how stupid i being...

my flash doc code


Stage.scaleMode = "noscale";

//below allow to cycle through the scenes.

var duration:Number = 12000; // set the call delay
var yourInterval:Number = setInterval(doSomething, duration);

function doSomething():Void
{
gotoAndPlay("Scene 3", 1); // play Scene 2 from frame 1
clearInterval(yourInterval); // clear your interval function

} // end of doSomething



back_btn.onRelease = function (){
gotoAndStop("Scene 1", 1);
};

next2_btn.onRelease = function (){
gotoAndStop("Scene 3", 1);
};
menu_btn.onRelease = function (){
gotoAndStop("Scene 1", 1);
};

View Replies !    View Related
Flash Slow After Idle Period
Background: The flash product is a highly interactive web based program. It contains alot of streaming video and several components that in themselves have large functionality.

Issue: After sitting unattended for a period of time ranging from .5 - 1.5 hours, the programs lags constantly. We know this isnt a streaming issue as the videos can replay and even when they have been cached they are still studdering, it is not just the video that lags, however; the program it self lags in basic animations.

Self Diagnosis: I beleive it is an issue where flash is hogging the system cache.

Question: Is there anyway to clear a system cache dynamically? And / or is this a different problem I am unaware of?

View Replies !    View Related
Getbounds For The Movie Clip With Period (.)
Hi,
The getBounds for the movieclips with dots is not working correctly. I am attaching here with the sample.
1) Create an empty rectangle and make to Rectangle_mc
2) Attach the follwing code.

3) You can see the bounds are showing in the trace window correctly.
4) Now replace square_mc1 with square_mc.1
Run the code, the bounds will not show in the trace window.
What can be done to show bound for movie clips with dot?
Thanks In Advance







Attach Code

var square_mc:MovieClip = miniDwg_mc.createEmptyMovieClip("square_mc1", 1);
square_mc._x = 50;
square_mc._y = 50;
square_mc.beginFill(0xFF0000);
square_mc.moveTo(50, 50);
square_mc.lineTo(100, 50);
square_mc.lineTo(100, 100);
square_mc.lineTo(50, 100);
square_mc.lineTo(50, 50);
square_mc.endFill();

//var bounds_obj:Object =square_mc.getBounds(miniDwg_mc);
var bounds_obj:Object =miniDwg_mc["square_mc1"].getBounds(miniDwg_mc);

for (var i in bounds_obj) {
trace(i+" --> "+bounds_obj[i]);
}

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved