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




Gravity Type Effect



I'm trying to do a navigation effect and I can't seem to get an great idea how to do it. The effect is a set of movie clips that are close together and when you roll over one it scales. as it scales the other ones move away from it/ stay the same distance from its edges. The only was I can think of doing this is using multple registration points but you cant do that.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 11-30-2006, 12:15 PM


View Complete Forum Thread with Replies

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

Gravity, Mouse Follow Type Effect...
http://www.bobscube.com

Quite a nifty site, i'm guessing its one really hi-res image, how do you program in the mouse movements and so on in flash?
Cheers!
Owen

Spaced Penguin Type Gravity
Hello to all.
I have been pondering recently on how to have multiple forces affect an entity, as can be best represented in the minigame Spaced Penguin!

I've read Senocular's marvelous tutorial on trigonometry, and pom's amazing gravity tutorial. These got me started.

This is what I am able to do: make things rotate according to a dynamically changing point (the mouse, in this case). The following will help in making a .fla file just like I did, for lack of server space to host files...

Use the following for the movie clip "octo", placed on the stage, which has a visible shape (in my case an octogon) and a dynamic textfield named txtWho.

Code:
onClipEvent (load) {
f = 1;
r = 0.07;
vf = 40;
vt = 0;
rayonr = 80;
Z = false;
cptr = 0;
jo = 0;
}
onClipEvent (enterFrame) {
if (Z && this._name != "octo") {
this.angler = this.angler+10;
if (this.angler>360) {
this.angler = this.angler-360;
}
rad_angler = this.angler*Math.PI/180;
Yr = _global.Yinit+(rayonr*Math.cos(rad_angler));
Xr = _global.Xinit+(rayonr*Math.sin(rad_angler));
this._x = Xr;
this._y = Yr;
vt = vt*f+(vf-this.rayonr)*r;
this.rayonr += vt;
this.rayonr = Math.round(this.rayonr);

if (this.rayonr == 0 && this._name == "octo1") {
_root["octo"+cptr].swapDepths(10);
for(j=0;j<10;j++){
_root["octo"+j].gotoAndStop(1);
}
_root["octo"+cptr].gotoAndStop(2);
jo++;
} else {
if (jo>0) {
jo = 0;
cptr++;
if (cptr>9) {
cptr = 0;
}
}
}
}
}
onClipEvent (mouseUp) {
this.Z = !this.Z;
}
And the following for the root actions (the first frame code):

Code:
stop();
onLoad = function(){
froot = 1;//0.9;
rroot = 0.03;
_global.Yinit = _root.octo._y;
_global.Xinit = _root.octo._x;
xt = 0;
yt = 0;
}
Mouse.hide();
_global.angle = 0;
for (i=0; i<10; i++) {
this.octo.duplicateMovieClip("octo"+i, 10-i);
//Placer les Mc selon l'équation d'un cercle...
_global.angle = (i)*36;
rad_angle = _global.angle*Math.PI/180;
rayon = 80;
Y = 200+(rayon*Math.cos(rad_angle));
X = 275+(rayon*Math.sin(rad_angle));
_root["octo"+i].angler = _global.angle;
//trace(_root["octo"+i].angler);
_root["octo"+i]._x = X;
_root["octo"+i]._y = Y;
_root["octo"+i].txtWhat.text = ":"+i+":";
}
onMouseMove = function(){
//_global.Yinit =
_root.octo._y = _root._ymouse;
//_global.Xinit =
_root.octo._x = _root._xmouse;
updateAfterEvent();
}

onEnterFrame = function(){
xt = xt * froot + ( _root._xmouse - _global.Xinit ) * rroot;
yt = yt * froot + ( _root._ymouse - _global.Yinit ) * rroot;
_global.Xinit += xt ;
_global.Yinit += yt;
}
If you'd copy-paste these things in the right place,
you'd get what I'm up to right now in my "exploration" of trigonometry and forces, which is actually pretty limited, in my honest opinion.

Now, what I want to do is simple.
Like the aforementionned minigame, I want to be able to place "points" (or movie clips), each with their own "force" (gravity), and have a moving element affected by the different gravities of those elements.

Thanks for your help and pointers.

Spaced Penguin Type Gravity
Hello to all.
I have been pondering recently on how to have multiple forces affect an entity, as can be best represented in the minigame Spaced Penguin!

I've read Senocular's marvelous tutorial on trigonometry, and pom's amazing gravity tutorial. These got me started.

This is what I am able to do: make things rotate according to a dynamically changing point (the mouse, in this case). The following will help in making a .fla file just like I did, for lack of server space to host files...

Use the following for the movie clip "octo", placed on the stage, which has a visible shape (in my case an octogon) and a dynamic textfield named txtWho.

Code:
onClipEvent (load) {
f = 1;
r = 0.07;
vf = 40;
vt = 0;
rayonr = 80;
Z = false;
cptr = 0;
jo = 0;
}
onClipEvent (enterFrame) {
if (Z && this._name != "octo") {
this.angler = this.angler+10;
if (this.angler>360) {
this.angler = this.angler-360;
}
rad_angler = this.angler*Math.PI/180;
Yr = _global.Yinit+(rayonr*Math.cos(rad_angler));
Xr = _global.Xinit+(rayonr*Math.sin(rad_angler));
this._x = Xr;
this._y = Yr;
vt = vt*f+(vf-this.rayonr)*r;
this.rayonr += vt;
this.rayonr = Math.round(this.rayonr);

if (this.rayonr == 0 && this._name == "octo1") {
_root["octo"+cptr].swapDepths(10);
for(j=0;j<10;j++){
_root["octo"+j].gotoAndStop(1);
}
_root["octo"+cptr].gotoAndStop(2);
jo++;
} else {
if (jo>0) {
jo = 0;
cptr++;
if (cptr>9) {
cptr = 0;
}
}
}
}
}
onClipEvent (mouseUp) {
this.Z = !this.Z;
}
And the following for the root actions (the first frame code):

Code:
stop();
onLoad = function(){
froot = 1;//0.9;
rroot = 0.03;
_global.Yinit = _root.octo._y;
_global.Xinit = _root.octo._x;
xt = 0;
yt = 0;
}
Mouse.hide();
_global.angle = 0;
for (i=0; i<10; i++) {
this.octo.duplicateMovieClip("octo"+i, 10-i);
//Placer les Mc selon l'équation d'un cercle...
_global.angle = (i)*36;
rad_angle = _global.angle*Math.PI/180;
rayon = 80;
Y = 200+(rayon*Math.cos(rad_angle));
X = 275+(rayon*Math.sin(rad_angle));
_root["octo"+i].angler = _global.angle;
//trace(_root["octo"+i].angler);
_root["octo"+i]._x = X;
_root["octo"+i]._y = Y;
_root["octo"+i].txtWhat.text = ":"+i+":";
}
onMouseMove = function(){
//_global.Yinit =
_root.octo._y = _root._ymouse;
//_global.Xinit =
_root.octo._x = _root._xmouse;
updateAfterEvent();
}

onEnterFrame = function(){
xt = xt * froot + ( _root._xmouse - _global.Xinit ) * rroot;
yt = yt * froot + ( _root._ymouse - _global.Yinit ) * rroot;
_global.Xinit += xt ;
_global.Yinit += yt;
}
If you'd copy-paste these things in the right place,
you'd get what I'm up to right now in my "exploration" of trigonometry and forces, which is actually pretty limited, in my honest opinion.

Now, what I want to do is simple.
Like the aforementionned minigame, I want to be able to place "points" (or movie clips), each with their own "force" (gravity), and have a moving element affected by the different gravities of those elements.

Thanks for your help and pointers.

Gravity Effect
Hello fellas,
I am pretty new in flash and try and come with my own idea..but the fact that flashkit is such a helpful resource for new flash players you tend to learn from exp designers.

I have a query about the gravity look.
I am not too sure how to explain it.but the look somewhat goes like this:

Lets say you have a object and you want that object to come in slowly and then leave fast.

Example:http://www.nethead.com.au/

IF you see the way the text come and go.I know I can do that by controlling the motion tween.But it doesnt seem to give me the same effect.If someone could explain or send me a .swf it would be really helpful.

Thanking to all you gurus in advance
__________________
Forget the past and create the future..
Futute is the game we all look forward to play..

Gravity Effect
how do u make a spaceship in a game like the helicopter game on addictinggames.com, where the helicopter automatically falls down (a gravity effect)

Gravity Effect
Does anyone know how to make the gravity effect that they have on this page . (http://volumeone.com/seasons/17/index.html)

I use to have the script but stupid me, i joined the army for 3 years and lost everything. Can someone help me please.

thanks
Donald

Gravity/bouncy Effect
I'm putting together a slide show and upon each click of the button as the image slides into place I want it to bounce or have some sort of gravity effect on it. Can anyone help me with this? I've searched around and found various bouncy tutorials but none that are applied they way I need it.

I'm working with Flash MX 2004

Thanks in advanced
MC

Gravity Bounce Effect On Button
Hiya,

I'm just messing with some code from tutorials to get the jist of how to create a bounce effect and i've finally understood the actual bounce effect itself, but how can i apply this so that when the button is clicked the MC launches into that "bounce" effect?

This is the code i have used from a tutorial i have found on here:


PHP Code:




onClipEvent(load){
velocity = 0
gravity = 2
friction = 0.01
}
onClipEvent(enterFrame){
velocity += gravity
velocity -= friction*velocity
_y += velocity
if(_y>_root.floor._y){
_y = _root.floor._y
velocity *= -0.9
}
}

[MX04] Gravity Effect Problems
Hey, flash newbie here.

For a school project we're making games in either Actionscript or GML. GML is completely stupid and incredibly boring so i'm doing Actionscript.

Basically, I need a gravity system. I have no past experience in Actionscript so this is proving rather difficult for me...

So far I have this:

stop();

onLoad = function () {
_global.control = 1;
gravity = 1;
}

onEnterFrame = function () {
while(control = 1) {
ball.yv += gravity;
}
}

Basically, the control variable controls whether the player has control of the character or not. Gravity is a variable for me so that I can control just how much gravity there is when i'm play testing.

My game involves controlling a ball with the arrow keys to get it to a finish line while avoiding walls. The ball will be acted on by gravity however the player can counteract this by using the up key. The player can also move the ball left and right using the left and right arrows.

My first aim is to get the gravity working. When I run the game like this I just crash flash (Script causing flash to run slowly terminate it? etc etc).

Can someone help me or modify the script so that the gravity is working?

(P.S: I don't think onEnterFrame is the right on controller since theres only one frame... is this causing it?)

Fancy Box Type Moving Graphic Type Cool Efect But Im To Dumb Type Thingy
i am tring to make a box thinky simaler to the one on www.starvingeyes.com but cant even work out how to start it. is there anyone who can point me in the right direction or to a tutorial ?

the box has a graphic inside a grided box the sections of the graphic fade in and out as the mouse goes over them and displays random sections when the user is not moving the mouse over the box

i did find java tutorials for this effect but would much preffer it to come from flash as java is a bugger to get working on some machines

Any way thanks in advance for any help

Steven Green one_mad_punk@yahoo.co.uk

The Ol' Type Effect
how do i create a text-box that gives tekst in type-style or something like that...?

why?

'cause I've got loads of text and I want it in a little box...
so the sentences must come and go if you know what I mean..

thx,

TheNymf

Type Effect
is there an easy way to create the effect of letters being typed on screen?

Thanks

Type Of Effect
How can I get the effect that the lines are being drawn.
Here's an example of what I mean: http://www.drivethrurecords.com/ther...old/movie.html
Thanks.

'alt Tag' Type Effect
i am sure i have seen a tutorial for this somewhere - but i dont know what search terms to use to find it

what i want is that when i roll over a button - i get a window pop up next to my cursor with a description inside it - and that window should follow the position of my mouse - so it is not simply defined in the 'over' state of the button - so it reacts to the movement of my cursor when i am hovering over a particular button.

ideally i want to add this to every button on the site and perhaps even add images (although this is not necessary

any help much welcome

i am on flash mx only

How To Do This Type Of Effect...
I need to do something that sounds like this..

I am pulling the data from XML..

then looping through creating movie clips.... NOW.. what i need is somethign to reorder them depending on certain attributes from the xml..

so if they are for example thumbnails of pics.. when i click on order by DATE.. they will all reassamble modifying each of thumbs position on order by date.. if i click by category.. or if i select by rating.. etc.

anyone know how i can do that??? plzz a tut would be the best for somthing like that or similar.. thanks alot

Anyone Know A Tutorial For This Type Of Effect?
http://www.flashkit.com/movies/Inter...77/index.shtml

Creating A Type Effect
Does anyone know anything about creating a typewriter effect? I´d appreciate it if someone could help me out. Thanks!

Type Out Effect As Movieclip
Following the typeout tutorial on this site, I have first frame actions


PHP Code:



var ctext = ""
var text = "Text"




Second frame actions


PHP Code:



var ctext = ctext + text.substring(0,1)
text = text.substring(1)




Third frame actions


PHP Code:



var ctext = ctext+text.substring(0, 1); text = text.substring(1); gotoAndPlay (2);




But in a movie clip that doesn't work. Can you tell me why and how to get the same effect in a movie clip?

What Type Of Menu Effect Is This?
where can i find actionscript code on how to create one of those menus that automatically pan the menu selections/buttons left and right based on what direction you point your mouse? kinda like a navigation menu but when you hover your mouse over the left side, all the images/buttons scroll to the left and vice versa?

does this make sense? they have it on a lotta websites out there....is there a tutorial on how to create this effect?

Does Anyone Know How To Achieve This Type Off Effect?
Does anyone know how to achieve this type off effect? I first witnessed it here at the constantine movie website.
http://constantinemovie.warnerbros.com/
After you skip the intro click on a button at the top and the transition between pages consists of a wicked masking effect but cant figure out how the fluid motion was achieved.
Any info on this would be greatly appreciated.

Accordion Type Like Effect
check out this link
http://music.msn.com/music/newthisweek

when you rollover the pictures, they slide like an accordion type of effect,

can anyone help me with creating this type of effect or similar ?

Thanks in advance.

Type Writer Effect
Hi !

I found a typwriter that works good and you can set the speed to it.Cool! but i wonde if some one can help me whith making buttoms thae change the text and not continuing vriting wer the pre text stoped.


/M

Anyone Know How This Type Of Effect Has Been Accomplished?
I have seen this fold type effect before, any ideas how it has been done. I cannot imagine this has been done using tweening, but if sopmeone can prove me wrong please expand.

Cheers

Trev

Effect.

http://www.primevents.pt/

Computer Type Effect
Im trying to create a dynamic text typing effect that will type the text from a variable like a computer with a cursor in front of the text.

There's a dynamic textbox with variable field on stage
cursor is a blinking rectangular movie clip designed to precede the text.

Here's the code I got so far:

Code:
field = "";
startx = 13;
i = 0;
msg1 = "Connecting... ";
_root.onEnterFrame = function() {
field += msg1.charAt(i);
startx = startx+30;
i++;
cursor._x = startx;
};
With this code, the cursor follows the text but keeps on going after msg1 has been typed out.
1. How can I get it to stop typing when its finished the message?

2.Also, is there a way to slow the text typing down? Make it so there is a slight delay between each character typed?

p.s. how do I wrap actionscript tags around text?

Type Writter Effect
Hey all i didnt get any help on my other post but i figured it out i searched for this but i cant find any thing good cany any one tell me the action script to just do a type writter effect

Type Writer Effect
Hi !

I found a typwriter that works good and you can set the speed to it.Cool! but i wonde if some one can help me whith making buttoms thae change the text and not continuing vriting wer the pre text stoped.


/M

Fountain Type Effect
i'm looking for this flash effect...its kind of like a fountain ...it spurts out random little orb things

ive seen this so many times...cant remember the site(s)

the orbs kind of glow ... i just want them to shoot out of a central location randomly and then curve away and fade (my AS math sucks otherwise i would write it myself )

anyone know the site?

Actionscript Only Text Type Out Effect?
Someone fluent in actionscript will know this....and I'd appreciate the help...

Using actionscript only and NOT linear animation OR masks...how can I accomplish a text type out effect? Where each letter is revealed in sequence and types out the phrase I determine? Anyone know the code for this...

Star Wars Type Effect
Heys Guys,

I just joined Flash kit today with the hopes that I might be able to gain more information on Flash etc. Right now I seem to be having troubles with Flash Typing Effects. What I really want to do now I just make a stars type of text effect that kind of leans. I know its possible because Ive seen it done and I figured that many of you in this forum appear to be very intelligent when it comes to flash (=

So any help I can get will be very......ah helpful.

Thanks

Chris

Could Anyone Help On How To Create This Type Of Effect In The Movie?
Hi everyone,

could anyone help on how to create this type of effect in the movie? Im trying to acheive the same effect as this site's banner. http://www.explosiveskating.ca/index3.htm

Thanks so much,Nikita

Lexus Website Type Effect Help
http://lexus.teamoneadv.com/minorityreport/

need to create a in-line text effect like the one used at the above link.

Any suggestions on how this was done and how I can I do something like that Lexus example....

Random Tween Effect(type) - Is It Possible?
HI All
I have some 50 mc's on stage, and wondered if its possible to have the motion (e.g _x,_y,_alpha) be random.
For example:
say i had
==============
import mx.transitions.Tween;
import mx.transitions.easing.*;
var Eq = [mx.transitions.easing.Back.easeIn, mx.transitions.easing.Back.easeOut, mx.transitions.easing.Back.easeInOut, mx.transitions.easing.Bounce.easeIn, mx.transitions.easing.Bounce.easeOut, mx.transitions.easing.Bounce.easeInOut, mx.transitions.easing.Elastic.easeIn, mx.transitions.easing.Elastic.easeOut, mx.transitions.easing.Elastic.easeInOut, mx.transitions.easing.Regular.easeIn, mx.transitions.easing.Regular.easeOut, mx.transitions.easing.Regular.easeInOut, mx.transitions.easing.Strong.easeIn, mx.transitions.easing.Strong.easeOut, mx.transitions.easing.Strong.easeInOut, mx.transitions.easing.None.easeIn, mx.transitions.easing.None.easeOut, mx.transitions.easing.None.easeInOut];

and then i had
new Tween(target_mc, "_x", Eq[Math.random()*18), x1, x2, t, true);

Is there any reason i could not have this?? (i just cant seem to get it to work. :-(

It makes the whole project seem more organic having a random effect rather then fixing the tween as
"new Tween(target_mc, "_x", Regular.easeOut, x1, x2, t, true);"

-Regards
Craig

Please Identify This Effect/movie Type
Hi all,

The allmusic.com site has a cool little Flash doodad - here is the direct link to it:
http://www.allmusic.com//html/lib/spinner.swf

I would love to learn how to create similar effects but can't find anything on this... mostly because I have no idea what I'm looking for being rather new to Flash.

Can someone please steer me to a tutorial or an related info on creating a similar object?

Thanks!
Dodge

[f8] CPU Max - Random Snow Type Effect...
Hey I'm using a snow type effect in actionscript with is continuously playing I've noticed it will slow the whole movie down BIG time.. Is there a solution to this? Or should I just forget my little floaty things? haha

How To Create This Type Of Effect (perspective)
I have bieng searching the net for almost 3 hours and found nothing regarding to this, maybe im not sure what it is called. http://comic.makibishi.co.jp/

i would liek to have a simple way to do it, other than decompiling it and trying to figure out, how to do it with a load of junk actionscript, i would highly appreciate any help available. sob.

Reverse Type Text Effect
Hi ultrashockers,

A good number of submarine fiber cables have been destroied in the earthquake happened to Taiwan last week, since then accessing foreign websites became nearly a "mission impossible".

Finally the recent couple of days we can visit some foriegn websites, like ultrashock though the top navigation took me like 2 mins to load.

And it took me like 10 mins to reach this page.

I come to the point since the pipe is crowded (with only one fixed cable, billions users from china are crowded through it to the west infohighway.

Here is the thing, I use substring to create that kind of type effect and and reverse type effect. And added 2 buttons on teh stage one to "type" and one to "erase" (this is the reverse type).

My issue is: it all works fine the first time, I click on "type" to start type and click on "Erase it" to erase the string. but after that, those buttons seem not working anymore why?

here is the code and the fla file.


ActionScript Code:
var str:String = "Try some of the type effect! This is one of the most commonly ... blah. ";
var count:Number = 0;
var l:Number = 200;
var t:Number = 20;
var speed:Number = 3;
 
this.createEmptyMovieClip("btn", 1);
btn.moveTo(l,t);
btn.createTextField("typetxt", 0, l, t, 200, 100);
btn.typetxt.wordWrap = true;
 
function type():Void
{
    if(count<str.length)
    {
        btn.typetxt.text = str.substring(0, count);
        count += speed;
    }
    else
    {
        clearInterval(typeInt);
    }
}
 
function erase():Void
{
    if(str.length > 0)
    {
        str = str.substring(0, str.length - 3);
        btn.typetxt.text = str;
    }
    else
    {
        clearInterval(eraseInt);
    }
}
 
btn1.onRelease = function()
{
    type();
    var typeInt = setInterval(type, 30);
    trace(btn.typetxt.text);
}
 
btn2.onRelease = function()
{
    erase();
    var eraseInt = setInterval(erase, 30);
    trace(btn.typetxt.text);
}


http://www.keyframe1.com/tmp/test_type.fla

Appreciate it if anyone got the time to have a look at them.

happy new year!

- mark

An Idea For A Cool Type Effect
I havent seen it around, and tried to pull it off but failed miserably.
The idea was, to type in a input textField with a gradient background as the bodytext instead of one static color.

Flashtyper Type Text Effect Inside A Mc?
Hello,
I need some help here, I'm trying to make a text effect that I downloaded as an fla from the flashkit Flashtyper text effects index, which means it's bascially actionscript based and is modified through variables.
Anyway, I'm trying to make this text effect a movie clip, which means I'd have to change paths to variables.
So, instead of having (in frame 3)

Quote:




duplicateMovieClip ("char", "char" add i, i);
set ("/char" add i add "/letter:char", substring(text, i, 1));
setProperty ("/char" add i, _x, 100+Number(i*kerning));
setProperty ("/char" add i, _xscale, 10*size);
setProperty ("/char" add i, _yscale, 10*size);
i = Number(i)+1;




I'd have

Quote:




duplicateMovieClip ("char", "char" add i, i);
set ("/txt1/char" add i add "/txt1/letter:char", substring(text, i, 1));
setProperty ("/txt1/char" add i, _x, 100+Number(i*kerning));
setProperty ("/txt1/char" add i, _xscale, 10*size);
setProperty ("/txt1/char" add i, _yscale, 10*size);
i = Number(i)+1;




"txt1" being the name of my movie clip. Somehow, this won't work. the text effect will be ok, its length too, but the text itself, which is determined by a variable, shows up as "wwwwwwwww".
This doesn't make sense at all I guess; but I was hoping someone might know this problem and be kind enough t opoint it out, or have a look at the fla.
Thanks in advance,
Laz.

Creating OS X Dosk-type Effect Using Shape
I'm looking to create an effect similar to how the dock grows in OS X when a user rolls over a particular area of a gradient. Basically, I'd like to draw a gradient on the bottom of the stage, then depending on where the user moves the mouse, the top path of the gradient bows out a bit to follow the mouse's x location.

Has anyone seen any sample code to create this type of effect or done anything similar? If not, can anyone help me get started?

Thanks!

Creating OS X Dock-type Effect Using A Shape
I'm looking to create an effect similar to how the dock grows in OS X when a user rolls over a particular area of a gradient. Basically, I'd like to draw a gradient on the bottom of the stage, then depending on where the user moves the mouse, the top path of the gradient bows out a bit to follow the mouse's x location.

Has anyone seen any sample code to create this type of effect or done anything similar? If not, can anyone help me get started?

Thanks!

Wave Type Effect I Like, And Maybe Good For Buttons
Hi all I have found this site that looks really cool, well especially the wave type effect, how was it achieved in flash I would really like an explination of the techneque if anyone knows?

here is the link

http://shanshui.de/

Thank you.

Moving Mouse In X Y For Quicktime Vr Type Effect
Hi i am new here and need help badly.

I am trying to shocase my sculptures in flash (similar to a quicktime vr )

Basicly i want to load 20 images of my model (a spin of 360 degrees). Then create a actionscript that will scrub through the timeline back and forth when i move the mouse lefta and right.

Gota be in soon ( uniproject ) please help

Louis

Wave Type Effect I Like, And Maybe Good For Buttons
Hi all I have found this site that looks really cool, well especially the wave type effect, how was it achieved in flash I would really like an explination of the techneque if anyone knows?

here is the link

http://shanshui.de/

Thank you.

Moving Mouse In X Y For Quicktime Vr Type Effect
Hi i am new here and need help badly.

I am trying to shocase my sculptures in flash (similar to a quicktime vr )

Basicly i want to load 20 images of my model (a spin of 360 degrees). Then create a actionscript that will scrub through the timeline back and forth when i move the mouse lefta and right.

Gota be in soon ( uniproject ) please help

Louis

Mac OS X Dock-type Effect By Drawing A Shape
I'm looking to create an effect similar to how the dock grows in OS X when a user rolls over a particular area of a gradient. Basically, I'd like to draw a gradient on the bottom of the stage, then depending on where the user moves the mouse, the top path of the gradient bows out a bit to follow the mouse's x location.

Has anyone seen any sample code to create this type of effect or done anything similar? If not, can anyone help me get started?

Thanks!

HELP Any One Know How To Create The Apple Type Image Rolling Effect?
I really like the rolling effect from the big site such as Apple and abc.

Ex:
http://abc.go.com/site/allshows.html...lpos=Primetime

Does anyone know how? Also I am looking for good advanced Flash Mx classes. Could someone let me know if you have attend some good classes on line or in person?

Thank you!!

XML Text With Html Characters Won't Load In Type Effect
Hi there,

I'm having some issues with loading text from a XML file into a textfield with a 'type-ffect'.
The text should have 2 different sizes, so that's why I'm using the <![CDATA[ tags in XML in order to use the <font size="14"> tags in the nodes.

Loading htmltext from a XML file is something I've done a lot of times before.
So I'm not sure why this isn't working.
When I put this line in my AS: QuoteTxt.html = true;
I just get an underscore as text, when I remove this line, the text loads fine but the html tags won't get recognized in flash.

My guess is it has something to do with the 'type-effect' or with the createTextField syntax.
Could somebody take a look to see what's wrong?

Many thanks!

This is my AS:

PHP Code:




// XML laden
mdXML = new XML();
mdXML.ignoreWhite = true;
mdXML.onLoad = function (success){
    if (success){
        but1.txt.text = mdXML.firstChild.childNodes[1].attributes.kop;
        but2.txt.text = mdXML.firstChild.childNodes[2].attributes.kop;
        but3.txt.text = mdXML.firstChild.childNodes[3].attributes.kop;
        random_quote();
    }
    else{
        trace("The XML could not be loaded");
    }
}
mdXML.load("content/content.xml");

// Load random quote
function random_quote() {
    var quote = mdXML.firstChild.childNodes[0].childNodes[0];
    total = quote.childNodes.length;
    var random_quote = quote.childNodes[random(total)].firstChild.nodeValue;
    
    clearInterval(intID);
    nTxt = random_quote;
    intID = setInterval(doTxt, 50);
}


// Type Effect
var nTxt;
var format = new TextFormat();
format.color = 0xFFFFFF;
format.align = "left";
format.font = "Century Gothic";
format.size = 24;
this.createTextField("QuoteTxt", this.getNextHighestDepth(), 520, 123, 350, 0);
QuoteTxt.html = true;
QuoteTxt.embedFonts = true;
QuoteTxt.wordWrap = true;
QuoteTxt.multiline = true;
QuoteTxt.autoSize = true;
QuoteTxt.setNewTextFormat(format);
//
var format2 = new TextFormat();
format2.color = 0xFFFFFF;
format2.size = format.size;
//    
QuoteTxt.htmlText = "_";
QuoteTxt.setTextFormat(QuoteTxt.htmlText.length - 1, QuoteTxt.htmlText.length, format2);
var intID = setInterval(doBlink, 500);
//
function doBlink() {
    format2.size = (format2.size != format.size) ? format.size : 2;
    QuoteTxt.setTextFormat(QuoteTxt.htmlText.length - 1, QuoteTxt.htmlText.length, format2);
}
function doTxt() {
    QuoteTxt.htmlText = QuoteTxt.htmlText.slice(0, -1) + nTxt.slice(0, 1) + "_";
    QuoteTxt.setTextFormat(QuoteTxt.htmlText.length - 1, QuoteTxt.htmlText.length, format2);
    nTxt = nTxt.slice(1);
    if (nTxt.length == 0) {
        clearInterval(intID);
        intID = setInterval(doBlink, 500);
    }
}







And my XML:

PHP Code:




<?xml version="1.0" encoding="utf-8"?>

<content>

    <home>
        <quotes>
            <quote><![CDATA[Large text]]></quote>
            <quote><![CDATA[Large text<font size="14">Small text</font>]]></quote>
            <quote><![CDATA[Large text<font size="14">Small text</font>]]></quote>
        </quotes>
    </home>
    
    <wat kop="wat doet">
        <text>Some text</text>
    </wat>
    
    <wie kop="wie is">
        <text>Some text</text>
        <image>content/images/image.jpg</image>
    </wie>
    
    <contact kop="contact">
        <text><![CDATA[
<a href="mailto:mail@mydomain.com">mail@mydomain.com</a>]]></text>
    </contact>

</content>

Here's A Simple Type Writer Effect I Wrote FREE
just plop this into your actions layer and let her rip.


ActionScript Code:
function typeWriter(s:String, obj:Object, ms:Number):Void
{
    var chPos:Number = 0;
    var k:Number = s.length;
    function addChar():Void
    {
        obj.text += s.charAt(chPos);
        chPos++;
        if (chPos >= k) clearInterval(myInt);
    }
    var myInt = setInterval(addChar, ms);
}
str = "I was once a young man wandering on my own two feet in the upscale town of brooklyn. Those were the days, let me tell ya!";
typeWriter(str, myText, 15);

Documentation...

typeWriter(s, obj, ms) returns nothing

s is the string you are "typing". obj is the path to the text box you want to type in. (Note: Do not include the .text suffix, as the function handles that by itself). and ms is the milisecond value for how long to wait before typing the next letter. the smaller the number the faster the typing.

Enjoy!

Guitar Hero Type Note Effect In Flash
For a current project I am working on in a 3ds Max animation class I decided to do a little Guitar Hero video. I'm pretty ahead of my class and wanted to take this a step further and simulate the rest of the guitar hero interface since i have the time.

I've modeled My guitarists and his guitar and I'm ready to animate him but I wanted to write the chart first in flash and then I'll just match up keyframes to synch it

I already wrote out my chart sheet for the song I chose and know the general layout as far as beats per minute for the song.

At the moment I used probably the most primitive form to get the falling effect the way I wanted by cutting my scene into even portions and then placing all of my notes and just adjusting them every few frames for basically a stop motion effect

I originally wanted to go inside my notes and put a motion tween so I could just place the notes at the top of the screen and let them fall but with tempos ranging from 190-100 and quite a few freetimed parts in the song I was having a lot of issues with notes falling at the wrong time and it seemed like a pretty uphill battle. That's when I started with the stop motion idea

At the moment I'm using a 1min 10 sec mp3 and moving at 30fps

I've already converted the beats per minute to frames per second and most of the music is in synch.

What I really need help in are the parts of the song where The guitarists holds on for fermatas or retards a section.


This is not going to be an interactive interface

In the end this will just be a short movie showing off my 3d animation and how I integrated flash into my project.

The main idea is to figure out the keyframes so I can correctly match up my character animations to the chart and I'm currently running out of ideas. Unfortunately the flash instructors at my campus aren't sure how I should approach it and I'm only really finding examples of lip synching from my searches.

I thought of bringing it into 3dsmax but I've been warned a few times that I might have some issues bring sounds into max and getting the results I want.

If you can help at all or have any suggestions I'd be glad to hear them.

I will check back on this post the next few days or if you'd like I can be emailed at DScarlatella@yahoo.com

Thanks for your help

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