diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8f586ce Binary files /dev/null and b/.DS_Store differ diff --git a/AnimationEffects/AnimationEffects.fla b/AnimationEffects/AnimationEffects.fla new file mode 100644 index 0000000..13bbc2f Binary files /dev/null and b/AnimationEffects/AnimationEffects.fla differ diff --git a/AnimationEffects/AnimationEffects2.fla b/AnimationEffects/AnimationEffects2.fla new file mode 100644 index 0000000..ef4c7a0 Binary files /dev/null and b/AnimationEffects/AnimationEffects2.fla differ diff --git a/PureSaffron/PureSaffron-app.xml b/FileBrowser/DownloadManager-app.xml similarity index 85% rename from PureSaffron/PureSaffron-app.xml rename to FileBrowser/DownloadManager-app.xml index a720f36..7faebf7 100644 --- a/PureSaffron/PureSaffron-app.xml +++ b/FileBrowser/DownloadManager-app.xml @@ -16,15 +16,15 @@ Japanese App name goes here --> - - PureSaffron + + PopMenu 1.0 - PureSaffron + PopMenu - PureSaffron + PopMenu - PureSaffron.swf + DownloadManager.swf standard false true diff --git a/FileBrowser/DownloadManager.fla b/FileBrowser/DownloadManager.fla new file mode 100644 index 0000000..c9e90aa Binary files /dev/null and b/FileBrowser/DownloadManager.fla differ diff --git a/FileBrowser/FileBrowser.as b/FileBrowser/FileBrowser.as new file mode 100644 index 0000000..1614736 --- /dev/null +++ b/FileBrowser/FileBrowser.as @@ -0,0 +1,38 @@ +package +{ + import flash.display.MovieClip; + import flash.filesystem.File; + import flash.utils.ByteArray; + + import fileBrowser.FileBrowser2; + + import netManager.urlSaver.URLSaver; + import netManager.urlSaver.URLSaverEvent; + + public class FileBrowser extends MovieClip + { + public function FileBrowser() + { + super(); + //Download file + var fileSaver:URLSaver = new URLSaver(); + fileSaver.addEventListener(URLSaverEvent.LOADING,showPercent); + fileSaver.addEventListener(URLSaverEvent.LOAD_COMPLETE,fileDownloaded); + trace("*** Start file downlading"); + fileSaver.load("https://sample-videos.com/audio/mp3/crowd-cheering.mp3"); + } + + private function showPercent(e:URLSaverEvent):void + { + trace(e.precent); + } + + private function fileDownloaded(e:URLSaverEvent):void + { + trace("Load completed"); + //You could change the buttons label as you need + FileBrowser2.setUp(1,1,1,1); + FileBrowser2.browsToSave(e.loadedBytes,"fileName.mp3"); + } + } +} \ No newline at end of file diff --git a/PureSaffron/Data/config.xml b/PureSaffron/Data/config.xml deleted file mode 100644 index 7c0d44d..0000000 --- a/PureSaffron/Data/config.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 0 - 0 - - 0 - 0 - - false - false - false - false - - 0 - 0 - 0 - 0 - - false - \ No newline at end of file diff --git a/PureSaffron/Data/data.xml b/PureSaffron/Data/data.xml deleted file mode 100644 index bd05f1a..0000000 --- a/PureSaffron/Data/data.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - home - - - <content x="NaN" y="NaN" w="NaN" h="NaN" align=""/> - <music/> - <image/> - <images> - <img text="" targ="null" w="NaN" h="NaN" x="NaN" y="NaN"/> - </images> - <links> - <link level="-1" name="" id="" icon="" w="NaN" h="NaN" x="NaN" y="NaN"/> - </links> - <links/> - </page> - - - - <page id="sample1_page"> - <type>sample3</type> - </page> - - - <page id="sample2_page"> - <type>sample3</type> - </page> - - - <page id="sample3_page"> - <type>sample3</type> - </page> - - - <page id="sample4_page"> - <type>sample3</type> - </page> - -</app> \ No newline at end of file diff --git a/PureSaffron/Data/language.xml b/PureSaffron/Data/language.xml deleted file mode 100644 index a45e713..0000000 --- a/PureSaffron/Data/language.xml +++ /dev/null @@ -1,70 +0,0 @@ -<lang> - <currentlang>fa</currentlang> - - <language_info> - <en name="lang_id_en" id="en" rtl='0' arabic='0'>[[FONT FACE="Calibri" >[[/FONT]]</en> - <fa name="lang_id_fa" id="fa" rtl='1' arabic='1'></fa> - <ch name="lang_id_ch" id="ch" rtl='0' arabic='0'></ch> - <ar name="lang_id_ar" id="ar" rtl='1' arabic='1'></ar> - </language_info> - - <fonts_switch> - <font> - <en> - <from name="B Yekan" bold="false"/> - <to name="Calibri" bold="false"/> - </en> - </font> - <font> - <en> - <from name="B Yekan Bold" bold="false"/> - <to name="Calibri" bold="true"/> - </en> - </font> - </fonts_switch> - - <texts> - <home_l> - <en>Home</en> - <fa>خانه</fa> - <ar></ar> - </home_l> - - <!--Global texts↓--> - <id_submit> - <fa>ثبت</fa> - </id_submit> - <back> - <fa>بازگشت</fa> - </back> - <no_internet> - <fa>ارتباط با اینترنت برقرار نشده است.</fa> - </no_internet> - <yes> - <fa>بله</fa> - </yes> - <please_wait> - <fa>لطفا کمی صبر کنید</fa> - </please_wait> - <search> - <fa>جستجو</fa> - </search> - <no> - <fa>خیر</fa> - </no> - <no_matches_found> - <fa>هیچ موردی یافت نشد</fa> - </no_matches_found> - <!--Global texts↑--> - - </texts> - - <movieclips> - <frame_on_lang> - <en>2</en> - <fa>1</fa> - </frame_on_lang> - - - </movieclips> -</lang> \ No newline at end of file diff --git a/PureSaffron/PureSaffron.fla b/PureSaffron/PureSaffron.fla deleted file mode 100644 index 64d915d..0000000 Binary files a/PureSaffron/PureSaffron.fla and /dev/null differ diff --git a/Scroll/scrollSample.as b/Scroll/scrollSample.as index 9fb26f6..3340897 100644 --- a/Scroll/scrollSample.as +++ b/Scroll/scrollSample.as @@ -19,6 +19,7 @@ SliderManager scrollMC = Obj.get("scroll_mc",this); + new ScrollMT(scrollMC,new Rectangle(scrollMC.x,scrollMC.y,scrollMC.width,300),null,true,false); scroll2MC = Obj.get("scroll2_mc",this); @@ -26,6 +27,7 @@ scrollrtlMC = Obj.get("scrollrtl_mc",this); new ScrollMT(scrollrtlMC,new Rectangle(scrollrtlMC.x-300,scrollrtlMC.y,300,scrollrtlMC.height),null,false,true,true,false,true); + } } -} \ No newline at end of file +}