-
Notifications
You must be signed in to change notification settings - Fork 9
/
flash
79 lines (53 loc) · 2.27 KB
/
flash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
##### Debug with log file #####
# first download and install flash player debug version from
http://www.adobe.com/support/flashplayer/downloads.html
# you must create mm.cfg file in your home directory to enable loggging,
# look here for details: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html
bekir@hede:~$ cat > mm.cfg
ErrorReportingEnable=1
TraceOutputFileEnable=1
TraceOutPutFileName=/home/bekir/.macromedia/Flash_Player/Logs/flashlog.txt
PolicyFileLog=1 # Enables policy file logging
#PolicyFileLogAppend=1 # Optional; do not clear log at startup
MaxWarnings=0
bekir@hede:~$
# optionally install flashtracer extension for firefox
# for instructions see
http://www.sephiroth.it/weblog/archives/2007/01/install_flashtracer_on_linux.php
##### Debug with fdb (command line debugging) #####
# fdb program could be found in flex_sdk/bin directory
# compile your swf with debug option "on", in my case it could be done by
-debug=true
'debug="true"'
# parameter of mxmlc from command line or ant file mxmlc tag (build.xml)
# use debugger version of flash player
# run fdb
bekir@hede:~/bin/flex_sdk/bin$ ./fdb
Adobe fdb (Flash Player Debugger) [build 3958]
Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
(fdb) r
# type "t" for tutorial in (fdb) command line
# http://marxsoftware.blogspot.com/2007/11/using-flex-debugger-fdb-with-flex-based.html
# open your swf file from your browser or anywhere
# Using the Command-Line Debugger from Adobe
# http://livedocs.adobe.com/flex/3/html/debugging_01.html
##### Flex Debugging Tools and Frameworks #####
http://www.flex888.com/656/10-flex-frameworks-and-debugging-tools.html
http://saravananrk.wordpress.com/2008/03/31/the-list-of-helpful-flex-or-flash-debug-tools/
# learning active useragent in flash
flash.net.URLRequestDefaults.userAgent
navigator.userAgent
#Accessing flash object from js:
#from http://livedocs.adobe.com/flash/8/main/00002201.html
function getFlashMovieObject() {
var movieName = "FLVPlayer";
if (document.embeds[movieName])
return document.embeds[movieName];
if(window.document[movieName])
return window.document[movieName];
if(window[movieName])
return window[movieName];
if(document[movieName])
return document[movieName];
return null;
}