XML- :
XML, ,
, "", .., HTML,
XML
, ,
XML ,
, , XML (.. , , , HTML)
XML- , - , XML- , .
, , , . , , XML- , :
<country><title>Russia</title> <city><title>Novosibirsk</country></title></city>, XML- , , .
XML- : DTD - (Document Type Definition) (Semantic Schema). DTD . SGML, DTD- XML , XML- , DTD.
XML- , CDATA, , , , . .
- XML- . rose <flower> </flower>, , <flower>, rose. - , , , , CDATA, , , - .. XML- .
, , . , :
|
|
, - :
<rose><flower>rose, , . . , (, , , , ), XML:
<country id="Russia"> <cities-list><city><title></title><state>Siberia</state><universities-list><university id="2"><title> </title><noprivate/><address URL="www.nstu.ru"/><description> </description> </university> <university id="2"><title> </title><noprivate/><address URL="www.nsu.ru"/><description> </description> </university> </universities-list></city></cities-list></country>, , - . .. , , , , <university>, <city>. , , , .
XML , , , - . <country>
, - . , <city> Holliwood </city> , , <restaurant> Holliwood </restaurant> - .
, , .. , , . HTML HTML, <br>, <hr>, <img>;. , , (, <empty/>;)
, <!-- --> .
- , , . - "" = "", . :
|
|
HTML <font>:
<font color=white name=Arial>Black</font>C .
, , - (, ) , . , <, > " $( ),  () .. XML (entity), .
.
, , XML - <? ?>;. . (, <? Xml version=1.0?>) [11].
CDATA.
, , , , , , <![CDATA] ]]>. , - - ( CDATA, , , JavaScript). , , , ]].
- , . XML. = Beginning XML. .: , 2009. 1344 . ISBN 978-5-8459-1533-7
- . . HTML XML. . .: , 2004. 880 . ISBN 5-8459-0676-8
- . XML Web- Microsoft.NET = Microsoft.NET XML Web Services. .: , 2002. 464 . ISBN 0-672-32088-6
XML
XML 1.0
XML 1.1
Adobe Flash Adobe Flex
, . Adobe Flash. Flash :
- , , . .
- Web- .
- Flash , , . ActionScript .
Adobe Flash - Adobe - . , . Flash web - , (ActionScript) . Adobe Flash , , .
|
|
Adobe Flash , Adobe Flash Professional Adobe Flash Builder, flash- Adobe Flash Player.
Flash iPhone Android. Flash Lite, .
flash- (, ) .SWF. FLA .
.swf : - Flash Player IE,
- Flash Player
-
.swf :
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="300" height="150">
<param name=movie value=" ">
<param name=quality value=high>
<embed src=" " quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="150"></embed></object>
.swf swfobject (http://code.google.com/p/swfobject/). Swfobject .swf flash .
ActionScript
ActionScript , Adobe Flash Player Adobe AIR. , Adobe Flash, Flex AIR, . ActionScript AVM, Flash Player AIR. ActionScript -. (- , .) - SWF-, Flash Player AIR.
, Adobe Flash Professional, , Adobe Flash Builder, , Adobe Flex SDK.
ActionScript 3.0 .
hello world ActionScript 3.0
package {
import flash.display.Sprite;
import flash.text.TextField;
public class HelloWorld extends Sprite {
public function HelloWorld() {
var txtHello:TextField = new TextField();
txtHello.text = "Hello, world";
addChild(txtHello);
}
}
}
:
package
{
import flash.display.Sprite;
import flash.display.Shape;
public class FirstDrawing extends Sprite
{
public function FirstDrawing()
{
// Shape
var circle:Shape = new Shape();
//
circle.graphics.beginFill(0xff9933, 1);
//
circle.graphics.drawCircle(0, 0, 40);
//
circle.x = 140;
|
|
circle.y = 40;
//
addChild(circle);
// Shape
var rectangle:Shape = new Shape();
//
rectangle.graphics.beginFill(0xaaFFaa, 1);
//
rectangle.graphics.drawRect(0, 0, 40, 60);
//
rectangle.x = 0;
rectangle.y = 0;
//
addChild(rectangle);
// Shape
var line:Shape = new Shape();
//
line.graphics.lineStyle(1, 0x3333ff);
//
line.graphics.moveTo(140, 40);
line.graphics.lineTo(20, 30);
//
addChild(line);
}
}
}
-
flash . . , , : JW FLV Player (http://www.longtailvideo.com/players/jw-flv-player/)
JW FLV Player 4- :
1.
2. jwplayer.js player.swf .
3. jwplayer.js .
:
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
4. - .
<div id="container">Loading the player...</div>
<script type="text/javascript"> jwplayer("container").setup({
});
flashplayer: "/jwplayer/player.swf", file: "/uploads/video.mp4", height: 270, width: 480
</script>
.
Flex
Adobe Flex Rich Internet Applications, XML MXML. Flex , IDE Flash, swf , Flash Player.
Flex SDK - , Flash. Flex-framework , , , , , online.
Adobe Flex: Flash Buildr. Adobe Flash Builder Eclipse. Eclipse Java, Flash Builder Java-, .
Flex, , Flash : , - , , (HTTP-, -, AMF), , ( , .), .
, Flex , Flash , .
. mxml ( xml):
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="vertical"
creationComplete="initApp()">
<mx:Script>
<![CDATA[
public function initApp():void
{
// Prints our "Hello, world!" message into "mainTxt".
mainTxt.text = "Hello, world!";
}
]]>
</mx:Script>
<mx:Label id="title" fontSize="24" text='"Hello, world!" Example'/>
<mx:TextArea id="mainTxt" width="250"/>
</mx: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" >
<fx:Declarations>
<!-- XML -->
<fx:XMLList id="employees">
<employee>
<name>Christina Coenraets</name>
<phone>555-219-2270</phone>
<email>[email protected]</email>
<active>true</active>
<image>images/arrow_icon_sm.png</image>
</employee>
<employee>
<name>Joanne Wall</name>
<phone>555-219-2012</phone>
<email>[email protected]</email>
<active>true</active>
</employee>
<employee>
<name>Maurice Smith</name>
<phone>555-219-2012</phone>
<email>[email protected]</email>
<active>false</active>
</employee>
<employee>
<name>Mary Jones</name>
<phone>555-219-2000</phone>
<email>[email protected]</email>
<active>true</active>
</employee>
</fx:XMLList>
</fx:Declarations>
<!-- -->
<s:layout>
<s:HorizontalLayout horizontalAlign="center" />
</s:layout>
<!-- -->
<s:Panel title="DataGrid Control"
color="0x000000"
borderAlpha="0.15"
width="600">
<!-- -->
<s:layout>
<s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10"/>
</s:layout>
<!-- -->
<s:Label width="100%" color="0x323232"
text="Select a row in the DataGrid control."/>
<!-- . xml -->
<mx:DataGrid id="dg" color="0x323232" width="100%" rowCount="3" dataProvider="{employees}">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="Name"/>
<mx:DataGridColumn dataField="phone" headerText="Phone"/>
<mx:DataGridColumn dataField="email" headerText="Email"/>
</mx:columns>
</mx:DataGrid>
<!-- -->
<mx:Form color="0x323232" width="100%" height="100%" paddingTop="0" paddingBottom="0" >
<mx:FormItem label="Name" paddingTop="0" paddingBottom="0">
<s:Label text="{dg.selectedItem.name}"/>
</mx:FormItem>
<mx:FormItem label="Email" paddingTop="0" paddingBottom="0">
<s:Label text="{dg.selectedItem.email}"/>
</mx:FormItem>
<mx:FormItem label="Phone" paddingTop="0" paddingBottom="0">
<s:Label text="{dg.selectedItem.phone}"/>
</mx:FormItem>
</mx:Form>
</s:Panel>
</s:Application>