Timing To Change Pages?
Well as you can see I am a newbie. I am wondering how to make a flash intro that after lets say 15 secs it automatically loads to the main page? Now this will be in the same window. and remember I am a newbie.. been learning flash now for 4 days... hahaha
thanks.
FlashKit > Flash Help > Flash Newbies
Posted on: 12-20-2001, 01:31 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Timing Between Change
Heres my current code im using to change frame after a certain time :-
myFrameTimer=function(){
gotoAndStop(4);
clearInterval(myTimer);
}
//usage....intervalID...setIntervalMethod(functionName,time in milliseconds)
myTimer=setInterval(myFrameTimer,10000)
MY PROBLEM
The user can change frame either by waiting it to change by time or by pressing a button using simple on (press){ } but when they use on press for sum reasion the timer still counts down and takes them to the relevant page even if the user is 3 pages threw the presentation so is there a bit of script im missing or a way to resolve it that like says if button pressed cancel timer something like that that isnt to complicated as im a NOVICE at this actionscript stuff
Help? Change Timing In Slideshow W/ XML
i need to modify a slideshow (like the tutorial on this site) to allow each slide to stay up for a different amount of time, i.e. slide one, 3 seconds, slide two, 6 seconds.
help??
-starving grad student
Can You Change SetInterval Timing After It Begins?
Hi all, quick question...
Once you start an interval with setInterval, is it possible to vary the time as it runs each interval?
I know that seems like it defeats the purpose. I like the idea that it does something every *given* period of time, but why does that given period of time have to be hardcoded?
I've tried, but can't seem to figure out how to change it on the fly short of clearing and resetting the interval at a different rate each time I want it to change.
Here's why I wonder:
I have a slideshow that transitions between images every x-milliseconds. Right now, that number is 6000. But I've added the ability to add captions. The caption for one picture might only be 50 characters while the next could be up to 200 characters. So people need time to read the longer ones.
I want to extend the length of time between intervals based on the length of the caption. So if I have setInterval running, I want to say "this next picture has a long caption of 150 chr, make the interval 10000 instead".
So set interval would use a variable newInterval or something instead of the hardcoded "6000". But how do you make the setInterval that's already running SEE that you've changed the value of newInterval??
Right now, I setInterval on startup within a function. The interval calls the "load a new jpg" function where I also do the test to see how long the caption is. At the same time, I tried to set newInterval to extend the time based on caption length, but it is as if the setInterval only reads the first value when it begins and sticks to it no matter what I change it to.
Any ideas? I can post my code... It's more of a logic thing I'm looking for though, not a giant impressive block of code. THANKS EVERYONE!
Jessica
How To Randomly Change Timing Of Movieclips
I have a grid of 50 identical square movieclips that are spread evenly over
the stage. The clip is a very simple fade from 100% alpha to 0% of a square
symbol. My transition sequences consist of each of these 50 clips quickly
fading out in a staggered pattern to reveal the content below. However,
instead of manually adjusting the timing of when each movieclip fades, I
would like to use some kind of randomizer script that would change each time
it is called. The variable would need to be "when" each instance of the
movie would start. For example, I might want to stagger the start of each
instance over 25 frames.
Any ideas or input?
Thanks -
Button Change Pages In A Different HTML Frame?
I am brand spankin new to this whjole thing, and i want to add some flash as a navigation bar to my band's website and at the same time begin to get some knowledge about flash. I took the tutorials and got the buttons working, and have been poking around flashkit.com and finding some cool little things i can do with buttons, but i haven't found a way for the navigation bar in one html frame to change a page in another html page...to see what i'm talkinging about, hit up http://www.sixpaysseven.com ..the nav bar will be on the right. I haven't started any of the programming yet, so all i have is the buttons set up
thanks
Dan
[F8Pro] Website In Flash, Change Pages?
Ok so i am a complete n00b at flash. i can do simple things like motion tweens and shape tweens etc. i don't know action scrip atall.
But my dad wants a website, i can easily create graphics in Photoshop so i dont need flash there, thing is i designed a template in photoshop, now i can put it into flash and put different layers for the different pages but! when i create buttons over the template and select (with behaviours) bring to front/bring forward - say the brands page - and i then hit ctrl-enter to load the movie but once i click the button the pages do not change it always displays the home page no matter what i do, i need some help this is being sooo annoying
cheers
//Scott
Scale-able Site Pages, Change Size W/ Browser Window?
I'm a bit of a newbie, wondering how this scaling effect is possible.
See www.sagmeister.com - when you scale your browser window, the entire site interactively shrinks or enlarges to fit. How is this done with Flash MX? Is it a publishing option or an actionscript or what?
Homepage Swf File Change Content When You Are Returning From Internal Pages
I have flash file embedded on my homepage, what i want to do is when you are surfing the internal pages and you click the link to go back to the homepage, you would see a different flash file on the homepage. This is not a random flash files. The first flash file is a long movie that it gets boring if you go back to the homepage and you need to see it again. What I want is a short version of the flash file.
But I don’t know if i can create this change with JavaScript on the html page or I can place an Action Script code on the main flash movie.
Somebody?
[timing] Function Timing - Delay In Script
Hi all,
Back again to find help provided by helpfull flashers
Right now i have the following script
PHP Code:
var speed = 20;
MovieClip.prototype.slideIt = function(whereX) {
this.onEnterFrame = function() {
this._x += (whereX-this._x)/speed;
if (Math.abs(this._x-whereX)<1) {
this._x = whereX;
delete this.onEnterFrame;
}
};
};
green.onRollOver = function() {
blue.slideIt(520);
red.slideIt(550);
};
green.onRollOut = function() {
blue.slideIt(193);
red.slideIt(386);
};
What i want to do is pretty simple, i want the onRollOver to be delayed for a few seconds before it runs the slideIt script.
I searched on kirupa for similar actions and found this
http://www.kirupa.com/forum/showthread.php?t=47450
but how can i implement this in my own script ? tried a few things but all it does is either nothing or even more nothing ...
Need some help on this - Thanks in advance
Publish Timing V/s Working Timing
I have a question.....when I am working in flash MX and I am modifying a purchased flash site I did some changes to it and it works well.
I added music and modified the thest animations to go with the music and all looks well but when I publish it and see it on the web it is all out of sync????
Why does the syncronization change from my working movie to my published movie ????
Now I also did some more editing to my movie / web and on when I am in FLASH MX all works well and looks good but when I save as a movie and view it as the .swf file all the text animations are gone ????
But it looks fine while in the actual flash program.......
Anybody got any advise ?????
My Pages Change When I Press "enter"
I tried looking for a post on the subject but couldn't find one. plus you can imagine how hard it is to find anything with the subjuct "enter"
Anyhow... thing is that whenever I press the "enter" key on my site it jumps to the next frame. my site is built so that on every frame there's a new "page" (or content) while some content remains from a previous frame (some movies need to be extanded over more than 1 frame). So whenever I press enter it messes things up for me.
here's the site : linedezine.com
Any suggestions?
I was thinking about cancelling the function of the "enter" key all together, but then my e mail form may not work
help!!!
How Do I Link Swf Pages To Other Swf Pages
I just designed my first complete website using only Swish. However the site is over 5meg and takes forever to load. I realize that i have to design only one scene in a movie for the main page and then have it link to another single scene movie. I'm not sure how to do it. any help will be appreciated.
Thanks
Dave
Loading Pages Within Pages
I have a flash menu I made. It's pretty big (741 x 426). I have several buttons on the menu with some animation. Each time you click on one of the buttons, the menu and the button does an animation.
My problem is my main menu, has many sub menu's. I dont want to go to a new page each time they click on a link.
I want the sub menu's to be able to load any of the pages on my site at the bottom of the page clicking on the buttons. So I want the page to be blank at first except the flash menu, when you click a button it loads a page at the bottom, without having to go to a new page...
I cant do frames because of the large size of the menu and I want the menu to dissapear when you scroll since it's so big.
So what's the easiest way to load a html page within a page and what action would I use to make it happen? I just recently got a flash mp3 player that loads files using xml, is that possible to laod html files onto a page with xml?
Pages With In A Page? Sub Pages
I need some help,
On my flash site i have a a section called "photoshop" and i am almost running out of space to put pop up buttons that you click and it brings up my artwork
(see image)
I know its possible and that if I put some buttons that say something like next and back for browsing through pages I can have more than one page on the "photoshop" section, sort of like a sub page
I know I can do it I just don't know how so if anyone could help that would be greatly appreciated and thanks
Timing Please Help
Can someone who knows please tell me how to stop my Flash Projector from playing differently on different computers with a song type video.
I basically have a 5+ minute song with picture transitions throughout timed exactly correct (at least I thought) but when played on different computers with different processors it is all off.
sound like something i cant fight B U T I have seen projector files that play perfectly on everyone's systems so YOU GURUS KNOW how to prevent this difference....
can you clue me in?
tv
Timing
Hi,
Is there someone who can help me... Please...
I'm in a scene 'A', and I would like that after a few seconds, I go in a scene 'B'. How can make it to test the few seconds... ?
Thanks for your help, big kisses!
Calamina...
[Edited by calamina on 12-20-2001 at 07:51 AM]
Timing
How do I make flash wait for a specified amount of time before continuing actions?
Timing
Greetings,
I have a certain MC called lightning, and what I want it to do is to wait a certain time, each time for playing. So it's like what 3 seconds, then the movieclip plays, then wait another 3 second, and the movie to play again. How would I go about doing that?
Thanks
Timing
I want to allow some of the editors where I work to enter in certain things that will load into the flash file.
They will be using a broswer form, that will create an xml file that will store easy things like headline, graphic, blurb text, URL, etc. BUT....
I would like for them to be able to take predefined animation, say a slide form left to right, or a fade in or fade out.... and be able to set the speed. Is there a way to do this.... so instead of just plopping a jpg into a movieclip that fades from 0 to 100 across 30 frames.... they could admisinster, say, 6 seconds. The xml would pass me 6 seconds, I would multiple my frame rate to get the frame number.... and then, how to I actually make that fade tween or motion tween extent to the new length of time/frame? Can't figure it out.
I don't just want to set a postion or alpha... and I don't want it to dynamically follow a mouse or some get property.... I just want to change how fast it happens.
Thanks in advance.
Coffee Cat
Mc Timing
Hi there, quick question...
I have an main .swf on my website that loads and unloads a bunch of smaller .swfs as the movie plays (I did this to cut down the time it took to load up the site). On both my computer and another I tried, it works fine but on a friend's computer the .swf's loaded too slowly & unloaded too quickly - it looked terrible. Is there a way to make all the computers happy?
miz k.
Timing
Hey people! I'm sure this question has been asked a million times, but I can't find it anywhere. How do I keep the timing up to date with the music in my movies? With the update() command? And if so, how do I use it properly?
If you know where the answer to this question is, if you could direct me to it, or answer it, it would be greatly appreciated. Thanks in advance.
Timing
hey all!
i have a button that activate a clip(within the button-a rollover).
i have 26 button that sit one on top the other.
i want the button to activate the rollover and stay for 1 second or less and move on...
timing the button or something like that.
Thanks for any help.
Timing
How do you run function after so many seconds
like if I had a button that would call a function, how would I make it work so the function works after a few seconds after the button is clicked?
Timing
Hi everyone. I'm trying to make a timer for a game I'm making but I'm not quite sure how to do it.
i know how to alter dynamic text but I'm unsure how to alter it depending on the time. I want each level or round to last a set time and when it gets low on time, the time turn red in colour. I can work most of it out but is there a handler for seconds if so, I'm not sure how to do it.
Please help.
thanks.
Timing
i have a movie loading into the 'shell' of a presentation. but my problem is the movie that gets loaded into the shell it plays slower. when i run it in the flash environment, everything works fine. but when i view it through explorer the loaded movies play slower.
this will end up on a cd. is there anyway of publishing the project not using explorer, or a way to publish it so it will behave exactly as though it was played in the flash environment?
thanks for any help.
Timing
I want flash to time for x amount of seconds then it will do what I want.
Thanx
Timing
why is it that when i load animations in seperate MC's into a maintime line...that the timing is all slowed down...can someone please let me know..
when I publish the MCS by them self...the timing is right...but when I load them into another timeline...there slow right down and miss the event sounds i have used...
I ensured that all the frame rates are the same....
what am i doing wrong...
goto
http://www.vibegraphics.ca/GUTS/Page-Console.html
you will see what im talkin about with the spray paint on the top right corner
thanks,
Help Regarding Timing
Hi,
Im completely new to flash and have made a movie here.
The problem I've got is that it works fine at times but at other times the synchronisation between movements and music goes out completely.
The events get quicker and quicker until the music is a couple of seconds out. As mentioned above - it works perfectly at times.
I'm using 3DFA which I've noticed doesn't exactly get rave reviews on here but I bought it before checking out.
Am I doing something stupid?
Cheers
Paul
Timing...
Hi!
I want a script that says this:
if you haven't pressed the button in 2 sec gotoAndPlay(2);
but if you did gotoAndPlay(10);
but I can't figure out a way to make the time work!
Please help me
Flv And Swf Timing
Hello. I have a rather large vid which I have imported into my SWF dynamically using the FLV playback componenet. What I am looking to do is display some text in my original SWF during certain points in the movie. since the FLV is not on the actual timeline and will buffer differently on different machines, does anyone know of a way to time those messages (in the parent SWF) precisely with the proper points in the flv?
appreciate any help. Embedding the video is not an option since the qulaity needs to be retained as much as possible and they are very large (about 5mb).
[FMX]Timing AS
Hey all, ive always browsed kirupa forums but never actually been a member(a sin?). Thought its time for me to break into the scene so to speak.
I have a question for all the uber flash gurus out there and i have tried searching the forums for my answer but i wasnt actually sure what i should be looking for. I was wondering if there is anyway to pause between lines of code.
The situation i am in at the moment, i am building a small portfolio for my multimedia class and skill level is above everyone else in the class and i think the lecturers were just expecting some easy motion tweens and working buttons but i decided to make it a bit of a project to build a whole new portfolio using as much actionscript as i could.
I have built prototype functions for moving an MC on x axis and y axis with easing. Simple enuff but i cant work out how do one after the other.
Code:
on(release) {
_root.box.moveX(200, 2);
_root.box.moveY(200, 2);
}
Nothing happens if i have both in the button, i was thinking that i could do a loop and just check where the object that i am moving is at but thought that would be long way of doing it. There must be a way to not go onto another line of code UNTIL the other one has finished...just how? o.O
Thanks.
Timing
Hi,
how can you configure that on clik of a button, movieclip load after lapse of 3 seconds ?
Thanks
Timing Help
Ok. I made the game. Look in attachment. The timer doesn't seem to be working for me. And when starting the gme the cards are shown for only few seconds. I want to make the cards bigger also how do i do this with script.
Timing
ei guys...i have this effect similar to www.lennykravitz.com wherein when you click a button it goes to a certain square...what my prob is how to make the loaded movie (.swf) play exactly after the square (or part of a picture, in my case) moves into its rightful place...so that my loaded .swf won't play immediately while the action is in the middle of its animation...
[FMX]Timing AS
Hey all, ive always browsed kirupa forums but never actually been a member(a sin?). Thought its time for me to break into the scene so to speak.
I have a question for all the uber flash gurus out there and i have tried searching the forums for my answer but i wasnt actually sure what i should be looking for. I was wondering if there is anyway to pause between lines of code.
The situation i am in at the moment, i am building a small portfolio for my multimedia class and skill level is above everyone else in the class and i think the lecturers were just expecting some easy motion tweens and working buttons but i decided to make it a bit of a project to build a whole new portfolio using as much actionscript as i could.
I have built prototype functions for moving an MC on x axis and y axis with easing. Simple enuff but i cant work out how do one after the other.
Code:
on(release) {
_root.box.moveX(200, 2);
_root.box.moveY(200, 2);
}
Nothing happens if i have both in the button, i was thinking that i could do a loop and just check where the object that i am moving is at but thought that would be long way of doing it. There must be a way to not go onto another line of code UNTIL the other one has finished...just how? o.O
Thanks.
Little Help With Timing
Hi folks, I'm working on a site, and i got stuck with the first item - the preloader.
I want it to play some kind of animation once when the bar reaches set position(different animations for diferent positions, each in +1 frame of mc).
i got in my script going like :
if(percent == 20)
{
anim_mc.gotoAndStop(2);
}
and it works when tested localy, but online the counter might skip from say 19 to 24 %, and the animation don't get displayed. Can anyone think of a way to solve this?
Cheers
TIming, TIming, Timing
I've been trying for weeks to make a banner for one of my sites where words appear in time with the music playing underneath. I admit, this is my first time using Flash. I sought advice from a friend and he suggested a preloader, which I applied but to no avail!
After the months I have spent waiting for permission to use the music and then putting it all together, it is becoming very frustrating.
The preloader doesn't even appear to work on the server even though it did on my test run.
My first .swf
Any advice would be greatly appreciated. Many thanks in advance.
Set Timing?
hi people.
i need a little help
i will write the "idea" of what i need, (with normal language) and please somebody tell me wich would be the right script for that:
action:
if timer > # sec.
do something
i need to set a "time control" , and when # seconds, for example 30 secs. do something.
thanks in advance.
LaYeR
NAVIGATION And TIMING?
I have a roll-over drop down menu. But I want the menu to disappear if the person decides that they do not want to switch to another page. An example of what I am poorly trying to talk about is : "WWW.EMERILS.COM".
Also, I want my navigation [flash] to coordinate with the HTML text below - so that when the HTML page loads up the user can see where they are [and have been] in the menu.
Can anyone help?
Matt Griswold
mrjengals@prodigy.net
Timing Problems
Ello' 'der
I've been working on a project and have worked out many presentation problems, but I've hit a block...
Each section of my movie has it's own background that slides in. This was sucking CPU power, but I reduced this problem with help on a nother thread. I came up with a new idea to help this along. There is another movie that plays while the background is moving. How would I delay this movie clip from running till after the background finishes sliding. The background is based on actionscript, so it's not as simple as just modifying a layer's script.
If any one has any good ideas let me know....
Random Timing(?) &*#$%@
Basically, to cut a long story short, i have a little game in which i'm making these two MCs (g1 and g2 instance names) randomly appear on the stage, and then you knock them over their heads to get points. (sounds pretty lame, i know ;-))
Now the considerations that are popping my brain cells are:
1. The MCs must never appear at the same exact time.
2. The MCs x and y coordinates are constant. They appear in the exact same place everytime.
I'd seriously appreciate any advice or info or source code.
Thanks!
Random Timing (#$%@&)
Basically, i have a little game in which i'm making these two MCs (g1 and g2 instance names) randomly appear on the stage, and then you knock them over their heads to get points. (sounds pretty lame, i know ;-))
These are the considerations that are giving me trouble:
1. The MCs must never appear at the same exact time, but still be appear at random intervals.
2. The MCs x and y coordinates are constant. They appear in the exact same place everytime.
I'd seriously appreciate anykind of advice.
Thanks!
Timing Problem...
when i tried using get date, get hours and such, i get a GMT+0900 time... but my computer is using a GMT+0800 time. why is this so? will it use a standard of GMT+0900 on all computers? this kind of screws up my countdown to a certain time, since the time on the countdown will reach 0 while my computer tells me it is still one hour away...
Timing A Movie
i need a script that plays a movie in random times.
details, i have movie x.swf loaded into my main movie. movie x.swf is empty on the first frame with a stop action in it. what i need is a script that tells this movie to play every x amount of time. any ideas?
thanks
Timing For Music
How do you make sure a certain event happens at the right time,
for example if there were 3 drum hits in a row in a song and you wanted the pic to change right on it?
thanks for any help
Why Is Timing Of When I Publish?
I am making a music video of sorts.
Therefore, timing is very important because things need to haapen on audio cues. When I press F12, everything is timed perfectly. However, when I publish and view the SWF file by double clicking it, the timing is off. Which one is correct and why are they different? How do I standardize it?
Gracias
|