Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbiw question

Status
Not open for further replies.

unicorn11

Programmer
Jun 10, 2000
392
IN
Hi to everybody

i am in the learning flash and i need helllllp

i have a symbol called as box
i have a loop that is executed 8 times
and when this loop is executed the width should increase
by 15 ! 8 times

below is the script
on release event i have called this function

Code:
 function abra () {
	ask = "abhishek";
	len = ask.length;
	for (i=0; i<len; i++) {
		setProperty (&quot;box&quot;, _width, _width + 15);
	}
}

where an i wrong

regards Unicorn11
abhishek@tripmedia.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
Don't think you can change the properties of a symbol. Make a 1 frame movie clip with your box. Put that movie clip on the stage & give it an instance name of &quot;box1&quot; or whatever... And then set...
setProperty (&quot;/box1&quot;, _width, _width + 15);

;-)

&quot;If nothing else, I can always serve as a bad example!”

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top