Menu

Can't find class Element

Help
Sanity11
2010-04-04
2013-04-18
  • Sanity11

    Sanity11 - 2010-04-04

    Hi,

    I am trying to use this lib in my project. But can't get it to work.
    This Error basically says it can't find the Element class?

    Please help me out, I don't know what's going wrong.


    VerifyError: Error #1014: Kan klasse org.groe.html::Element niet vinden.

    at com.graphics::Asset/setText()
    at Gamework()


    Thanks!

     
  • Sanity11

    Sanity11 - 2010-05-12

    Hi all,

    Is there any chance on getting some help?

    I can't get it to work at all and don't know where to look anymore.
    I am working on a as3 project in flash builder. I am using the swc file from this site. And this is the source:

    import mx.core.UIComponent;
        import org.groe.html.*;
    
        [SWF(width="1000", height="1000", frameRate="30", backgroundColor="#FFFFFF")]
        public class DCode extends Sprite
        {   
            public function DCode():void
            {
                var htmlString:String = '<h1>HTML</h1><p>text</p>';
    
                var e:Element = HtmlParser.parse(htmlString);
                var o:UIComponent = FlashHtmlRenderer.render(e);    
            }
        }
    

    It gives an error here:

    public static function getStyleManager(moduleFactory:IFlexModuleFactory):IStyleManager2
        {
            if (!moduleFactory)
            {
                moduleFactory = SystemManagerGlobals.topLevelSystemManagers[0];
                // trace("no style manager specified, using top-level style manager");
            }
            
    //!!!!!------ ERROR ON LINE BELOW --------!!!!!!//
            var styleManager:IStyleManager2 = IStyleManager2(moduleFactory.getImplementation("mx.styles::IStyleManager2"));
            if (styleManager == null)
            {
                // All Flex 4 swfs should have a style manager. 
                // In the transition to multiple style managers, use the top-level style manager.
                // trace("no style manager found");
                styleManager = impl;
            }
            
            return styleManager;
        }
    

    This is inside the mx.styles::StyleManager

    Please give me somekind of response.

    Thanks!

     

Log in to post a comment.