Hi,

It looks like the zip file contains an FLA which you would need to compile with the Flash IDE.

You may be able to edit the source code to use the Flex components - where it complains about your button classes, etc.

If you are using Flash Develop, you may be able to [Embed] some graphics too, but you will need to have the chromeless wrapper swf from which to extract any graphics or symbols compiled within your SWF..

The other errors below about "return value" are because the functions need to specify the type of thing you are returning:

   If your function returns nothing, you must specify "void", e.g.

   function fReturnNothing():void {
      trace("Hello");
   }

   If you return a Boolean, then:

   function fTrueOrFalse():Boolean {
      return True;
   }

   etc.

   If you have Flash IDE, then try compiling with that...

Then I would recommend replacing your "Grain" class with an embedded image, possibly the same with LogoBlock.

Then maybe look at swapping the "Button" to use the flex Button component mx.controls.Button or maybe write your own Button class that draws itself / uses an embedded image.

   You can find out more about embed here:

   http://www.bit-101.com/blog/?p=853

   Here is a possible cheat:

[Embed (source = "../deploy/YouTubeIntegrationDemo.swf", symbol="BlockLogo")]
   private var BlockLogo:Class;

[Embed (source = "../deploy/YouTubeIntegrationDemo.swf", symbol="Grain")]
   private var Grain:Class;

When you create your Grain / BlockLogo you may need to change the type of the class instance you use:
   var chop:Sprite= new BlockLogo() as Sprite;

//I am not 100% sure on this one - you might need to download a image of wood grain and embed this as a PNG instead - you also cannot pass in values to the constructor (I think)
   var bitmap:Bitmap = new Grain() as Bitmap;

Anyway, if you are using FD, you can explore a SWF and right click the symbols you want to embed in your class code and choose "insert" - it does the above for you!

   HTH

   Glen
Shai A. Lipkovich wrote:
Hello,

I hope someone here can help me. I'm trying to compile the Chromeless Youtube Integration Demo (http://code.google.com/p/youtubechromelesswrapper-as3/) using the Flex SDK compiler - but it does not build. I'm using the latest Flex compiler on a Windows machine. What should I do in order to successfully build the demo (note: I am not using Flex Builder, only the Flex SDK - I don't persume I need Flex Builder to compile this?) ?



The following errors occur when I run the compilation:

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src>mxmlc
YouTubeIntegrationDemo.as
Loading configuration file D:\Devenv\Flash\flexsdk\frameworks\flex-
config.xml
D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber\demo
\DemoButton.a
s(37): col: 34 Error: The definition of base class Button was not
found.

       public class DemoButton extends Button {
                                       ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber
\collection\Iterator.as(231): col: 30 Warning: return value for
function 'isIterable' has no type declaration.

               public function isIterable() {
                                          ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber
\collection\Iterator.as(235): col: 28 Warning: return value for
function 'isObject' has no type declaration.

               public function isObject() {
                                        ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber
\collection\Iterator.as(239): col: 27 Warning: return value for
function 'isArray' has no type declaration.

               public function isArray() {
                                       ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber
\collection\Iterator.as(243): col: 25 Warning: return value for
function 'isXML' has no type declaration.

               public function isXML() {
                                     ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber\demo
\DemoHeader.as(131): col: 13 Error: Type was not found or was not a
compile-time constant: BlockLogo.

                       var chop:BlockLogo = new BlockLogo();
                                ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber\demo
\DemoHeader.as(131): col: 29 Error: Call to a possibly undefined
method BlockLogo.

                       var chop:BlockLogo = new BlockLogo();
                                                ^

D:\Devenv\Flash\ActionScript_3_YouTube_Wrapper_v1.0\src\timber\demo
\DemoHeader.as(174): col: 32 Error: Call to a possibly undefined
method Grain.

                       var bitmap:BitmapData = new Grain(152, 188);
                                                   ^


P.S. Please excuse my newbiness, I'm quite new to Flex and ActionScript...
------------------------------------------------------------------------

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to