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 16 of 24«<1415161718>»
Forum Login
Message << Older Topic   Newer Topic >>
5/15/2006 17:20:41   
flsg
Member

that's why you're wrong. Something simple and useful might not be good
for exemple, Macromedia discourage the use of ASSetPropFlags, even if the effect it does is very cool, it has been removed in Flash 8

you can always build a costum function, randomNum():
function randomNum(num1:Number, num2:Number):Number{
   var theNumber:Number=num1+Math.floor(Math.random()*(num2+1-num1))
   return theNumber
}

try it, it's very simple

< Message edited by flsg -- 5/15/2006 17:25:52 >
AQ  Post #: 376
5/15/2006 19:02:31   
mathus the seconth
Member

O.K. flsg, you proved me wrong once again but let me say one thing... i just got..........................FLASH 8!!!!!!!!!!!!!

it's AWESOME i havent even tried an eigth of all the cool effects!!!

< Message edited by mathus the seconth -- 5/17/2006 21:47:28 >
AQ  Post #: 377
5/19/2006 0:14:51   
ericabo123
Member

Im trying to make a cartoon where you click on a button to go the next part of the cartoon, how would I do this?
Post #: 378
5/19/2006 0:57:57   
lil boi blue
Member

quote:

how do i make a button?

1)open a flash document
2)create a circle
3)right click on the circle
4)at the bottom look for 'convert to symbol' and click it
5)click the bubble for button and press ok

how do i put it to action?

PRE)make a button
1)on the bottom of the screen there are 3 bars, one of them says actions, open it up by pressing the triangle next to it
2)leftclick on the circle if you had not done so so that the title of the action bar says 'action - button'
3)now type exactly this in the given small white box where you can type:
on(release){gotoAndPlay(2);}

translation: 'on(release)' when you let go of the button '{gotoAndPlay(2);}' go to and play frame 2
you may change the frame to whatever you want

4)click on frame 1 in timeline
5)action tab should say action - frame
6)simply say:
{stop();}
dont put anything inbetween the parenthasis
translation: '{stop();}' stop this frame from playing


direct quote from front page
AQ DF  Post #: 379
5/19/2006 8:51:02   
flsg
Member

lol...I though this thread was dead...lol
anyway, for peoples who were building an SIMPLE RPG game(the one that uses frames to control), they often have this problem:
when they want to save data temporarly, they can't because if you return to frame 1, the exp and gold variables will be re-initialize, like this:
//code on frame 1
var exp:Number=0
var gold:Number=0
//code on frame...[insert your frame here]
gotoAndStop(1)


I always wanted to post this perfect solution, but I don't really like this kind of programming(using too much frames for nothing):
//code on frame 1
if(exp==undefinded){
  var exp:Number=0
}
if(gold==undefinded){
  var gold:Number=0
}

that's it!!! By checking if there is already a variable in the movie, you can avoid creating variables twice
AQ  Post #: 380
5/19/2006 17:47:26   
somebody621
Member

Just a question. Why do you type using the old actionscript method ( var gold:Number=0 ) instead of var gold = 0;. I takes less typing.
Post #: 381
5/19/2006 20:03:13   
ericabo123
Member

HELP!!!!!! I screwed with my flash 8 and I messed it up. I dragged stuff around and stuff..this is what I get Messed up!Help please!
Post #: 382
5/19/2006 20:55:11   
lil boi blue
Member

lol, ericabo, at the bottom of the screen is a triangle, press that triangle once and i think it will fix it
AQ DF  Post #: 383
5/20/2006 15:08:08   
flsg
Member

somebody621: LOLOLOLOL!!!! you're sooo funny!!!
don't you know that var gold=0 is the old AS 1.0 method and var gold:Number=0 is the new FLash mx 2004(AS 2.0) method!??!

_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 384
5/20/2006 15:13:58   
somebody621
Member

No way... That's just retarded. I've been typing that way all my whole actionscripting life (which happens to be just about a year). Are there any advantages of doing that?
Post #: 385
5/20/2006 16:19:47   
flsg
Member

what version of Flash did you begin with? Flash mx 2004? I used Flash MX
this is called type checking. It generate a bug when the value is not correctly assigned
e.g.
var gold:Number="a lot"//Flash generate an error
var test1:String="hello"
test1=123//generate an error too

if you want to use the old method in AS 2.0, you can, but I suggest you to do this:
var gold:Object="a lot"
gold=1000

both of them don't generate errors, because you can use any value of a subclass where a superclass is needed, since the Object object is the base of every objects(lol, funny sentence), it can be consider as the superclass of every class
be careful, Flash doesn't type check the null Object:
var gold:Number=null//isn't an error

and you can't type check global variables:
_global.gold:Number=1000//doesn't work

of cours, if you don't want to assign a value, just simply use this:
var gold:Number

you can use type checking on any Objects, e.g. String, Boolean, Number, Error(yes, that's a AS 2.0 class), Array, etc

< Message edited by flsg -- 5/20/2006 16:23:18 >
AQ  Post #: 386
5/25/2006 19:13:33   
ericabo123
Member

Why did my layer thing disappear? It no longer says "layer 1" or wahtever...I do have the layer box though. Pic!
Post #: 387
5/25/2006 19:44:48   
lil boi blue
Member

thats weird, try double clicking the ' : ' symbol in the layer, it should bring it back, or otherwise extend the bars length by clicking and dragging the ' : ' symbol
AQ DF  Post #: 388
5/25/2006 20:05:34   
ericabo123
Member

What? Wheres the symbol lol...
Post #: 389
5/25/2006 22:09:52   
flsg
Member

I think I know what LBB means:
http://img228.imageshack.us/my.php?image=10p670k7ol.jpg
see the black rectangle?(I just colored it) Move your mouse to there, now the mouse pointer should be like this:
<->
click the rectangle and drag it to the right
AQ  Post #: 390
5/25/2006 22:13:26   
ericabo123
Member

Yay! It works. Thanks guys =).
Post #: 391
5/26/2006 21:26:30   
Grie Velorn
Member

can someone help me on a particle system please
AQ DF  Post #: 392
5/28/2006 14:42:32   
lil boi blue
Member

hmm, i have seen this here for like 2-3 days now, pm zoltan, i think he knows something on this topic
AQ DF  Post #: 393
5/29/2006 0:57:40   
ericabo123
Member

Ummm...I was just coloring something in flash and all of a sudden an error report thing came up and flash closed . Has anyone else encountered this?
Post #: 394
5/29/2006 1:16:51   
lil boi blue
Member

omg.....you...are..not...ALONE, i was workin on something for like 4 hours and.....it crashed, i was so pised off, there is no way to recover your drawing, just leave the computer for like an hour, come back.....and start over, you may be surprised that you may make a better pic than before.

ways to prevent this are,
*just press Ctrl+S every now and then when you finish a section like a breast plate, a helmet, an arm, a sword handle, etc.
*dont move the eraser too quick on a very detailed drawing
*dont move uber quick with anything sometimes, eraser is really the only thing to move fast for erasing pencil for example
*saving is the best thing possible
AQ DF  Post #: 395
5/29/2006 9:15:53   
chrislongden3
Banned


I have recently made this weapon, but i am not happy with the way it looks and wonder howi could improve it.

http://denvish.net/ulf/1148493451_Dragonforce_Dagger.swf


< Message edited by chrislongden3 -- 5/29/2006 9:16:17 >
AQ  Post #: 396
5/29/2006 13:02:14   
lil boi blue
Member

http://i5.photobucket.com/albums/y158/photo12/dragonscurse2.swf

i did something like that, you can use it for reference because they are very similar, the blade part looks fine, open the mouth of the alligator/croc/zard on the right side, just to make it look like his lip isn't cutting into the blade itself. once you do that detail the teeth, this sounds excrutiating but detail each tooth, first curve them slightly with the free transform tool so they are like carnivore teeth, curving towards the throat.

then apply very little shading by zooming in and with a tiny brush, make a white/yellow line on the outer curve of the tooth (one not close to the handle but close to tip of the blade
AQ DF  Post #: 397
5/29/2006 15:38:35   
chrislongden3
Banned


Thanks, ill try and do that sometime.
AQ  Post #: 398
5/29/2006 23:19:35   
ericabo123
Member

Look what i'm working on!. Its a world map type thing where you can explore various parts of the lands of which I have not named
Post #: 399
5/30/2006 15:12:21   
Deemahnik
Member

gah, back again... :P

I need some help with flames. I can't figure out how to animate them really, they and make them look realistic. I need to figure it out before i can make attacks for my Warlock class, as it's gonna help with my opener.
AQ  Post #: 400
Page:   <<   < prev  14 15 [16] 17 18   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 2 ** checked everyday
Page 16 of 24«<1415161718>»
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