Hovering Square - Dynamic Animation
I'm trying to animate squares so that they look like they are floating above the page and casting shadows.
I need them to move randomly left-right and up-down, by a few pixels (they mustn't move to far from their original starting position).
All I can get at the moment is a jerky movement - it needs to be smooth.
Can anyone help?
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-14-2002, 03:32 PM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamic Text Field Won't Change Color When Hovering
Hi,
I attached my .fla file (I think) which contains the problem.
It contains a dynamic textfield with hyperlinks. I want this link to change its color when a rollover occurs.
I thought I could just swap the last frame of my MC with a graphic which contains the rollover, but this doesn't work and I can't figure out why
View Replies !
View Related
How Do You Make A Dynamic Square
Hi everyone,
Quick question. How might one go about making the following effect. A user can specify the dimensions of a box (width and height), and the movie clip which is a square to begin with automatically animates to the adjusted size. Any help and insight would be much appreciated. Thanks
Don
View Replies !
View Related
Renders As Square In Dynamic HtmlText Field
So I an into a little problem with the spacing of my links, I found that if I just add a at the end of the link everything spaced out correctly. But now I get a square instead of just a space. I have tried embedding the font and making the text field htmlText. I have attached a diagram to show what I am talking about.
Thanks,
D
View Replies !
View Related
Storing A Dynamic Animation To A Static Animation?
Hi there.
Is there a way to create a static animation out of a dynamic animation?
Like this;
If I create a random "starfield" effect, and want it to be exactly the same every time - can I somehow store the animation to a swf or create automatic actionscript FROM the randomness I've already created?
Would be nice to know
Samuel
View Replies !
View Related
How To Create Static Animation From Dynamic Animation?
Hi there.
If I have created a dynamic animation (placing 100 raindrops on a stage using a for-loop), how can I create a static animation out of this that I can use in a animation?
The reason for asking, is that I want to create a flash-video for TV, and for that I can't use movieclips or dynamic content at all...
So I appreciate any help
Samuel
View Replies !
View Related
De Ole "dynamic Resizing Of A Square" ...
I have a square that is being dynamically resized depending on which button is selected. The problem is that when it resizes it resets the original size of the symbol and tweens from that size and not the previous size it had tweened from (Did that make sense?!) So the box jumps between transitions and does not go from dimension to dimension smoothly.
Also I wanted to add some velocity and elasticity to the transitions.
Here's the code on each clip (I'm not a AS guy. I read this in a post and tried it on my own) ....
code:
onClipEvent (enterFrame) {
// Set dimensions and speed and more
w = 200;
h = 150;
xpos = 100;
ypos = 150;
speed = 5;
// Move the thing
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
}
I've included the file in case my assessment of the issue was too confusing.
Looking forward to enlightenment ...
Thanks
View Replies !
View Related
Hovering Help
Hi , i searched kirupa's tutorial database and i found the telltarget's hovering and it's really useful , but there is one problem . Let's say i have a button and a text , if i roll over my button the text will fade in , if i roll out it will fade out . but if i roll over the button again before the fade in and out is completed , it will go back to the starting , is there anyway i can stop this ?
View Replies !
View Related
Hovering Causes Action
Does anyone know how to make it so that when someone moves their mouse over a button it causes a picture to come up and when their mouse moves off it goes back to the original picture.
Seeing it is a lot better than reading my description. Here is a site that I have found that has what i am looking for:
http://www.karimisms.com/index.cfm
Any help would be appreciated
THanks
View Replies !
View Related
Hovering Problem
I don't think I am using levels right.
I have a button with this script:
code: on (rollOver) {
_level1_root.drgmenu.t = 1;
startDrag(_level1_root.drgmenu.handb, true);
Mouse.hide()
}
on (rollOut) {
_level1_root.drgmenu.t = 0;
startDrag(_level1_root.drgmenu.handb, false);
Mouse.show()
}
on (press) {
startDrag(_level1_root.drgmenu);
}
on (release) {
stopDrag();
startDrag(_level1_root.drgmenu.handb, true);
}
and a movieclip that is getting followed when hovered:
code: onClipEvent (enterFrame) {
if (_level1_root.drgmenu.t==1) {
_level1_root.drgmenu.handb._alpha = 90;
} else {
_level1_root.drgmenu.handb._alpha = 0;
}
}
It works when I use it once, but when I have similar movieClip with this in it, it freaks up. I tryed levels, but can't get it right. It works if I use it only once in the movie.
View Replies !
View Related
Hovering Menu
Ok I want to make a really good looking Hovering moneu, one that will go along the left side of my page, I want it to be a symbol in the top left corner, then when hoeverd on to open up vertically with other links, thing is i want it to follow my page everywhere it goes and always stay upper left, so
1) how do i actually make a cool looking logo to be hovered on
2) how do i make it open up on hover with linsk to be clicked
3) how do i make it follow my page all the way up and down
View Replies !
View Related
Hovering Captions
i did a search and found a tutorial on how to create a hovering or floating caption over a button. i used these AS's -
....button...
on (rollOver) {
_root.x = 1;
_root.caption.words = "the words that load into the dynamic text box.";
}
on (rollOut) {
_root.x = 0;
_root.caption.words = " ";
}
....captions movie clip....
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 50;
} else {
this._alpha = 0;
}
}
....first frame of the movie....
startDrag(_root.caption, true);
it doesnt really work though---i think there may be a conflict with instace names and i am going to double check all that after i finish this post. i had it sort-of working at one point but (and this is where my real question lies) - my button is pretty big (a photograph) but i want some way to have the caption follow the mouse so its hovering but i want to constrain its movements, like have an imaginay box constraining where the captions move...i hope this is clear...is there a way to do this...i hop this makes sense. thanks in advance
View Replies !
View Related
[F8] Dim Document When Hovering
i have 4 links arranged on a blank flash document and what i'm trying to figure out is it it's possible to have the whole page dim, when hovering over one of the links, except for the link that's being hovered over. hopefully that makes sense, and thanks for any help, i've been trying to figure this out on me own for about 2 weeks.
sorry about the double post.
View Replies !
View Related
3D Hovering Problem
Hi all,
I've been having a really tricky problem with hover states using papervision 3D. Please have a look at my example here:
http://seo.propserver4.com/_tests/slider_3d.html
It seems to work fine:
When you rollover a block, it lifts and stops the current row from sliding
When you rollout from the block, it drops and the row continues to slide again
But my problem is as follows:
Try rolling-over a block on the nearest row - say the letter "M". Then try rolling over the next block behind it. You should notice that in some cases the block you just rolled off will start bouncing off the mouse cursor before it has chance to fall completely.
Looks kind of annoying doesn't it!
So I tried a whole load of ways to stop this - like creating a dictionary of up/down - lifting/dropping states for each block to try and ignore a block's rollover listener while its dropping, etc.
The problem with this was that because im using a bounce tween, the falling block takes focus 3 or 4 times (as it drops) away from the next block I rolled-over - giving the over all effect of both blocks just dropping
Has anyone come across something similar to this situation? I just want it so that whatever block I rollover - then all others drop and the currently rolled-over block stays up.
Here is a code snippet of my class - the event listeners are as simple as this:
Code:
private function blockOver(e:InteractiveScene3DEvent):void {
var block:DisplayObject3D = e.target.parent as DisplayObject3D;
// Find out which row to pause
var tmp:Array = block.name.split("_");
pauseRow = tmp[1];
Tweener.addTween(block, {
rotationY:90,
time:0.5,
transition:"easeOut"
});
}
private function blockOut(e:InteractiveScene3DEvent):void {
var block:DisplayObject3D = e.target.parent as DisplayObject3D;
pauseRow = -1;
Tweener.addTween(block, {
rotationY:0,
time:1,
transition:"easeOutBounce"
});
}
Many thanks for any help, very much appreciated!
Seb
View Replies !
View Related
Hovering Text
Hello,
I'm trying to create this effect of when you rollover the text the images light up.
http://www.jackmorton.com/us/work/portfolio.asp
Can anyone point me to a good tutorial please?
Many thanks
Rhian
View Replies !
View Related
Hovering Windows
Hello,
I have these opaque thin credit card like graphics which look like they are hovering as they have shadows, but they look so static. I would like it so they look like they are hovering and on roll over move downwards and to the side depending on where and how hard you touch them.
Is there a tutorial for this?
Cheers
View Replies !
View Related
Hovering Motion
I'm having a hard time finding examples or tutorials on making an item look like it's hovering due to the use of the term "hover" when it comes to menus. I'm not trying to do anything menu-related, but what I'm looking for is an example of something like a helicopter or a person with a jetpack on hovering around in the air. I've tried using some motion guides, but it didn't look that realistic. Any suggestions?
View Replies !
View Related
Hovering Captions
Hi,
I was trying to create hovering captions in flash professional 8. I followed the steps given in kirupa and was successfully able to create it. But it doesnt work if I try to create a caption to a button in an already existing file. It only works if I create it in a new file. Can anyone help me with this?
View Replies !
View Related
Hovering Caption
Can someone please help regarding hovering captions? Currently, this is how Iam entering text into the caption. This is from kirupa tutorial. Looks like with this, I can only one line of text into the caption. How can I enter multiple lines of text in the hovering caption?? Thanks in advance!
on (rollOver) {
x = 1;
caption.words = "hello";
}
on (rollOut) {
x = 0;
caption.words = " ";
}
View Replies !
View Related
Hovering Windows
Hello,
I have these opaque thin credit card like graphics which look like they are hovering as they have shadows, but they look so static. I would like it so they look like they are hovering and on roll over move downwards and to the side depending on where and how hard you touch them.
Is there a tutorial for this?
Cheers
View Replies !
View Related
Hovering Effect
Anyone know where I can find a script that will make an mc appear to be hovering? I have looked around and if there are any I can't find them. At least not for what I am looking for.
I guess the effect would look like some anti gravity device is keeping it in the air. It may float left and right up and down but stays in the general area within maybe 10px.
I have been working on a script of my own but it is causing a popup error that wants to know if I want to abort the script. And when I can make that go away the movement is too stiff and harsh.
It'd be great to wrap this script up in a function so I can use it on other timelines for different mc's.
Thanks!!
View Replies !
View Related
Hovering Message Above Button
Hi People!
Does anybody know how to have an object (Graphic, MC, whatever) follow your mouse when you rollover a button.
For example, on some sites, when you rollover a button it will have a message/help tip that hovers over the button, and moves with the mouse as long as the mouse is in the hit state area of the button.
Anybody know how its done?
Cheers.
View Replies !
View Related
Hovering Over Button Issues
In designing buttons for my band's page at
http://www.trollcookies.com/TC/index.html
I've come across an annoying issue.
The buttons are coloured circles and when you hover over them they're supposed to display the text description of that button.
At the moment, only the first and the last circle or set for that.
However, now when I hover over the area where the text is supposed to appear for those descriptions, to the left of the buttons, the text appears as if they're part of the buttons.
I know why this is occuring (I'm putting the text in at the "over" section of the button) but I don't know how to correct it or if there's a better way.
View Replies !
View Related
Flash Hovering Over HTML
How do you make a flash animation, Hoover over HTML
I have seen it on msn.com and dell.com, when you pull up the main page they have a animation that says free shipping, and it hovers over the HTML and show the shadow. Then It gives you a box to close it, many of you have seen this.
thanks
PCRIDE
View Replies !
View Related
Flash Hovering Over HTML
How do you make a flash animation, Hoover over HTML
I have seen it on msn.com and dell.com, when you pull up the main page they have a animation that says free shipping, and it hovers over the HTML and show the shadow. Then It gives you a box to close it, many of you have seen this.
thanks
PCRIDE
View Replies !
View Related
Two Part Hovering Caption
I am trying to make my hovering caption look like it has two parts to it, one that follows the mouse tight and another one that has a delay on it. here is an example of what I want. it is at the bottom of the page when you rollover the icons. the arrow is real tight on the mouse and the box isn't. I know how to make the hovering caption but not how to make it look like that.
View Replies !
View Related
Border When Hovering Over Flash?
Hi, im primarily a mac user and when I look at flash files on most sites on PC when I hover over them a border appears around the flash, like an image with no border="0" tag. How can I fix this?
I noticed i dont see this problem on MiniClip.com.
View Replies !
View Related
Hovering / Floating Button
Hi
Does anyone know how I can make a button appear hovering beside an object when you move your mouse cursor over it?
An example of what I mean can be found here: http://www.ei.be (go the the Menu button, down right and then to ei recepten, click on the fridge to open it. When you move your mouse over the objects, a button appears that says the name of the object)
View Replies !
View Related
Hovering Captions/scene Changes?
hi there, i used the http://www.kirupa.com/developer/mx/captions.htm tutorial on displaying hovering captions, and as you can see, http://abtrock.com/notaloser/site.html << everything went okay.
right now, the preloader, the flatlinefx thing doesnt fill up, but its loading
however, click on the guitar, Keeley, The Severn River Song, or the sailboat. they will all bring you to the same page for now, then press the back button. as soon as you return to the home page, my mc is displayed there, following the mouse with no text in it... as soon as you mouseover a button again, it will perfrom normally...
how can i get it so that after it leaves the scene (keeley) and returns to the home scene, that the mc will not appear following the mouse?
thanks
View Replies !
View Related
Hovering / Floating Button
Hi
Does anyone know how I can make a button appear hovering beside an object when you move your mouse cursor over it?
An example of what I mean can be found here: http://www.ei.be (go the the Menu button, down right and then to ei recepten, click on the fridge to open it. When you move your mouse over the objects, a button appears that says the name of the object)
View Replies !
View Related
Hovering Caption Problem
I'm currently working on a thumbnail gallery for a site and I'm trying to modify the hovering caption tutorial here on kirupa so that I can have the size of the caption box change with the amount of text i have to put in for each thumbnail, but since i'm kinda new to this i'm not really sure how to accomplish this, so help would be extremely nice.
View Replies !
View Related
Hovering Caption Problem
I followed the online tutorial for making hovering captions, and everything is working great except for one little problem....
I have six buttons, each needing to say something different. The first one says what I want it to say: "News"
But the other five say "word!" which was the word the tutorial uses in the actionscript.
Please help me if you can.
View Replies !
View Related
Movie And Hovering Caption
Ok, I feel really dumb, but I have tried a bunch of different stuff to try and fix this, and I keep getting the same results :-
I have a movie playing. It just loops forever within the scene. I NEED to have a caption hover over the movie. Details about when it shows up and leaves and stuff is under-control for me. My problem is that I cannot seem to get the hovering capture movie to show up ABOVE the other movie that is playing (and also dynamically loading jpgs in case you were interested).
I have tried swapping the depth. Even if the caption movie is smaller than the other movie, it is the only thing that shows up. Without swapping depths, the caption movie seems to play perfectly, with the exception that it is doing everything BEHIND the movie that it should be in FRONT of.
Seems like there should be an easy solution, and I keep not getting it. I hope I made sense. If you need clarification, please ask. Thanks in advance!
View Replies !
View Related
Hovering Captions/scene Changes?
hi there, i used the http://www.kirupa.com/developer/mx/captions.htm tutorial on displaying hovering captions, and as you can see, http://abtrock.com/notaloser/site.html << everything went okay.
right now, the preloader, the flatlinefx thing doesnt fill up, but its loading
however, click on the guitar, Keeley, The Severn River Song, or the sailboat. they will all bring you to the same page for now, then press the back button. as soon as you return to the home page, my mc is displayed there, following the mouse with no text in it... as soon as you mouseover a button again, it will perfrom normally...
how can i get it so that after it leaves the scene (keeley) and returns to the home scene, that the mc will not appear following the mouse?
thanks
View Replies !
View Related
Hovering / Floating Button
Hi
Does anyone know how I can make a button appear hovering beside an object when you move your mouse cursor over it?
An example of what I mean can be found here: http://www.ei.be (go the the Menu button, down right and then to ei recepten, click on the fridge to open it. When you move your mouse over the objects, a button appears that says the name of the object)
View Replies !
View Related
Changing Images From Hovering Over Buttons
Hi... relitive newbie to flash and this may sound like an easy task..
i have a flash page with a number of buttons. What I want to happen is when i hover over a button a corrasponding image should appear on a diferent area of the screen and then disapear again once ive move the cursor away from the button?
Any ideas..seen it done many times just need to know how?
cheers
JJ
View Replies !
View Related
|