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 2 weeks and 6 days ago

This thread is solved

Views: 173     Replies: 2     Last reply 9 days ago  
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: 17

Registered:
3 weeks and 1 days ago

Call to a possibly undefined method CloseIcon

Posted: 2 weeks and 6 days ago

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!

ddrama

Posts: 49

Registered:
Apr 20, 2009

» Call to a possibly undefined method CloseIcon

Posted: 2 weeks and 3 days ago

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: 17

Registered:
3 weeks and 1 days ago

Thanks

Posted: 9 days ago

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