Creating Symbols in Flex 4

6 Sep
2008
Delicious

Here is another example of How you can create symbols in Flex 4 using the <Library></Library> and <Definition name=”test”></Definition> tags. They behave Similar to the Flash Symbols. Here is the Code and Example. Need Flash Player 10 to view it. Visit the Forums If You have any other questions

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="library:adobe/flex/halo"
	xmlns="http://ns.adobe.com/mxml/2009"
	xmlns:ns="library:adobe/flex/gumbo" xmlns:local="*">
 
	<Library>
		<Definition name="symbol1">
			<ns:Group>
				<ns:TextGraphic text="Hello World"/>
			</ns:Group>
		</Definition>
 
		<Definition name="symbol2">
			<ns:Group layout="flex.layout.VerticalLayout">
				<ns:Panel width="400" height="100"/>
				<ns:TextGraphic text="I am part of the Panel"/>
			</ns:Group>
		</Definition>
 
		<Definition name="symbol3">
			<ns:Group>
				<ns:Rect width="400" height="100" radiusX="8" radiusY="8">
					<ns:fill>
						<LinearGradient>
							<GradientEntry color="0x32FFCC"/>
						</LinearGradient>
					</ns:fill>
				</ns:Rect>
			</ns:Group>
		</Definition>
 
	</Library>
 
 
		<symbol1/>
		<symbol2/>
		<symbol3/>
 
</mx:Application>
Incoming Search Terms :flex4 symbols , Flex 4 schedule

Share this story with a friend !
Join SherifAbdou's Rss Feed Stumble This Article! Add this to your Delicious Bookmarks! Digg this story ! Add this story to Reddit ! Tweet This Brush


1 Response to Creating Symbols in Flex 4

Avatar

Creating Symbols in Flex 4 « Rich Internet Applications

September 6th, 2008 at 12:18 pm

[...] Source [...]

Comment Form