Hi,
Yes I thought I could be a cause of error and I've checked it before
sending the first mail... and in fact both files are in the same
directory. I've even put them into another application folder (that
already contained files that work) and I get the same error.
It's strange. Thanks anyway. Any other thoughts will be welcome.
Bye,
Doug Lowder a écrit :
Your code,
exactly as posted, works fine for me. Do you have the
SimpleTitleWindow.mxml and TitleWindowApp.mxml files in the same
directory?
--- In [email protected], Alin DICU
<[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I'm having problems to create a popUp. My code is exactly the same
as
> the one in the Flex doc examples. Here it is again:
>
>
> ----------------------------SimpleTitleWindow.mxml-----------------
--------
> <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml"
> title="Title Window"
> x="268" y="86" closeButton="true" click="this.deletePopUp();"
> width="200" height="180">
>
> <mx:Label text="Enter Name: "/>
> <mx:TextInput id="email" width="150"/>
> <mx:Button label="Cancel" click="this.deletePopUp();"/>
>
> </mx:TitleWindow>
>
> ----------------------------TitleWindowApp.mxml
> <?xml version="1.0" encoding="utf-8"?>
> <!-- Simple application to demonstrate TitleWindow layout -->
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
xmlns="*"
> backgroundColor="#FFFFFF">
>
> <mx:Script>
> <![CDATA[
> import SimpleTitleWindow;
> function showWindow()
> {
> var login=mx.managers.PopUpManager.createPopUp(_root,
> SimpleTitleWindow, true, {deffered:true});
> }
> ]]>
> </mx:Script>
>
> <mx:Panel title="Simple Panel">
>
> <mx:Button label="Click to view title window"
> click="showWindow();"/>
>
> </mx:Panel>
>
> </mx:Application>
>
> When I launch TitleWindowApp I have the following error : The
class
> 'SimpleTitleWindow' could not be loaded.
>
> Do you have any advise?
>
> Thanks,
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|