{"id":383,"date":"2011-04-15T08:34:04","date_gmt":"2011-04-15T06:34:04","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=383"},"modified":"2011-04-15T08:56:38","modified_gmt":"2011-04-15T06:56:38","slug":"adobe-flex-3-charaktere-aus-flash-professional-cs4-exportieren-und-einbinden","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=383","title":{"rendered":"Adobe Flex 3: Charaktere aus Flash Professional CS4 exportieren und einbinden"},"content":{"rendered":"<h1>Aufgabenstellung<\/h1>\n<p>Es wird ein Grundger\u00fcst f\u00fcr eine Flex-Anwendung erstellt, auf dessen Basis Animationen und Charaktere, die aus Flash CS4 exportiert worden, gesteuert werden k\u00f6nnen.<\/p>\n<h1>Intention<\/h1>\n<p>Da Adobe Flex als Entwicklungsumgebung f\u00fcr Programmierungen wesentlich mehr Features bietet als Flash (Context-Hilfe, Syntax-Highlighting, Design-Time-Pr\u00fcfungen), wird versucht die Vorteile von Beiden Umgebungen zu nutzen und ein Flashspiel mit Flex, dessen Focus auf der Entwicklung mit Eclipse liegt, zu implementieren. <\/p>\n<h1>Ziel<\/h1>\n<p>Ziel ist das Auffinden von Bests Practices bei der Spieleentwicklung mit Flash\/Flex. <\/p>\n<h1>Vorgehensweise 1<\/h1>\n<h2>Erstellen von Animationen<\/h2>\n<p>Es werden 2 Loop-f\u00e4hige Animationen erstellt, die nachher als Symbol konvertiert werden<br \/>\nHier:<br \/>\n&#8211; Moving Landscape<br \/>\n&#8211; Character<\/p>\n<h2>Export aus Flash \/ Import in Flex<\/h2>\n<ul>\n<li>Flash schlie\u00dfen<\/li>\n<li>Adobe Account anlegen<\/li>\n<li>Flex Component Kit bei Adobe runterladen<\/li>\n<li>Flex Component Kit mit Adobe Extension Installer installieren<\/li>\n<li>Nur bei Problem mit Deutschen Versionen: Das in C:\\User &#8230; &#8230; AppData &#8230; Adobe Flash CS4 &#8230; !!!DE!!! &#8230; Configuration-Verzeichnis in das auf der gleichen Ebene  befindliche !!!EN!!! Verzeichnis kopieren<\/li>\n<li>Flash neu starten<\/li>\n<li>Die auf der Stage befindlichen Ebenen markieren<\/li>\n<li>Men\u00fclieste: Modify -> Convert to Symbol<\/li>\n<li>In Library (STRG+L) Symbol anklicken<\/li>\n<li>Neues Men\u00fc: Command &#8211; Convert to Flex Component aufrufen<\/li>\n<li>File->Publish aufrufen<\/li>\n<li>In der Library auf dem neuen Flex Symbol -> Rechte Maustaste -> Convert to SWC (vorher auch unter Properties die Classnamen angeben)<\/li>\n<li>In das Flex Projekt (lib-Verzeichnis) kopieren<\/li>\n<li>Die Komponente steht in MXML zur Verf\u00fcgung, wenn man den unter Properties angegebenen Classnamen aufruft<\/li>\n<\/ul>\n<h2>Versuch die Komponenten \u00fcber Flex zu steuern<\/h2>\n<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;mx:Application horizontalScrollPolicy=&quot;off&quot; verticalScrollPolicy=&quot;off&quot; \r\n          creationComplete=&quot;{onCreationComplete()}&quot; \r\n         xmlns:mx=&quot;http:\/\/www.adobe.com\/2006\/mxml&quot; layout=&quot;absolute&quot; xmlns:local=&quot;*&quot; &gt;\r\n  &lt;mx:Script&gt;\r\n  \t&lt;!&amp;#91;CDATA&amp;#91;\r\n  \t\tpublic function onCreationComplete():void\r\n  \t\t{\r\n  \t\t\ttest3.scaleX=-1;\r\n  \t\t}\r\n  \t&amp;#93;&amp;#93;&gt;\r\n  &lt;\/mx:Script&gt;\r\n &lt;local:landscape x=&quot;1400&quot; y=&quot;600&quot; height=&quot;600&quot;&gt;\r\n &lt;\/local:landscape&gt;\r\n &lt;local:MeinTest id=&quot;test3&quot; height=&quot;300&quot;  y=&quot;370&quot; x=&quot;200&quot; &gt;\r\n &lt;\/local:MeinTest&gt;\t\r\n &lt;mx:ApplicationControlBar x=&quot;0&quot; y=&quot;0&quot; width=&quot;100%&quot; height=&quot;50&quot;&gt;\r\n  &lt;mx:Button click=&quot;{test3.gotoAndStop(0)}&quot; label=&quot;Stop&quot;\/&gt;\r\n  &lt;mx:Button click=&quot;{test3.gotoAndPlay(0)}&quot; label=&quot;Start&quot;\/&gt;\r\n  &lt;mx:Button click=&quot;{test3.scaleY*=-1;test3.scaleX*=-1}&quot; label=&quot;Drehen&quot;\/&gt;\r\n &lt;\/mx:ApplicationControlBar&gt;\r\n&lt;\/mx:Application&gt;\r\n<\/pre>\n<h2>Ergebnis<\/h2>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"550\" height=\"500\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"src\" value=\"https:\/\/www.capri-soft.de\/blog\/wp-content\/uploads\/2011\/04\/Charactertest.swf\" \/><\/object><\/p>\n<h2>Problem<\/h2>\n<p>Die UIMovieClips lassen sich zwar rotieren, aber nicht per scaleX um die eigene Achse drehen.<\/p>\n<h2>Abhilfe<\/h2>\n<p>Wird noch gesucht<\/p>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D383&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Aufgabenstellung Es wird ein Grundger\u00fcst f\u00fcr eine Flex-Anwendung erstellt, auf dessen Basis Animationen und Charaktere, die aus Flash CS4 exportiert worden, gesteuert werden k\u00f6nnen. Intention Da Adobe Flex als Entwicklungsumgebung f\u00fcr Programmierungen wesentlich mehr Features bietet als Flash (Context-Hilfe, Syntax-Highlighting, Design-Time-Pr\u00fcfungen), wird versucht die Vorteile von Beiden Umgebungen zu nutzen und ein Flashspiel mit Flex, &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=383\" class=\"more-link\"><span class=\"screen-reader-text\">Adobe Flex 3: Charaktere aus Flash Professional CS4 exportieren und einbinden<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-adobe-flex"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-6b","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=383"}],"version-history":[{"count":15,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}