Ah, I see. That explains, thanks.
On Mon, Apr 27, 2015 at 12:29 PM, OmPrakash Muppirala
wrote:
> Data type technically does not change because all instances are of type
> Object by default. If the class definition is available and the server
> side object has class metadata included, it will
Data type technically does not change because all instances are of type
Object by default. If the class definition is available and the server
side object has class metadata included, it will be automatically cast to
the correct type by the Flash player.
On Apr 27, 2015 10:18 AM, "mark goldin"
But why data type changes before second statement gets hit?
On Mon, Apr 27, 2015 at 12:15 PM, OmPrakash Muppirala
wrote:
> In the second case, the definition of the class someVO will be included in
> the compiled swf, because it appears in the code.
>
> In the first case, the compiler has no k
In the second case, the definition of the class someVO will be included in
the compiled swf, because it appears in the code.
In the first case, the compiler has no knowledge that someVO would be
used.
Just declaring a dummy object of type someVO at the top of the class would
ensure that the com
I have the following code:
public function result(data:Object):void
{
// Check data.result
trace(data.result[0]); I see data type Object
// but if I add this code:
trace(data.result[0] as someVO); then at the first trace I see data
type as of someVO
}
How can run time know that