andreyz30001 / flashcanvas

Automatically exported from code.google.com/p/flashcanvas
0 stars 0 forks source link

Can't get base64 of image from canvas #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get from http://flashcanvas.net/download source code. 
2. load 
FlashCanvas-20110201\FlashCanvas\examples\canvas-text.googlecode.com\svn\trunk\e
xamples\animation.html
3.add after draw(); line with code "var aaaa = canvas.toDataURL();".
4. crash.
5. trouble in flashcanvas.js, in function e: this.B.CallFunction does not 
exists. I check this: e:function()
{
    alert("========e");
    var a=this.H();
    alert(a);
    alert(a.length);
    //alert(this.B.CallFunction);
    var str = "";
    for (var asdasd in this.B)
        str += asdasd + " : " + this.B[asdasd] + "  ;  ";
    var div = document.createElement("div");
    div.innerHTML = str;
    document.body.appendChild(div);
    alert(str);
    if(a.length>0)
        return eval(this.B.CallFunction('<invoke name="executeCommand" returntype="javascript"><arguments><string>'+a.join("&#0;")+"</string></arguments></invoke>"))
}
Output into current page:
nextSibling : [object HTMLSpanElement] ; onresizeend : null ; onrowenter : null 
; aria-haspopup : ; childNodes : [object NodeList] ; ondragleave : null ; oncut 
: null ; clientHeight : 150 ; onbeforepaste : null ; ondragover : null ; 
onbeforecopy : null ; aria-disabled : ; onpage : null ; recordNumber : null ; 
previousSibling : null ; nodeName : OBJECT ; onbeforeactivate : null ; 
accessKey : ; currentStyle : [object CSSCurrentStyleDeclaration] ; onfocusin : 
null ; onbeforeeditfocus : null ; oncontrolselect : null ; aria-hidden : ; 
onblur : null ; hideFocus : false ; style : [object CSSStyleDeclaration] ; 
onbeforedeactivate : null ; dir : ; aria-expanded : ; onkeydown : null ; 
nodeType : 1 ; ondragstart : null ; scrollTop : 0 ; onscroll : null ; 
onpropertychange : null ; ondragenter : null ; id : externalms__id8 ; 
aria-level : 0 ; onrowsinserted : null ; onmovestart : null ; scopeName : HTML 
; lang : ; onmouseup : null ; aria-busy : ; oncontextmenu : null ; language : ; 
offsetWidth : 300 ; onerror : null ; onbeforeupdate : null ; onreadystatechange 
: null ; filters : [object] ; onresize : null ; isContentEditable : false ; 
aria-checked : ; aria-readonly : ; oncopy : null ; onselectstart : null ; 
scrollHeight : 150 ; onmove : null ; ondragend : null ; onrowexit : null ; 
lastChild : [object HTMLParamElement] ; aria-secret : ; onactivate : null ; 
canHaveChildren : false ; onfocus : null ; isMultiLine : true ; onmouseover : 
null ; offsetTop : 63 ; parentNode : [object HTMLGenericElement] ; tagName : 
OBJECT ; className : ; canHaveHTML : false ; onmousemove : null ; title : ; 
role : ; behaviorUrns : [object BehaviorUrnsCollection] ; onfocusout : null ; 
onfilterchange : null ; disabled : false ; parentTextEdit : [object 
HTMLBodyElement] ; ownerDocument : [object HTMLDocument] ; offsetParent : 
[object HTMLBodyElement] ; aria-posinset : 0 ; ondrop : null ; ondblclick : 
null ; onrowsdelete : null ; tabIndex : 0 ; onkeypress : null ; aria-relevant : 
; onlosecapture : null ; innerText : ; aria-live : ; parentElement : [object 
HTMLGenericElement] ; ondeactivate : null ; aria-labelledby : ; aria-pressed : 
; children : [object HTMLCollection] ; ondatasetchanged : null ; 
ondataavailable : null ; aria-invalid : ; onafterupdate : null ; nodeValue : 
null ; onmousewheel : null ; onkeyup : null ; readyState : 4 ; aria-valuenow : 
; aria-selected : ; onmouseout : null ; aria-owns : ; aria-valuemax : ; 
onmoveend : null ; document : [object HTMLDocument] ; firstChild : [object 
HTMLParamElement] ; sourceIndex : 11 ; outerText : ; isTextEdit : false ; 
scrollLeft : 0 ; isDisabled : false ; oncellchange : null ; runtimeStyle : 
[object CSSStyleDeclaration] ; scrollWidth : 300 ; aria-valuemin : ; 
onlayoutcomplete : null ; onhelp : null ; attributes : [object NamedNodeMap] ; 
offsetHeight : 150 ; onerrorupdate : null ; contentEditable : inherit ; 
onmousedown : null ; aria-setsize : 0 ; clientWidth : 300 ; onpaste : null ; 
tagUrn : ; onmouseleave : null ; clientLeft : 0 ; onclick : null ; outerHTML :

Method CallFunction does not exists!

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
ie 8,7 windows 7. in compatibility modes flashcanvas does not work.

Original issue reported on code.google.com by bog...@mactelabs.com on 17 Nov 2011 at 6:44

Attachments:

GoogleCodeExporter commented 8 years ago
add flash file.

Original comment by bog...@mactelabs.com on 17 Nov 2011 at 6:45

Attachments:

GoogleCodeExporter commented 8 years ago
add html file.

Original comment by bog...@mactelabs.com on 17 Nov 2011 at 6:48

Attachments:

GoogleCodeExporter commented 8 years ago
Unfortunately I couldn't reproduce your problem. But I understand that I should 
add your question to FAQ. Please read the following thread.

http://groups.google.com/group/flashcanvas/browse_frm/thread/e36ff7a03e1bfb0a/c4
d0b90835590d94

And I advise you to try the latest beta version of FlashCanvas, because it has 
a support for canvas.onload event handler.

http://code.google.com/p/flashcanvas/source/browse/trunk
http://code.google.com/p/flashcanvas/source/detail?r=211

Could you try these solutions?

Original comment by revu...@gmail.com on 18 Nov 2011 at 6:12