Re: 連結物件的方法....
※ 引述《gpgpt (陌生)》之銘言:
: ※ 引述《Ake (AKE)》之銘言:
: : 看你要怎樣做
: : 你是要在 a.swf 打開 b.swf 的內容 ?? <-- 載入
: : 還是在 a.swf 按一個然後跳到 b.swf ?? <-- 連結
: : 載入用loadMovie()
: : 連結用getURL()
: 上面有字錯了,不好意思...
: 我是想連結”影片”.....avi或mpg
If you want to make a "link" for Movie as avi or mpg files,
there are some ways you can do.
First, just write the action script as follows(Button AS)
on(Mouse-event){
getURL("URL","windows-type");
}
Here the Mouse-event and the URL and the windows-type are dependent on your
decision.
Noting that URL is the file where you put on internet.
(副檔名 is necessary)
Second, you can make a swf file including avi or mpg files.
Then, make an internal LINK for this, on the others words, we just make a
button including action script. After pressing or releasing the button,
the action script will load the external file (swf containing mpg or avi
files). The action script are as follows
on(Mouse-event){
loadMovie("URL","instance-name","level");
}
Remember, URL depends on your swf file, also, you can make loading-bar at
this moment. Please search releative action script, this will help you.
: : flash應該沒有直接的方法做這件事,
: : 我正在好奇你為甚麼要連結 .exe o_O;
: : 看可不可以兜出來 @@"
: exe檔也是FLASH做的
: 因為怕開檔案的人沒有軟體可以開
: 所以要把檔案都轉成.exe
: 所以我是要連到這樣的exe檔
: 感謝你喔!
I suggest you do this with swf files. Because there is a big reason that Flash
is the most popular web accssory software now, and it is free for viewers.
You should make a link where links to macromedia's flash player softwar.
BTW, exe file are also big than swf file. An advantage that swf than exe is
when programming the movie, swf will get good speed and performance.
There is no one who reads exe files into exe or swf files in internet.
--
好耶! 師傅不用去按摩了!!!
post by harry.nakata
※ 編輯: harry901 來自: 140.122.199.193 (11/20 00:22)
推
推 218.165.102.41 11/20, , 1F
推 218.165.102.41 11/20, 1F
Flash 近期熱門文章
PTT數位生活區 即時熱門文章