Per the Flex documentation, I'm trying to include an external AS
file, as follows:
<mx:Script source="Assets/Models/touchPlans.as"/>
The file "touchPlans.as" exists in the specified location, however
when compiling, I get this error:
Unable to open included file:
C:\Proto\Assets\Components\Assets\Models\touchPlans.as.
Here's the AS file in question:
// ActionScript file
[Bindable]
public var touchPlanDP:Array = [
{Thumb:'Assets/Images/cardPlan.png',
Name:'Welcome Card'},
{Thumb:'Assets/Images/eCardPlan.png',
Name:'E-Card'},
{Thumb:'Assets/Images/multiCardPlan.png',
Name:'Multi-Card'},
];
I've also tried to using Models as a straight XML file as the source
and received a "Model Can't be Used for Array Collection" error.
Basically, I'm just trying to get all of my data providers, etc out
of my mxml (while the services are being written) and with little
luck so far. Is there a way to make a dataProvider be a custom
component?
cheers, ethan
--
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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

