Flash Loading 的感慨

http://www.wowbox.com.tw/blog/article.asp?id=3209

做Flash用三格..

1. preloader

2.resources  //將library 中recourses  輸出到第二格

3.init

FLASH程式優化

http://www.wowbox.com.tw/blog/article.asp?id=3043

在架flash站前停一停, 想一想, 看看下面兩篇

Flash網站架構

http://blog.albertlan.com/archives/74

Flash為甚麼被人嫌棄

http://blog.albertlan.com/archives/272

Currently developing an application using flex air. One tricky point is what I need flex to interact with flash animation which loads by a SWFLoader .

Found that the hierarchy, from SWFloader to the timeline of flash is as follow :

the functions I need to call are on the timeline level. Therefore we call the functions through the path:

((swfLoader.content as MovieClip).getChildAt(0) as Loader).content

say we call a function “foo” inside timeline of the flash animation

(((swfLoader.content as MovieClip).getChildAt(0) as Loader).content).foo();

Don’t forget adding an event listener Event.ADDED before calling. Otherwise, you may get call to null reference error.

Made a handy class for my goal

import flash.display.DisplayObject;
import flash.display.Loader;
import flash.display.MovieClip;
import mx.controls.SWFLoader;
public class SWFLoaderTimeline {
public static function getTimeline(swfLoader:SWFLoader):MovieClip {
if (swfLoader && swfLoader.content ) {
var contentMc:MovieClip = (swfLoader.content as MovieClip);
if (contentMc && contentMc.getChildAt(0) is Loader) {
return ((contentMc.getChildAt(0) as Loader).content as MovieClip);
}
else {
trace(“SWFLoaderTimeline error: loader is null”);
return null;
}
}
else {
trace(“SWFLoaderTimeline error: swfLoader or swfLoader content is null”);
return null;
}
}
}

於現在 – 6,200 hits之間的首位回覆本post

的朋友可以得圖, 題材任擇(畫蘿莉的話在下會

比較樂意)

約左同BSc同學仔影畢業相, 剛巧又遇到中學同學一齊影

不過稍後再補相, 今日的重點為

“Neleh, 你做乜摸我大脾 ? “

話說係Langham place Italian Tomato晚飯, 感到有隻手有大腿上遊走
原來係Neleh 抓癢抓到我這邊, 誤以為那是我的腿 … 你是卡通人物嗎 ?

同場加映Neleh噴蛋糕

大佬wing ,Shadow同我都笑到不支倒地, 其辛苦程度好似做完一百下仰臥起坐

Neleh, Neleh你真是不甘寂寞, 畢業後還要弄出笑料, 而且一次比一次強大

我驚今晚瞓著都會笑醒 …

終於搵到點搵返3D object係2D projection的位罝

myDisplayObject3D.calculateScreenCoords(camera)

以前試過做3D GUI, 無奈經bitmap render的MovieAsset material品質太差, 用作Game texture還可以, 但是用於有文字的GUI上則使文字難以閱讀

得到Projection的coordinates的話就可以輕易將controls 放係上面掩人耳目

來源:

http://www.dreaminginflash.com/category/papervision3d/

DSCF0007_3

魔王的後宮CM娃團

DSCF0066

被Yuna的笑容治癒了

 

過去如浮雲

明日若星塵

當下砂樓閣

去路何處尋

圖像281

Office 風景

 

圖像283

家中火鍋南瓜湯底

圖像255

星期三有同事生日, 分到塊蛋糕, 上面仲有支蠟燭同 …恐佈眼球

圖像277

Microsoft Surface workshop, using C#+ XAML

圖像276

Categories

Blog Stats

  • 6,128 hits