English 中文(简体)
标签必须是简单的识别资料吗? 闪电/Flex Buildinger
原标题:Label must be a simple identifier?? Flash/Flex Builder

我有这一法典:

public function chooseCategoryDDL_changeHandler(event:IndexChangeEvent):void {

       var para:Object = new Object();
           para.action = "changecategoryxml";
           para.book_class = event:IndexChangeEvent.book_class;

           if (event.IndexChangeEvent > -1 ) {
           changeCategory.send(para);
           }

我不断收到错误信息,即Label必须是一个简单的识别符号。 理想的情况是,想写一下该守则:

 ... para.book_class = event.selectedItem.book_class;

           if (event.selectedItem > -1 ) {
           changeCategory.send(para);
           }

虽然在我尝试和使用选定的Item syntax时,这给我提供了选择的未经界定的财产。 项目...... 我真的把我的头发.倒在,它使我老少感到困惑。 如果任何人都能够说明这一点,我将永远感激:

成就

问题回答

I had the same error from a dumb typo : some line was terminated by : instead of ;
For the visually impaired (like me), that s colon instead of semicolon.

I didn t really read this, but the syntax of this line looks invalid: para.book_class = event:IndexChangeEvent.book_class;

或许可以使用吗?

第1段:





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

pdo database abstraction

Can someone help me to see what is going wrong with this setup I build the @sql query in the function below like this. The extra quotes are setup in the conditions array. $sql .= " WHERE $...

I wish I could correlate an "inline view"

I have a Patient table: PatientId Admitted --------- --------------- 1 d/m/yy hh:mm:ss 2 d/m/yy hh:mm:ss 3 d/m/yy hh:mm:ss I have a PatientMeasurement table (0 to ...

Syntax help! Php and MYSQL

Original: $sql = "SELECT DATE(TimeAdded) AS Date, $column_name FROM Codes ORDER BY TimeAdded ASC"; Altered: $sql = "SELECT DATE("m", TimeAdded ) AS Date, ColumnName FROM TableName ORDER BY ...

Is this code Equivalent

I am not a fan of the following construction if (self = [super init]) { //do something with self assuming it has been created } Is the following equivalent? self = [super init]; if (self != ...

热门标签