Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A thread 2 ** checked everyday

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 2 ** checked everyday
Page 14 of 24«<1213141516>»
Forum Login
Message << Older Topic   Newer Topic >>
4/23/2006 15:02:51   
swenn
Member

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
AQ MQ  Post #: 326
4/23/2006 15:58:07   
flsg
Member

but I already told you that:
mc1.onRelease=mc2.onRelease=yourFunction
AQ  Post #: 327
4/23/2006 17:39:20   
mathus the seconth
Member

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


what did i just say again?




_____________________________

AQ  Post #: 328
4/23/2006 18:54:49   
somebody621
Member

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.
Post #: 329
4/24/2006 6:24:17   
swenn
Member

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);
AQ MQ  Post #: 330
4/24/2006 15:51:29   
flsg
Member

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)
}
AQ  Post #: 331
4/24/2006 16:21:12   
Darklord517
Member

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.

_____________________________

quote:

ORIGINAL: Dark Google

You need sarcasm lessons.
AQ DF  Post #: 332
4/24/2006 17:44:07   
somebody621
Member

Umm...You also should learn a little about OOP. The whole strength of OOP is that you can store variables, define classes, inherit, etc..
Post #: 333
4/24/2006 18:04:55   
flsg
Member

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

AQ  Post #: 334
4/25/2006 1:29:49   
Darklord517
Member

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.

< Message edited by darklord517 -- 4/25/2006 12:32:46 >
AQ DF  Post #: 335
4/25/2006 16:35:23   
flsg
Member

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

< Message edited by flsg -- 4/25/2006 16:37:13 >
AQ  Post #: 336
4/28/2006 22:30:31   
ericabo123
Member

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.

< Message edited by ericabo123 -- 4/28/2006 22:32:12 >
Post #: 337
4/28/2006 22:37:08   
somebody621
Member

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.
Post #: 338
4/28/2006 22:38:46   
ericabo123
Member

Hey somebody =) I guess it'd be cool, i would read the tutorial.
Post #: 339
4/29/2006 0:29:29   
ericabo123
Member

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

< Message edited by ericabo123 -- 4/29/2006 0:32:59 >
Post #: 340
4/29/2006 2:01:59   
Darklord517
Member

Yeh i wouldnt mind an OOP tutorial.

_____________________________

quote:

ORIGINAL: Dark Google

You need sarcasm lessons.
AQ DF  Post #: 341
4/29/2006 11:54:24   
flsg
Member

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.

_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 342
4/29/2006 12:24:17   
Darklord517
Member

I use AS 2.0
AQ DF  Post #: 343
4/29/2006 15:09:38   
flsg
Member

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
AQ  Post #: 344
4/29/2006 15:55:52   
Darklord517
Member

Really? Oh well lol i dont really care.
AQ DF  Post #: 345
4/29/2006 19:51:30   
flsg
Member

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)
AQ  Post #: 346
4/30/2006 1:31:46   
mathus the seconth
Member

flsg, im making a website in geocities(i know u made urs in it), so does PageBuilder take swf files as an image?
AQ  Post #: 347
4/30/2006 9:23:45   
flsg
Member

sorry but I don't know what you mean
AQ  Post #: 348
4/30/2006 11:36:13   
ericabo123
Member

he probably means, can he insert .swf files directly into geocities?
Post #: 349
4/30/2006 11:41:31   
flsg
Member

of cours you can
AQ  Post #: 350
Page:   <<   < prev  12 13 [14] 15 16   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 2 ** checked everyday
Page 14 of 24«<1213141516>»
Jump to:






Icon Legend
New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Content Copyright © 2018 Artix Entertainment, LLC.

"AdventureQuest", "DragonFable", "MechQuest", "EpicDuel", "BattleOn.com", "AdventureQuest Worlds", "Artix Entertainment"
and all game character names are either trademarks or registered trademarks of Artix Entertainment, LLC. All rights are reserved.
PRIVACY POLICY


Forum Software © ASPPlayground.NET Advanced Edition