9 Replies Latest reply on Aug 19, 2010 7:55 AM by Flex harUI

    Class loaded from extern SWF incompatible with Tree

    RenaudPi

      Hello,

       

      I founded a method to load some classes from extern SWF (as descripted there).

       

      I can use theses classes for image source.

      I it bug when i used them for an icon tree.

       

      The problem is in the TreeItemRenderer line 389.

       

      var iconClass:Class = _listData.icon;

      I don't understand the problem because my Class CNodeRelais have the Class type and iconClass is a type too...

       

      I really need some help . Thanx in advance.

       

      TypeError: Error #1034: Echec de la contrainte de type*: conversion de CNodeRelais@10c95421 en mx.core.IFlexDisplayObject impossible.
           at mx.controls.treeClasses::TreeItemRenderer/commitProperties()[E:\dev\4.0.0\frameworks\proj ects\framework\src\mx\controls\treeClasses\TreeItemRenderer.as:389]
           at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
           at mx.managers::LayoutManager/validateClient()[E:\dev\4.0.0\frameworks\projects\framework\sr c\mx\managers\LayoutManager.as:863]
           at mx.controls::List/http://www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\4.0.0\framework s\projects\framework\src\mx\controls\List.as:1706]
           at mx.controls::List/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntrols\List.as:895]
           at mx.controls::Tree/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co ntrols\Tree.as:1189]
           at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
           at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
           at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
           at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]