Animation For A Game Loops, Want It To Play Anymation For ('DOWN') Ect...
(The file is a game)
I am currently doing a project for school and have encountered a problem everything works fine excpet the animation for him to look Up,Down,Right,Left loops, i have tried putting Stop(); in but then it only faces in one direction
please see attatched
any help is greatly appreciated
http://board.flashkit.com/board/atta...1&d=1211792407 Freestyle Pacman.fla
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-26-2008, 05:06 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Play Animation Loops W/buttons
hi everyone,I have a problem I thought i could figure out on my own, I searched and could not find anything relevant.
my problem is simple,I would like button "a" to play frames 1-12 in a loop
and button "b" will play frames 13-24 in a loop
and have it so you could switch back and forth to play loop"a' or loop"b".
I hope its a simple script thanks, even if you cant help me
Animation Using For Loops?
Hey everyone
Ok this has always been on my mind and so finally deciding not to be lazy decided to give it a try. And thats animating objects using for loops.
Let me give you a run down of what exactly Im trying to accomplish. I have this blue ball movieclip in my library in which I use to attach to the main movie. Now when the movie loads, I have the following code:
code:
onLoad = function () {
_root.attachMovie("blue", "blue1", 0);
_root.blue1._x = 300;
_root.blue1._y = 100;
//
for (var i:Number = 0; i<10; i++) {
_root.blue1._x += 5;
}
};
Now the problem isnt the fact its not working , but the fact that it works the wrong way
Instead of animating the ball moving +5 on its x axis , its just plops it down the line as soon as the movieloads. So it gets there, but you dont see it happening.
Im just wondering how I would go about having it animate and if I would need to put some sort of delay. I know I could use a tween, but as this is for a game, the speed needs to be controlled
Anyways, thanks everyone
Help Linking Hit Detection To Animation In A Game (death Animation)
Hi everyone - I've just been experimenting with creating games in flash MX 04 and I've come across a problem that's had me stuck for a few hours now. I have just about everything working in my practice game, except when my character gets hit with the projectile... it won't go to the death movieClip that's located in the character's main movie clip (on frame 6 of it).
If anyone could check out the project file and let me know what i'm doing wrong it'd be greatly appreciated. The controls for the game are just the arrow keys to move the character, and down ducks - avoiding the projectile.
Thanks
Play/Pause For Animation/Nested Animation And Sound
Hello and Goodmorning, afternoon or evening.
I am relatively new to actionscripting and have come upon a problem I'm sure is probably easy but for some reason I can't make it work.
Basically I have a presentation that plays several voice over sequences that match up with accompanying animations which are mostly movie symbols that house the animation sequences. Well now the client wants to put a pause/play button on the presentation and I haven't been able to make it work... I put in stops but the movie symbols still play out the sequence and the voice over starts over... not sure what to do... HELP!... and thanks ahead of time.
Raul.
Movie Clip Animation Loops On Drop Down Menu
I have created a drop down menu with an animation taking place within a movie clip called "drop". Long story short the movie clip loops. I tried putting stop actions in the mc but then my animation doesn't play. Can anyone tell me what I need to do?
drop._visible=false;
button.onRollOver=function(){
drop._visible=true;
}
button.onRollOut=function(){
drop._visible=false;
}
Play New Animation And Reverse Previous Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
AS Animation Construction And Play (pre-play Render?)
Is there any way to construct a MC and have each of it's frame cached as a bitmap?
Let me explain.
I would want to load dynamically a certain image that can be changed at any time.
This loaded image is animated in a MC witch applies a directionnal blur (x: 0, y: 10) to it.
The blurs fades out gradually until it stops moving.
Now some users have slower PCs.
Can't I apply a filter to an image, save it like it is in a frame of a MC, go to the next frame, apply the new filter, save, redo... Until the MC has been completly constructed dynamically?
Isn't there some kind of pre-play rendering that can be done?
I'm sure there is but then again, witch method is the most optimized?
I'll be working on this on my spare time but thought I'd post this up and see if anyone ever tried this.
Then again, maybie it's NOT a good idea...
What do you guys think?
How Do I Play Animation While Playing Animation?
For Flash MX 2004,
Wondering how I might be able to have animation play inside a button or in a scene while another button animation is already playing or finishing up. Rather than jumping to an alternate frame and skipping the end of the first button's animation, is there a "do while loop" involved?
thanks
Please Help: Play New Animation, Reverse Old Animation
Hey everyone. Brand new here. I am hoping someone can help me out with bringing new sections of a website into the display area, and moving the previous section out. Meaning, lets say I have two buttons, and the idea is when you click one, an animation of the content pops up from the bottom of the screen to show the viewer. Simple enough, I use gotoandplay like this:
topLevelButton1.addEventListener(MouseEvent.CLICK, handleClick);
function handleClick(e:MouseEvent):void {
section1.gotoAndPlay(2);
}
So, when someone clicks my topLevelButton1, section 1 moves up on the screen so its visable. This concept is done with 5 different buttons on my site. It works fine. The problem is, when there is already an section displaying on the screen, I need to LOWER that section BACK DOWN before the new section raises up to display when I click a different button.
How is this achieved? I understand that Im supposed to store the current animation as a temp movie clip, so that when I click a new button, Flash takes whatever is currently stored as the temp movie clip, and reverses it or plays that animation from a specific frame. I dont know how to go about this though... Help please?
Two Frame Animation With AS3 - The Second Animation Not Play.
Hello,
My MovieClip has two frames:
- The first frame will use AS3 to do simple animation (e.g. introduction). When the animation in fist frame is finished, the animation will proceed to frame 2 by using the gotoAndPlay(2) method.
- The second frame will also use AS3 ENTER_FRAME to do an animation (a ball bouncing between the left stage and the right stage). If without the first frame, the ball will be bouncing continously.
My Problem:
Now I found that when the first frame introduction animation is finished, it will go to the second frame. However the screen of the second frame only appear for about 0.1 second then go back to the first frame.
What I need:
I require that the first frame (introduction animation) will only play one time only. Then the animation in second frame will be playing continously. How can I do that?
Please help.
Thanks and best regards
Alex
[F8] Game Animation Help
It would be great if some one could tell me how to make an animation play when you press a key on the key board and stop when you let go.
thanks
p.s. the code dosn't not need to create the animation just play and stop it.
Game Animation
I'm just learning AS3 and for an assignment I'm making a very basic brawler. I'm already beginning and I've run into a bump, and the kicker is I know how to do it easily in AS2 .
My issue is getting the punch animation to play all the way through no matter how quick the button is pushed. IE, I'll click space (the punch button) and it'll only play the first couple frames of the animation. How can I get it to play the whole animation?
I have my animations stored on separate frames in the movie clip playerHolder. By using gotoAndStop() I plan on accessing them.
I detect the space press and set a variable, punchVar to 1.
Code:
if(e.keyCode == Keyboard.SPACE)
{
punchVar = 1;
}
This is used in the function punchLaunch which is checked for in an Enter Frame listener.
Code:
this.addEventListener(Event.ENTER_FRAME, punchLaunch);
When punchVar is 1, play the punch and set punchVar to 0 (to stop the Enter Frame from continuously repeating the first frame). When the punch animation = 6 I want it to go back to the idle animation.
Code:
private function punchLaunch(e:Event):void
{
if(punchVar == 1)
{
playerHolder.punch();
punchVar = 0;
}
if(playerHolder.playerPunch.currentFrame == 6)
{
playerHolder.gotoAndStop(1);
}
}
I'm stumped on this. Any help would be greatly appreciated.
[F8] Walking Animation In Game
hi, im trying to make a game where the arrow keys move your player, simple enough, but i want his legs to move to, im making it so on keypress it goes to and plays the frame of him walking, but it doesn't work, it just goes to and stops the next frame, if this makes sense. please help? how can i make him walk?
[AS2] Game Sprite Animation
I have a sprite sheet with all the different movements of the character.
When right arrow key is pressed, the character moves to the right, and the animation of moving to the right is played. I do this by creating an object and then attach the movie clip of moving to the right animation to it. When the right arrow key is pressed, the movie clip plays, otherwise it doesn't move.
Now I want to animate the character when it's moving to the left as well by playing a different movie clip. The problem is, I don't know how to change the animation. I have tried several ways but they aren't successful. Searched on the net and so far there's nothing helpful.
If you can explain how to do this, please do so. Or if know a good tutorial on this just paste the link. Thanks.
PLAY GAME WHILE LOADING
I HAVE A WEBSITE MADE COMPLETLY IN FLASH AND IT HAS A PRELOADER BUT WHILE THE SITE IS LOADING I WANT USERS TO BE ABLE TO PLAY PONG AND THEN WHEN ITS LOADED GO TO THE SITE
DOES ANYONE NO HOW TO DO THIS
THANKS IN ADVANCE.
nEmIsIs
HERES THE SITE
http://www.nemisisflash.cjb.net
Animation Like The Game Earth Worm Jim
Hello - I want to create animation like the game earth worm Jim. Were if you do not click on anything he would get impatient and have a fit.I have four mc with the different animations and I want to randomly target one of them every forty seconds if nothing is clicked. How would I go about doing that. Thanks -Dave
Stop Animation After Keypress? - Game Help
Hi guys, got a game that has a man with his arms moving as if he is walking. However, i need the man's arms to stop moving when he's not walking or still. Any ideas?
I've attached the .fla file aswell.
Thanks in advance!, Dave.
[MX] Building Character For Non-game Animation
I wouldn't consider myself terribly new at flash, but this is one thing that stumps me, bad.
How do I properly build an animated character? What I have right now is a little complex in the sense that it has arm and leg joints, torso pivot point, various hand positions, eyes, mouths, etc. I keep hearing about nested symbols, but I don't think I'm doing it right because sometimes they don't work when I test the swf. Some do, others with identical construction do not. When I take them out into another fla, the parts work on their own, but I don't really know what that means. I was under the impression that you'd nest movie clips(or graphics?) within movie clips, the outermost clip could then be manipulated while the inner clip would just go through its animation cycle unaffected, making it easier to animate things like arms and legs, etc.
Is there a thing as too much nesting? (character>left arm>lower arm>forearm & hand) Do I have to use action scripting? Should graphics be used inside the movie clips or should everything be movie clips?
Using Sprites For Character Game/animation
Hi there,
I am planning to add some creativity to my site by adding a game-like flash program.
It involves a character walking left to right and beign able to jump horizontally up. I have the sprites here:
http://yolkfolk.com/site/images/misc...C64CKDizzy.PNG
But I am not too sure how I would implement these into Flash to make the charcter move and animate at the same time.. For example when he walks right, his arms will go across his sides, as seen in the above sprites.
Any ideas on how this would be done?
Your Favorite Flash Animation / Game
Hear ye hear ye, let us of your favorite flash movie,animation,presentation out there!
Here is proof of mine:
http://www.action3news.com/Global/st...&nav=menu550_2
I told your ninjai rules!
Game Works In Test Play, But Not As A .swf?
Im a beginner in flash, ive had it for less than a month. When I test play games they work, but when i play the .swf it doesnt work. Im i supposed to export it as a different file or something? Thanks for the help. Later
Flash Game Play / Reskined
Could anyone let me know where I can buy good quality flash game play as fla templates to re-skin to reskin, all the normal things, platform, space invaders ect ect
cheers
[F8] My Game Wont Play Online.
When i uploaded my game to newgrounds it went odd and the music diddent work and niether did hitTest's ~(objects wouldent collide)~ know why this is at all?
it works fine when i boot it in flash 8...
please help
THANKS
Game Play Area, Help Required
I am trying to define the play area of my game and I have detailed the code as follows but it doesn't want to work, my character keeps moving outwith the area when I test the game, can anyone help a novice?
stop();
Mouse.hide();
geisha.gotoAndStop(1);
geisha.move = {x:0, y:0};
geisha.speed = 5;
rightWall = 550;
leftWall = 0;
topWall = 0;
bottomWall = 400;
geishaHeight = 119.4;
geishaWidth = 44.5;
geisha.onEnterFrame = function(){
this.move.x = Key.isDown(Key.RIGHT) - Key.isDown(Key.LEFT);
this.move.y = Key.isDown(Key.DOWN) - Key.isDown(Key.UP);
if (this.move.x || this.move.y){
this._x += this.move.x * this.speed;
this._y += this.move.y * this.speed;
}
}
Can You Play Swfs On Any Game Console
im making this game at the moment but it seems pointless to have it on PC because of the controls for two player.
Is there any way to convert it to a (chipped) playstation game or something??
link: Mortal Fighter
___________________________________
Need For Animation To Play Only ONCE
I don't know how to save the animation so it plays only once when the page loads at my web site. It loops continuously. Can anyone help me?
Doc
How Do I Have It Play An Animation Then Go Somewhere?
ok here's what i'm trying to do: i want when i push a button a smaller version of the page to expand but i want to do it with actionscripting so i can have it able to be moved around. then what i want is when i push another button for another page the one i'm on will shrink back to where it was and a different one will expand. anyone got any idea how i can do that?
Play Animation Only Once
Hello, I'm very new to flash and I have a following problem.
I have a flash into designed by a flash designer who is no longer available. The intro lasts 40seconds and its locate in the header of the index page. What I need to do is make this intro play only once per visit. I guess this can be done using cookies but I have no clue how to do it. The intro is done using Flash MX 2004
Thanks in advance for any tips on this problem!
[F8] Play Animation Help
Hello,
I've been trying to get two movie clips to play (all day, grrrrrr). One works and the other doesn't even though I think I am using identical methods.
I have one button getting the designnav Mc, this one seems to work:
on (release) {
designnav.gotoAndPlay("startAnim");
}
stop();
and one using:
on (release) {
illunav.gotoAndPlay("startAnim");
}
stop();
this one doesn't. But I am using the same method. Ideas? I have included the file.
Any help would be greatly appreciated.
thanks!
L
My Animation Won't Play
hey there
my flash plays normally on the stage but when i publish it, the animation gets cutoff and i only see the background
do you know what's the the problem?
check out the flash and see if you can publish it
it's for a school probject
l'll love you so much if you can fix it
anyways tyvm for your time !
Flv.... Play Into Animation...
hi all...
I am trying to get a streaming flv video to play and then have a regular flash animation play when the video is done.
How can I do this?
I tried importing the video as frames, but the movie is just too heavy and loading time will be a killer.
any ideas?
Thanks!
-Allison
Play Animation Only Once ...
how to do such thing ... when user comes to page ... all animation plays (only head is in flash rest is in xhtml and php - page not on frames) ... and when he is goin to some undersite ... it will not play again ... and stay as it was after all enter animation ... and when user close this site ... and open once again it will play it from the begining ...
thanks for any help
elefen
Animation Will Only Play Once.
Hey,
I have the following code that brings in a movie animation. My problem is that once the animation is finished and the user presses the 'back' button to navigate elsewhere on the website, if they go back to the animation and click the 'great_btn' the animation won't play again.
ActionScript Code:
_root.main_cntr.btns_mc.great_btn.onRelease = function() { loadscrollIt();//on release of the great lengths button the function 'loadscrollit' is called disableBtns(btnArray); _root.homepage_cntr._alpha = 0;//sets homepage_cntr to 0 so containers below it can be ssen _root.photos_cntr._alpha = 0;//sets photos_cntr to 0 so containers below it can be seen _root.btns_cntr.alphaTo(0,1,"easeOutCubic");//fades btns_cntr to 0 with an ease so containers below it can be seen _root.main_cntr.main_txt.alphaTo(0,.4,"easeOutCubic")//fades the main_txt found in the main_cntr to 0 with an ease _root.sub_cntr.main_txt.alphaTo(0,.4,"easeOutCubic")//fades the main_txt found in the sub_cntr to 0 with an ease _root.main_cntr.sub_txt.alphaTo(0,.4,"easeOutCubic")//fades the sub_txt found in the main_cntr to 0 with an ease _root.sub_cntr.sub_txt.alphaTo(0,.4,"easeOutCubic")//fades the sub_txt found in the sub_cntr to 0 with an ease _root.main_cntr.btns_mc.alphaTo(0,1,"easeOutCubic")//fades the btns_mc found in the main_cntr to 0 with an ease _root.great_cntr.loadMovie("great_lengths.swf");//loads the movie "great_lengths" into the great_cntr _root.pattern_cntr1.background1.alphaTo(25,0.8,"easeOutCubic",0.5);//fades the background to 25% with an ease _root.pattern_cntr2.background2.alphaTo(25,0.8,"easeOutCubic",0.5); _root.main_cntr.back_btn1.alphaTo(100,1,"easeOutCubic",24)//fades the back_btn1 to 100 with an ease and a delay of 24 seconds so that it appears at the end of the great lengths animation }
I tried adding this line of code to the back_btn so that the animation is actually loaded in on every click of 'great_btn' but it's not working.
ActionScript Code:
_root.great_cntr.unloadMovie("great_lengths.swf");
Any ideas?
Cx
Play Animation Only Once ...
how to do such thing ... when user comes to page ... all animation plays (only head is in flash rest is in xhtml and php - page not on frames) ... and when he is goin to some undersite ... it will not play again ... and stay as it was after all enter animation ... and when user close this site ... and open once again it will play it from the begining ...
thanks for any help
elefen
Game Advice. Combining Animation & Code
Hi, thanks in advance for any help and/or advice - it is much appreciated.
I have decided to tackle a game along the lines of:
http://news.bbc.co.uk/sportacademy/h...00/2190755.stm
As you can see, it requires kicking a rugby ball in between the posts. My question is not specific to this game - but the above game is a good example of it.
How do you coincide/intergrate animation (such as the man running) with the actual kick of the ball? I see plenty of games, that have 'set sequences' of animation, but also rely on physics and 'free movement' such as gravity or elasticity.
I was also wondering about the set up of the game. Are the goal posts actually mathmatically set along the x axis? How would kicking a ball along the z axis work?
Thanks in advance for any advice / help.
Best regards, snapple
Trying To Make A Platform Game With Running Animation
hi im making a "complex" platform game. the default animation that is playing is the idle animation for when nothing is pressed.
the problem;
im trying to make it so when you press the RIGHT or LEFT key, the character plays the animation for running right. the problem im running into is
gotoAndPlay(18); .. when i hold down the RIGHT key to go right.. it keeps refreshing the command to go right so it keeps playing the first frame of the animation to run right
how can i get past this??
ive also tried
if ((!Key.isDown(Key.RIGHT) && (!Key.isDown(Key.LEFT))){
gotoAndPlay(6);
}
and this way the running animation is the default animation, and frame 6 is the idle animation for standing still
the reason this doesent work is because i have multiple ways to attack with CONTROL and SPACE. if i add a !key.isDown(KEY.SPACE)....ect then when i press space it just repeats the first frame of the attack.. while at the same time solves my other problem of running
can someone post a way for me to do this
or contact me via AIM
jereminion
btw ill post theSWF
http://i5.photobucket.com/albums/y19...n/smoothms.swf
controls:
arrow keys to move, up to jump
space to shoot
CTRL to slice
i based this game off of Kirupa's example so plz dont accuse me of stealing since i gave cred
Manipulating MovieClips For A Game (Play Once And Notify)
Hi Everyone,
This is my first post, so please take it easy on me . Anyways, my situation is that an artist friend of mine is taking an independent study on flash animation for college, and I'm a comp. science major very familiar with C++. We decided that it would be cool to make a game together and it so happens that it will help me fulfill my Art Minor. So the jump to AS 3.0 wasn't too bad and we've made some good progress on the game. There is one thing that is escaping me so far though, and the game kind of hinges on it.
Is there a way to tell a movie clip to start playing from beginning, only play once, and let me know when it has finished playing??
Some things to know, the movie clip is assembled from an animation made in Flash CS3 that has several layers (15 or so?!) but it of course is referenced as one movieclip. We really can't do that part any other way and it in fact works great for idle characters and running characters. The time it doesn't work is on an attack animation. I want to be able to start attack at the beginning, go through one attack cycle, and then have a way to tell when it has finished. If I could do this I am confident the rest will fall into place, but so far all I have seen is "make into AS 3 code as Animator" (not an option with multiple layers) and some other stuff about "play(), rewind()" and other stuff that just doesn't seem to work on a normal movieclip.
If anyone has any ideas or knows of some function of MovieClips that is escaping me, your help would be greatly appreciated!!!
I don't know what to give you for code as I have a lot, I guess really I just want to be able to in effect say:
mc.___(___) // plays the movieclip once from the beginning
___________ // maybe some event listener for when the end
// of the movieclip is reached so that i can then
// call a function that puts me back into my prev
// animation
Thank you so much for looking!!!
-Ryan
Play This Animation From A Specified Date
Hi folks,
can someone do this script or maybe he did it already:
So the anmation shall not play until the specified Date is reach.
This is the first part of this script:
onClipEvent (load) {
days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
months = new Array('January', 'February', 'Mrch', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = timedate.getHours();
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = timedate.getMonth();
monthname = months[month];
year = timedate.getFullYear();
if (length(minutes) == 1) {
minutes = "0"+minutes;
}
if (length(seconds) == 1) {
seconds = "0"+seconds;
}
currenttime = hour+":"+minutes+":"+seconds;
currentdate = todaydate+"/"+month+"/"+year;
fulldate = dayname+", "+todaydate+". "+monthname+", "+year+", "+currenttime;
delete timedate;
timedate = new Date();
setProperty ("/stunden", _rotation, 360/60*hour);
setProperty ("/groß", _rotation, 360/60*seconds);
setProperty ("/minuten", _rotation, 360/60*minutes);
}
so and the 2nd part of this script lacks yet.
The Animation shall only play from this specified Date and then forever.
But when this specified Date isn’t reach the animation shall not play.
If have any script or “*.fla” you can sent this to renejarsch@yahoo.com
Thx for your help.
I Cant Play My Animation With A Button?
hi there,
i have a fairly simple problem, basically what im trying to do is have a button that will play one animation when the mouse rolls over and another animation when the mouse rolls out.
i have a movie called "animation" with my 2 animations,
i have a stop action on first frame, then the first animation starts at the label "one" and has some text slide in, second animation starts at label "two" and has the text slide out.
i placed this movie inside a button, and then placed button in the main movie with the following actionscript....
on (rollOver)
{
_root.animation.gotoAndPlay(one);
}
on (rollOut)
{
_root.animation.gotoAndPlay(two);
}
but nothing works, i see no animations, what am i doing wrong?
thanx anyone
richard
Animation Wont Play
ok my problem is as such.. i dont really need any of this to work on
a web site or anything im just getting into the whole flash thing
so right now im trying to keep things i make simple
i made a simple 3 frame animation using bitmaps i imported from paintbrush however..it works fine in preview but wont work afer i export it it only shows the first frame then a blank and keeps looping the first frame.....what am i doing wrong plzzzzzz
Animation Won't Play On Every Frame HELP
I'm trying to have an animation play everytime I tell my movie to jump to a different frame. My problem is, it will only play once even if I make a new keyframe in every frame with the animation movie clip dropped in. I seem to get it to work fine if the animation is on a different layer everytime I need to use it, but this makes a mess of my .fla. PLease help! Thanks !
Only Play Full Nav Animation Once
I'm building a site that will essentially be split in two down the middle, on one side a fairly complex flash navigation and on the other php/mysql driven html. The flash navigation has an intro sequence and then stops, ready to be used. The problem with this system is that the nav animation would be repeated each time the user navigates to a new page, i only want the actual animation to occur once tho. The solution i came up with is using flashvars to pass vars to the swf to tell it to either play from the start or play from a designated point, these vars would be established by the php and populate the flashvars tags accordingly. This is all good, 'cept one major issue. How can i detect whether the user is viewing the swf for the first time (of that specific visit), especially if they have followed a hotlink to a subsection within my site. I was looking into using HTTP_REFERER within php which would allow me to see where the user has come from, i.e. if they were previously external to my site then play the animation, if not then just display the nav, however i've heard that this method is none too reliable. Is there an actionscript solution perhaps...?
Hitcounter... Play Animation When Value Changes?
Hey all,
I'm trying to get this hitcounter to play an animation everytime the value changes realtime. I can only get the animation to play when the movie first loads, but it doesn't play when the value changes...
to see what I mean, you can go to www.thepixelsink.com/other/counter.html
just ctrl+n to open a new window of the same page... you'll notice the counter increases in both windows, but the animation doesn't play in the original window. that's the problem. could anyone check my code? it's only a few lines, but it's not working as it should. thanks!
Mouseover And Play Animation?
Okok,
I need a help on this:
lets say I have this picture (its a movieclip) - when a user hovers his mouse over it.. another movieclip will be played beside of the picture...
|