Play the games, create the levels

Topic, Question :

Checkout our iPhone & iPad games!

You must register or log in to post a message.

allyally 14 years ago
  Ah, so if i told a text variable to say the list would it list all it contents?
Hexicube 14 years ago
  yes, you can put anything you want into the array...
I can even put arrays into arrays(2D arrays), which is how games like P4M work(tiles)
allyally 14 years ago
  So you can make number arrays as well as clips & sprites?
Hexicube 14 years ago
  I cant go on chat, blocked...
the second line edits a specific value in the list(the second one, its 1 because array positions start at 0 not 1)
it would be "var primes:Array"
allyally 14 years ago
  So it would be var primes.list?
Also what does the second line do? I dont understand it,
necessarily use it for primes,

[btw, go on chat]
Hexicube 14 years ago
  oh lol how weird that I looked at this :P
the prime finder? oh god will this lag, ive tried it using AS=lag :P
[edit] if you have flash, use trace(), but for a list that size I wouldnt...
use arrays:
primes=[2,4,5,7] //this makes a list =5 // this fixes the intentional mistake I made(notice how its a 1 and not 0) =11 // this adds the next prime to the end
now then, I would recommend working on the prime code itself, as by the look of it yours sucks(it goes up in 1s for checking)
also, had a speed test idea, what finishes first? that counting the first 200 primes, or mine counting the first 25000?
AK 14 years ago
  Allyally, I think MARC could help with this. Should I PM him?

Please don't delete...:(
allyally 14 years ago
  PLease dont post if youre a non-coder. The penalty is death.
allyally 14 years ago
  Question 3: [answered]
SPOILER
ive made a project where theres a sort of 'pop up' text field, you click 1 text field which changes the visible value of the pop up field to true, and ive another event listener which makes it so when you click it again, the pop up field hides itself,
PROBLEM: I can only click it and hide it once. help?

Question 1: [answered]
SPOILER
As some of you may know ive begun to learn AS, and i would like to replicate this simple Scratch project onto it. Although I know how to make variables, and generate my data, I dont know how to display it. In Scratch I would simple make a list, but i dont think there is such a function in AS. I need a script that would allow me to add data to the list, Could someone Help me?

Question 2: [answered]
SPOILER
How do I get a textfield to only accept numerical input?

[<<] [1] [2]

General

First post of the topic

allyally 14 years ago
  Question 3: [answered]
SPOILER
ive made a project where theres a sort of 'pop up' text field, you click 1 text field which changes the visible value of the pop up field to true, and ive another event listener which makes it so when you click it again, the pop up field hides itself,
PROBLEM: I can only click it and hide it once. help?

Question 1: [answered]
SPOILER
As some of you may know ive begun to learn AS, and i would like to replicate this simple Scratch project onto it. Although I know how to make variables, and generate my data, I dont know how to display it. In Scratch I would simple make a list, but i dont think there is such a function in AS. I need a script that would allow me to add data to the list, Could someone Help me?

Question 2: [answered]
SPOILER
How do I get a textfield to only accept numerical input?
Our free flash games   Games for your site   Games for your iPhone   Contact   Twitter @jpsarda & @bonuslevelorg