Wednesday, October 7, 2009

Monday, October 5, 2009

SyntaxHighlighter 測試

測試

public function Example( ) {
_video = new Video(160, 120);
_playbackTime = new TextField( );
_playbackTime.autoSize = TextFieldAutoSize.LEFT;
_playbackTime.y = 120;
_playbackTime.text = "test";
_duration = 0;
var connection:NetConnection = new NetConnection( );
connection.connect(null);
_stream = new NetStream(connection);
_stream.play("video.flv");
var client:Object = new Object( );
client.onMetaData = onMetaData;
_stream.client = client;
_video.attachNetStream(_stream);
addChild(_video);
addChild(_playbackTime);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}


Adobe Applications_for_iPhone

http://labs.adobe.com/wiki/index.php/Applications_for_iPhone
http://www.adobe.com/devnet/logged_in/abansod_iphone.html
http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/
----------


Can applications dynamically load SWFs at runtime?

Yes, although any ActionScript in the SWF will be ignored (as there is no virtual machine to interpret the code).
Which native iPhone APIs and functionality are supported when using Flash tooling?

The following native device APIs and functionality are supported:

* MultiTouch
* Screen Orientation
* Saving images to Photo Library
* Accelerometer
* Geo-location
* Cut / Copy / Paste

Can applications take advantage of hardware acceleration?

Yes. In some cases, the rendering of Flash content will be hardware accelerated.

We will publish more information on this when we release the public beta.
Can I play H.264 Video from Flash content on the iPhone?

Yes. You can play H.264 video from Flash content by launching the content in the native iPhone video player. You cannot play back H.264 content directly within the application.
Can I use the Flex Framework to create content for the iPhone?

While it is possible to create iPhone content using the desktop Flex Framework, we do not recommend it. The Flex framework is currently optimized for execution in a desktop environment. The performance, UI, and interaction models have not been optimized for mobile devices.

Adobe is working on a mobile Flex Framework, which should be better suited for iPhone development. You can find the latest information on the mobile Flex Framework at:

http://labs.adobe.com/technologies/flex/mobile/
Which fonts should I use when developing content for the iPhone?

A good baseline font to use is Helvetica at 14pts.

You can also specify the following font types, which will map to the fonts specified:

* _sans : Helvetica
* _serif : Times New Roman
* _typewriter : Courier New

The following device fonts are also available within your content:

* Sans-serif : Helvetica, Arial, Verdana, Trebuchet, Tahoma
* Serif : Times New Roman, Georgia
* Fixed-width : Courier New, Courier

Can I run content created with Flash in the iPhone simulator on Mac?

No. Flash content created for the iPhone will not run within the iPhone simulator on Mac.
Can I use native iPhone OS Controls in my Flash based iPhone content?

No.
What size should my Flash content be when targeting the iPhone?

In fullscreen mode, the screen size is 320 x 480 (480 x 320 in landscape mode). With the status bar showing, the screen size is 320 x 460 (300 x 480 in landscape mode).
Are there any general guidelines I should consider when developing content for the iPhone?

Yes. In general, your content should adhere to the Apple iPhone Human Interface Guidelines.

It is also important to thoroughly test content on all targeted devices as performance and capabilities can vary greatly between different device versions.