this._flash.CallFunction error

May 21, 2009 at 3:27 AM
Edited May 21, 2009 at 3:30 AM

can anybody help me :

I use the client side js function to add parameters to forms,like this

<%= FileUploader1.ClientID %>.setStateVariable("MyKey", "MyValue");

IE7.0 , show the error : 

            if(this._queuedActions.length > 0){
                var action = this._queuedActions.shift();
                if(this._queuedActions.length == 0){ this._queuedActionAttempts = 0; }

line :411,fileUPloader2.js

javascript call the flash CallFunction error , message likes this below:

ojbect not surports the property or method.


thanks a ton .

May 21, 2009 at 4:54 AM

You should have calls like that only after the flash instance, never before.

May 21, 2009 at 5:46 AM

My code like this :

there is a error in the page ,just like the first post I like

<script type="text/javascript">
            function FileStateChanged(uploader, file, httpStatus, isLast){
                Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);
                var t = Flajaxian.$("MyDiv");
                if(file.state > Flajaxian.File_Uploading){
                    t.innerHTML += "bytes:"+file.bytes+" name:"" state:"+file.state+" httpStatus:"+httpStatus+" isLast:"+isLast+"</br>";

            <fjx:FileUploader ID="FileUploader1" runat="server" TransparentBackground="true"
                CssUrl="~/css/fileuploader.css" MaxFileSize="200MB" MaxFileSizeReachedMessage="No files bigger than {0} are allowed"
                MaxFileQueueSize="200MB" MaxFileQueueSizeReachedMessage="All the files cannot be bigger than than {0}"
                AllowedFileTypes="Web Images (Jpeg, Gig, Png):*.jpg;*.jpeg;*.png;*.gif|Compress Files(zip,rar):*.zip;*.rar;*.exe"
                    <fjx:FileSaverAdapter FolderName="UploadFolder" />
                    <fjx:ThumbGeneratorAdapter Extensions="jpg;jpeg" FolderName="UploadFolder" Suffix="_s"
                        MaximumWidth="200" MaximumHeight="200" />
                    <fjx:CustomAdapter />
            <div id="MyDiv">
        <script type="text/javascript">
            <%= FileUploader1.ClientID %>.setStateVariable("MyKey", "MyValue");

is there any thing that I missed ?

thanks a ton


May 21, 2009 at 6:00 AM

The same code without <fjx:CustomAdapter /> works for me, check your custom adapter

May 21, 2009 at 8:42 AM

hi :vladb

I have remove the the adapters from my code ,The error still accurs.

        <script type="text/javascript">
            <%= FileUploader1.ClientID %>.setStateVariable("MyKey", "MyValue");

with this script ,the control's uploading function works well ,but the add variables to current form fuction from the client doesn't work well . I have debug with vs2005, to explore the this._flash object , And I fount the the object didn't have a function called "CallFunction(para)".

I need to use the function to get some extra data from the upload form .

Is there any thing wrong .

Mybe I useed the dll release have some thing wrong ?

anyelse , Could you send me a demo with client sied jsfunction examples to me .

my E-mail:

It very king of you to answer my question .

thanks .


May 21, 2009 at 4:57 PM

Yes it is SwfObject initialization issue. I added description in docs how to use setStateVariable on load

May 21, 2009 at 5:06 PM

But of course if you do it on page load you should probably rather use server side code instead of client side. The client side code is only to be used if you set it from client control interactions.

May 22, 2009 at 1:11 AM

Thank you very munch . It works.