Play the games, create the levels

Topic, Question :

Checkout our iPhone & iPad games!

You must register or log in to post a message.

SimonM 13 years ago
  uuumh
the one you need to be underneath
add them first to the screen. That's how I do it :p
allyally 13 years ago
  Another Question...
I have some sprites, I want some to go underneath others. the setChildIndex isn't really working. can someone help?
Hexicube 13 years ago
  @AA
trace(list[0])
I answered B 18 days ago...
SimonM 13 years ago
  A)with wordwrap
B)ArrayName[number of item]
allyally 13 years ago
  [answered]

2 New Questions...
A) How do I make an input textField go onto the next line when It reaches the end? (.multiline doesn't work...)
B) How I access an item from an array at a certain position?
allyally 13 years ago
  Nope!!
Hexicube 13 years ago
  did you use my code? :P
allyally 13 years ago
  OH BOO YA! I FIXED IT BY MYSELF. This is a proud moment for me.
Hexicube 13 years ago
  moreCodes.addEventListener(MouseEvent.CLICK, checkforclick);
function checkforclick(event:MouseEvent) {
vis=!extraInfo._visible
if(vis) moreCodes.text="Hide"
else moreCodes.text="Show"
extraInfo._visible=vis
}
Hexicube 13 years ago
  can I see the fla file? I need to see the code to determine the problem...
also, for char count, its in the properties tab at bottom of screen...
allyally 13 years ago
  Ok... another thing, 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?
Also, how do I restrict a textfield to 1 character?
Hexicube 13 years ago
  idk what the allowed input is...one digit, a few digits, whatever...
allyally 13 years ago
  Ok, Question 3: Im doing a simple calculator Project:
SPOILER
I need help with the actual calculation part of the code, can you help?
Hexicube 13 years ago
  you should mark your questions as answered ;)
allyally 13 years ago
  Awesome. Thanks,
Hexicube 13 years ago
  assume instance name is 'inputBox':
inputBox.restrict="0-9"
change "0-9" to "0-9." to allow decimals
allyally 13 years ago
  Ok, New question, How do I get a textfield to only accept numerical input?
Hexicube 13 years ago
  glad to be of service ;)
btw, deleting items isnt as easy, use array.splice(n,1) to remove nth item(0 is first item)
allyally 13 years ago
  Brilliant! thank-you!
Hexicube 13 years ago
  alright then...
list=[] =n*n*2
}
if you want values 1 to 10, set n to 1 and the middle bit to n<=10
allyally 13 years ago
  Ok, thank-you, ill decipher that tomorrow. (Although, i inly really was talking about ANY sequence, not the prime one, something simple like myList = n^2 * 2, which is a much easier starting point,)
Hexicube 13 years ago
  hmm
primeList=[] =prime =prime
}
}
oh and also, tracing primeList has the same affect as tracing primeList.join()
allyally 13 years ago
  Ok, that really wasn't what I expected, What im asking is how do I make it generate its own numbers from a formula, Rather than making them yourself. Or is it just:
for (var myList.int=1;myList<10;*My forumla*) //to generate the first 10 numbers,?
Hexicube 13 years ago
  list=[2,3,5,7,11] ) //traces 2 ) //traces 3 =13 =999
trace(list.join()) //traces 2,abc,5.9
allyally 13 years ago
  Can I have an example?
Hexicube 13 years ago
  no, the first value is at position 0
formulas are calculated then the number is put in
allyally 13 years ago
  So the value -1 'cause it starts at 1, not 0?
also, what about formulas? say... N^2 + 10
Hexicube 13 years ago
  actually you can, just use list[list.length]=x to add whatever x is to the list
and to get the 5th value, use list[4] (NOT 5, 4)
allyally 13 years ago
  Ok, so i couldn't make it generate an array infinitely, like in scratch?
And how'd i make it say a certain number from a list, like 'the 5th number in the list'?
Hexicube 13 years ago
  yeah, but you would have to use list.join() (assuming your list is called 'list')
you could also call something like list.join(" ") to have each item seperated by spaces, "/n" for each item on its own line, and so on...just using join() seperates items using a comma

[<<] [1] [2]

General

First post of the topic

allyally 13 years ago
  Question 3: [answered]
SPOILER

Question 1: [answered]
SPOILER

Question 2: [answered]
SPOILER
Our free flash games   Games for your site   Games for your iPhone   Contact   Twitter @jpsarda & @bonuslevelorg