Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Image in Task Instructions

Not applicable
I was updating the task instructions at an approval step to include a photo of the submitter. It's easy enough to do in the HTML So, on the to do list cards deisplayed, the approver can see not only the text, but an actual photo of the people who submitted. The photo is displaying, but I am getting some errors with the Adobe Flash Player 9 that must be dismissed. This won't work in production.

The error says:

TypeError: Error #1034: Type Coercion failed: cannot convert flash events::Event@10b0e881 to

Any ideas?
3 Replies
Level 2
Level 2
Is there more to this error? A stack trace maybe?
Level 2
Level 2
Never mind, a colleague has reproduced the error.
Level 2
Level 2
Sorry for the delay. We reproduced the error; your use case is somehow causing a of type 'change' to fire, and since the 'change' type collides with's type, this generic Event is not expected by one of the handlers for IndexChangeEvent in the Workspace code, thus the coercion exception.

If you're into rebuilding Workspace from source, you can begin to fix this yourself as I'll explain shortly. Mind you, the results are not stellar even with the fix... Otherwise, I'll recommend you avoid the images idea until this is fixed.

To fix this yourself in 8.2.1:

a) open

b) locate function viewChangeHandler (line 76), and change the method signature from (event:IndexChangedEvent) to (theEvent:Event). You may have to import

c) wrap the contents of that function in an if-block, defining variable event in the process, as follows:

var event:IndexChangedEvent = theEvent as IndexChangedEvent;

if ( event != null ) {

{existing function contents here}


d) Recompile and redeploy the workspace-runtime.swc file.

Beware of the build scripts if your change doesn't seem to make a difference: the shipping build scripts have been reported to only include a subset of the files, files that have to do with theming/skinning Workspace.