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

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



Message


flsg -> RE: Flash Q&A thread 2 ** checked everyday (5/15/2006 17:20:41)

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




mathus the seconth -> RE: Flash Q&A thread 2 ** checked everyday (5/15/2006 19:02:31)

O.K. flsg, you proved me wrong once again but let me say one thing... i just got..........................FLASH 8!!!!!!!!!!!!![;)][:D][:)]

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




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (5/19/2006 0:14:51)

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?




lil boi blue -> RE: Flash Q&A thread 2 ** checked everyday (5/19/2006 0:57:57)

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




flsg -> RE: Flash Q&A thread 2 ** checked everyday (5/19/2006 8:51:02)

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




somebody621 -> RE: Flash Q&A thread 2 ** checked everyday (5/19/2006 17:47:26)

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.




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (5/19/2006 20:03:13)

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!




lil boi blue -> RE: Flash Q&A thread 2 ** checked everyday (5/19/2006 20:55:11)

lol, ericabo, at the bottom of the screen is a triangle, press that triangle once and i think it will fix it




flsg -> RE: Flash Q&A thread 2 ** checked everyday (5/20/2006 15:08:08)

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!??!




somebody621 -> RE: Flash Q&A thread 2 ** checked everyday (5/20/2006 15:13:58)

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?




flsg -> RE: Flash Q&A thread 2 ** checked everyday (5/20/2006 16:19:47)

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




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (5/25/2006 19:13:33)

Why did my layer thing disappear? It no longer says "layer 1" or wahtever...I do have the layer box though. Pic!




lil boi blue -> RE: Flash Q&A thread 2 ** checked everyday (5/25/2006 19:44:48)

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




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (5/25/2006 20:05:34)

What? Wheres the symbol lol...




flsg -> RE: Flash Q&A thread 2 ** checked everyday (5/25/2006 22:09:52)

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




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (5/25/2006 22:13:26)

Yay! It works. Thanks guys =).




Grie Velorn -> RE: Flash Q&A thread 2 ** checked everyday (5/26/2006 21:26:30)

can someone help me on a particle system please[sm=puppy_dog_eyes.gif]




lil boi blue -> RE: Flash Q&A thread 2 ** checked everyday (5/28/2006 14:42:32)

hmm, i have seen this here for like 2-3 days now, pm zoltan, i think he knows something on this topic




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

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?




lil boi blue -> RE: Flash Q&A thread 2 ** checked everyday (5/29/2006 1:16:51)

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




chrislongden3 -> RE: Flash Q&A thread 2 ** checked everyday (5/29/2006 9:15:53)

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




lil boi blue -> RE: Flash Q&A thread 2 ** checked everyday (5/29/2006 13:02:14)

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




chrislongden3 -> RE: Flash Q&A thread 2 ** checked everyday (5/29/2006 15:38:35)

Thanks, ill try and do that sometime. [:D]




ericabo123 -> RE: Flash Q&A thread 2 ** checked everyday (5/29/2006 23:19:35)

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 [&:]




Deemahnik -> RE: Flash Q&A thread 2 ** checked everyday (5/30/2006 15:12:21)

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.




Page: <<   < prev  14 15 [16] 17 18   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.140625