
Sample file/documnentExample
The RSSConnector source code.
Creating a basic custom connection that does not
use refresh options and loading status
The RSSConnectorWithTrigger source code
Creating a connection that uses refresh options
and loading status
4.2 To add the add-on source to the top-level application MXML
Add your component to the top-level application MXML so it is included in the generated Shockwave
Flash (SWF) file when you build your Adobe Flex project.
1.
Find and open the top-level application MXML file.
The top-level MXML file has the same filename as your Adobe Flex project and it contains the
<s:Application> tag.
For example (in the Sales Funnel source Adobe Flex project sample), the MXML file is named
SalesFunnelSource.mxml
2.
Place the cursor between the <s:Application> and </s:Application> tags. Type < followed
by your component name. A drop-down list is displayed with a list of components with that name.
3.
Pick your component from the list and the application code updates with a reference to your
component.
For example (after com.businessobjects.xcelsius.sdk.samples.SalesFunnel was
added to the application):
<?xml version="1.0" encoding="utf-8" ?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:ns="com.businessobjects.xcelsius.sdk.samples.*">
<ns:SalesFunnel/>
</s:Application>
You have added a reference to your component in your top-level application MXML file. Now when you
build your Adobe Flex project your component is also included in the generated SWF file.
4.3 To change how visual components look
When you create a visual component in Adobe Flex, you can customize its appearance based on styles
available in Adobe Flex. To apply visual styles, such as border colors, font types, and font sizes, to
visual components, use the Style metadata tag. For any styles you want users to be able to bind to
the spreadsheet, use properties (with get and set functions).
2013-05-0614
Creating Adobe Flex Projects
Commenti su questo manuale