diff --git a/.gitignore b/.gitignore index 5fa081c..718b5c6 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,8 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk +*.bat +*.tmp +*.mobileprovision +*.apk +*.ipa diff --git a/DynamicLinkDynamicHeight/Item.as b/DynamicLinkDynamicHeight/Item.as new file mode 100644 index 0000000..b16f333 --- /dev/null +++ b/DynamicLinkDynamicHeight/Item.as @@ -0,0 +1,20 @@ +package +{ + import contents.displayPages.LinkItem; + + public class Item extends LinkItem + { + public function Item(mouseChildAccept:Boolean=false, searchForElements:Boolean=true) + { + super(mouseChildAccept, searchForElements); + + var W:Number = this.width ; + var H:Number = this.height ; + + this.removeChildren() ; + + this.graphics.beginFill(0xffffff*Math.random()) ; + this.graphics.drawRect(0,0,W,H+H*2*Math.random()) ; + } + } +} \ No newline at end of file diff --git a/DynamicLinkDynamicHeight/dynamicH-app.xml b/DynamicLinkDynamicHeight/dynamicH-app.xml new file mode 100644 index 0000000..a4fd329 --- /dev/null +++ b/DynamicLinkDynamicHeight/dynamicH-app.xml @@ -0,0 +1,38 @@ + + + + dynamicH + 1.0 + dynamicH + + dynamicH + + + dynamicH.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/DynamicLinkDynamicHeight/dynamicH.as b/DynamicLinkDynamicHeight/dynamicH.as new file mode 100644 index 0000000..fadc5e0 --- /dev/null +++ b/DynamicLinkDynamicHeight/dynamicH.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class dynamicH extends Sprite + { + public function dynamicH() + { + + } + } +} \ No newline at end of file diff --git a/DynamicLinkDynamicHeight/dynamicH.fla b/DynamicLinkDynamicHeight/dynamicH.fla new file mode 100644 index 0000000..ba98ded Binary files /dev/null and b/DynamicLinkDynamicHeight/dynamicH.fla differ diff --git a/DynamicLinkDynamicHeight/main.as b/DynamicLinkDynamicHeight/main.as new file mode 100644 index 0000000..c85f725 --- /dev/null +++ b/DynamicLinkDynamicHeight/main.as @@ -0,0 +1,32 @@ +package +{ + import contents.LinkData; + import contents.PageData; + import contents.displayPages.DynamicLinks; + + import flash.display.MovieClip; + import flash.events.MouseEvent; + + public class main extends MovieClip + { + private var dynamicLink:DynamicLinks ; + + public function main() + { + super(); + + dynamicLink = Obj.findThisClass(DynamicLinks,this); + + var page:PageData = new PageData(); + for(var i:int = 0 ; i<200 ; i++) + { + page.links1.push(new LinkData()); + } + + stage.addEventListener(MouseEvent.CLICK,function(e) + { + dynamicLink.setUp(page); + }); + } + } +} \ No newline at end of file diff --git a/DynamicLinks wit slider/DynamicLinkUpgrader-app.xml b/DynamicLinks wit slider/DynamicLinkUpgrader-app.xml new file mode 100644 index 0000000..bdaae6b --- /dev/null +++ b/DynamicLinks wit slider/DynamicLinkUpgrader-app.xml @@ -0,0 +1,38 @@ + + + + DynamicLinkUpgrader + 1.0 + DynamicLinkUpgrader + + DynamicLinkUpgrader + + + DynamicLinkUpgrader.swf + standard + false + true + true + portrait + gpu + true + + false + false + diff --git a/DynamicLinks wit slider/DynamicLinkUpgrader.fla b/DynamicLinks wit slider/DynamicLinkUpgrader.fla new file mode 100644 index 0000000..3b1b56c Binary files /dev/null and b/DynamicLinks wit slider/DynamicLinkUpgrader.fla differ diff --git a/DynamicLinks wit slider/DynamicLinkUpgraderMain.as b/DynamicLinks wit slider/DynamicLinkUpgraderMain.as new file mode 100644 index 0000000..238f041 --- /dev/null +++ b/DynamicLinks wit slider/DynamicLinkUpgraderMain.as @@ -0,0 +1,27 @@ +package +{ + import contents.LinkData; + import contents.PageData; + import contents.displayPages.DynamicLinks; + + import flash.display.MovieClip; + import flash.display.Sprite; + + public class DynamicLinkUpgraderMain extends MovieClip + { + public function DynamicLinkUpgraderMain() + { + super(); + var links:DynamicLinks = Obj.findThisClass(DynamicLinks,this); + //links.showStepByStep = true ; + var page:PageData = new PageData(); + for(var i = 0 ; i<10 ; i++) + { + page.links1.push(new LinkData()); + } + links.setUp(page); + + trace("Dyanic links upgraded"); + } + } +} \ No newline at end of file diff --git a/DynamicLinks wit slider/DynamicLinkUpgrader_DynamicLinkswitslider.as b/DynamicLinks wit slider/DynamicLinkUpgrader_DynamicLinkswitslider.as new file mode 100644 index 0000000..3e7f337 --- /dev/null +++ b/DynamicLinks wit slider/DynamicLinkUpgrader_DynamicLinkswitslider.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class DynamicLinkUpgrader_DynamicLinkswitslider extends Sprite + { + public function DynamicLinkUpgrader_DynamicLinkswitslider() + { + + } + } +} \ No newline at end of file diff --git a/DynamicLinks/DynamicLinks-app.xml b/DynamicLinks/DynamicLinks-app.xml new file mode 100644 index 0000000..418f21a --- /dev/null +++ b/DynamicLinks/DynamicLinks-app.xml @@ -0,0 +1,38 @@ + + + + DynamicLinks + 1.0 + DynamicLinks + + DynamicLinks + + + DynamicLinks.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/DynamicLinks/DynamicLinks.fla b/DynamicLinks/DynamicLinks.fla new file mode 100644 index 0000000..1b55e39 Binary files /dev/null and b/DynamicLinks/DynamicLinks.fla differ diff --git a/DynamicLinks/DynamicLinksMain.as b/DynamicLinks/DynamicLinksMain.as new file mode 100644 index 0000000..7796af9 --- /dev/null +++ b/DynamicLinks/DynamicLinksMain.as @@ -0,0 +1,49 @@ +package +{ + import appManager.displayContentElemets.LightImage; + import contents.LinkData; + import contents.PageData; + import contents.displayPages.DynamicLinks; + + import flash.display.Sprite; + import flash.events.MouseEvent; + + public class DynamicLinksMain extends Sprite + { + private var myPage:PageData; + + private var myLinks:myDynamicLink; + + public function DynamicLinksMain() + { + super(); + + myLinks = Obj.findAllClass(myDynamicLink,this)[0]; + + myPage = new PageData(); + for(var i = 0 ; i<10000 ; i++) + { + var link:LinkData = new LinkData(); + if(Math.floor(Math.random()*2)==0) + { + link.iconURL = "http://cdn.tabnak.ir/files/fa/news/1396/2/2/714884_531.jpg"; + } + else + { + link.iconURL = "http://cdn.tabnak.ir/files/fa/news/1396/2/2/714887_507.jpg"; + } + myPage.links1.push(link); + } + + + + stage.addEventListener(MouseEvent.CLICK,generateLinks); + } + + protected function generateLinks(event:MouseEvent):void + { + stage.removeEventListener(MouseEvent.CLICK,generateLinks); + myLinks.setUp(myPage); + } + } +} \ No newline at end of file diff --git a/DynamicLinks/DynamicLinksReloaderRevertedX-app.xml b/DynamicLinks/DynamicLinksReloaderRevertedX-app.xml new file mode 100644 index 0000000..fe1e585 --- /dev/null +++ b/DynamicLinks/DynamicLinksReloaderRevertedX-app.xml @@ -0,0 +1,38 @@ + + + + DynamicLinksReloaderRevertedX + 1.0 + DynamicLinksReloaderRevertedX + + DynamicLinksReloaderRevertedX + + + DynamicLinksReloaderRevertedX.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/DynamicLinks/DynamicLinksReloaderRevertedX.fla b/DynamicLinks/DynamicLinksReloaderRevertedX.fla new file mode 100644 index 0000000..acd4071 Binary files /dev/null and b/DynamicLinks/DynamicLinksReloaderRevertedX.fla differ diff --git a/DynamicLinks/DynamicLinks_DynamicLinks.as b/DynamicLinks/DynamicLinks_DynamicLinks.as new file mode 100644 index 0000000..ae062b7 --- /dev/null +++ b/DynamicLinks/DynamicLinks_DynamicLinks.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class DynamicLinks_DynamicLinks extends Sprite + { + public function DynamicLinks_DynamicLinks() + { + + } + } +} \ No newline at end of file diff --git a/DynamicLinks/MyLink.as b/DynamicLinks/MyLink.as new file mode 100644 index 0000000..797e87f --- /dev/null +++ b/DynamicLinks/MyLink.as @@ -0,0 +1,17 @@ +package +{ + import contents.displayPages.LinkItem; + + public class MyLink extends LinkItem + { + public function MyLink(mouseChildAccept:Boolean=false, searchForElements:Boolean=true) + { + super(mouseChildAccept, searchForElements); + } + + override public function setIndex(index:uint):void + { + this.gotoAndStop(index+1); + } + } +} \ No newline at end of file diff --git a/DynamicLinks/myDynamicLink.as b/DynamicLinks/myDynamicLink.as new file mode 100644 index 0000000..759e0f8 --- /dev/null +++ b/DynamicLinks/myDynamicLink.as @@ -0,0 +1,16 @@ +package +{ + import appManager.displayContentElemets.LightImage; + + import contents.displayPages.DynamicLinks; + + public class myDynamicLink extends DynamicLinks + { + public function myDynamicLink() + { + //horizontalMenu = true ; + super(); + iconsPerLine = 1 ; + } + } +} \ No newline at end of file diff --git a/DynamicLinksVertical/VerticalList-app.xml b/DynamicLinksVertical/VerticalList-app.xml new file mode 100644 index 0000000..bfabd2b --- /dev/null +++ b/DynamicLinksVertical/VerticalList-app.xml @@ -0,0 +1,38 @@ + + + + VerticalList + 1.0 + VerticalList + + VerticalList + + + VerticalList.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/DynamicLinksVertical/VerticalList.fla b/DynamicLinksVertical/VerticalList.fla new file mode 100644 index 0000000..6a721b8 Binary files /dev/null and b/DynamicLinksVertical/VerticalList.fla differ diff --git a/FarsiHTML/FarsiHTML-app.xml b/FarsiHTML/FarsiHTML-app.xml new file mode 100644 index 0000000..62aa3bc --- /dev/null +++ b/FarsiHTML/FarsiHTML-app.xml @@ -0,0 +1,38 @@ + + + + FarsiHTML + 1.0 + FarsiHTML + + FarsiHTML + + + FarsiHTML.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/FarsiHTML/FarsiHTML.as b/FarsiHTML/FarsiHTML.as new file mode 100644 index 0000000..adf8f25 --- /dev/null +++ b/FarsiHTML/FarsiHTML.as @@ -0,0 +1,30 @@ +package +{ + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.text.TextField; + + public class FarsiHTML extends Sprite + { + private var tex:MovieClip, + textT:TextField; + + private var textT2:TextField ; + + public function FarsiHTML() + { + super(); + + //trace(text2.htmlText); + + tex = Obj.get('text',this); + textT = Obj.get("text",tex); + textT2 = Obj.get("text2",this); + + textT2.htmlText = 'www.google.com//:http3 ﻡﻼﺳ2ﻡﻼﺳﻡﻼﺳ' + + TextPutter.onTextArea(textT,('سلامسلام2سلام3 http://www.google.com'),true,false,false,0,true,true,0,true); + + } + } +} \ No newline at end of file diff --git a/FarsiHTML/FarsiHTML.fla b/FarsiHTML/FarsiHTML.fla new file mode 100644 index 0000000..19c97f7 Binary files /dev/null and b/FarsiHTML/FarsiHTML.fla differ diff --git a/FarsiInputText/FarsiInputText-app.xml b/FarsiInputText/FarsiInputText-app.xml new file mode 100644 index 0000000..7c49e62 --- /dev/null +++ b/FarsiInputText/FarsiInputText-app.xml @@ -0,0 +1,38 @@ + + + + FarsiInputText + 1.0 + FarsiInputText + + FarsiInputText + + + FarsiInputText.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/FarsiInputText/FarsiInputText.as b/FarsiInputText/FarsiInputText.as new file mode 100644 index 0000000..4c53111 --- /dev/null +++ b/FarsiInputText/FarsiInputText.as @@ -0,0 +1,15 @@ +package +{ + import flash.display.Sprite; + import flash.text.TextField; + + public class FarsiInputText extends Sprite + { + public function FarsiInputText() + { + super(); + var textField:TextField = Obj.findThisClass(TextField,this); + FarsiInputCorrection.setUp(textField); + } + } +} \ No newline at end of file diff --git a/FarsiInputText/FarsiInputText.fla b/FarsiInputText/FarsiInputText.fla new file mode 100644 index 0000000..ab30173 Binary files /dev/null and b/FarsiInputText/FarsiInputText.fla differ diff --git a/FarsiNevis auto check/Main.as b/FarsiNevis auto check/Main.as new file mode 100644 index 0000000..1bf7745 --- /dev/null +++ b/FarsiNevis auto check/Main.as @@ -0,0 +1,25 @@ +package +{ + import flash.display.MovieClip; + import flash.text.TextField; + + public class Main extends MovieClip + { + private var textTF:TextField ; + + public function Main() + { + super(); + + textTF = Obj.get("text_txt",this); + + Unicode.estesna = '-[]»«":'; + Unicode.forceToEnglish = ',،'; + Unicode.splitters = ['.',' ','-',':',':'] ; + UnicodeStatic.detectArabicScript = true ; + Unicode.smartTextAlign = true ; + + textTF.text = UnicodeStatic.convert('س 1.432 پ'); + } + } +} \ No newline at end of file diff --git a/FarsiNevis auto check/UnicodeDirection-app.xml b/FarsiNevis auto check/UnicodeDirection-app.xml new file mode 100644 index 0000000..888ad82 --- /dev/null +++ b/FarsiNevis auto check/UnicodeDirection-app.xml @@ -0,0 +1,38 @@ + + + + UnicodeDirection + 1.0 + UnicodeDirection + + UnicodeDirection + + + UnicodeDirection.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/FarsiNevis auto check/UnicodeDirection.as b/FarsiNevis auto check/UnicodeDirection.as new file mode 100644 index 0000000..2d05cf6 --- /dev/null +++ b/FarsiNevis auto check/UnicodeDirection.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class UnicodeDirection extends Sprite + { + public function UnicodeDirection() + { + + } + } +} \ No newline at end of file diff --git a/FarsiNevis auto check/UnicodeDirection.fla b/FarsiNevis auto check/UnicodeDirection.fla new file mode 100644 index 0000000..5d73281 Binary files /dev/null and b/FarsiNevis auto check/UnicodeDirection.fla differ diff --git a/FarsiNevis/FarsiNevis-app.xml b/FarsiNevis/FarsiNevis-app.xml new file mode 100644 index 0000000..8a9a429 --- /dev/null +++ b/FarsiNevis/FarsiNevis-app.xml @@ -0,0 +1,38 @@ + + + + FarsiNevis + 1.0 + FarsiNevis + + FarsiNevis + + + FarsiNevis.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/FarsiNevis/FarsiNevis.as b/FarsiNevis/FarsiNevis.as new file mode 100644 index 0000000..6be8f81 --- /dev/null +++ b/FarsiNevis/FarsiNevis.as @@ -0,0 +1,116 @@ +package +{ + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.events.Event; + import flash.events.MouseEvent; + import flash.geom.Rectangle; + import flash.text.TextField; + import flash.text.TextFormat; + import flash.text.TextFormatAlign; + import flash.utils.getTimer; + + public class FarsiNevis extends Sprite + { + private var textMC:MovieClip, + textTXT:TextField ; + + private var matn:String; + + private var inTXT:TextField ; + + private var recter:Sprite ; + + private var mozX:Number ; + + private var lastW:Number ; + + public function FarsiNevis() + { + super(); + + recter = new Sprite(); + this.addChild(recter); + recter.alpha = 0.5 ; + recter.mouseChildren = recter.mouseEnabled =false ; + + //textMC = Obj.get('text_mc',this); + textTXT = Obj.get('text_txt',this); + inTXT = Obj.get("in_txt",this); + inTXT.addEventListener(Event.CHANGE,drawTEext); + //matn = "پس از موفقیت نسبی برخی کمپین‌ها از جمله «بین خطوط برانیم»، کمپین «من رکیک نیستم» در قالب هشتگی با همین عنوان در فضای مجازی راه اندازی شد تا از طریق فرهنگ‌سازی با گسترش هتاکی در فضای مجازی مقابله شود و توهین در اینترنت به عنوان بستر آزاد برای چنین رفتارهایی، به حداقل ممکن کاهش یابد اما آیا این کمپین موفق خواهد بود؟ به گزارش «تابناک»؛ یکی از حواشی فضای مجازی که همواره استمرار داشته، هتاکی‌های مکرر در این عرصه است؛ هتاکی‌هایی که بعضاً تحت عنوان شوخی و محض خنده صورت می‌پذیرد و عمدتاً به صورت انفرادی و در برخی موارد نیز به صورت دسته‌جمعی نمود می‌یابد. این نمود معمولاً تنها زمانی پررنگ می‌شود که خطاب به چهره‌های بین‌المللی و ملی باشد و سایر فحاشی‌های معمول روزانه انعکاس رسانه‌ای ندارد. اکنون کمپینی تحت عنوان «من رکیک نیستم» به راه افتاده تا با تکیه بر تجربه‌های نسبتاً موفق پیشین از جمله کمپین «بین خطوط برانیم» که تا حدودی در فضای اجتماعی تاثیرگذار بود، با جو کنونی در فضای مجازی ایران مقابله کرد و از شدت فحاشی‌ و توهین‌ها در این بستر کاست و بستر آنلاین را به سمت و سویی سوق داد که با ساده انگاری از کنار توهین عبور نکرد و قبح جدی هتاکی، رویه معمول کنونی تغییر دهد. البته به زعم برخی ناظران این کمپین نتیجه عمیقی نخواهد داشت و هوشنگ گلمکانی، منتقد پیشکسوت سینما یکی از این ناظران است که درباره کمپین «من رکیک نیستم» نیز موضع گیری کرده و چنین تعبیر کرده که بسیاری از رفتارهای غلط در جامعه ایرانی قابل رفع نیست و اگر قابل رفع بود، آنها در اولویت بودند و در واقع به نوعی تاکید می‌‌کند که نمی‌توان به سادگی از فحاشی گذر کرد! سردبیر مجله فیلم در این باره نوشته است: «کمپینی درست شده با عنوان من رکیک نیستم برای مقابله با فحاشی در فضای مجازی و شبکه‌‌های اجتماعی. به عنوان یک تجربه، کار بدی نیست؛ یعنی ضرری که ندارد اما بعید است ثمری داشته باشد. بعید است کاربران فحش ندانند فحاشی بد است! اما فحاشی می‌کنند به هزار و یک دلیل. مثل خیلی از ویژگی‌ها و اعمال بد و منفی دیگر، وگرنه می‌شود کمپین‌های دیگری هم راه انداخت؛ مثلا کمپین من بد نیستم، من دزد نیستم، من متعصب نیستم، من حسود نیستم و انواع کمپین‌های مشابه.» سردبیر مجله فیلم در این باره نوشته است: «کمپینی درست شده با عنوان من رکیک نیستم برای مقابله با فحاشی در فضای مجازی و شبکه‌‌های اجتماعی. به عنوان یک تجربه، کار بدی نیست؛ یعنی ضرری که ندارد اما بعید است ثمری داشته باشد. بعید است کاربران فحش ندانند فحاشی بد است! اما فحاشی می‌کنند به هزار و یک دلیل. مثل خیلی از ویژگی‌ها و اعمال بد و منفی دیگر، وگرنه می‌شود کمپین‌های دیگری هم راه انداخت؛ مثلا کمپین من بد نیستم، من دزد نیستم، من متعصب نیستم، من حسود نیستم و انواع کمپین‌های مشابه.» اشاره گلمکانی یادآور توجیه صادق هدایت نویسنده ایرانی است، که گفته بود: «فحش، یکی از اصول ایجاد تعادل در آدمیزاد است. اگر فحش نباشد آدم دق می کند! از تعداد و نوع فحش در هر زبانی می شود از اوضاع مردمی که در یک ناحیه زندگی می کنند سردرآورد و رابطه بین آنها را کشف کرد. زبان فارسی اگر هیچ نداشته باشد فحش آبدار زیاد دارد. ما که بر سر این ثروت عظیم نشسته ایم چرا ولخرجی نکنیم؟!»" ; + //matn = matn+matn+matn+matn ; + + //putTexxts(null); + + stage.addEventListener(MouseEvent.MOUSE_DOWN,startRe); + + } + + private function startRe(e):void + { + mozX = stage.mouseX ; + lastW = textTXT.width ; + startResize(e); + stage.addEventListener(MouseEvent.MOUSE_MOVE,startResize); + stage.addEventListener(MouseEvent.MOUSE_UP,function() + { + stage.removeEventListener(MouseEvent.MOUSE_MOVE,startResize); + }); + } + + protected function startResize(event:MouseEvent):void + { + // TODO Auto-generated method stub + textTXT.width = lastW+stage.mouseX-mozX; + //UnicodeStatic.htmlText(textTXT,inTXT.text,false,false,true); + drawTEext(null); + event.updateAfterEvent(); + + } + + protected function drawTEext(event:Event):void + { + trace("textTXT.defaultTextFormat.indent : "+JSON.stringify(textTXT.defaultTextFormat,null,' ')); + UnicodeStatic.htmlText(textTXT,inTXT.text,false,false,true); + var rect:Rectangle; + try + { + rect = textTXT.getCharBoundaries(0); + trace("rect :"+rect); + recter.graphics.clear(); + recter.graphics.beginFill(0xff0000); + recter.graphics.drawRect(textTXT.x+rect.x,textTXT.y+rect.y,rect.width,rect.height); + + rect = textTXT.getCharBoundaries(textTXT.text.length-1); + trace("rect :"+rect+' vs '+textTXT.y); + //recter.graphics.clear(); + recter.graphics.beginFill(0x00ff00); + recter.graphics.drawRect(textTXT.x+rect.x,textTXT.y+rect.y,rect.width,rect.height); + }catch(e){}; + trace("TextWidth: "+textTXT.textWidth); + trace("Textfield width : "+textTXT.width); + } + + protected function putTexxts(event:MouseEvent):void + { + /*var tf:TextFormat = textTXT.defaultTextFormat ; + tf.align = TextFormatAlign.LEFT; + //textTXT.defaultTextFormat = tf ; + //textTXT.setTextFormat(tf); + tf = textTXT.defaultTextFormat ; + tf.align = TextFormatAlign.JUSTIFY; + textTXT.defaultTextFormat = tf ;*/ + //textTXT.setTextFormat(tf); + var mant2:String = "Thanks to the tremendous advancement of science in the field of imaging techniques, an ancient Egyptian mummy has been discovered with marks of. Thanks to the tremendous advancement of science in the field of imaging techniques, an ancient Egyptian mummy has been discovered with marks of. Thanks to the tremendous advancement of science in the field of imaging techniques, an ancient Egyptian mummy has been discovered with marks of. Thanks to the tremendous advancement of science in the field of imaging techniques, an ancient Egyptian mummy has been discovered with marks of." ; + UnicodeStatic.detectArabicScript = true ; + UnicodeStatic.htmlText(textTXT,mant2,false,false,false); + + //var farsiMatn:String = UnicodeStatic.convert(matn); + //var tim:uint = getTimer(); + //TextPutter.onTextArea(textTXT,matn,true); + //trace("Time : "+(getTimer()-tim)); + //textTXT.text = UnicodeStatic.convert(matn); + } + } +} \ No newline at end of file diff --git a/FarsiNevis/FarsiNevis.fla b/FarsiNevis/FarsiNevis.fla new file mode 100644 index 0000000..854a391 Binary files /dev/null and b/FarsiNevis/FarsiNevis.fla differ diff --git a/FarsiNevis/FarsiNevis_FarsiNevis.as b/FarsiNevis/FarsiNevis_FarsiNevis.as new file mode 100644 index 0000000..781b177 --- /dev/null +++ b/FarsiNevis/FarsiNevis_FarsiNevis.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class FarsiNevis_FarsiNevis extends Sprite + { + public function FarsiNevis_FarsiNevis() + { + + } + } +} \ No newline at end of file diff --git a/FarsiNevis/FarsiNevis_FarsiNevis_SWF.as b/FarsiNevis/FarsiNevis_FarsiNevis_SWF.as new file mode 100644 index 0000000..370d11f --- /dev/null +++ b/FarsiNevis/FarsiNevis_FarsiNevis_SWF.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class FarsiNevis_FarsiNevis_SWF extends Sprite + { + public function FarsiNevis_FarsiNevis_SWF() + { + + } + } +} \ No newline at end of file diff --git a/FewLineOnParag/fewLines-app.xml b/FewLineOnParag/fewLines-app.xml new file mode 100644 index 0000000..84623ed --- /dev/null +++ b/FewLineOnParag/fewLines-app.xml @@ -0,0 +1,38 @@ + + + + fewLines + 1.0 + fewLines + + fewLines + + + fewLines.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/FewLineOnParag/fewLines.as b/FewLineOnParag/fewLines.as new file mode 100644 index 0000000..0b75fa7 --- /dev/null +++ b/FewLineOnParag/fewLines.as @@ -0,0 +1,19 @@ +package +{ + import appManager.displayContentElemets.TextParag; + + import flash.display.Sprite; + + public class fewLines extends Sprite + { + public function fewLines() + { + super(); + + trace("Hi"); + var myParag:TextParag = Obj.findThisClass(TextParag,this); + myParag.setUp("معاون دانشجویی دانشگاه از کلیه دانشجویان واجد شرایط به منظور شرکت در بیست و پنجمین دوره جشنواره دانشجوی نمونه سال ۱۳۹۵ دعوت کرد." + ,true,true,false,false,false,false,false,true,true,false,true,0,true); + } + } +} \ No newline at end of file diff --git a/FewLineOnParag/fewLines.fla b/FewLineOnParag/fewLines.fla new file mode 100644 index 0000000..5f8c9be Binary files /dev/null and b/FewLineOnParag/fewLines.fla differ diff --git a/FullAnimatedScroller/FullAnimatedScroller-app.xml b/FullAnimatedScroller/FullAnimatedScroller-app.xml new file mode 100644 index 0000000..d845d3c --- /dev/null +++ b/FullAnimatedScroller/FullAnimatedScroller-app.xml @@ -0,0 +1,38 @@ + + + + FullAnimatedScroller + 1.0 + FullAnimatedScroller + + FullAnimatedScroller + + + FullAnimatedScroller.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/FullAnimatedScroller/FullAnimatedScroller.as b/FullAnimatedScroller/FullAnimatedScroller.as new file mode 100644 index 0000000..a043937 --- /dev/null +++ b/FullAnimatedScroller/FullAnimatedScroller.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class FullAnimatedScroller extends Sprite + { + public function FullAnimatedScroller() + { + super(); + } + } +} \ No newline at end of file diff --git a/FullAnimatedScroller/FullAnimatedScroller.fla b/FullAnimatedScroller/FullAnimatedScroller.fla new file mode 100644 index 0000000..d94b927 Binary files /dev/null and b/FullAnimatedScroller/FullAnimatedScroller.fla differ diff --git a/HTML Unicode/HTMLnicode-app.xml b/HTML Unicode/HTMLnicode-app.xml new file mode 100644 index 0000000..969c4a1 --- /dev/null +++ b/HTML Unicode/HTMLnicode-app.xml @@ -0,0 +1,38 @@ + + + + HTMLnicode + 1.0 + HTMLnicode + + HTMLnicode + + + HTMLnicode.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/HTML Unicode/HTMLnicode.fla b/HTML Unicode/HTMLnicode.fla new file mode 100644 index 0000000..04dc175 Binary files /dev/null and b/HTML Unicode/HTMLnicode.fla differ diff --git a/HorizontalAlign/hAlign-app.xml b/HorizontalAlign/hAlign-app.xml new file mode 100644 index 0000000..59020d6 --- /dev/null +++ b/HorizontalAlign/hAlign-app.xml @@ -0,0 +1,38 @@ + + + + hAlign + 1.0 + hAlign + + hAlign + + + hAlign.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/HorizontalAlign/hAlign.fla b/HorizontalAlign/hAlign.fla new file mode 100644 index 0000000..a6269a7 Binary files /dev/null and b/HorizontalAlign/hAlign.fla differ diff --git a/IOSOnlineVideo/iOSVideoShow-app.xml b/IOSOnlineVideo/iOSVideoShow-app.xml new file mode 100644 index 0000000..96616c0 --- /dev/null +++ b/IOSOnlineVideo/iOSVideoShow-app.xml @@ -0,0 +1,48 @@ + + + + iOSVideoShow + 1.0 + iOSVideoShow + + iOSVideoShow + + + iOSVideoShow.swf + standard + false + true + false + portrait + auto + true + + false + false + + UIDeviceFamily + + 1 + 2 + +]]> + high + + diff --git a/IOSOnlineVideo/iOSVideoShow.as b/IOSOnlineVideo/iOSVideoShow.as new file mode 100644 index 0000000..93f3fb3 --- /dev/null +++ b/IOSOnlineVideo/iOSVideoShow.as @@ -0,0 +1,12 @@ +package +{ + import flash.display.Sprite; + + public class iOSVideoShow extends Sprite + { + public function iOSVideoShow() + { + super(); + } + } +} \ No newline at end of file diff --git a/IOSOnlineVideo/iOSVideoShow.fla b/IOSOnlineVideo/iOSVideoShow.fla new file mode 100644 index 0000000..4023991 Binary files /dev/null and b/IOSOnlineVideo/iOSVideoShow.fla differ diff --git a/IOSOnlineVideo/vid.mp4 b/IOSOnlineVideo/vid.mp4 new file mode 100644 index 0000000..92daef2 Binary files /dev/null and b/IOSOnlineVideo/vid.mp4 differ diff --git a/Instagram/instagram-app.xml b/Instagram/instagram-app.xml new file mode 100644 index 0000000..59663d0 --- /dev/null +++ b/Instagram/instagram-app.xml @@ -0,0 +1,38 @@ + + + + instagram + 1.0 + instagram + + instagram + + + instagram.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/Instagram/instagram.as b/Instagram/instagram.as new file mode 100644 index 0000000..ccf7fc9 --- /dev/null +++ b/Instagram/instagram.as @@ -0,0 +1,50 @@ +package +{ + import diagrams.calender.MyShamsi; + import diagrams.instagram.InstaDataValue; + import diagrams.instagram.InstaTitleValue; + import diagrams.instagram.Instagram; + import diagrams.instagram.InstagramConstants; + import diagrams.instagram.InstagramData; + import diagrams.instagram.InstagramTitles; + + import flash.display.Sprite; + import flash.geom.Rectangle; + + public class instagram extends Sprite + { + public function instagram() + { + super(); + + InstagramConstants.VTitle_Font = "B Yekan Regular" ; + var insta:Instagram = new Instagram(new Rectangle(0,0,550,400)); + this.addChild(insta); + + var titleValue:InstagramTitles = new InstagramTitles(); + for(var i:int = 0 ; i<9 ; i++) + { + titleValue.addHTitle(new InstaTitleValue(i,i.toString())); + } + //for(i = 0 ; i<10 ; i++) + //{ + titleValue.addVTitle(new InstaTitleValue(0,'0')); + //titleValue.addVTitle(new InstaTitleValue(100,'100')); + //} + + var diagramData:InstagramData = new InstagramData("Customers",0xff0000,1); + diagramData.addData(new InstaDataValue(0,0)); + diagramData.addData(new InstaDataValue(1,2)); + diagramData.addData(new InstaDataValue(2,0)); + diagramData.addData(new InstaDataValue(3,5)); + diagramData.addData(new InstaDataValue(4,4)); + diagramData.addData(new InstaDataValue(5,2)); + diagramData.addData(new InstaDataValue(6,0)); + diagramData.addData(new InstaDataValue(7,0)); + diagramData.addData(new InstaDataValue(8,1)); + + insta.addTitleList(titleValue); + insta.addDiagramData(diagramData); + } + } +} \ No newline at end of file diff --git a/Instagram/instagram.fla b/Instagram/instagram.fla new file mode 100644 index 0000000..e4ee7b5 Binary files /dev/null and b/Instagram/instagram.fla differ diff --git a/LightImagePerformance/Image-app.xml b/LightImagePerformance/Image-app.xml new file mode 100644 index 0000000..c2bad38 --- /dev/null +++ b/LightImagePerformance/Image-app.xml @@ -0,0 +1,38 @@ + + + + Image + 1.0 + Image + + Image + + + Image.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/LightImagePerformance/Image.fla b/LightImagePerformance/Image.fla new file mode 100644 index 0000000..17906b3 Binary files /dev/null and b/LightImagePerformance/Image.fla differ diff --git a/LightImagePerformance/main.as b/LightImagePerformance/main.as new file mode 100644 index 0000000..2b042af --- /dev/null +++ b/LightImagePerformance/main.as @@ -0,0 +1,32 @@ +package { + + import flash.display.MovieClip; + import appManager.displayContentElemets.LightImage; + import flash.events.MouseEvent; + import flash.utils.getTimer; + + + public class main extends MovieClip { + + var myImage:LightImage ; + var myImage2:LightImage ; + public function main() { + super(); + + + myImage = Obj.findAllClass(LightImage,this)[0]; + myImage2 = Obj.findAllClass(LightImage,this)[1]; + + stage.addEventListener(MouseEvent.MOUSE_DOWN,loadImage); + } + + private function loadImage(e:MouseEvent):void + { + //http://lorempixel.com/1500/1500/sports/3/ + myImage.setUp("d:/test.jpg?"+new Date().time,false,0,0,0,0,true); + myImage2.setUp("d:/test.jpg?1"+new Date().time,false,0,0,0,0,true); + trace("*************************************************************"); + } + } + +} diff --git a/MicTest/mic-app.xml b/MicTest/mic-app.xml new file mode 100644 index 0000000..ea013bb --- /dev/null +++ b/MicTest/mic-app.xml @@ -0,0 +1,38 @@ + + + + mic + 1.0 + mic + + mic + + + mic.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/MicTest/mic.fla b/MicTest/mic.fla new file mode 100644 index 0000000..ddb3fe7 Binary files /dev/null and b/MicTest/mic.fla differ diff --git a/Naghashi/Naghashi-app.xml b/Naghashi/Naghashi-app.xml new file mode 100644 index 0000000..752aa63 --- /dev/null +++ b/Naghashi/Naghashi-app.xml @@ -0,0 +1,38 @@ + + + + Naghashi + 1.0 + Naghashi + + Naghashi + + + Naghashi.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/Naghashi/Naghashi.as b/Naghashi/Naghashi.as new file mode 100644 index 0000000..32c1046 --- /dev/null +++ b/Naghashi/Naghashi.as @@ -0,0 +1,57 @@ +package +{ + import contents.ImageData; + import contents.PageData; + + import flash.desktop.NativeApplication; + import flash.display.BitmapData; + import flash.display.Sprite; + import flash.events.MouseEvent; + import flash.filesystem.File; + import flash.geom.Rectangle; + + import photoEditor.PhotoEdit; + import photoEditor.StampButton; + + public class Naghashi extends Sprite + { + public function Naghashi() + { + super(); + + PhotoEdit.setUp(new Rectangle(0,0,1024,768)); + + + var stamps:Vector. = new Vector.(); + stamps.push(File.applicationDirectory.resolvePath("images1.png")); + stamps.push(File.applicationDirectory.resolvePath("images2.png")); + + PhotoEdit.addStamps(stamps); + + PhotoEdit.Edit("D://test.jpg",onImageChanged); + + //stage.addEventListener(MouseEvent.CLICK,addStampButton); + + var page:PageData = new PageData(); + for(var i = 0 ; i<10 ; i ++) + { + page.images.push(new ImageData()); + } + trace(page.export()); + } + + protected function addStampButton(event:MouseEvent):void + { + var stamp:StampButton = new StampButton(); + stamp.x = stage.mouseX; + stamp.y = stage.mouseY; + + stage.addChild(stamp); + } + + private function onImageChanged():void + { + NativeApplication.nativeApplication.exit(0); + } + } +} \ No newline at end of file diff --git a/Naghashi/Naghashi.fla b/Naghashi/Naghashi.fla new file mode 100644 index 0000000..8c164cf Binary files /dev/null and b/Naghashi/Naghashi.fla differ diff --git a/Naghashi/images1.jpg b/Naghashi/images1.jpg new file mode 100644 index 0000000..d8c86f0 Binary files /dev/null and b/Naghashi/images1.jpg differ diff --git a/Naghashi/images1.png b/Naghashi/images1.png new file mode 100644 index 0000000..67fc4f2 Binary files /dev/null and b/Naghashi/images1.png differ diff --git a/Naghashi/images2.jpg b/Naghashi/images2.jpg new file mode 100644 index 0000000..e4a971b Binary files /dev/null and b/Naghashi/images2.jpg differ diff --git a/Naghashi/images2.png b/Naghashi/images2.png new file mode 100644 index 0000000..854fb5d Binary files /dev/null and b/Naghashi/images2.png differ diff --git a/OpenFromURI/OpenFromURI-app.xml b/OpenFromURI/OpenFromURI-app.xml new file mode 100644 index 0000000..40b836f --- /dev/null +++ b/OpenFromURI/OpenFromURI-app.xml @@ -0,0 +1,82 @@ + + + + OpenFromURI + 1.0 + OpenFromURI + + OpenFromURI + + + OpenFromURI.swf + standard + false + true + false + landscape + gpu + false + + false + false + Hi + + + + + + + + + + + + + + + + + + + ]]> + + + + UIDeviceFamily + + 1 + 2 + + CFBundleURLTypes + + + CFBundleURLName + OpenFromURI + CFBundleURLSchemes + + myapp + + + + ]]> + high + + diff --git a/OpenFromURI/OpenFromURI.as b/OpenFromURI/OpenFromURI.as new file mode 100644 index 0000000..ecfaa12 --- /dev/null +++ b/OpenFromURI/OpenFromURI.as @@ -0,0 +1,31 @@ +package +{ + import flash.desktop.NativeApplication; + import flash.display.Sprite; + import flash.events.InvokeEvent; + import flash.text.TextField; + import flash.utils.getTimer; + + public class OpenFromURI extends Sprite + { + private var textTF:TextField ; + + public function OpenFromURI() + { + super(); + + textTF = new TextField(); + this.addChild(textTF); + textTF.width = 550 ; + textTF.height = 400 ; + textTF.embedFonts = false ; + textTF.text = "Here is the Invoke arguments place..."; + + NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke); + } + + private function onInvoke (e:InvokeEvent):void{ + textTF.text = String("Invoked ("+getTimer()+"): "+e.arguments); + } + } +} \ No newline at end of file diff --git a/OpenFromURI/OpenFromURI.fla b/OpenFromURI/OpenFromURI.fla new file mode 100644 index 0000000..dbcf130 Binary files /dev/null and b/OpenFromURI/OpenFromURI.fla differ diff --git a/OpenFromURI/URIOppener-app.xml b/OpenFromURI/URIOppener-app.xml new file mode 100644 index 0000000..ebc0ede --- /dev/null +++ b/OpenFromURI/URIOppener-app.xml @@ -0,0 +1,54 @@ + + + + URIOppener + 1.0.0 + + URIOppener + + URIOppener + + + URIOppener.swf + standard + false + true + false + portrait + cpu + false + + false + false + + + + + + + + + + + + + +]]> + + diff --git a/OpenFromURI/URIOppener.fla b/OpenFromURI/URIOppener.fla new file mode 100644 index 0000000..8ee2987 Binary files /dev/null and b/OpenFromURI/URIOppener.fla differ diff --git a/Password field on iOS/Default-568h-Portrait@2x.png b/Password field on iOS/Default-568h-Portrait@2x.png new file mode 100644 index 0000000..6290089 Binary files /dev/null and b/Password field on iOS/Default-568h-Portrait@2x.png differ diff --git a/Password field on iOS/Default-568h@2x.png b/Password field on iOS/Default-568h@2x.png new file mode 100644 index 0000000..540a4b9 Binary files /dev/null and b/Password field on iOS/Default-568h@2x.png differ diff --git a/Password field on iOS/Default-Landscape.png b/Password field on iOS/Default-Landscape.png new file mode 100644 index 0000000..8350c73 Binary files /dev/null and b/Password field on iOS/Default-Landscape.png differ diff --git a/Password field on iOS/Default-Landscape@2x~ipad.png b/Password field on iOS/Default-Landscape@2x~ipad.png new file mode 100644 index 0000000..f5187bc Binary files /dev/null and b/Password field on iOS/Default-Landscape@2x~ipad.png differ diff --git a/Password field on iOS/Default-Landscape~ipad.png b/Password field on iOS/Default-Landscape~ipad.png new file mode 100644 index 0000000..b24313b Binary files /dev/null and b/Password field on iOS/Default-Landscape~ipad.png differ diff --git a/Password field on iOS/Default-Portrait.png b/Password field on iOS/Default-Portrait.png new file mode 100644 index 0000000..db37e1c Binary files /dev/null and b/Password field on iOS/Default-Portrait.png differ diff --git a/Password field on iOS/Default-Portrait@2x~ipad.png b/Password field on iOS/Default-Portrait@2x~ipad.png new file mode 100644 index 0000000..7807abd Binary files /dev/null and b/Password field on iOS/Default-Portrait@2x~ipad.png differ diff --git a/Password field on iOS/Default-Portrait~ipad.png b/Password field on iOS/Default-Portrait~ipad.png new file mode 100644 index 0000000..31850f8 Binary files /dev/null and b/Password field on iOS/Default-Portrait~ipad.png differ diff --git a/Password field on iOS/Default.png b/Password field on iOS/Default.png new file mode 100644 index 0000000..299b27a Binary files /dev/null and b/Password field on iOS/Default.png differ diff --git a/Password field on iOS/Default@2x.png b/Password field on iOS/Default@2x.png new file mode 100644 index 0000000..04db4d6 Binary files /dev/null and b/Password field on iOS/Default@2x.png differ diff --git a/Password field on iOS/passwordFieldiOS-app.xml b/Password field on iOS/passwordFieldiOS-app.xml new file mode 100644 index 0000000..3e8e7af --- /dev/null +++ b/Password field on iOS/passwordFieldiOS-app.xml @@ -0,0 +1,48 @@ + + + + com.mteamapps.BimeNovin + 1.0 + passwordFieldiOS + + passwordFieldiOS + + + passwordFieldiOS.swf + standard + false + true + false + portrait + gpu + false + + false + false + + UIDeviceFamily + + 1 + 2 + +]]> + high + + diff --git a/Password field on iOS/passwordFieldiOS/DOMDocument.xml b/Password field on iOS/passwordFieldiOS/DOMDocument.xml new file mode 100644 index 0000000..9ccb1e4 --- /dev/null +++ b/Password field on iOS/passwordFieldiOS/DOMDocument.xml @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + password field + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Password field on iOS/passwordFieldiOS/META-INF/metadata.xml b/Password field on iOS/passwordFieldiOS/META-INF/metadata.xml new file mode 100644 index 0000000..e69de29 diff --git a/Password field on iOS/passwordFieldiOS/MobileSettings.xml b/Password field on iOS/passwordFieldiOS/MobileSettings.xml new file mode 100644 index 0000000..e69de29 diff --git a/Password field on iOS/passwordFieldiOS/PublishSettings.xml b/Password field on iOS/passwordFieldiOS/PublishSettings.xml new file mode 100644 index 0000000..cf22b06 --- /dev/null +++ b/Password field on iOS/passwordFieldiOS/PublishSettings.xml @@ -0,0 +1,168 @@ + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + passwordFieldiOS.swf + passwordFieldiOS.exe + passwordFieldiOS.app + passwordFieldiOS.html + passwordFieldiOS.gif + passwordFieldiOS.jpg + passwordFieldiOS.png + passwordFieldiOS.swc + passwordFieldiOS.oam + 0 + 0 + 0 + + + 0 + 0,0,0,0;20,0,0,0;19,0,0,0;18,0,0,0;17,0,0,0;16,0,0,0;14,0,0,0;13,0,0,0;12,0,0,0;11,9,0,0;11,8,0,0;11,7,0,0;11,6,0,0;11,5,0,0;11,4,0,0;11,3,0,0;11,2,0,0;11,1,0,0;10,3,0,0;10,2,153,0;10,1,52,0;9,0,124,0;8,0,24,0;7,0,14,0;6,0,79,0;5,0,58,0;4,0,32,0;3,0,8,0;2,0,1,12;1,0,0,1; + 1 + 1 + passwordFieldiOS_content.html + passwordFieldiOS_alternate.html + 0 + + 640 + 960 + 0 + 0 + 1 + 0 + 0 + 1 + 1 + 4 + 0 + 0 + 1 + 0 + C:\Users\Admin\AppData\Local\Adobe\Animate CC 2015\en_US\Configuration\HTML\Default.html + 1 + + + + + 0 + 0 + 0 + 80 + 0 + 0 + 7 + 0 + 7 + 0 + 36 + PFI_25.0.0.118 + 3 + 1 + + . + CONFIG::FLASH_AUTHORING="true"; + 0 + + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + 2 + 4 + 4096 + AS3 + 1 + 1 + 0 + 15 + 1 + 0 + 4102 + rsl + wrap + $(AppConfig)/ActionScript 3.0/rsls/loader_animation.swf + + + $(AppConfig)/ActionScript 3.0/libs + merge + + + + + 0 + + + + 640 + 960 + 0 + 4718592 + 0 + 80 + 1 + + + 640 + 960 + 0 + 1 + 1 + 0 + 1 + 255 + + + 1 + 1 + 24-bit with Alpha + 255 + + + 640 + 960 + 1 + 0 + + 0 + + + true + true + false + passwordFieldiOS.svg + images + true + 0.1 + + + true + passwordFieldiOS.app + + + true + passwordFieldiOS.exe + + + \ No newline at end of file diff --git a/Password field on iOS/passwordFieldiOS/passwordFieldiOS.xfl b/Password field on iOS/passwordFieldiOS/passwordFieldiOS.xfl new file mode 100644 index 0000000..860a820 --- /dev/null +++ b/Password field on iOS/passwordFieldiOS/passwordFieldiOS.xfl @@ -0,0 +1 @@ +PROXY-CS5 \ No newline at end of file diff --git a/PopMenu/PopMenu-app.xml b/PopMenu/PopMenu-app.xml new file mode 100644 index 0000000..2a98c48 --- /dev/null +++ b/PopMenu/PopMenu-app.xml @@ -0,0 +1,38 @@ + + + + PopMenu + 1.0 + PopMenu + + PopMenu + + + PopMenu.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/PopMenu/PopMenu.fla b/PopMenu/PopMenu.fla new file mode 100644 index 0000000..e95ec4d Binary files /dev/null and b/PopMenu/PopMenu.fla differ diff --git a/PopMenu/PopMenuPerformanceControll.as b/PopMenu/PopMenuPerformanceControll.as new file mode 100644 index 0000000..bddcbf5 --- /dev/null +++ b/PopMenu/PopMenuPerformanceControll.as @@ -0,0 +1,35 @@ +package +{ + import flash.display.Sprite; + import flash.events.MouseEvent; + import flash.utils.getTimer; + + import popForm.PopMenuContent; + + public class PopMenuPerformanceControll extends Sprite + { + + private var cont:PopMenuContent; + public function PopMenuPerformanceControll() + { + super(); + var buttons:Array = [] ; + + for(var i = 0 ; i<1000 ; i++) + { + buttons.push('سلامسلامسلامسلام'+Math.random().toString()); + } + cont = new PopMenuContent('',null,buttons); + + stage.addEventListener(MouseEvent.CLICK,openMenu); + } + + protected function openMenu(event:MouseEvent):void + { + // TODO Auto-generated method stub + var tim:Number = getTimer(); + PopMenu1.popUp('salam',null,cont); + trace("It tooks : "+(getTimer()-tim)); + } + } +} \ No newline at end of file diff --git a/PureCamera/cam-app.xml b/PureCamera/cam-app.xml new file mode 100644 index 0000000..1bc7db2 --- /dev/null +++ b/PureCamera/cam-app.xml @@ -0,0 +1,109 @@ + + + + cam + 1.0.0 + + cam + + cam + + + cam.swf + standard + false + true + false + portrait + cpu + false + + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + com.myflashlab.air.extensions.barcode + com.myflashlab.air.extensions.dependency.androidSupport + com.myflashlab.air.extensions.dependency.overrideAir + + diff --git a/PureCamera/cam.fla b/PureCamera/cam.fla new file mode 100644 index 0000000..16ef6f3 Binary files /dev/null and b/PureCamera/cam.fla differ diff --git a/PureCamera/cam.html b/PureCamera/cam.html new file mode 100644 index 0000000..14e07af --- /dev/null +++ b/PureCamera/cam.html @@ -0,0 +1,32 @@ + + + + + cam + + + +
+ + + + + + + + + + + + + + Get Adobe Flash player + + +
+ + diff --git a/RegExp/Untitled-2-app.xml b/RegExp/Untitled-2-app.xml new file mode 100644 index 0000000..9ef4cbd --- /dev/null +++ b/RegExp/Untitled-2-app.xml @@ -0,0 +1,38 @@ + + + + Untitled-2 + 1.0 + Untitled-2 + + Untitled-2 + + + Untitled-2.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/RegExp/Untitled-2.fla b/RegExp/Untitled-2.fla new file mode 100644 index 0000000..cdf978e Binary files /dev/null and b/RegExp/Untitled-2.fla differ diff --git a/RollEffect/RollEffect-app.xml b/RollEffect/RollEffect-app.xml new file mode 100644 index 0000000..062db28 --- /dev/null +++ b/RollEffect/RollEffect-app.xml @@ -0,0 +1,38 @@ + + + + RollEffect + 1.0 + RollEffect + + RollEffect + + + RollEffect.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/RollEffect/RollEffect.as b/RollEffect/RollEffect.as new file mode 100644 index 0000000..1a0533a --- /dev/null +++ b/RollEffect/RollEffect.as @@ -0,0 +1,25 @@ +package +{ + import contents.LinkData; + import contents.PageData; + import contents.rollingList.RollingList; + + import flash.display.Sprite; + + public class RollEffect extends Sprite + { + public function RollEffect() + { + super(); + var list:RollingList = Obj.findThisClass(RollingList,this); + var page:PageData = new PageData(); + for(var i:int = 0 ; i<100 ; i++) + { + var link:LinkData = new LinkData(); + link.name = i+''+i+''+i+''+i+''+i+''+i+''+i+''+i; + page.links1.push(link); + } + list.setUp(page); + } + } +} \ No newline at end of file diff --git a/RollEffect/RollEffect.fla b/RollEffect/RollEffect.fla new file mode 100644 index 0000000..5961400 Binary files /dev/null and b/RollEffect/RollEffect.fla differ diff --git a/SaveData2Test/dataVec.as b/SaveData2Test/dataVec.as new file mode 100644 index 0000000..05e058c --- /dev/null +++ b/SaveData2Test/dataVec.as @@ -0,0 +1,11 @@ +package +{ + public class dataVec + { + public var data:String ; + + public function dataVec() + { + } + } +} \ No newline at end of file diff --git a/SaveData2Test/otaghbazargani - free b/SaveData2Test/otaghbazargani - free new file mode 100644 index 0000000..bbeaa54 Binary files /dev/null and b/SaveData2Test/otaghbazargani - free differ diff --git a/SaveData2Test/savedDataTest-app.xml b/SaveData2Test/savedDataTest-app.xml new file mode 100644 index 0000000..dbdc9f4 --- /dev/null +++ b/SaveData2Test/savedDataTest-app.xml @@ -0,0 +1,39 @@ + + + + savedDataTest + 1.0.0 + + savedDataTest + + savedDataTest + + + savedDataTest.swf + standard + false + true + false + portrait + cpu + + + false + false + diff --git a/SaveData2Test/savedDataTest.as b/SaveData2Test/savedDataTest.as new file mode 100644 index 0000000..e5ce9e4 --- /dev/null +++ b/SaveData2Test/savedDataTest.as @@ -0,0 +1,95 @@ +package +{ + import dataManager.SavedDatas2; + + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.events.MouseEvent; + import flash.system.System; + + public class savedDataTest extends Sprite + { + + private var vec:Vector. ; + + public function savedDataTest() + { + super(); + + + SavedDatas2.setUp(); + trace("Saved data for hi is : "+SavedDatas2.load("hi")); + TimeTracer.tr(1); + SavedDatas2.save('by','text by'); + TimeTracer.tr(1.1); + //SavedDatas2.save('hi','text by2'); + SavedDatas2.save('by','text by2'); + SavedDatas2.save('by','text by3'); + SavedDatas2.save('by','text by4'); + SavedDatas2.save('by','text by5'); + SavedDatas2.save('by','text by6'); + SavedDatas2.save('hi','Helo is daatc'); + SavedDatas2.save('hi','not Hle'); + + + trace("Saved data for hi is : "+SavedDatas2.load("by")); + + stage.addEventListener(MouseEvent.MOUSE_DOWN,loadHiAgain); + + return ; + var porMC:MovieClip = Obj.get("por_mc",this); + var khaMC:MovieClip = Obj.get("kha_mc",this); + vec = new Vector.(); + + porMC.addEventListener(MouseEvent.MOUSE_DOWN,porHafeze); + khaMC.addEventListener(MouseEvent.MOUSE_DOWN,khaHafeze); + + /* SavedDatas2.save('hi','text hi'); + SavedDatas2.save('hi','text hi2'); + SavedDatas2.save('hi','text hi3'); + SavedDatas2.save('hi','text hi4'); + SavedDatas2.save('hi','text hi5'); + SavedDatas2.save('hi','text hi6');*/ + /*for(var i = 0 ; i<500 ; i++) + { + SavedDatas2.save(i.toString(),'text'+i); + }*/ + /*for(i = 0 ; i<100 ; i++) + { + trace("Saved data is : "+SavedDatas2.load(i.toString())); + }*/ + TimeTracer.tr(1); + } + + protected function loadHiAgain(event:MouseEvent):void + { + // TODO Auto-generated method stub + trace("Hi is : "+SavedDatas2.load("hi")); + } + + protected function khaHafeze(event:MouseEvent):void + { + // TODO Auto-generated method stub + var veItem:dataVec = new dataVec(); + veItem.data = ''; + for(var i = 0 ; i<5000000 ; i++) + { + veItem.data+=String.fromCharCode(30+Math.floor(60*Math.random())); + } + vec.push(veItem); + trace("Hafeze pored"); + } + + protected function porHafeze(event:MouseEvent):void + { + // TODO Auto-generated method stub + vec.pop(); + trace("Hafeze khalied"); + System.gc(); + System.gc(); + return ; + System.pauseForGCIfCollectionImminent(); + System.pauseForGCIfCollectionImminent(); + } + } +} \ No newline at end of file diff --git a/SaveData2Test/savedDataTest.fla b/SaveData2Test/savedDataTest.fla new file mode 100644 index 0000000..962c89d Binary files /dev/null and b/SaveData2Test/savedDataTest.fla differ diff --git a/ServerDate/dateTester-app.xml b/ServerDate/dateTester-app.xml new file mode 100644 index 0000000..506aa2f --- /dev/null +++ b/ServerDate/dateTester-app.xml @@ -0,0 +1,38 @@ + + + + dateTester + 1.0 + dateTester + + dateTester + + + dateTester.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/ServerDate/dateTester.as b/ServerDate/dateTester.as new file mode 100644 index 0000000..9e960a9 --- /dev/null +++ b/ServerDate/dateTester.as @@ -0,0 +1,21 @@ +package +{ + import diagrams.calender.MyShamsi; + + import flash.display.Sprite; + + public class dateTester extends Sprite + { + public function dateTester() + { + var date:Date = ServerDate.serverDateToDate("7/19/2016 5:23:12 PM"); + trace(date); + //trace(date.date); + var shamsi:MyShamsi = MyShamsi.miladiToShamsi(date); + //var date2:Date = new Date(2016,6,19,17,23,12); + //date2.date = 20 ; + trace(shamsi); + //trace("date2 : "+date2); + } + } +} \ No newline at end of file diff --git a/ServerDate/dateTester.fla b/ServerDate/dateTester.fla new file mode 100644 index 0000000..0568eed Binary files /dev/null and b/ServerDate/dateTester.fla differ diff --git a/ServerDate/serverDate2-app.xml b/ServerDate/serverDate2-app.xml new file mode 100644 index 0000000..ab26dff --- /dev/null +++ b/ServerDate/serverDate2-app.xml @@ -0,0 +1,38 @@ + + + + serverDate2 + 1.0 + serverDate2 + + serverDate2 + + + serverDate2.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/ServerDate/serverDate2.fla b/ServerDate/serverDate2.fla new file mode 100644 index 0000000..ef34cbb Binary files /dev/null and b/ServerDate/serverDate2.fla differ diff --git a/SlideMenu/SlideMenuLeft-app.xml b/SlideMenu/SlideMenuLeft-app.xml new file mode 100644 index 0000000..334078e --- /dev/null +++ b/SlideMenu/SlideMenuLeft-app.xml @@ -0,0 +1,38 @@ + + + + SlideMenuLeft + 1.0 + SlideMenuLeft + + SlideMenuLeft + + + SlideMenuLeft.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/SlideMenu/SlideMenuLeft.as b/SlideMenu/SlideMenuLeft.as new file mode 100644 index 0000000..586a7f3 --- /dev/null +++ b/SlideMenu/SlideMenuLeft.as @@ -0,0 +1,25 @@ +package +{ + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.geom.Rectangle; + + import sliderMenu.SliderManager; + + public class SlideMenuLeft extends Sprite + { + public function SlideMenuLeft() + { + super(); + + var sceollMC:MovieClip = Obj.get("scroll_mc",this); + var rmMenu:MovieClip = Obj.get("rm_mc",this); + //SliderManager.setMenu(sceollMC,121,SliderManager.LEFT_MENU,true,true); + SliderManager.setMenu(sceollMC,121,SliderManager.LEFT_MENU,true,false); + //sceollMC.visible = false ; + //SliderManager.setMenu(rmMenu,120,SliderManager.RIGHT_MENU,true,true); + //SliderManager.setMenu(rmMenu,120,SliderManager.RIGHT_MENU,true,false); + rmMenu.visible = false ; + } + } +} \ No newline at end of file diff --git a/SlideMenu/SlideMenuLeft.fla b/SlideMenu/SlideMenuLeft.fla new file mode 100644 index 0000000..6174f66 Binary files /dev/null and b/SlideMenu/SlideMenuLeft.fla differ diff --git a/SliderGallery/01.jpg b/SliderGallery/01.jpg new file mode 100644 index 0000000..821d513 Binary files /dev/null and b/SliderGallery/01.jpg differ diff --git a/SliderGallery/02.jpg b/SliderGallery/02.jpg new file mode 100644 index 0000000..210a6a1 Binary files /dev/null and b/SliderGallery/02.jpg differ diff --git a/SliderGallery/03.jpg b/SliderGallery/03.jpg new file mode 100644 index 0000000..a792686 Binary files /dev/null and b/SliderGallery/03.jpg differ diff --git a/SliderGallery/04.jpg b/SliderGallery/04.jpg new file mode 100644 index 0000000..4ec42ce Binary files /dev/null and b/SliderGallery/04.jpg differ diff --git a/SliderGallery/05.jpg b/SliderGallery/05.jpg new file mode 100644 index 0000000..bb759df Binary files /dev/null and b/SliderGallery/05.jpg differ diff --git a/SliderGallery/06.jpg b/SliderGallery/06.jpg new file mode 100644 index 0000000..0b09568 Binary files /dev/null and b/SliderGallery/06.jpg differ diff --git a/SliderGallery/SliderGallery-app.xml b/SliderGallery/SliderGallery-app.xml new file mode 100644 index 0000000..10394f8 --- /dev/null +++ b/SliderGallery/SliderGallery-app.xml @@ -0,0 +1,38 @@ + + + + SliderGallery + 1.0 + SliderGallery + + SliderGallery + + + SliderGallery.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/SliderGallery/SliderGallery.fla b/SliderGallery/SliderGallery.fla new file mode 100644 index 0000000..a32fa66 Binary files /dev/null and b/SliderGallery/SliderGallery.fla differ diff --git a/SliderGallery/SliderGalleryMain.as b/SliderGallery/SliderGalleryMain.as new file mode 100644 index 0000000..1a80516 --- /dev/null +++ b/SliderGallery/SliderGalleryMain.as @@ -0,0 +1,71 @@ +package +{ + import appManager.displayContent.SliderGallery; + import appManager.displayContent.SliderImageItem; + import appManager.displayContentElemets.Image; + + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.events.Event; + import flash.events.MouseEvent; + + public class SliderGalleryMain extends Sprite + { + private var slideGallery:SliderGallery + + private var images:Vector.; + + public function SliderGalleryMain() + { + super(); + + slideGallery = Obj.findThisClass(SliderGallery,this); + + //slideGallery.addEventListener(Event.CHANGE,imageChanged); + trace("Slider Gallery is : "+slideGallery); + + images = new Vector.(); + + images.push(new SliderImageItem("01.jpg")); + images.push(new SliderImageItem("02.jpg")); + images.push(new SliderImageItem("03.jpg")); + images.push(new SliderImageItem("04.jpg")); + images.push(new SliderImageItem("05.jpg")); + images.push(new SliderImageItem("06.jpg")); + + slideGallery.setUp(images,0,0); + + var nextMC:MovieClip = Obj.get("next_mc",this); + var preveMC:MovieClip = Obj.get("preve_mc",this); + + nextMC.addEventListener(MouseEvent.CLICK,nextImage); + preveMC.addEventListener(MouseEvent.CLICK,prevImage); + + slideGallery.addEventListener(MouseEvent.CLICK,openLink); + } + + protected function openLink(event:MouseEvent):void + { + trace("*** **** Open the link") + } + + protected function imageChanged(event:Event):void + { + trace("Selected image is changed : " +slideGallery.getCurrentSelectedImage()); + if(slideGallery.getCurrentSelectedImage()==4) + { + slideGallery.setUp(images); + } + } + + protected function prevImage(event:MouseEvent):void + { + slideGallery.preve(); + } + + protected function nextImage(event:MouseEvent):void + { + slideGallery.next(); + } + } +} \ No newline at end of file diff --git a/SliderGallery/SliderGalleryWidthThumbnail-app.xml b/SliderGallery/SliderGalleryWidthThumbnail-app.xml new file mode 100644 index 0000000..3aab4f5 --- /dev/null +++ b/SliderGallery/SliderGalleryWidthThumbnail-app.xml @@ -0,0 +1,38 @@ + + + + SliderGalleryWidthThumbnail + 1.0 + SliderGalleryWidthThumbnail + + SliderGalleryWidthThumbnail + + + SliderGalleryWidthThumbnail.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/SliderGallery/SliderGalleryWidthThumbnail.as b/SliderGallery/SliderGalleryWidthThumbnail.as new file mode 100644 index 0000000..b3acef2 --- /dev/null +++ b/SliderGallery/SliderGalleryWidthThumbnail.as @@ -0,0 +1,66 @@ +package +{ + import appManager.displayContent.SliderController_thumbnails; + import appManager.displayContent.SliderGallery; + import appManager.displayContent.SliderImageItem; + import appManager.displayContentElemets.LightImage; + + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.events.MouseEvent; + import flash.utils.getTimer; + + public class SliderGalleryWidthThumbnail extends Sprite + { + private var sliderMC:SliderGallery ; + + private var sliderController:SliderController_thumbnails ; + + public function SliderGalleryWidthThumbnail() + { + super(); + + /* + var light1:LightImage = new LightImage(); + this.addChild(light1); + var light2:LightImage = new LightImage(); + light2.x = 200 ; + this.addChild(light2); + + var imageURL:String = "http://www.jqueryscript.net/images/jQuery-Plugin-For-Stacked-Polaroid-Image-Gallery-Photopile.jpg?"+new Date().time ; + + light1.setUp(imageURL,false,200); + light2.setUp(imageURL,false,200); + + Obj.remove(light1);*/ + + + sliderMC = Obj.findAllClass(SliderGallery,this)[0]; + sliderController = Obj.findThisClass(SliderController_thumbnails,this); + + var time:Number = 0;//new Date().time ; + + var images:Vector. = new Vector.(); + images.push(new SliderImageItem("http://www.jqueryscript.net/images/jQuery-Plugin-For-Stacked-Polaroid-Image-Gallery-Photopile.jpg?"+time)); + images.push(new SliderImageItem("http://www.designdazzling.com/wp-content/uploads/2009/12/free-flash-polaroid-gallery.jpg?"+time)); + images.push(new SliderImageItem("http://uwcmahindracollege.org/themes/site_themes/uwc/content_images/slide-gallery-001.jpg?"+time)); + images.push(new SliderImageItem("http://www.capsontiles.com/images/Gallery.jpg?"+time)); + images.push(new SliderImageItem("http://www.artgallery.nsw.gov.au/media/thumbnails/uploads/rotator_images/H_yiribana1.jpg.835x341_q85_crop.jpg?"+time)); + + sliderMC.addEventListener(MouseEvent.CLICK,theImageIs); + //sliderMC.setUp(images); + + var fakePreLoder:MovieClip = new MovieClip(); + fakePreLoder.graphics.beginFill(0xff0000); + fakePreLoder.graphics.drawCircle(0,0,10); + + sliderController.setUp(images,sliderMC,0,10000,fakePreLoder); + } + + protected function theImageIs(event:MouseEvent):void + { + // TODO Auto-generated method stub + trace("CurrentSelectedImage : "+sliderMC.getCurrentSelectedImage()); + } + } +} \ No newline at end of file diff --git a/SliderGallery/SliderGalleryWidthThumbnail.fla b/SliderGallery/SliderGalleryWidthThumbnail.fla new file mode 100644 index 0000000..2274632 Binary files /dev/null and b/SliderGallery/SliderGalleryWidthThumbnail.fla differ diff --git a/SmartAlign/testUnicond-app.xml b/SmartAlign/testUnicond-app.xml new file mode 100644 index 0000000..9f10a36 --- /dev/null +++ b/SmartAlign/testUnicond-app.xml @@ -0,0 +1,38 @@ + + + + testUnicond + 1.0 + testUnicond + + testUnicond + + + testUnicond.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/SmartAlign/testUnicond.as b/SmartAlign/testUnicond.as new file mode 100644 index 0000000..4330184 --- /dev/null +++ b/SmartAlign/testUnicond.as @@ -0,0 +1,20 @@ +package +{ + import flash.display.Sprite; + import flash.text.TextField; + + public class testUnicond extends Sprite + { + public function testUnicond() + { + var textMC:TextField = Obj.get("text",this); + var text2MC:TextField = Obj.get("text2",this); + + Unicode.smartTextAlign = true ; + + textMC.text = UnicodeStatic.convert("ایران 44 - 169 ع 64",false); + text2MC.text = UnicodeStatic.convert("218A-33003811-76D613-14/10-64169-میر علائی ",false); + text2MC.text = UnicodeStatic.convert("سلام-1b",false); + } + } +} \ No newline at end of file diff --git a/SmartAlign/testUnicond.fla b/SmartAlign/testUnicond.fla new file mode 100644 index 0000000..32d580b Binary files /dev/null and b/SmartAlign/testUnicond.fla differ diff --git a/StageManager New/stageManger-app.xml b/StageManager New/stageManger-app.xml new file mode 100644 index 0000000..4d88cf6 --- /dev/null +++ b/StageManager New/stageManger-app.xml @@ -0,0 +1,38 @@ + + + + stageManger + 1.0 + stageManger + + stageManger + + + stageManger.swf + standard + false + true + true + + auto + true + + false + false + diff --git a/StageManager New/stageManger.as b/StageManager New/stageManger.as new file mode 100644 index 0000000..46b49c8 --- /dev/null +++ b/StageManager New/stageManger.as @@ -0,0 +1,44 @@ +package +{ + import flash.display.Sprite; + import flash.text.TextField; + import flash.utils.setTimeout; + + import stageManager.StageManager; + import stageManager.StageManagerEvent; + + public class stageManger extends Sprite + { + var debuggerText:TextField ; + + public function stageManger() + { + super(); + + debuggerText = new TextField(); + debuggerText.width = stage.stageWidth ; + debuggerText.height = stage.stageHeight ; + debuggerText.mouseEnabled = false ; + debuggerText.textColor = 0x00ff00 ; + + this.addChild(debuggerText); + + StageManager.eventDispatcher.addEventListener(StageManagerEvent.STAGE_RESIZED,function(e){ + debuggerText.appendText('\n'+StageManager.stageRect.toString() + )}); + trace("Listener ades"); + StageManager.setUp(stage,0,0,false,false,root); + StageManager.add("l_u_css",-1,-1,false,false); + StageManager.add("r_u_css",1,-1,false,false); + StageManager.add("l_d_css",-1,1,false,false); + StageManager.add("r_d_css",1,1,false,false); + + debuggerText.appendText("\n"+StageManager.stageRect.toString()) ; + + + //setTimeout(function(){debuggerText.appendText('\n'+StageManager.stageRect.toString())},1000); + + trace("??? : "); + } + } +} \ No newline at end of file diff --git a/StageManager New/stageManger.fla b/StageManager New/stageManger.fla new file mode 100644 index 0000000..e7663ff Binary files /dev/null and b/StageManager New/stageManger.fla differ diff --git a/TabelDraw/TabelMC.as b/TabelDraw/TabelMC.as new file mode 100644 index 0000000..3110abe --- /dev/null +++ b/TabelDraw/TabelMC.as @@ -0,0 +1,56 @@ +package +{ + import diagrams.dataGrid.DataGrid; + import diagrams.table.Table; + import diagrams.table.TableContent; + import diagrams.table.TableTitleValue; + + import flash.display.MovieClip; + import flash.events.MouseEvent; + import flash.events.TimerEvent; + import flash.geom.Rectangle; + import flash.utils.Timer; + + + public class TabelMC extends MovieClip + { + public function TabelMC() + { + super(); + var titleVal:TableTitleValue = new TableTitleValue(); + titleVal.addHorizontalTitle('helo',0); + titleVal.addHorizontalTitle('melo',1); + titleVal.addHorizontalTitle('chelo',2); + titleVal.addVerticalTitle('hi',0); + titleVal.addVerticalTitle('bye',2); + titleVal.addVerticalTitle('why',3); + var contentVal:TableContent = new TableContent(); + contentVal.addData(0,0,'0,0'); + contentVal.addData(0,1,'0,1',0xff0000); + + var tabl:Table = new Table(new Rectangle(0,0,550,400),titleVal,contentVal,0xffbb00,true,false); + //this.addChild(tabl); + + var sampleObject:MovieClip = Obj.get("item_mc",this); + + var ME:MovieClip = this ; + + var tim:Timer = new Timer(100); + tim.start(); + tim.addEventListener(TimerEvent.TIMER,function(e){ + ME.removeChildren(); + var grid:DataGrid = new DataGrid(10,10,550,400,0xffbb00,0); + /*grid.addContent(new DataGrid(4,4,50,50,0xffee00,0,sampleObject),0,0); + grid.addContent(new DataGrid(6,2,50,50,0xffee55,0),4,0); + grid.addContent(new DataGrid(6,2,50,50,0xff0000,0)); + grid.addContent(new DataGrid(1,1,50,50,0x55ff00,0));*/ + const WW:uint = 2 ; + for(var i:int = 0 ; i<50 ; i++) + { + grid.addContent(new DataGrid(Math.floor(Math.random()*WW)+1,Math.floor(Math.random()*WW)+1,50,50,Math.floor(Math.random()*0xffffff),-1,i==1?sampleObject:null)); + } + ME.addChild(grid); + }); + } + } +} \ No newline at end of file diff --git a/TabelDraw/tabel-app.xml b/TabelDraw/tabel-app.xml new file mode 100644 index 0000000..765d00e --- /dev/null +++ b/TabelDraw/tabel-app.xml @@ -0,0 +1,38 @@ + + + + tabel + 1.0 + tabel + + tabel + + + tabel.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/TabelDraw/tabel.fla b/TabelDraw/tabel.fla new file mode 100644 index 0000000..40beba2 Binary files /dev/null and b/TabelDraw/tabel.fla differ diff --git a/Tablighan/Main.as b/Tablighan/Main.as new file mode 100644 index 0000000..4419c83 --- /dev/null +++ b/Tablighan/Main.as @@ -0,0 +1,88 @@ +package +{ + import contents.TextFile; + + import flash.desktop.NativeApplication; + import flash.display.MovieClip; + import flash.events.Event; + import flash.events.LocationChangeEvent; + import flash.filesystem.File; + import flash.geom.Rectangle; + import flash.media.StageWebView; + + import stageManager.StageManager; + + import otherPlatforms.tablighan.TablighanBanner; + + import spark.primitives.Rect; + + public class Main extends MovieClip + { + + private var sw:StageWebView; + + private var areaMC:Rectangle; + + private var targetFile:File; + public function Main() + { + StageManager.setUp(stage,0,0,true) + super(); + + + areaMC = (Obj.get("small_mc",this) as MovieClip).getBounds(this) ; + //areaMC.x = areaMC.y = 0 ; + + var mainFile:File = File.applicationDirectory.resolvePath("feed.htm"); + targetFile = mainFile.clone();// File.documentsDirectory.resolvePath('htmlfile.htm'); + //mainFile.copyTo(targetFile,true); + + trace("Is file copied?? "+targetFile.nativePath+" ? "+targetFile.exists); + + NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE,showBannerAgain); + + //showBannerAgain(); + + } + + protected function showBannerAgain(event:Event=null):void + { + if(sw!=null) + { + sw.stage = null ; + sw.dispose(); + sw = null ; + trace("Clean the stage"); + //return ; + } + + + trace("Reload"); + + sw = new StageWebView(false); + sw.addEventListener(LocationChangeEvent.LOCATION_CHANGE,controllLocationChange); + sw.addEventListener(LocationChangeEvent.LOCATION_CHANGING,controllLocationChanging); + + sw.viewPort = areaMC ; + sw.stage = stage ; + + //TablighanBanner + + //targetFile.nativePath + //"http://api.tablighon.com/api/feed?HostId=1d9163b3-fd60-415a-be59-6e92f832ff22" + sw.loadURL("http://tablighon.com/Uploads/1654ea7e-a2d8-416b-8056-c780aab363ec.mp4");// + //sw.loadString(TextFile.load(File.applicationDirectory.resolvePath("feed.htm")));// + sw.mediaPlaybackRequiresUserAction = true ; + } + + protected function controllLocationChanging(event:LocationChangeEvent):void + { + trace("Location changing : "+sw.location+" vs "+event.location); + } + + protected function controllLocationChange(event:LocationChangeEvent):void + { + trace("Location change : "+sw.location+" vs "+event.location); + } + } +} \ No newline at end of file diff --git a/Tablighan/Tablighan-app.xml b/Tablighan/Tablighan-app.xml new file mode 100644 index 0000000..e04a98a --- /dev/null +++ b/Tablighan/Tablighan-app.xml @@ -0,0 +1,45 @@ + + + + Tablighan + 1.0.0 + + Tablighan + + Tablighan + + + Tablighan.swf + standard + false + true + false + portrait + cpu + false + + false + false + + + + +]]> + + diff --git a/Tablighan/Tablighan.as b/Tablighan/Tablighan.as new file mode 100644 index 0000000..c61e7f2 --- /dev/null +++ b/Tablighan/Tablighan.as @@ -0,0 +1,22 @@ +package +{ + import flash.display.MovieClip; + import flash.display.Sprite; + + import stageManager.StageManager; + + public class Tablighan extends Sprite + { + private var fullMC:MovieClip, + halfMC:MovieClip; + + private var sw:Stagewe + + public function Tablighan() + { + super(); + StageManager.setUp(stage,0,0,true,false); + fullMC = Obj. + } + } +} \ No newline at end of file diff --git a/Tablighan/Tablighan.fla b/Tablighan/Tablighan.fla new file mode 100644 index 0000000..26be2f1 Binary files /dev/null and b/Tablighan/Tablighan.fla differ diff --git a/Tablighan/feed.htm b/Tablighan/feed.htm new file mode 100644 index 0000000..2cf20b1 --- /dev/null +++ b/Tablighan/feed.htm @@ -0,0 +1,18 @@ + + + + تبلیغات اینترنتی + + + + + + + + + + + + \ No newline at end of file diff --git a/Tablighan/feed_files/31b9797c-adf4-4aae-9719-dc04a20dfbc4.jpg b/Tablighan/feed_files/31b9797c-adf4-4aae-9719-dc04a20dfbc4.jpg new file mode 100644 index 0000000..aab400f Binary files /dev/null and b/Tablighan/feed_files/31b9797c-adf4-4aae-9719-dc04a20dfbc4.jpg differ diff --git a/TextFieldTest/TextFieldTest-app.xml b/TextFieldTest/TextFieldTest-app.xml new file mode 100644 index 0000000..873ea00 --- /dev/null +++ b/TextFieldTest/TextFieldTest-app.xml @@ -0,0 +1,38 @@ + + + + TextFieldTest + 1.0 + TextFieldTest + + TextFieldTest + + + TextFieldTest.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/TextFieldTest/TextFieldTest.fla b/TextFieldTest/TextFieldTest.fla new file mode 100644 index 0000000..2c75957 Binary files /dev/null and b/TextFieldTest/TextFieldTest.fla differ diff --git a/TextParag test/parag-app.xml b/TextParag test/parag-app.xml new file mode 100644 index 0000000..4a4116e --- /dev/null +++ b/TextParag test/parag-app.xml @@ -0,0 +1,38 @@ + + + + parag + 1.0 + parag + + parag + + + parag.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/TextParag test/parag.fla b/TextParag test/parag.fla new file mode 100644 index 0000000..37cfdbb Binary files /dev/null and b/TextParag test/parag.fla differ diff --git a/TextParagVerticalAlignt/vertAlign-app.xml b/TextParagVerticalAlignt/vertAlign-app.xml new file mode 100644 index 0000000..7c31c91 --- /dev/null +++ b/TextParagVerticalAlignt/vertAlign-app.xml @@ -0,0 +1,38 @@ + + + + vertAlign + 1.0 + vertAlign + + vertAlign + + + vertAlign.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/TextParagVerticalAlignt/vertAlign.fla b/TextParagVerticalAlignt/vertAlign.fla new file mode 100644 index 0000000..612e328 Binary files /dev/null and b/TextParagVerticalAlignt/vertAlign.fla differ diff --git a/Verticatl alignment text/test-app.xml b/Verticatl alignment text/test-app.xml new file mode 100644 index 0000000..bd10275 --- /dev/null +++ b/Verticatl alignment text/test-app.xml @@ -0,0 +1,38 @@ + + + + test + 1.0 + test + + test + + + test.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/Verticatl alignment text/test.as b/Verticatl alignment text/test.as new file mode 100644 index 0000000..04b72d5 --- /dev/null +++ b/Verticatl alignment text/test.as @@ -0,0 +1,15 @@ +package +{ + import appManager.displayContentElemets.TextParag; + + import flash.display.Sprite; + + public class test extends Sprite + { + public function test() + { + (textParag_mc as TextParag).setUp('فارسی‌آموزان خارجی در قالب برنامه‌های فرهنگی و تفریحی دوره دانش‌افزایی زبان فارسی، از برج میلاد، بازدید کردند و طی این بازدید از نزدیک با یکی از جاذبه‌های گردشگری تهران آشنا شدند.',true,true,false,false,false,false,false,true,true,false,true,0,true); + (textParag2_mc as TextParag).setUp('کاروان فارسی‌آموزان خارجی در راه خانه؛ اختتامیه هشتاد و سومین دوره دانش‌افزایی زبان فارسی برگزار می‌شود',true,true,false,false,false,false,false,true,true,false,true,0,true); + } + } +} \ No newline at end of file diff --git a/Verticatl alignment text/test.fla b/Verticatl alignment text/test.fla new file mode 100644 index 0000000..869d1c7 Binary files /dev/null and b/Verticatl alignment text/test.fla differ diff --git a/Verticatl alignment text/testAlign-app.xml b/Verticatl alignment text/testAlign-app.xml new file mode 100644 index 0000000..6ccb008 --- /dev/null +++ b/Verticatl alignment text/testAlign-app.xml @@ -0,0 +1,38 @@ + + + + testAlign + 1.0 + testAlign + + testAlign + + + testAlign.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/Verticatl alignment text/testAlign.as b/Verticatl alignment text/testAlign.as new file mode 100644 index 0000000..b006e74 --- /dev/null +++ b/Verticatl alignment text/testAlign.as @@ -0,0 +1,22 @@ +package +{ + import appManager.displayContentElemets.TextParag; + + import flash.display.Sprite; + + public class testAlign extends Sprite + { + public function testAlign() + { + super(); + + var T1:TextParag = Obj.get("t1",this); + var T2:TextParag = Obj.get("t2",this); + var T3:TextParag = Obj.get("t3",this); + + T1.setUp('س',true,true,false,false,false,false,false,false,false,true); + T2.setUp('-\n-',true,true,false,false,false,false,false,false,false,true); + T3.setUp('بدل\nآل\nبد',true,true,false,false,false,false,false,false,false,true); + } + } +} \ No newline at end of file diff --git a/Verticatl alignment text/testAlign.fla b/Verticatl alignment text/testAlign.fla new file mode 100644 index 0000000..3a19f52 Binary files /dev/null and b/Verticatl alignment text/testAlign.fla differ diff --git a/Video/VideoCmera+.as b/Video/VideoCmera+.as new file mode 100644 index 0000000..f2320b6 --- /dev/null +++ b/Video/VideoCmera+.as @@ -0,0 +1,184 @@ +package +{ + import darkBox.DarkBox; + import darkBox.ImageFile; + + import flash.display.Bitmap; + import flash.display.BitmapData; + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.events.Event; + import flash.events.MouseEvent; + import flash.events.StageVideoEvent; + import flash.filesystem.File; + import flash.geom.Rectangle; + import flash.media.StageVideo; + import flash.media.StageVideoAvailability; + import flash.media.Video; + import flash.net.NetConnection; + import flash.net.NetStream; + import flash.net.dns.AAAARecord; + import flash.utils.ByteArray; + + import mx.utils.Base64Decoder; + import mx.utils.Base64Encoder; + + import stageManager.StageManager; + + import videoPlayer.myVideoPlayer; + + import videoShow.VideoClass; + import videoShow.VideoEvents; + + public class VideoCmera extends Sprite + { + + private var vidFile:File ; + + private var videoDisplay:VideoClass ; + + private var camMC:MovieClip ; + private var cam2MC:MovieClip ; + private var cam3MC:MovieClip ; + + private var sampleBitmap:Bitmap; + + private var sv:StageVideo; + + + public function VideoCmera() + { + super(); + + StageManager.setUp(stage,0,0,false); + + + /*var nc:NetConnection = new NetConnection(); + nc.connect(null); + var ns:NetStream = new NetStream(nc); + ns.client = this; + + if(true && StageVideoAvailability.AVAILABLE) + { + sv = stage.stageVideos[0]; + sv.addEventListener(StageVideoEvent.RENDER_STATE, onRender); + sv.attachNetStream(ns); + trace('available'); + } + else + { + var vid:Video = new Video(1371, 771); + addChild(vid); + vid.attachNetStream(ns); + trace('not'); + } + + ns.play('vid.mp4'); + return ;*/ + + trace("Version 6"); + camMC = Obj.get("cam_mc",this); + cam2MC = Obj.get("cam2_mc",this); + cam3MC = Obj.get("cam3_mc",this); + camMC.addEventListener(MouseEvent.MOUSE_DOWN,onClicked); + cam2MC.addEventListener(MouseEvent.MOUSE_DOWN,onClicked2); + cam3MC.addEventListener(MouseEvent.MOUSE_DOWN,onClicked3); + //stage.addEventListener(MouseEvent.MOUSE_DOWN,saveVideo); + //saveVideo(null); + + videoDisplay = new VideoClass(300,300); + this.addChild(videoDisplay); + + sampleBitmap = new Bitmap(); + this.addChild(sampleBitmap); + sampleBitmap.x = 200; + sampleBitmap.y = 200; + + videoDisplay.addEventListener(VideoEvents.VIDEO_LOADED,playVideo); + + var vidFile:File = File.applicationDirectory.resolvePath("vid.mp4"); + var otherLocation:File = File.documentsDirectory.resolvePath("vid.mp4"); + vidFile.copyTo(otherLocation,true); + //var vidFile2:File = new File("cdn.tabnak.ir/files/fa/news/1395/3/18/601986_353.mp4"); + //trace("is exist?"+vidFile2.exists); + if(false && otherLocation.exists) + { + videoDisplay.loadThiwVideo(otherLocation.nativePath,true,NaN,NaN,null,false);//"http://cdn.tabnak.ir/files/fa/news/1395/3/18/601986_353.mp4" + } + + videoDisplay.loadThiwVideo("http://as8.asset.aparat.com/aparat-video/a_b2cmk88m84j9n2mkn42j32l8092mm7k4lmm306650006-492y__921dc.mp4"); + + //DarkBox.setUp(new Rectangle(0,0,550,400)); + } + + + private function onRender(e:StageVideoEvent):void + { + sv.viewPort = new Rectangle(0, 0, 1371, 771); + } + + + protected function onClicked3(event:MouseEvent):void + { + var items:Vector. = new Vector.(); + items.push(new ImageFile('http://as5.asset.aparat.com/aparat-video/a_35dl23g6mkjjknljno7nkl3lnjj20l3l8l7k67753018-503y__93ba6.mp4','',4,false)); + + DarkBox.show(items); + } + + protected function playVideo(event:Event):void + { + trace("Video ready"); + videoDisplay.play(); + } + + /*protected function saveVideo(event:MouseEvent):void + { + var fileByte:ByteArray = new ByteArray(); + var byte:Base64Decoder = new Base64Decoder(); + byte.decode(savedVideo); + fileByte = byte.toByteArray() ; + + vidFile = File.documentsDirectory.resolvePath('vid.mp4') ; + FileManager.seveFile(vidFile,fileByte,false); + + vid = new VideoClass(); + this.addChild(vid); + vid.loadThiwVideo(vidFile.url,true); + + trace("File saved with lenght of "+fileByte.length); + }*/ + + protected function onClicked(event:MouseEvent):void + { + Obj.remove(videoDisplay); + videoDisplay = new VideoClass(); + this.addChild(videoDisplay); + trace("Open camera"); + + DeviceImage.getVideoCamera(onVideoReady); + } + + protected function onClicked2(event:MouseEvent):void + { + Obj.remove(videoDisplay); + videoDisplay = new VideoClass(); + this.addChild(videoDisplay); + + DeviceImage.loadVideo(onVideoReady,File.applicationDirectory.resolvePath("vid.mp4")); + } + + private function onVideoReady():void + { + trace("Video is ready : "); + + var tempFile:File = File.createTempFile() ; + + FileManager.seveFile(tempFile,DeviceImage.videoBytes,false); + + //sampleBitmap.bitmapData = DeviceImage.imageBitmapData.clone(); + + videoDisplay.loadThiwVideo(tempFile.url,true); + } + } +} \ No newline at end of file diff --git a/Video/VideoCmera-app.xml b/Video/VideoCmera-app.xml new file mode 100644 index 0000000..4b57985 --- /dev/null +++ b/Video/VideoCmera-app.xml @@ -0,0 +1,944 @@ + + + com.mteamapps.TestCamera + 1.0.0 + + VIDEO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VIDEO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VideoCmera.swf + standard + false + true + true + gpu + landscape + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + false + + UIDeviceFamily + + 1 + 2 + + UIPrerenderedIcon + + + NSAppTransportSecurity + + + +NSAllowsArbitraryLoads + + +]]> + high + + + + + + + + + +]]> + + diff --git a/Video/VideoCmera.as b/Video/VideoCmera.as new file mode 100644 index 0000000..2c07735 --- /dev/null +++ b/Video/VideoCmera.as @@ -0,0 +1,168 @@ +package +{ + import darkBox.DarkBox; + import darkBox.ImageFile; + + import flash.display.Bitmap; + import flash.display.BitmapData; + import flash.display.MovieClip; + import flash.display.Sprite; + import flash.events.Event; + import flash.events.MouseEvent; + import flash.filesystem.File; + import flash.geom.Rectangle; + import flash.media.StageWebView; + import flash.media.Video; + import flash.net.NetConnection; + import flash.net.NetStream; + import flash.net.dns.AAAARecord; + import flash.utils.ByteArray; + + import mx.utils.Base64Decoder; + import mx.utils.Base64Encoder; + + import videoPlayer.myVideoPlayer; + + import videoShow.VideoClass; + import videoShow.VideoEvents; + import videoShow.StageVideo; + + public class VideoCmera extends Sprite + { + + private var vidFile:File ; + + private var videoDisplay:VideoClass ; + + private var camMC:MovieClip ; + private var cam2MC:MovieClip ; + private var cam3MC:MovieClip ; + + private var sampleBitmap:Bitmap; + + private var stageWeb:StageWebView; + public function VideoCmera() + { + super(); + trace("Version 6"); + camMC = Obj.get("cam_mc",this); + cam2MC = Obj.get("cam2_mc",this); + cam3MC = Obj.get("cam3_mc",this); + camMC.addEventListener(MouseEvent.MOUSE_DOWN,onClicked); + cam2MC.addEventListener(MouseEvent.MOUSE_DOWN,onClicked2); + cam3MC.addEventListener(MouseEvent.MOUSE_DOWN,onClicked3); + //stage.addEventListener(MouseEvent.MOUSE_DOWN,saveVideo); + //saveVideo(null); + + videoDisplay = new VideoClass(); + this.addChild(videoDisplay); + + sampleBitmap = new Bitmap(); + this.addChild(sampleBitmap); + sampleBitmap.x = 200; + sampleBitmap.y = 200; + + + videoDisplay.addEventListener(VideoEvents.VIDEO_LOADED,playVideo); + //videoDisplay.loadThiwVideo("http://as5.asset.aparat.com/aparat-video/a_35dl23g6mkjjknljno7nkl3lnjj20l3l8l7k67753018-503y__93ba6.mp4",true); + + DarkBox.setUp(new Rectangle(0,0,550,400)); + } + + protected function onClicked3(event:MouseEvent):void + { + var items:Vector. = new Vector.(); + //items.push(new ImageFile('http://as5.asset.aparat.com/aparat-video/a_35dl23g6mkjjknljno7nkl3lnjj20l3l8l7k67753018-503y__93ba6.mp4','',4,false)); + var videoFile:File = File.applicationDirectory.resolvePath('vid.mp4') ; + items.push(new ImageFile("http://185.83.208.175:8036//UploadImages/original/b64ae087-1bd2-4ed7-9883-a091ea8616b5.mp4",'',4,false));//videoFile.url + + if(videoFile.exists) + { + DarkBox.show(items); + } + } + + protected function playVideo(event:Event):void + { + trace("Video ready"); + videoDisplay.play(); + } + + /*protected function saveVideo(event:MouseEvent):void + { + var fileByte:ByteArray = new ByteArray(); + var byte:Base64Decoder = new Base64Decoder(); + byte.decode(savedVideo); + fileByte = byte.toByteArray() ; + + vidFile = File.documentsDirectory.resolvePath('vid.mp4') ; + FileManager.seveFile(vidFile,fileByte,false); + + vid = new VideoClass(); + this.addChild(vid); + vid.loadThiwVideo(vidFile.url,true); + + trace("File saved with lenght of "+fileByte.length); + }*/ + + protected function onClicked(event:MouseEvent):void + { + var vid:StageVideo = new StageVideo(100,100); + this.addChild(vid); + vid.loadThiwVideo("http://185.83.208.175:8036//UploadImages/original/b64ae087-1bd2-4ed7-9883-a091ea8616b5.mp4"); + return ; + Obj.remove(videoDisplay); + videoDisplay = new VideoClass(); + this.addChild(videoDisplay); + trace("Open camera"); + + DeviceImage.getVideoCamera(onVideoReady); + } + + protected function onClicked2(event:MouseEvent):void + { + Obj.remove(videoDisplay); + videoDisplay = new VideoClass(); + this.addChild(videoDisplay); + + // DeviceImage.loadVideo(onVideoReady,File.applicationDirectory.resolvePath("vid.mp4")); + stageWeb = new StageWebView() + stageWeb.viewPort = new Rectangle(0,0,550,400) + stageWeb.stage = this.stage + stageWeb.addEventListener(Event.COMPLETE, loadMP4WebWiewCompleted, false, 0, true); + var _path:File = File.applicationDirectory.resolvePath("vid.mp4") + + // var _pathCopy : File = File.createTempFile(); + // _path.copyTo(_pathCopy, true); + //stageWeb.loadURL(_pathCopy.nativePath); + + //stageWeb.loadURL(_path.nativePath) + stageWeb.loadURL("http://185.83.208.175:8036//UploadImages/original/b64ae087-1bd2-4ed7-9883-a091ea8616b5.mp4") + + } + + protected function loadMP4WebWiewCompleted(event:Event):void + { + // TODO Auto-generated method stub + trace('load MP4 WebWiew Completed') + trace('load MP4 WebWiew Completed') + trace('load MP4 WebWiew Completed') + trace('load MP4 WebWiew Completed') + trace('load MP4 WebWiew Completed') + trace('load MP4 WebWiew Completed') + } + + private function onVideoReady():void + { + trace("Video is ready : "); + + var tempFile:File = File.createTempFile() ; + + FileManager.seveFile(tempFile,DeviceImage.videoBytes,false); + + //sampleBitmap.bitmapData = DeviceImage.imageBitmapData.clone(); + + videoDisplay.loadThiwVideo(tempFile.url,true); + } + } +} \ No newline at end of file diff --git a/Video/VideoCmera.fla b/Video/VideoCmera.fla new file mode 100644 index 0000000..361cfb1 Binary files /dev/null and b/Video/VideoCmera.fla differ diff --git a/Video/temp_xml_plist_file.xml b/Video/temp_xml_plist_file.xml new file mode 100644 index 0000000..b281628 --- /dev/null +++ b/Video/temp_xml_plist_file.xml @@ -0,0 +1 @@ +UIDeviceFamily12UIPrerenderedIconNSAppTransportSecurityNSAllowsArbitraryLoads \ No newline at end of file diff --git a/Video/vid.mp4 b/Video/vid.mp4 new file mode 100644 index 0000000..92daef2 Binary files /dev/null and b/Video/vid.mp4 differ diff --git a/Video/vid2.mp4 b/Video/vid2.mp4 new file mode 100644 index 0000000..5563ca9 Binary files /dev/null and b/Video/vid2.mp4 differ diff --git a/Video/video.html b/Video/video.html new file mode 100644 index 0000000..35e90f8 --- /dev/null +++ b/Video/video.html @@ -0,0 +1,33 @@ + + + + + + + + \ No newline at end of file diff --git a/Video2/video.html b/Video2/video.html new file mode 100644 index 0000000..4938b2b --- /dev/null +++ b/Video2/video.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/rss/DOMDocument.xml b/rss/DOMDocument.xml new file mode 100644 index 0000000..ccd5f29 --- /dev/null +++ b/rss/DOMDocument.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rss/META-INF/metadata.xml b/rss/META-INF/metadata.xml new file mode 100644 index 0000000..e69de29 diff --git a/rss/MobileSettings.xml b/rss/MobileSettings.xml new file mode 100644 index 0000000..e69de29 diff --git a/rss/PublishSettings.xml b/rss/PublishSettings.xml new file mode 100644 index 0000000..23831f7 --- /dev/null +++ b/rss/PublishSettings.xml @@ -0,0 +1,168 @@ + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + Untitled-3.swf + Untitled-3.exe + Untitled-3.app + Untitled-3.html + Untitled-3.gif + Untitled-3.jpg + Untitled-3.png + Untitled-3.swc + Untitled-3.oam + 0 + 0 + 0 + + + 0 + 0,0,0,0;20,0,0,0;19,0,0,0;18,0,0,0;17,0,0,0;16,0,0,0;14,0,0,0;13,0,0,0;12,0,0,0;11,9,0,0;11,8,0,0;11,7,0,0;11,6,0,0;11,5,0,0;11,4,0,0;11,3,0,0;11,2,0,0;11,1,0,0;10,3,0,0;10,2,153,0;10,1,52,0;9,0,124,0;8,0,24,0;7,0,14,0;6,0,79,0;5,0,58,0;4,0,32,0;3,0,8,0;2,0,1,12;1,0,0,1; + 1 + 1 + Untitled-3_content.html + Untitled-3_alternate.html + 0 + + 550 + 400 + 0 + 0 + 1 + 0 + 0 + 1 + 1 + 4 + 0 + 0 + 1 + 0 + C:\Users\Admin\AppData\Local\Adobe\Animate CC 2015\en_US\Configuration\HTML\Default.html + 1 + + + + + 0 + 0 + 0 + 80 + 0 + 0 + 7 + 0 + 7 + 0 + 36 + AdobeAIR_25.0.0.118 + 3 + 1 + + . + CONFIG::FLASH_AUTHORING="true"; + 0 + + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + 2 + 4 + 4096 + AS3 + 1 + 1 + 0 + 15 + 1 + 0 + 4102 + rsl + wrap + $(AppConfig)/ActionScript 3.0/rsls/loader_animation.swf + + + $(AppConfig)/ActionScript 3.0/libs + merge + + + + + 0 + + + + 550 + 400 + 0 + 4718592 + 0 + 80 + 1 + + + 550 + 400 + 0 + 1 + 1 + 0 + 1 + 255 + + + 1 + 1 + 24-bit with Alpha + 255 + + + 550 + 400 + 1 + 0 + + 0 + + + true + true + false + Untitled-3.svg + images + true + 0.1 + + + true + Untitled-3.app + + + true + Untitled-3.exe + + + \ No newline at end of file diff --git a/rss/rss.xfl b/rss/rss.xfl new file mode 100644 index 0000000..860a820 --- /dev/null +++ b/rss/rss.xfl @@ -0,0 +1 @@ +PROXY-CS5 \ No newline at end of file diff --git a/unicode/unicode-app.xml b/unicode/unicode-app.xml new file mode 100644 index 0000000..477d62e --- /dev/null +++ b/unicode/unicode-app.xml @@ -0,0 +1,38 @@ + + + + unicode + 1.0 + unicode + + unicode + + + unicode.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/unicode/unicode.fla b/unicode/unicode.fla new file mode 100644 index 0000000..a5db4f1 Binary files /dev/null and b/unicode/unicode.fla differ diff --git a/unicode/unicode2-app.xml b/unicode/unicode2-app.xml new file mode 100644 index 0000000..4b48901 --- /dev/null +++ b/unicode/unicode2-app.xml @@ -0,0 +1,38 @@ + + + + unicode2 + 1.0 + unicode2 + + unicode2 + + + unicode2.swf + standard + false + true + false + portrait + auto + + + false + false + diff --git a/unicode/unicode2.as b/unicode/unicode2.as new file mode 100644 index 0000000..a0419d3 --- /dev/null +++ b/unicode/unicode2.as @@ -0,0 +1,15 @@ +package +{ + import appManager.displayContentElemets.TextParag; + + import flash.display.Sprite; + + public class unicode2 extends Sprite + { + public function unicode2() + { + super(); + (myParag as TextParag).setUp('ازدواج قهرمان گرند اسلیم "تنیس" و قهرمان جام جهانی "فوتبال"',true,true,false,false,false,true,false,true,true,false,false); + } + } +} \ No newline at end of file diff --git a/unicode/unicode2.fla b/unicode/unicode2.fla new file mode 100644 index 0000000..c103f7d Binary files /dev/null and b/unicode/unicode2.fla differ