Hi Alex here is the error message I got when I ran the code. But when
I use the debugger I get an
pop up window and I am sending the screen shot of the image. But very
interestingly now when I
try to run this code again my flex builder does nothing!!!! Nither
gives any error nor any  out put  just
doing nothing!!!!! The line that I emailed last time  showed in
console tab but it is not showing up
any more today, so I cannot send that error message any more.!!!!! By
the way last time when I
was running on debugging more and it was giving error message, right
after that I was also getting
an error message send by my window XP and was asking me to report to
Microsoft.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.controls::[EMAIL PROTECTED] to mx.core.Container.
    at mx.containers::ViewStack/get
selectedChild()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\containers\ViewStack.as:546]
    at
mx.containers::ViewStack/instantiateSelectedChild()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\containers\ViewStack.as:1131]
    at
mx.containers::ViewStack/commitProperties()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\containers\ViewStack.as:662]
    at
mx.core::UIComponent/validateProperties()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5660]
    at
mx.managers::LayoutManager/validateProperties()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:517]
    at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:637]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8450]
    at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8393]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



The CODE

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
width="100%" height="100%">

<mx:Script>
    <![CDATA[
        [Bindable]
        public var st:String = "http://www.adobe.com";;
    ]]>
</mx:Script>

        
     <mx:Canvas width="100%" height="100%">
     <mx:HBox width="100%" height="100%">

         <mx:Panel width="18%" height="100%" layout="absolute">
             <mx:DataGrid width="100%" height="100%">
                 <mx:columns>
                     <mx:DataGridColumn headerText="Title"
dataField="title"/>
                 </mx:columns>
             </mx:DataGrid>
         </mx:Panel>

         <mx:ViewStack id="myVS" height="100%" width="80%"
visible="false">
         <!--

              <mx:Canvas width="100%" height="100%">
                </mx:Canvas> -->
                  <mx:HTML id="myHTML" location="{st}" height="100%"
width="80%"/>
         </mx:ViewStack>
     </mx:HBox>        
     </mx:Canvas>
    
</mx:WindowedApplication>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++










--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Please use a debug build and supply the entire stack trace.
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of hworke
> Sent: Tuesday, February 12, 2008 5:19 PM
> To: [email protected]
> Subject: [flexcoders] meaning of the this AIR error message
> 
>  
> 
> 
> Hi,
> 
> I was trying mx:HTML inside a viewstack and got this error
> message:
> 
> =============================================================
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.controls::[EMAIL PROTECTED] to mx.core.Container.
> 
> Here is my code:
> 
> ==============================================================
> 
> <mx:ViewStack id="myVS" height="100%" width="80%">
> <mx:Canvas width="100%" height="100% 
> <mx:HTML id="myHTML" location="{st}" height="100%" width="100%"/>
> </mx:Canvas>
> </mx:ViewStack> 
> 
> ===============================================================
> 
> What is the meaning of this error message and does it
> mean that we cannot put a mx:HTML inside a viewstack?
> 
> Regards...
>


Reply via email to