Not logged in? Join one of the bigest Law Forums on the Internet! Join Now!   Latest blog post: Research Law Professors Before Choosing Law Schools

Advertisments:




Sponsor Links:

Discount Legal Forms
Discounted Legal Texts


Flash Action Script HELP! PLZ!?

Dealing with a class action? Discuss it here

Flash Action Script HELP! PLZ!?

Postby melville » Fri Mar 23, 2012 5:36 am

Okay im in an I.T. class in high school and I need help because I was absent.
I need help converting binary to decimal, using: subStr(), charAt(), string.length, string.indexOf(), powCount, math.Pow and or ceiling, floor, etc. heres what i have that does NOT work at all, im stuck.

on (release)
{
var mandy = intput.length
out.text = " ";
count = 0;
powCount = 0;
decTotal = 0;

for ( mandy = 0 ; x >= 0; powCount + 1)
{
if (mandy.charAt(x) == "1")
{
decTotal = decTotal + Math.pow(2, powCount);
powCount++
out.text += "The conversion is: " ;
}
else
{
powCount++
out.text += "The conversion is: " ;
}
}
}
melville
 
Posts: 17
Joined: Fri Apr 01, 2011 1:31 am
Top

Return to Class Action

 


  • Related topics
    Replies
    Views
    Last post