>WineDetail.mxml "There is no property with the name 'PopUpDetail'

The class PopUpDetail, is it in the same folder as WineDetail?
Is the class PopUpDetail in the same folder as the .mxml file with the
application tag in it?

If not, add this line to your script (at the TOP):

import path.to.file.PopUpDetail;


Greetz Erik



-----Original Message-----
From: Owen van Dijk [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 22 februari 2005 17:42
To: [email protected]
Subject: [flexcoders] popup window with custom component ( not extending
TitleWindow )


I've been working on a Flex application that requires a modal
popupwindow. I have created a PopUpDetail.mxml that uses a Canvas. I
then have another custom MXML component that is also based on a Canvas.
The component is called WineDetail.mxml.

In WineDetail.mxml is a Script block that uses the following AS (
straight from the Flex book ):

--------------------------
function openWineDetail()
{
var parentToPopUpOver = this;
var isModal:Boolean = true;
var initObj = {};
var popUp = mx.managers.PopUpManager.createPopUp(
parentToPopUpOver, PopUpDetail, isModal, initObj ); }
--------------------------

WineDetail is then put into a Repeater object , something like this:

<mx:Repeater id="rp"
dataProvider="{jumboWS.GetWineTop10.result.diffgram.NewDataSet.Table}">
<WineDetail wineID="{rp.currentItem.ID}"
winenumber="{rp.currentIndex}" winedetaillabel="{rp.currentItem.NAME}"
wineimage="{host}Images/wine/wine_{rp.currentItem.ID}_1.jpg" xmlns="*"
/>
</mx:Repeater>

note the xmlns attribute. When i click on a WineDetail component, it's
supposed to create a PopUpWindow, but i never got it to work.I'm getting
the following error, among others:

WineDetail.mxml "There is no property with the name 'PopUpDetail'

It might be something obvious i'm missing here, but i'm working against
a killer deadline, and this close to find another hack around it...if
somebody has a clue, you may enlighten me :) ( I figured that it's
something as simple as using a Titlewindow instead of a Canvas? )

Thnx

--
Owen van Dijk


 
Yahoo! Groups Links



 





Reply via email to