RE: Flash Q&A thread 2 ** checked everyday (Full Version)

All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy



Message


swenn -> RE: Flash Q&A thread 2 ** checked everyday (4/23/2006 15:02:51)

wel i really need this code so if someone could make it for me(i'm not lazy i just really need it) and i don;t have real time to learn actionscript but i wil try




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/23/2006 15:58:07)

but I already told you that:
mc1.onRelease=mc2.onRelease=yourFunction




mathus the seconth -> RE: Flash Q&A thread 2 ** checked everyday (4/23/2006 17:39:20)

OK 2 things in ths post.

1• i found out how to do the F in ƒlash without an image!

just hold ALT and type 159 in the num pad! you get an ƒ


2•I need ANYONE who can volunteer to help me make a DJ mixer in flash (you will get credit)

i need to know how to make the disc spin with the mouse when you click on it (like you scratching the disc on a turtable)(SERIOUS MATH CODING, ive been trying to GET IT FOR A WEEK!!! (my brain still hurts)(pi,pi,pi,atan2,atan2,atan2)

How DO YOU MAKE BUTTONS (not movie clips) PLAY SOUND WHEN YOU CLICK ON THEM?!?![:@](Sorry lbb fo using that smiley again)

and how do you make the volume and pan controls


[sm=sad-smiley-006.gif][sm=icon_confused.gif]what did i just say again?






somebody621 -> RE: Flash Q&A thread 2 ** checked everyday (4/23/2006 18:54:49)

Serious math coding? It's not to hard to do that in ƒlash. lol. movieclip._rotation = Math.atan2(_ymouse - movieclip._y, _xmouse - movieclip._x) * (180/Math.PI);
decided to spare you some effort. Well, you get the idea.




swenn -> RE: Flash Q&A thread 2 ** checked everyday (4/24/2006 6:24:17)

sorry i;m so annoying but i dont get where do i put the code? i have this:

onClipEvent(enterFrame){
move();
}mc1.onRelease=mc2.onRelease=gotoAndPlay(40);




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/24/2006 15:51:29)

swenn: lol, you're not annoying[;)]since it's a onClipEvent haandler, put it on a movieClip
you can't add mc1.onRelease=mc2.onRelease=gotoAndPlay(40); after, you must put it on the main frame:
mc1.onRelease=mc2.onRelease=gotoAndPlay(40);
mc1 is the first movieClip's instance name and mc2 is the second one's

mathus the seconth: if you want to play a sound when you click a button, put this on the main frame of the movie:
//since most of peoples use Flash7 or up, I'll use AS 2.0
//declare a new sound object, bt_sound
var bt_sound:Sound=new Sound()
//attach the sound, bt_sound2 is a linkage name in the library. Right click your mouse and choose linkage, export it on the first frame
bt_sound.attachSound("bt_sound2")
//my_bt is the instance name of a button on _root(the main movie)
_root.my_bt.onRelease=function(){
//Sound.start method let you play the sound, the first 1 is where you want to start the sound, the second 1 is the time that you want to loop the sound
    bt_sound.start(1,1)
}




Darklord517 -> RE: Flash Q&A thread 2 ** checked everyday (4/24/2006 16:21:12)

If you have a current variable. How would you show it?

EG.

on(release){
_root.gold=""-50;
}

I need the "" to represent my current gold amount.




somebody621 -> RE: Flash Q&A thread 2 ** checked everyday (4/24/2006 17:44:07)

Umm...You also should learn a little about OOP. The whole strength of OOP is that you can store variables, define classes, inherit, etc..




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/24/2006 18:04:55)

somebody: lol, I guess you misunderstand the meaning of OOP. It only let your code be more clear, well-organized and easier to update. It's just a package of variables and methods that belongs to a same class.

darklord517: didn't you think of _root.gold=_root.gold-50?
but there's a simpler way: root.gold-=50
the -= replace the _root.gold-
and here's some useful informations(in page 13):
quote:

ORIGINAL: flsg

Zoltan: I'll try to explain this clearly:
_root.score.text is a textField, right?
everything in a textField belong to the string datatype, even number(number datatype:1, 2, 32, 2.354...) and boolean(boolean datatype: true or false)
so it's not a very good way to add number in a string, and it can cause problems, like this one:
_root.score.text=10
_root.score.text+=20

you may think that _root.score.text is now 30, but you're wrong. in Flash, the string takes advantage when we use the "+" operator
so now _root.score.text is "1020", which makes a big difference.
what I suggest is that you put the score in a variable, myScore, that have a value of 0 (a number!), everytime the score changes, do
myScore+=10 
(10 is just an exemple, change the number if you want), then change the textField's value:
_root.score.text=myScore

number+number=number, string+number=string
hope you understand[;)]





Darklord517 -> RE: Flash Q&A thread 2 ** checked everyday (4/25/2006 1:29:49)

Thats it! I replaced the - to be behind the =. Si it was. =- not -= thanks ive got it now.

Crud! Whenever i try to use that for + the number if you click on the button that adds to the number it ends up with 5010 intsead of 60. Im stuck on that.




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/25/2006 16:35:23)

darklord517: OMG, didn't you read the thing in my last post? It was for you[&:]
quote:

ORIGINAL: flsg

Zoltan: I'll try to explain this clearly:
_root.score.text is a textField, right?
everything in a textField belong to the string datatype, even number(number datatype:1, 2, 32, 2.354...) and boolean(boolean datatype: true or false)
so it's not a very good way to add number in a string, and it can cause problems, like this one:

_root.score.text=10
_root.score.text+=20

you may think that _root.score.text is now 30, but you're wrong. in Flash, the string takes advantage when we use the "+" operator
so now _root.score.text is "1020", which makes a big difference.
what I suggest is that you put the score in a variable, myScore, that have a value of 0 (a number!), everytime the score changes, do
myScore+=10
(10 is just an exemple, change the number if you want), then change the textField's value:

_root.score.text=myScore

number+number=number, string+number=string


swenn: I thought about the code, and you should replace it with:
function handFunc(){
this.gotoAndPlay(40)
}
mc1.onRelease=mc2.onRelease=handFunc
remember, don't add the () after handFunc, since it's a reference we want, not a return value




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (4/28/2006 22:30:31)

LBB,put me down as a user of flash on the tutorial page at the top. Though I stink, all I learned is from your tutorials.




somebody621 -> RE: Flash Q&A thread 2 ** checked everyday (4/28/2006 22:37:08)

Would anybody want to use an OOP tutorial? If anybody does, I might take the time to right one explaining how variables, arrays, and functions work, or something of the sort.




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (4/28/2006 22:38:46)

Hey somebody =) I guess it'd be cool, i would read the tutorial.




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 0:29:29)

guys, I really need help!!!!! All my old movies wont play, when i click them it asks me what I want to open them with..which program should i pick?



Edit: Nevermind! I found it!I almost had a heart attack there...I have 300+ animations :0




Darklord517 -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 2:01:59)

Yeh i wouldnt mind an OOP tutorial.




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 11:54:24)

somebody: in OOP, variables are properties and functions are methods lol
anyway, what version of AS will you use? AS 1.0? 2.0? Or the new AS 3.0?
I use 2.0
but even with 1.0, it will be hard to explain everything in a tutorial, since it takes about 50 pages.




Darklord517 -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 12:24:17)

I use AS 2.0




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 15:09:38)

darklord: well, most of peoples use Flash MX 2004 now, so it's 2.0
and 2.0 is much harder to learn than 1.0




Darklord517 -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 15:55:52)

Really? Oh well lol i dont really care.




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/29/2006 19:51:30)

lol, you could PM Somebody if you want:
trace("The difficulty level is "+Math.floor(Math.random()*101)+100+" /100 right now, lol")
[:)]
I'm building a multiplayer online game right now, can someone tell me how do I write the Privacy Policy and Terms & Conditions?
Yes, I'm serious, I CAN build a multiplayer game(man...need money....argghhh)




mathus the seconth -> RE: Flash Q&A thread 2 ** checked everyday (4/30/2006 1:31:46)

flsg, im making a website in geocities(i know u made urs in it), so does PageBuilder take swf files as an image?




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/30/2006 9:23:45)

sorry but I don't know what you mean




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (4/30/2006 11:36:13)

he probably means, can he insert .swf files directly into geocities?




flsg -> RE: Flash Q&A thread 2 ** checked everyday (4/30/2006 11:41:31)

of cours you can[;)]




Page: <<   < prev  12 13 [14] 15 16   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.125