
314
EXTENDING FIREWORKS
Rich symbols
Las
t
up
d
a
ted
12/8/2009
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="660" height="440"
layout="absolute" backgroundGradientColors="[#FFFFFF]"
xmlns:ns="http://www.example.com/2007/mxml">
<mx:Style>
Star {
color:#FFFFFF;
}
</mx:Style>
<ns:Star x="146" y="120" width="157" height="138" name="star name" staticValue="static"/>
</mx:Application>
With the definition of
flexClassName
, the element in Fireworks exports as a
Star
MXML tag. Notice how the
properties defined within
attributeProperties
became attributes and the property (color) defined within
styleProperties
became part of the
Star
style. The only default properties created were those defined in
defaultProperties
;
x
,
y
,
width
, and
height
. Because a namespace was defined, the tag was given the correct prefix
and it's URI was defined within the
Application
tag.
In Fireworks, the star in this example was 147 x 138 but exported with a width and height of 157 x 138 in MXML
because of
sizeOffset
. Though not apparent in this example, margin and padding would also play a part in how this
element is exported.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...