Upcoming SlideShare
×

# Action scrip

305 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

• Be the first to like this

Views
Total views
305
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
6
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Action scrip

1. 1. Programando en flash. (Action script)Chat archarAt es coger cada elemento qu esta en una cadenai++;var nombre="jesus ";var i=0;while(i<nombre.length){ trace(nombre.charAt(i));//i++;}
2. 2. var i=0;while(i<=10){trace("este es el} número "+i);i++;}var i=0;while(i<=100){trace("este es el} número "+i);i++;}
3. 3. var i=5;while(i<=5){trace("este es el} número "+i);i++;}Declaracionesvar i=0;do{ trace("este es el numero ",i);}while(i++<=10);
4. 4. for(var i=0;i<=10;i++){trace("el siguiente es el numero "+i);}
5. 5. var i=1;var j=10;while(i<=10){ trace("subiendo "+i); trace("najando "+j); i++; j--;}
6. 6. Loop for-invar bola=new Object();bola.radius=12;bola.color="red";bola.style="beach";for(var prop in bola){trace("böla."+prop+ " es "+bola[prop]);}var myArr=[123,345,456,789];for(var elem in myArr){
7. 7. trace(myArr[elem]);}realizar un programa empleando cualquier loop que escriba los numeros primosvar myArr=[2,3,5,7,11,13,17];for(var elem in myArr){
8. 8. trace(myArr[elem]);}