
June 29th, 2009, 09:34 AM
|
|
Registered User
|
|
Join Date: Jun 2009
Posts: 1
Time spent in forums: 32 m 49 sec
Reputation Power: 0
|
|
|
Syntax error package is unexpected
We have an issue as follows ::
The textfield of each button has to take the category names of an xml file...
So we needs three variables that they take the category text from an xml and then we need to put this text to the textfield
But the textfields of each button are on other pages and they are not in the public one..so we need a public / public variables that are visible everywhere..
we searched and we found that in each variable you add something like (public var i = cat  but in order to make a variable public i need to import a package {public var butext:String;} ?that i cant import because i am getting (syntax error package is unexpected)
The package is {public var butext:String;} we are using flash cs4 and action script 3
Many Thanks
|