Skip to content

Commit

Permalink
Sample list
Browse files Browse the repository at this point in the history
  • Loading branch information
MESepehr committed Sep 6, 2018
1 parent cc52695 commit 4cf23ce
Show file tree
Hide file tree
Showing 167 changed files with 4,988 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ $RECYCLE.BIN/

# Windows shortcuts
*.lnk
*.bat
*.tmp
*.mobileprovision
*.apk
*.ipa
20 changes: 20 additions & 0 deletions DynamicLinkDynamicHeight/Item.as
Original file line number Diff line number Diff line change
@@ -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()) ;
}
}
}
38 changes: 38 additions & 0 deletions DynamicLinkDynamicHeight/dynamicH-app.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/26.0">
<id>dynamicH</id>
<versionNumber>1.0</versionNumber>
<filename>dynamicH</filename>
<description/>
<name>dynamicH</name>
<copyright/>
<initialWindow>
<content>dynamicH.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>auto</renderMode>
</initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
</application>
12 changes: 12 additions & 0 deletions DynamicLinkDynamicHeight/dynamicH.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package
{
import flash.display.Sprite;

public class dynamicH extends Sprite
{
public function dynamicH()
{

}
}
}
Binary file added DynamicLinkDynamicHeight/dynamicH.fla
Binary file not shown.
32 changes: 32 additions & 0 deletions DynamicLinkDynamicHeight/main.as
Original file line number Diff line number Diff line change
@@ -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);
});
}
}
}
38 changes: 38 additions & 0 deletions DynamicLinks wit slider/DynamicLinkUpgrader-app.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/22.0">
<id>DynamicLinkUpgrader</id>
<versionNumber>1.0</versionNumber>
<filename>DynamicLinkUpgrader</filename>
<description/>
<name>DynamicLinkUpgrader</name>
<copyright/>
<initialWindow>
<content>DynamicLinkUpgrader.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>gpu</renderMode>
<autoOrients>true</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<versionLabel/></application>
Binary file added DynamicLinks wit slider/DynamicLinkUpgrader.fla
Binary file not shown.
27 changes: 27 additions & 0 deletions DynamicLinks wit slider/DynamicLinkUpgraderMain.as
Original file line number Diff line number Diff line change
@@ -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");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package
{
import flash.display.Sprite;

public class DynamicLinkUpgrader_DynamicLinkswitslider extends Sprite
{
public function DynamicLinkUpgrader_DynamicLinkswitslider()
{

}
}
}
38 changes: 38 additions & 0 deletions DynamicLinks/DynamicLinks-app.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/22.0">
<id>DynamicLinks</id>
<versionNumber>1.0</versionNumber>
<filename>DynamicLinks</filename>
<description/>
<name>DynamicLinks</name>
<copyright/>
<initialWindow>
<content>DynamicLinks.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>auto</renderMode>
</initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
</application>
Binary file added DynamicLinks/DynamicLinks.fla
Binary file not shown.
49 changes: 49 additions & 0 deletions DynamicLinks/DynamicLinksMain.as
Original file line number Diff line number Diff line change
@@ -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);
}
}
}
38 changes: 38 additions & 0 deletions DynamicLinks/DynamicLinksReloaderRevertedX-app.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/26.0">
<id>DynamicLinksReloaderRevertedX</id>
<versionNumber>1.0</versionNumber>
<filename>DynamicLinksReloaderRevertedX</filename>
<description/>
<name>DynamicLinksReloaderRevertedX</name>
<copyright/>
<initialWindow>
<content>DynamicLinksReloaderRevertedX.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>auto</renderMode>
</initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
</application>
Binary file added DynamicLinks/DynamicLinksReloaderRevertedX.fla
Binary file not shown.
12 changes: 12 additions & 0 deletions DynamicLinks/DynamicLinks_DynamicLinks.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package
{
import flash.display.Sprite;

public class DynamicLinks_DynamicLinks extends Sprite
{
public function DynamicLinks_DynamicLinks()
{

}
}
}
17 changes: 17 additions & 0 deletions DynamicLinks/MyLink.as
Original file line number Diff line number Diff line change
@@ -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);
}
}
}
16 changes: 16 additions & 0 deletions DynamicLinks/myDynamicLink.as
Original file line number Diff line number Diff line change
@@ -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 ;
}
}
}
Loading

0 comments on commit 4cf23ce

Please sign in to comment.