« Home « Chủ đề giáo trình CS3

Chủ đề : giáo trình CS3


Có 40+ tài liệu thuộc chủ đề "giáo trình CS3"

Flash Builder 4 and Flex 4 Bible- P1

tailieu.vn

Flash ® Builder ™ 4 and Flex ® 4. Master Flex 4 and Flash Builder 4 fundamentals. Learn the Flash Builder 4 interface. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108...

Flash Builder 4 and Flex 4 Bible- P2

tailieu.vn

l Integration with Flash Builder debugging tools such as breakpoints. Installation with Flash Builder. When you install Flash Builder 4, the debug version of Flash Player is installed automatically. Using Flash Builder installation files. If you need to reinstall the debug version of the Flash Player, you should use the version that’s included with Flash Builder or the Flex SDK....

Flash Builder 4 and Flex 4 Bible- P3

tailieu.vn

l Many tools that are a part of the Eclipse workbench are critical to effective use of Flash Builder.. I describe the contents of the HTML. If you’re using the Flex 4 SDK and your own text editor, the steps will be similar, but you won’t have access to some of the code completion and other productivity tools I describe....

Flash Builder 4 and Flex 4 Bible- P4

tailieu.vn

Any code in the external file is compiled as part of the MXML file and the ActionScript class it rep- resents but is executed after objects declared in MXML are instantiated so you can access these objects in your ActionScript code. In the New ActionScript File dialog box, select the folder in which you want to cre- ate the file....

Flash Builder 4 and Flex 4 Bible- P5

tailieu.vn

l As shown in Figure 6.5, click the square red Terminate button in the Console view.. l Click the square red Terminate button in the Debug view (visible in the Flex Debugging perspective).. You also can pass in variables and concatenated expressions that can result in a String : trace(“The value of myVariable is. Click Call Trace in the application...

Flash Builder 4 and Flex 4 Bible- P6

tailieu.vn

The event object’s type displayed in the Variables view. Documentation for every event in the Flex SDK includes the type of the event object that will be dispatched when the event occurs. As shown in Figure 7.9, you should see the specific type of the class that will be dispatched for that event.. To capture information that’s available only in...

Flash Builder 4 and Flex 4 Bible- P7

tailieu.vn

groupName=”buttonGroup”/>. The code in Listing 8.4 is available in the Web site files in the chapter08 project as RadioButtonDemo.. <s:Label text=”Enter value:”/>. <s:NumericStepper id=”myStepper” value=”5”/>. minimum=”5” maximum=”25” stepSize=”5”/>. <s:Label text=”You entered: {myStepper.value}”/>. <mx:DateChooser id=”myDateChooser”/>. Changing either property causes changes in the control’s visual presentation.. <mx:DateField id=”myDateField”/>. The code in the event handler function sets the application’s backgroundColor style to the...

Flash Builder 4 and Flex 4 Bible- P8

tailieu.vn

The code in Listing 10.5 is available in the Web site files as GroupDemo.mxml in the chapter10 project. The code in Listing 10.6 is available in the Web site files as HGroupDemo.mxml in the chapter10 project.. horizontalCenter=”0” verticalCenter=”0”/>. The code in Listing 10.7 is available in the Web site files as BorderContainerDemo.mxml in the chapter10 project. These are the same...

Flash Builder 4 and Flex 4 Bible- P9

tailieu.vn

alphaFrom=”0” alphaTo=”1”/>. <s:Fade id=”fadeIn” alphaFrom=”0” alphaTo=”1”/>. x=”140” y=”90”/>. click=”fadeIn.play([myImage])”/>. click=”fadeOut.play([myImage])”/>. <mx:WipeRight id=”wipe” />. <mx:Box id=”box” label=”MX Box”>. click=”wipe.play([box])”/>. x=”150” y=”100”/>. <s:Animate id=”myAnimation”>. <s:MotionPath property=”x”>. <s:Keyframe time=”0” value=”0”/>. <s:MotionPath property=”y”>. <s:MotionPath property=”scaleX”>. <s:Keyframe time=”1000” value=”1”/>. <s:MotionPath property=”scaleY”>. scaleX=”0” scaleY=”0”/>. duration=”2000”/>. x=”150” y=”100” />. click=”moveOn.play([myImage])”/>. click=”moveOff.play([myImage])”/>. click=”bigger.play([myImage])”/>. click=”smaller.play([myImage])”/>. click=”myRotate.play([myImage])”/>. <s:Parallel id=”myParallelEffect”>. <s:Parallel id=”moveOn” target=”{imageWrapper}”>. yFrom=”100” yTo=”100”/>. <s:Parallel id=”moveOff” target=”{imageWrapper}”>. click=”moveOn.play()”/>. click=”moveOff.play()”/>. <s:Sequence...

Flash Builder 4 and Flex 4 Bible- P10

tailieu.vn

<s:Line width=”700”>. <s:SolidColorStroke color=”#000000” weight=”2”/>. <s:LinearGradientStroke weight=”10”>. <s:GradientEntry color=”#ffffff”/>. horizontalCenter=”0” verticalCenter=”0” >. <s:SolidColor color=”#EEEEEE”/>. <s:SolidColorStroke color=”black” weight=”5”/>. <s:SolidColorStroke color=”0x888888”/>. <s:LinearGradient rotation=”90”>. <s:GradientEntry color=”0x000000” alpha=”0.8”/>. <s:GradientEntry color=”0xFFFFFF” alpha=”0.8”/>. <s:Label text=”Radial Gradient”/>. <s:GradientEntry color=”#FFFFFF”/>. horizontalCenter=”0” verticalCenter=”0”>. <s:LinearGradient rotation=”45”>. <s:GradientEntry color=”#333333” ratio=”0” alpha=”1”/>. <s:GradientEntry color=”#CCCCCC” ratio=”0.09” alpha=”1”/>. <s:GradientEntry color=”#333333” ratio=”0.37” alpha=”1”/>. <s:GradientEntry color=”#CCCCCC” ratio=”0.89” alpha=”1”/>. <s:GradientEntry color=”#333333” ratio=”0.99” alpha=”1”/>. <fx:Definition name=”CurvedArrow”>. <s:HGroup horizontalCenter=”0”...

Flash Builder 4 and Flex 4 Bible- P11

tailieu.vn

You create a stack of views using one of the navigator containers provided in the Flex framework.. <mx:ViewStack id=”views”>. width=”400” height=”300”>. <s:VerticalLayout horizontalAlign=”center”/>. The code in Listing 16.1 is available in the Web site files as views/Authors.mxml in the chapter16 proj- ect. xmlns:views=”views.*”>. <mx:ViewStack id=”viewstack1” width=”200” height=”200”>. <views:Books label=”Catalog” width=”100%” height=”100%”>. <views:Authors label=”Authors” width=”100%” height=”100%”>. height=”100%”>. <views:Books label=”Catalog” width=”100%” height=”100%”/>....

Flash Builder 4 and Flex 4 Bible- P12

tailieu.vn

This interface is implemented by the UIComponent class, which in turn is in the inheri- tance hierarchy of all MX containers and controls. Defining a custom pop-up window. <s:TextInput id=”userInput”/>. <s:Button label=”Cancel”/>. The LoginWindow component described in the pre- ceding code sample would share events for logging in and for canceling the operation. The code in Listing 17.5 is available...

Flash Builder 4 and Flex 4 Bible- P13

tailieu.vn

As a result, one of the most pop- ular families of visual controls in the Flex framework includes those known as list controls.. The data provided to a list control can be in the form of either hierarchical or relational data, and the type of data you want to present frequently determines which control you use. In the Architecture column...

Flash Builder 4 and Flex 4 Bible- P14

tailieu.vn

dataChange=”updateHTML()”>. </mx:Text>. <mx:columns>. </mx:columns>. </mx:DataGrid>. focusEnabled=”true”>. width=”100” editable=”false”/>. width=”100”/>. width=”50”/>. creationComplete=”app_creationCompleteHandler(event)”>. width=”20” headerText=””/>. <s:Panel title=”Selected Data”>. <mx:DataGrid id=”selectedGrid” dataProvider=”{selectedData}”>. <mx:DataGridColumn dataField=”firstname” headerText=”First Name”/>. <mx:DataGridColumn dataField=”lastname” headerText=”Last Name”/>. <mx:DataGridColumn dataField=”dob” editorDataField=”selectedDate”>. <mx:itemEditor>. </mx:itemEditor>. </mx:DataGridColumn>. result=”resultHandler(event)”/>. editable=”true”>. labelFunction=”getDateLabel”>. <mx:TileList. <mx:itemRenderer>. <mx:Image source=”assets/thumbs/{data.source}”/>. <mx:Label text=”{data.caption}”/>. </mx:VBox>. </mx:itemRenderer>. </mx:TileList>. horizontalAlign=”center”/>. <mx:HorizontalList. change=”slideList_changeHandler(event)”>. </mx:HorizontalList>. <mx:Spacer height=”50”/>. <mx:Image source=”assets/{currentImage.source}”/>. width=”100%” height=”100%” >. creationComplete=”initData()”>. <mx:AdvancedDataGrid id=”employeeGrid”>. <mx:dataProvider>....

Flash Builder 4 and Flex 4 Bible- P15

tailieu.vn

The application in Listing 21.8 is available in the Web site files as LineAndAreaDemo.mxml in the chapter20 project. Draws vertical lines from the x coordinate of the current point to the x coordinate of the next point.. The application shown in Figure 21.14 is available in the Web site files as LineFormDemo.mxml in the chapter20 project. l Custom value object...

Flash Builder 4 and Flex 4 Bible- P16

tailieu.vn

xmlns:contactservice=”services.contactservice.*”>. <s:CallResponder id=”getContactsResult”/>. <s:HTTPService id=”myService” url=”data/contacts.xml”/>. As with all Flex components, the object’s id property is used to identify it uniquely in the context of the current application or component. The details of these properties are described in the following sections.. Each of the following methods is treated as a “verb” that indicates what should be done with the data...

Flash Builder 4 and Flex 4 Bible- P17

tailieu.vn

Notice that the names of the ActionScript namespace objects match the namespace prefixes in the XML con- tent. The code in Listing 24.6 is available in the Web site files as E4XWithNamespaces.mxml in the default pack- age in the src folder of the chapter24 project. l Array-style syntax is combined with various operators to “walk” the XML hierarchy.. Calling Web...

Flash Builder 4 and Flex 4 Bible- P18

tailieu.vn

<?xml version=”1.0” encoding=”utf-8”?>. xmlns:mx=”library://ns.adobe.com/flex/mx”>. fault=”faultHandler(event)”/>. <s:Button label=”Get Data” click=”contactService.send()”/>. <mx:DataGrid dataProvider=”{myData}”/>. element nested within the destination’s <properties>. <destination id=”contactsXML”>. <destination id=”contactsWS”>. <adapter ref=”soap-proxy”/>. <?xml version=”1.0” encoding=”UTF-8”?>. class=”flex.messaging.services.RemotingService”>. class=”mx.messaging.channels.AMFChannel”>. class=”flex.messaging.endpoints.AMFEndpoint”/>. Each destination is declared as a child of the configuration file’s <service>. <destination id=”helloService”>. <s:RemoteObject id=”roHello” destination=”helloService”/>. click=”roHello.helloWorld()”/>. <s:Label text=”Hello from BlazeDS!” fontSize=”14” fontWeight=”bold”/>. <s:Button label=”Click to say hello” click=”roHello.helloWorld()”/>. fontSize=”14”...

Flash Builder 4 and Flex 4 Bible- P19

tailieu.vn

tag as a child of the application’s <fx:Declarations>. <destination id=”ColdFusion”>. <channel ref=”my-cfamf”/>. hint=”A ColdFusion Component for use in Flash Remoting”>. <cffunction name=”helloWorld” returntype=”string” access=”remote”>. <cfreturn “Hello from a ColdFusion Component!”/>. The code in Listing 28.1 is available in the Web site files as HelloService.cfc in the ColdFusion files of the chapter28 project. <cffunction name=”getNumber” returntype=”numeric” access=”remote”>. <cfreturn “This is not...

Flash Builder 4 and Flex 4 Bible- P20

tailieu.vn

For example, the default out- put folder in the chapter29 project is placed under the PHP Web root with a name of chapter29-debug. When you create your PHP pages, they can be placed in the project’s source root folder. The code in Listing 29.1 is available in the Web site files as ReturnSimpleXML.php in the src folder of the chapter29...