Hi Woody

I don't have quite enough information to tell you about the specific problem 
you are having.

The design of the SDK is that the org.topbraidlive.graph.swc gives the Graph 
API, but the actual implementation is largely hidden from the end users. So 
Literal is in the Graph API, and LiteralImpl is the implementation, which is 
hidden in flex.topbraidlive.graph.impl.swf (you can find this in 
TBC/server.topbraidlive.org/dynamic/components).

This is to allow us to change the implementation without disrupting your code.

The error message is not that helpful #1034 is a flex error number, not a 
TopBraid error number.

Sometimes we have found that the "[object LiteralImpl]" is in fact a string, 
and we have, mistakenly forced something to be a string, which obviously causes 
problems later.

If
if(obj is Node){
        str = Node(obj).uiLabel
}
Works, then it is exactly equivalent to your code, so use that.

Otherwise, if you can give us a minimal complete example that exercises this 
problem, it would be a great help.
Hmmm, if the above code works, and with Literal does not, then a minimal 
complete example would be a great help.

==

On another topic, we have drilled down on the flex version mismatch issue that 
you reported, and it seems that there was an underlying problem with Flex, 
which Adobe report as fixed from flex sdk version 3.2 onwards. More on this 
topic in the next few days.

Jeremy



> -----Original Message-----
> From: [email protected] [mailto:topbraid-
> [email protected]] On Behalf Of Woody
> Sent: Sunday, May 24, 2009 11:49 PM
> To: TopBraid Composer Users
> Subject: [tbc-users] A bug? Literal in Flex SDK
> 
> 
> Hi,
> 
> I meet some thing really weird when developing my own TBE plugin.
> Here is my code:
> if(obj is Literal){
>       str = Literal(obj).uiLabel
> }
> but I only get an error message "Found an error #1034".
> 
> When I try to just print out the obj directly, I get "[object
> LiteralImpl]". But i can't find a class whose name is LiteralImpl in
> SDK.
> 
> The same code works find with "Node". Did I do something wrong?
> 
> Thanks,
> Woody



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to