PDA

Просмотр полной версии : Из mxml в ActionScript


NikR
29.07.2007, 18:12
Добрый день. Как-то тут была похожая тема, но не смог найти.
Компилятор Flex делает из mxml ActionScript и результатирующий код можно увидеть. Вопрос как?

etc
29.07.2007, 22:21
Декомпилятором, конечно.
Только вот я пока не знаю декомпиляторов AS3.

Nirth
30.07.2007, 00:32
Никаких декомпиляторов, есть у компилятора специальный ключ(-keep-generated или что то типа этого)

Открой компилятор из консоли, и посмотри

etc
30.07.2007, 00:55
Настоящие флешеры не ищут легких путей :D

Nirth
30.07.2007, 00:58
>Настоящие флешеры не ищут легких путей
Угу я однажды пытался перехватывать ас файлы (они создаются в временой папке, если заэмбедить в флекс проект кучу всячины, можно успеть откопипастить =)

Nirth
30.07.2007, 02:35
OrangeMac:~ Nirth$ java -jar /Developer/SDKs/Flex2.sdk/lib/mxmlc.jar -help list
Adobe Flex Compiler (mxmlc)
Version 2.0.1 build 166910
Copyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.

-benchmark
-compiler.accessible
-compiler.actionscript-file-encoding <string>
-compiler.context-root <context-path>
-compiler.debug
-compiler.external-library-path [path-element] [...]
-compiler.fonts.flash-type
-compiler.fonts.max-glyphs-per-face <string>
-compiler.include-libraries [library] [...]
-compiler.incremental
-compiler.library-path [path-element] [...]
-compiler.locale <string>
-compiler.namespaces.namespace <uri> <manifest>
-compiler.optimize
-compiler.services <filename>
-compiler.show-actionscript-warnings
-compiler.show-binding-warnings
-compiler.show-deprecation-warnings
-compiler.show-unused-type-selector-warnings
-compiler.source-path [path-element] [...]
-compiler.strict
-compiler.theme [filename] [...]
-compiler.use-resource-bundle-metadata
-help [keyword] [...]
-licenses.license <product> <serial-number>
-load-config <filename>
-metadata.contributor <name>
-metadata.creator <name>
-metadata.date <text>
-metadata.description <text>
-metadata.language <code>
-metadata.localized-description <text> <lang>
-metadata.localized-title <title> <lang>
-metadata.publisher <name>
-metadata.title <text>
-output <filename>
-runtime-shared-libraries [url] [...]
-use-network
-version
-warnings

OrangeMac:~ Nirth$

ммм или может __etc прав и убрали эту фичу...

__i
30.07.2007, 03:44
ммм или может __etc прав и убрали эту фичу...
Осталась токо никто о ней не говорит, я сам часа 2 пытался найти в хелпе который выводит компилятор, не нашел - у Роста на блоге подсмотрел )

vooparker
30.07.2007, 10:07
mxmlc -help advanced

Adobe Flex Compiler (mxmlc)
Version 2.0.1 build 155542
Copyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.

-benchmark
-compiler.accessible
-compiler.actionscript-file-encoding <string>
-compiler.allow-source-path-overlap
-compiler.as3
-compiler.context-root <context-path>
-compiler.debug
-compiler.defaults-css-url <string>
-compiler.es
-compiler.external-library-path [path-element] [...]
-compiler.fonts.flash-type
-compiler.fonts.languages.language-range <lang> <range>
-compiler.fonts.local-fonts-snapshot <string>
-compiler.fonts.managers [manager-class] [...]
-compiler.fonts.max-cached-fonts <string>
-compiler.fonts.max-glyphs-per-face <string>
-compiler.headless-server
-compiler.include-libraries [library] [...]
-compiler.incremental
-compiler.keep-all-type-selectors
-compiler.keep-as3-metadata [name] [...]
-compiler.keep-generated-actionscript
-compiler.library-path [path-element] [...]
-compiler.locale <string>
-compiler.namespaces.namespace <uri> <manifest>
-compiler.optimize
-compiler.services <filename>
-compiler.show-actionscript-warnings
-compiler.show-binding-warnings
-compiler.show-deprecation-warnings
-compiler.show-unused-type-selector-warnings
-compiler.source-path [path-element] [...]
-compiler.strict
-compiler.theme [filename] [...]
-compiler.use-resource-bundle-metadata
-compiler.verbose-stacktraces
-compiler.warn-array-tostring-changes
-compiler.warn-assignment-within-conditional
-compiler.warn-bad-array-cast
-compiler.warn-bad-bool-assignment
-compiler.warn-bad-date-cast
-compiler.warn-bad-es3-type-method
-compiler.warn-bad-es3-type-prop
-compiler.warn-bad-nan-comparison
-compiler.warn-bad-null-assignment
-compiler.warn-bad-null-comparison
-compiler.warn-bad-undefined-comparison
-compiler.warn-boolean-constructor-with-no-args
-compiler.warn-changes-in-resolve
-compiler.warn-class-is-sealed
-compiler.warn-const-not-initialized
-compiler.warn-constructor-returns-value
-compiler.warn-deprecated-event-handler-error
-compiler.warn-deprecated-function-error
-compiler.warn-deprecated-property-error
-compiler.warn-duplicate-argument-names
-compiler.warn-duplicate-variable-def
-compiler.warn-for-var-in-changes
-compiler.warn-import-hides-class
-compiler.warn-instance-of-changes
-compiler.warn-internal-error
-compiler.warn-level-not-supported
-compiler.warn-missing-namespace-decl
-compiler.warn-negative-uint-literal
-compiler.warn-no-constructor
-compiler.warn-no-explicit-super-call-in-constructor
-compiler.warn-no-type-decl
-compiler.warn-number-from-string-changes
-compiler.warn-scoping-change-in-this
-compiler.warn-slow-text-field-addition
-compiler.warn-unlikely-function-value
-compiler.warn-xml-class-has-changed
-debug-password <string>
-default-background-color <int>
-default-frame-rate <int>
-default-script-limits <max-recursion-depth> <max-execution-time>
-default-size <width> <height>
-dump-config <filename>
-externs [symbol] [...]
-frames.frame [label] [classname] [...]
-help [keyword] [...]
-includes [symbol] [...]
-licenses.license <product> <serial-number>
-link-report <filename>
-load-config <filename>
-load-externs <filename>
-metadata.contributor <name>
-metadata.creator <name>
-metadata.date <text>
-metadata.description <text>
-metadata.language <code>
-metadata.localized-description <text> <lang>
-metadata.localized-title <title> <lang>
-metadata.publisher <name>
-metadata.title <text>
-output <filename>
-raw-metadata <text>
-resource-bundle-list <filename>
-runtime-shared-libraries [url] [...]
-use-network
-version
-warnings

NikR
30.07.2007, 15:10
Спасибо большое!

Nirth
31.07.2007, 02:12
Опа а я и не знал что есть еще хелп для продвинутых=) спасибо

xpi100
03.08.2007, 16:02
a ecm Dekomnu.atop . .opmame swf

Rution
15.01.2008, 03:06
Всем Здра. Есть вопрос по компилятору, как вместе с swf файлом создать html? Какую опцию использовать? Пользуюсь Flex Sdk 2.

Rution
15.01.2008, 03:11
Почитал и узнал что mxmlc не может генерировать HTML стрницы :(

aQuestion
15.01.2008, 11:13
Декомпилятором, конечно.
Только вот я пока не знаю декомпиляторов AS3.по слухам, асв 6 (альфа) (http://www.buraks.com/asv/6.html) его хавает.

etc
15.01.2008, 13:29
Ну они обещали ещё в прошлом году выпустить. А воз и ныне там. Практически декомпиляцией занимается мой ClassExplorer, а декомпилятор на его основе пока не готов. И неизвестно, будет ли готов.