Add Flash CC canvas into WordPress template
-
I am trying to add a canvas created with Flash CC into a WordPress template. THe canvas works fine on the flat html page generated by Flash, but I can’t get it to work inside my php template. I have put the exact same, identical code in an html file and a php file, side by side in my theme folder. the html version works fine, the php version just shows js errors in the console.
Examples:
TypeError: cjs.Container is not a constructor
and
TypeError: lib.mythingy is not a constructorI have googled this and it tells me this has to do with javascript namespacing but I do not e
know what that means – I am primarily a front end designer who uses canvas to make animations, and namespacing is not something I know about at all.I have been able to show the canvas in my php file by adding the flat html version in an iframe, but that seems to me to be a bit of a cludge.
Ha sanyone else been able to do this successfully/ If so I would be eternally grateful for a clear exlanation of what I should do!
Thanks
The topic ‘Add Flash CC canvas into WordPress template’ is closed to new replies.