Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A Thread 4

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 11 of 30«<910111213>»
Forum Login
Message << Older Topic   Newer Topic >>
9/24/2007 18:05:53   
flsg
Member

ion24: well you know we can't just work together only because we both have flash. Eragon uses AS2 and I use 3.

Eragon: what's that? lol
but this reminds me that I should update my gallery now XD

_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 251
9/24/2007 18:29:38   
EragonZZZZ
Member

A rainstorm :D
AQ  Post #: 252
9/25/2007 18:10:42   
Abiogenist
Member

This link might be handy. It compiles free video tutorials of Flash.

http://wikivid.com/index.php/Flash
If the link has been already given then I apologize.

Just a sample what I have learned on one of the video tutorials there:
Misty fog
Post #: 253
9/26/2007 20:39:35   
SirSchmoopy
Banned Multi



quote:

ORIGINAL: SirSchmoopy
when i say to add 5 exp, after 2 times, its 55....

Post #: 254
9/27/2007 3:05:00   
The Illusive Man
Member

Try this -

_root.healthvar = _root.healthvar + '5';


If you want to add 1 health per battle though, that's much easier.

_root.healthvar ++;
Post #: 255
9/27/2007 15:51:24   
EragonZZZZ
Member

Uh actually that's going to concat the string variable that you've defined there.
I need to see the code to determine what's wrong.
AQ  Post #: 256
9/27/2007 17:48:00   
The Illusive Man
Member

oh well, i tried lol
Post #: 257
9/27/2007 18:45:49   
EragonZZZZ
Member

No, I think yours could work I just need to see his original code to see if its actually what he's looking for.
AQ  Post #: 258
9/27/2007 18:47:47   
The Illusive Man
Member

orly - *feels silently better about self*

I'm going now, i'll see if this works in the morning. Then give my 2 pence lol
Post #: 259
9/28/2007 7:24:31   
SirSchmoopy
Banned Multi


i messed up my games, so if any1 thinks they can fix it, thank you you're screwed, its unfixable.

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 260
9/28/2007 14:46:34   
Jergal
Code Fysh


"5" + "5" turns up as "55" instead of 10 because you concatened two strings. Operator + does that with strings. It has to be of a number type if you want to have 10, and THEN you display it as a string.

Change that example to fit to your game setup, it's only here to illustrate
quote:

var nExp:Number = 5;
nExp += 5;
textfieldReference.text = nExp.toString();
// or textfieldReference.htmlText = nExp.toString();
// or textfieldReference.variable = "nExp";
// Displays "10"
AQ DF MQ  Post #: 261
9/28/2007 15:54:28   
EragonZZZZ
Member

Whoa, Jergal posted.
Sweet, I suppose I can PM you with code questions about AQ/DF, etc, rather than bugging Captain?
AQ  Post #: 262
9/28/2007 18:31:59   
flsg
Member

wow Jergal you use flash?! OMG lol
I should be answering that question XD
so...yeah, you could also cast the value to the Number type:
Number(value)

also that's why you should always include the datatype in the variable definition. I really don't know why no one here beside me and somebody(eragon do you use it?) use this.

eragon: he won't tell you a thing lol, trust me.

< Message edited by flsg -- 9/28/2007 18:32:51 >
AQ  Post #: 263
9/28/2007 19:31:50   
somebody621
Member

Been experimenting with bitmapData, and it's really confusing at times. lol. I might post some stuff on it soon, as it is MUCH faster than using the draw API or vectors or fractals, or the rain thing. What you basically do is make a spritesheet or a bitmap, and using the loader class, load the spritesheet or bitmap in. Then you use copy pixels to "copy" the part you want to draw onto a bitmapData and basically paste it on the screen every frame. Or you can find some line drawing algorithms and use setPixel to draw a line, which is actually faster than the drawAPI. I think bytearray.org has a class(AS3) which can draw lines. To update the screen, you either use the dispose() method of bitmapData or use a fillrect on it. This is MUCH faster than using vectors. Sorry if I wasn't being clear, but I'm kinda in a hurry. Will elaborate or post code on this soon.

Yeah, a lot of this information was found on FlashKit lol. We're really behind the times.
Post #: 264
9/29/2007 9:06:51   
EragonZZZZ
Member

Uh, i beg to differ, I've been using bitmapData to render graphics for awhile now >_>

And flsg has at least worked with them a bit (or more).

and I define all variables like this

var X:Number = 0;


OR

var X:CustomClass = new CustomClass();




< Message edited by EragonZZZZ -- 9/29/2007 9:08:13 >
AQ  Post #: 265
9/29/2007 9:46:14   
flsg
Member

somebody621: ever thought of combining Bitmap with vectors? Everytime you draw a line using vector, you immediatly convert it into a bitmap, so there's never more than 2 things on the screen: the bitmap and the new line(then the new line get copied into the bitmap)
AND it's smoother than using only bitmap
AQ  Post #: 266
9/29/2007 17:22:56   
shnaru1
Member

i am having problems with installing flash trail when i try and use it i get this can some one help me
AQ DF  Post #: 267
9/29/2007 17:41:52   
The Illusive Man
Member

Did you download the trial from the adobe site? It's the only good place to download it from. Same thing happened to my pshop CS3 download. Try from the adobe site.
Post #: 268
9/29/2007 18:05:10   
shnaru1
Member

i did download it from adobe site

< Message edited by shnaru1 -- 9/29/2007 18:15:07 >
AQ DF  Post #: 269
9/29/2007 18:38:13   
The Illusive Man
Member

hmmmm, the only other thing that comes to mind is to redownload it. Maybe you got a corrupt download.

And does your computer fulful the requirements? They are small, but old computers will struggle
Post #: 270
9/29/2007 18:44:24   
shnaru1
Member

my computer has all the requirements. ill try redownload it
AQ DF  Post #: 271
9/29/2007 18:45:46   
The Illusive Man
Member

If it doesn't work, my only other suggestion is to download a back copy. Or buy a license for a back copy. Flash 8 is good, and if you are going to be programming, it'll probably be in AS2. Flash 8 is a sweet program
Post #: 272
9/30/2007 6:25:45   
Jergal
Code Fysh


quote:

ORIGINAL: EragonZZZZ

Sweet, I suppose I can PM you with code questions about AQ/DF, etc, rather than bugging Captain?

Yes you can, but I'm totally out of date on AQ... For that one it's better to poke Captain or Kalanyr, or maybe Tathlin.

And yeah I use Flash, it's a nice IDE and AS3 is getting closer to an actual programming language by taking a lot from Java and C++.
AS2 is nice too but slower... And Flash virtual machine itself is too slow and limited. And you can't do anything you want with right click.
But it's definitely good at what it does!
AQ DF MQ  Post #: 273
9/30/2007 8:32:39   
The Illusive Man
Member

Jergal - I think there is a way to play with the right click... But you can only play with the menu.
Post #: 274
9/30/2007 9:49:01   
EragonZZZZ
Member

There is indeed :D
But yesh, the options are slightly limited, haha.
AQ  Post #: 275
Page:   <<   < prev  9 10 [11] 12 13   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 11 of 30«<910111213>»
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