You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Call to a possibly undefined method CloseIcon Created Oct 31, 2009

This thread is solved

Views: 2617     Replies: 2     Last reply Nov 11, 2009  
You must login first before you can use this feature

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

Call to a possibly undefined method CloseIcon

Posted: Oct 31, 2009

I was trying to compile flowplayer.content into Flowplayer. Things were working just fine, in general. I updated ./flowplayer.core/src/actionscript-builtin/BuiltInConfig.as by commenting out all the "content" lines, and I made sure to update the plugin-classes variable in flowplayer.core/build.properties.

Running ant in flowplayer.content works just fine. However, when I try to run ant in flowplayer.core, I get the following error:
compile:
     [echo] Building binary flowplayer.swf
     [exec] Loading configuration file /usr/local/flex_sdk_3.4/frameworks/flex-config.xml
     [exec] Recompile: /home/jj/Work/247fps/git/projector/flowplayer.core/src/actionscript/org/flowplayer/view/Launcher.as
     [exec] Reason: Its dependent file, /home/jj/Work/247fps/git/projector/flowplayer.core/src/actionscript-builtin/BuiltInConfig.as, has been updated.
     [exec] Recompile: /home/jj/Work/247fps/git/projector/flowplayer.core/src/actionscript-builtin/BuiltInConfig.as
     [exec] Reason: The source file or one of the included files has been updated.
     [exec] Files changed: 1 Files affected: 1
     [exec] /home/jj/Work/247fps/git/projector/flowplayer.content/src/actionscript/org/flowplayer/content/CloseButton.as(21): col: 24 Error: Call to a possibly undefined method CloseIcon.
     [exec] 
     [exec] 			_icon = icon || new CloseIcon();
     [exec] 			                    ^
     [exec] 

BUILD FAILED
/home/jj/Work/247fps/git/projector/flowplayer.core/build.xml:81: The following error occurred while executing this line:
/home/jj/Work/247fps/git/projector/flowplayer.core/build.xml:104: The following error occurred while executing this line:

I'll admit that I'm not a Flash / ActionScript developer, but for the life of me, I can't find where CloseIcon is defined. I did a "grep -ril CloseIcon" trying to look for it in flowplayer.core and flowplayer.content, and I can't find it anywhere. It's not imported from anywhere that I can see. Since I don't know Flash, I thought maybe it might be in one of the .fla files, but since I'm running Linux, I can't run CS3 to check.

Anyway, I figured out that I don't really need the flashplayer.content plugin, so I just disabled it. I'd still really like to know where CloseIcon is supposed to come from, though.

Here's what my environment looks like:

$ uname -a 
Linux jjinux 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux 
$ ant -version 
Apache Ant version 1.7.1 compiled on June 27 2008 
$ javac -version 
javac 1.6.0_16 
$ mxmlc -version 
Version 3.4.0 build 9271 

Happy Hacking!

dherbst

Posts: 75

Registered:
Apr 20, 2009

» Call to a possibly undefined method CloseIcon

Posted: Nov 3, 2009

Reply to: Call to a possibly undefined method CloseIcon, from jjinux
CloseIcon is defined in the src/flash/closebutton.fla file

I had to modify the core/build.xml file to add the flash folder here:


    <condition property="plugin-libs" value="${controls-dir}/src/flash/${plugin-skin} ../flowplayer.content/src/flash" else="">
        <available file="${controls-dir}/build.xml" />
    </condition>

But I would love to know if there is supposed to be a better way to do this.

jjinux
In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa http://jjinux.blogspot.com/

Posts: 23

Registered:
Oct 29, 2009

Thanks

Posted: Nov 11, 2009

Reply to: » Call to a possibly undefined method CloseIcon, from dherbst
Me too. Thanks for your response.