RE: Flash Q&A Thread 4 (Full Version)

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



Message


flsg -> RE: Flash Q&A Thread 4 (9/24/2007 18:05:53)

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




EragonZZZZ -> RE: Flash Q&A Thread 4 (9/24/2007 18:29:38)

A rainstorm :D




Abiogenist -> RE: Flash Q&A Thread 4 (9/25/2007 18:10:42)

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




SirSchmoopy -> RE: Flash Q&A Thread 4 (9/26/2007 20:39:35)


quote:

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





The Illusive Man -> RE: Flash Q&A Thread 4 (9/27/2007 3:05:00)

Try this -

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


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

_root.healthvar ++;




EragonZZZZ -> RE: Flash Q&A Thread 4 (9/27/2007 15:51:24)

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.




The Illusive Man -> RE: Flash Q&A Thread 4 (9/27/2007 17:48:00)

oh well, i tried lol




EragonZZZZ -> RE: Flash Q&A Thread 4 (9/27/2007 18:45:49)

No, I think yours could work I just need to see his original code to see if its actually what he's looking for.




The Illusive Man -> RE: Flash Q&A Thread 4 (9/27/2007 18:47:47)

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




SirSchmoopy -> RE: Flash Q&A Thread 4 (9/28/2007 7:24:31)

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




Jergal -> RE: Flash Q&A Thread 4 (9/28/2007 14:46:34)

"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"




EragonZZZZ -> RE: Flash Q&A Thread 4 (9/28/2007 15:54:28)

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




flsg -> RE: Flash Q&A Thread 4 (9/28/2007 18:31:59)

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.




somebody621 -> RE: Flash Q&A Thread 4 (9/28/2007 19:31:50)

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.




EragonZZZZ -> RE: Flash Q&A Thread 4 (9/29/2007 9:06:51)

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();






flsg -> RE: Flash Q&A Thread 4 (9/29/2007 9:46:14)

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




shnaru1 -> RE: Flash Q&A Thread 4 (9/29/2007 17:22:56)

i am having problems with installing flash trail when i try and use it i get this can some one help me




The Illusive Man -> RE: Flash Q&A Thread 4 (9/29/2007 17:41:52)

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.




shnaru1 -> RE: Flash Q&A Thread 4 (9/29/2007 18:05:10)

i did download it from adobe site




The Illusive Man -> RE: Flash Q&A Thread 4 (9/29/2007 18:38:13)

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




shnaru1 -> RE: Flash Q&A Thread 4 (9/29/2007 18:44:24)

my computer has all the requirements. ill try redownload it




The Illusive Man -> RE: Flash Q&A Thread 4 (9/29/2007 18:45:46)

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




Jergal -> RE: Flash Q&A Thread 4 (9/30/2007 6:25:45)

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!




The Illusive Man -> RE: Flash Q&A Thread 4 (9/30/2007 8:32:39)

Jergal - I think there is a way to play with the right click... But you can only play with the menu.




EragonZZZZ -> RE: Flash Q&A Thread 4 (9/30/2007 9:49:01)

There is indeed :D
But yesh, the options are slightly limited, haha.




Page: <<   < prev  9 10 [11] 12 13   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.109375