Thông thường các flash mẫu sưu tầm về hầu hết đều đọc dữ liệu từ file .xml như bài viết ïTunesAlbumaArt - Phong Cách Apple Vậy để làm sao có thể đọc được dữ liệu từ database đổ vào.. Thứ
Trang 1Thông thường các flash mẫu sưu tầm về hầu hết đều đọc dữ liệu từ file xml như bài viết ïTunesAlbumaArt - Phong Cách Apple Vậy để làm sao có thể đọc được dữ liệu từ database đổ vào Rất nhiều bạn đã hỏi về trường hợp này
Thứ nhất để đọc được dữ liệu từ database thì xml ko làm được Ta phải thông qua file PHP
PHP sẽ sử lý việc lẫy giữ liệu từ database sau khi lấy dữ liệu thành công sẽ tiến hành lặp theo cấu trúc file xml
Ck vậy nội dung php trả về và nội dung file xml là hoàn toàn giống nhau nên flash sẽ đọc được
Vấn đề ở đây là phải mở source file flash để thay đổi đoạn code xml thành php
Làm việc này như thế nào ?
Không quá phức tạp chỉ cần bộ Adobe Flash 9 Public Alpha có trên máy là ok 868
Mở Adobe Flash 9 Public Alpha sau đó open file fla ( file này ở đâu ? - nếu source của bạn tải về có sẵn thì không thành van dé.) Vậy nếu không có thì sao ?
Dùng Sothink SWF Decompiler để chuyển flile swf về fla để chỉnh sửa
Tai Sothink SWF Decompiler
key Crack
PHP Code:
Sn: O31JJA-YOD5G2-R12K7H-FT 9IWXV-QW2210-WJF2ZEW-2H8NDH-R3CUFO-7122K8-— DPUWJY-WBRF4T-N8GKYN
Ok cai d&t binh thuéng
Bắt đầu chuyển đổi từ swf về fla nào
Click this bar to view the small image.
Trang 2
Sothink SWF Decompiler
\Fi \i Ni a =—
vroot\tip\iTunesAlbumArt\iTunesAlbumArt, swf Jl Export Movie Colors SnapSh
Resource
poe ir
Explorer a X | MẠNG
.\ sample htm!
K3 a test
jo tip
+) ny _mmServerScripts 3
Export Path:
'|Export FLA
|Export Resources
G)~ }) includes Wp Add File „Add Folder ~
#-.¿¿ iTunesAlbumArt
o>) eles HÀ =
_ | \ ÌselectAl [a] Unselect ÍZjDelete
.\ _notes File Folder Tag i
)) images File Folder Chatter Tag id Use Characters
& js File Folder
on File SWF
Xuat FLA
< m I4Í 4Í» General Instance “ Label,/“ Components “ He:
}
stots 18)
——= i ££ Bs a
Click this bar to view the small image.
Trang 3
5
FLA file nae: C:\netpub\wwwroot\tipJTunesAlbumArt\=4TunesAlbL w | Prowse |
|| Create folder in Library for different symbol types
|| Convert static text to shape
|\¥] Generate guide line
Select export FLA file version Chon ong Dan
© Automatically using appropriate FLA version Luu
| ©) According to the SWF version
| (@ Let me select a version each time
After the FLA is exported successfully
©) Open it in Flash automatically
) ©) Ask me what to do
| @) Do nothing
Motion analyse precision: lower = "Ƒ higher
m¬.=
SWF Decompiler
Select the FLA version to export
©) Export as Flash MX 2004 (7.0) format
© Export as Flash CS3 (9.0) format (Recommended)
To make the exported FLA file function correctly, the FLA file should be
saved as the recommended Flash format
You can still select to export it as lower FLA format if you do not have
recommended Flash version installed, but some ActionScript or new
features may not work as expected
|] Automatically use appropriate FLA version and do not prompt again
_
Rôi Ok
Trang 4Bước Tiếp Theo Mở Adobe Flash 9 Public Alpha
Sau đó mở File fla vừa xuất khi nãy
Click this bar to view the small image
F
~iTunesAlbumArt*
| Timeline | & Scene 1
&S50
LD Layer 14 o « M
LD Layer 8 ee |
LD Layer 1 + + LH
2234) fữ
TT r6 6 b6 ii (ii (ii (ii (li ii ii: ii: ii (ii (ii (ii
v Actions - Frame
| ActionScript 1.0 & 2.0
Global Functions
ta co
te
af
xmlData.ignoreWhite = true;
xmlData.load("./albuminfo.xmi") ; |
this.createEmptyMovieClip ("loader", this.getNextHighest loader visible = false;
mask aipha = 0;
scrollBar.scroller y = 0;
Nhấp vào chọn 1 sẽ thấy bản 2 bân dưới kéo xuống gần dưới tìm
PHP Code:
xmlData.load("./albuminfo.xml");
Thay Thanh
PHP Code:
xmlData.load("./albuminfo.php");
ok vậy là xong nhưng không phải file flash nào cũng như nhau bạn chịu khó tìm vậy nhé
Bước Tiếp Theo là lưu lại về swf để chạy trên website
Click this bar to view the small image.
Trang 5Adobe Flash 9 Public Alpha - [~iTunesAlbumArt*]
File] Edit | View Insert Modify Text Commands Control Window Help
Open from Site
Close All Ctrl+ Alt+W
Save and Compact
Save As Ctrl+ Shift+S |) el Clo Gomme Pom í
Save as Template
Save All
Revert
|
| Export > Export Image
|
=
| “S"Publeh settee Cu: Ship (i ee ee
Publish Preview pp alain jane
Publish Shift+F12 l| 637 } end else if
Click this bar to view the small image.
Trang 6
CX) [ặi « tip > iTunesAlbumArt >
My, Organize * oe Views Ý ; New Folder
Favorite Links Datetaken Tags Size Rating
| Documents
E
M Ds:ktop
a
he)
=| Recent Places
iTunesAlbu i
Computer
IEE Pictures
Music
Recently Changed
Searches
Public
es
Sei
| ranean s Save as type: |Flash Movie (*.swf) — -_ 4
*) Hide Folders [cc8awec] |[ccCmedccj_
ok lưu đè lên file cũ là được
Sau đó đổi tên albuminfo.xml thành albuminfo.php trong thư mục cùng cấp
Click this bar to view the small image.
Trang 7
„ I t2 up su) (UP
ÀA Ơơ|ö®w% Ø|7
Local Files L s
=I Oo Site - tip (C:\inetpub\wwwroo ,
{Connections
#3 mdudes
E1 iTunesAlbumArt
: bed 2) TunesAlbumért.swf 2!
2 (Ey zco0l30
'® forgot_password.php :
bự eS iTunesAlbumaArt.rar 35(
& =) login.php
boil Br) md5.php
Ok giờ F12 tại index.html kiểm tra lại
nếu vẫn chạy là ok rồi ko có trục trặc gì
từ đây đã có thể lấy dữ liệ u từ database rồi đó
chỉ cần làm trên file albuminfo.php