├── .gitignore ├── ReadMe.txt ├── build.template.properties ├── build.xml ├── build ├── android-resources │ └── template-air-app.xml ├── assets │ └── logo.png ├── bin-resources │ ├── images │ │ ├── icons │ │ │ ├── app-icon-36x36.png │ │ │ ├── app-icon-48x48.png │ │ │ └── app-icon-72x72.png │ │ ├── image1.jpg │ │ ├── image10.jpg │ │ ├── image11.jpg │ │ ├── image12.jpg │ │ ├── image13.jpg │ │ ├── image14.jpg │ │ ├── image15.jpg │ │ ├── image16.jpg │ │ ├── image17.jpg │ │ ├── image18.jpg │ │ ├── image19.jpg │ │ ├── image2.jpg │ │ ├── image20.jpg │ │ ├── image21.jpg │ │ ├── image22.jpg │ │ ├── image23.jpg │ │ ├── image24.jpg │ │ ├── image25.jpg │ │ ├── image26.jpg │ │ ├── image27.jpg │ │ ├── image28.jpg │ │ ├── image29.jpg │ │ ├── image3.jpg │ │ ├── image4.jpg │ │ ├── image5.jpg │ │ ├── image6.jpg │ │ ├── image7.jpg │ │ ├── image8.jpg │ │ └── image9.jpg │ └── js │ │ └── swfobject.js ├── build-includes │ ├── android.xml │ ├── asdoc.xml │ ├── chrome.xml │ ├── compile-swc.xml │ ├── compile-swf.xml │ ├── ios.xml │ ├── misc.xml │ └── test.xml ├── html-template │ ├── html.properties │ └── index.template.html ├── ios-resources │ └── template-air-app.xml ├── libs │ ├── FlexUnit4.swc │ ├── FlexUnit4CIListener.swc │ ├── ant-contrib.jar │ ├── flexUnit4UIRunner.swc │ └── flexUnitTasks.jar ├── playbook-resources │ └── blackberry-tablet.xml └── psds │ └── app-icon.psd ├── src ├── BitmapScrollerApp.as ├── Main.as ├── com │ └── flashartofwar │ │ ├── BitmapScroller.as │ │ ├── behaviors │ │ ├── EaseScrollBehavior.as │ │ ├── ISlider.as │ │ └── SliderBehavior.as │ │ └── ui │ │ └── Slider.as └── net │ └── hires │ └── debug │ └── Stats.as └── test ├── BitmapScrollerAppTestApp.mxml ├── BitmapScrollerTestSuite.as └── com └── flashartofwar └── BitmapScrollerTest.as /.gitignore: -------------------------------------------------------------------------------- 1 | /.settings/* 2 | 3 | /html-template/* 4 | /bin-debug/* 5 | /bin-release/* 6 | /libs/* 7 | /bin/* 8 | /doc/* 9 | /report/* 10 | /dist/* 11 | /ipas/* 12 | 13 | /.actionScriptProperties 14 | /.flexProperties 15 | /.flexLibProperties 16 | /.project 17 | /.as3_classpath 18 | /com.adobe.flexbuilder.project.prefs 19 | /org.eclipse.core.resources.prefs 20 | 21 | Icon 22 | Thumbs.db 23 | .DS_Store 24 | 25 | build.properties 26 | /tmp/* 27 | /*.iml 28 | *.mobileprovision 29 | *.p12 30 | *.cer -------------------------------------------------------------------------------- /ReadMe.txt: -------------------------------------------------------------------------------- 1 | Hello, 2 | 3 | Welcome to my Bitmap Scroller project. Once you have a look through the demo app 4 | it should be relatively easy to incorporate this into your own project. Here is 5 | a little info on how to get the demo up and running. 6 | 7 | Building Without Ant 8 | 9 | If you do not want to use ANT you must manually copy the build/bin-resources/images 10 | folder to your bin or bin-debug directory and compile the app like you normally 11 | would. The main class is called BitmapScrollerApp located in the src folder. This 12 | represents a demo class to show off how the BitmapScroller works. 13 | 14 | You will also have to set up a few extra lines of code in the advanced compiler area 15 | of your project’s settings: 16 | 17 | -use-network=false (If you are not testing this on a localhost or server) 18 | 19 | -define=CONFIG::mobile,false (If you are compiling for desktop. For mobile 20 | change this to true. This allows you to configure different logic for each 21 | platform which I will talk about later). 22 | 23 | -static-link-runtime-shared-libraries=true (This is important on any project 24 | that uses Flex 4 since it is set to false by default. This may not impact 25 | this project but if you begin embedding assets it is key). 26 | 27 | 28 | Building With ANT 29 | 30 | The build file is located in the root directory. It relies on a build.properties 31 | file to run. I provide a template file called build.template.properties which you 32 | can copy and rename to build.template. Once you do that open it up and lets change 33 | a few key properties. 34 | 35 | You will need to set the following paths: 36 | 37 | FLEX_HOME - path to your Flex SDK. If you have FlashBuilder installed it 38 | is located in the App’s dir under SDK 4.0. 39 | 40 | android.sdk - path to your Android SDK 41 | 42 | browser - On a PC you will want to use the path to the actual browser 43 | such as C:/Program Files/Mozilla Firefox/firefox.exe. On a mac the name 44 | of the browser will work such as Safari. 45 | 46 | Once you set these paths you should be able to run the ANT Build. The default build 47 | is compile swf. After running it, the build will create a bin folder for you and 48 | compile the swf in there. From there you can launch the index.html however you want. 49 | There is an ANT target for local-run located in the compile-swf include build or use 50 | the IDE to launch the index file and trigger the debugger, which is what I normally do. 51 | -------------------------------------------------------------------------------- /build.template.properties: -------------------------------------------------------------------------------- 1 | # IMPORTANT Change to your local system paths before using ANT 2 | 3 | #Toggle on/off specific targets 4 | run.test = false 5 | run.asdoc = false 6 | logging = false 7 | autolaunch.url = true 8 | mobile = false 9 | 10 | #compiler mode: debug, optimize 11 | compile.type = optimize 12 | 13 | # Build paths 14 | FLEX_HOME = /Applications/Adobe Flash Builder 4.5/sdks/4.5.0 15 | #android.sdk= 16 | 17 | #Properties file for build.xml 18 | project.name=BitmapScrollerApp 19 | 20 | #Version number 21 | ver.num=v1.5.2-beta 22 | project.name.versioned=${project.name}-${ver.num} 23 | deploy.name.versioned=${project.name}-${ver.num} 24 | 25 | #browser 26 | browser = "Google Chrome" 27 | report.url = ${report.loc}/html/index.html 28 | app.url = ${bin.loc}/index.html 29 | 30 | #Certificate 31 | certificate.name = Certificates.p12 32 | certificate.username = 33 | certificate.company = 34 | certificate.password = 35 | certificate.filename = Certificates.p12 36 | 37 | #provisioning 38 | ios.provision = BitmapScroller.mobileprovision 39 | ipa.package = com.flashartofwar.bitmapscroller 40 | ## Don't change these settings ### 41 | 42 | #build locations 43 | deploy.loc=${basedir}/bin 44 | asdoc.loc=${FLEX_HOME}/bin/asdoc 45 | main.src.loc=${basedir}/src 46 | test.src.loc=${basedir}/test 47 | doc.loc=${basedir}/doc 48 | lib.loc=${basedir}/build/libs 49 | bin.loc=${deploy.loc} 50 | report.loc=${basedir}/report 51 | template.loc=${basedir}/build/templates 52 | includes.loc=${basedir}/build/build-includes 53 | air.swcs=${FLEX_HOME}/frameworks/libs/air 54 | adb=${android.sdk}/platform-tools/adb.exe 55 | adt=${FLEX_HOME}/bin/adt.bat 56 | apks.loc=${deploy.loc}/apks 57 | ipas.loc=${deploy.loc}/ipas 58 | tmp.loc=${basedir}/tmp 59 | logs.loc=${report.loc}/logs -------------------------------------------------------------------------------- /build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /build/android-resources/template-air-app.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.flashartofwar.bitmapscroller 4 | BitmapScrollerApp 5 | BitmapScrollerApp 6 | 1.0.0 7 | 8 | swfs/@projectversion@.swf 9 | false 10 | true 11 | true 12 | landscape 13 | 14 | 15 | images/icons/app-icon-36x36.png 16 | images/icons/app-icon-48x48.png 17 | images/icons/app-icon-72x72.png 18 | 19 | 20 | 21 | UIDeviceFamily 23 | 24 | 1 25 | 2 26 | 27 | ]]> 28 | high 29 | 30 | 31 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 51 | 52 | ]]> 53 | 54 | 55 | -------------------------------------------------------------------------------- /build/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/assets/logo.png -------------------------------------------------------------------------------- /build/bin-resources/images/icons/app-icon-36x36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/icons/app-icon-36x36.png -------------------------------------------------------------------------------- /build/bin-resources/images/icons/app-icon-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/icons/app-icon-48x48.png -------------------------------------------------------------------------------- /build/bin-resources/images/icons/app-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/icons/app-icon-72x72.png -------------------------------------------------------------------------------- /build/bin-resources/images/image1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image1.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image10.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image11.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image12.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image13.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image14.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image15.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image16.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image17.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image18.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image19.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image2.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image20.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image21.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image22.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image23.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image24.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image25.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image26.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image27.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image27.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image28.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image28.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image29.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image29.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image3.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image4.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image5.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image6.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image7.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image8.jpg -------------------------------------------------------------------------------- /build/bin-resources/images/image9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theflashbum/BitmapScroller/a064036d71a46e94f369f2d06d7f4f0564cbeb4f/build/bin-resources/images/image9.jpg -------------------------------------------------------------------------------- /build/bin-resources/js/swfobject.js: -------------------------------------------------------------------------------- 1 | /* SWFObject v2.1 2 | Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis 3 | This software is released under the MIT License 4 | */ 5 | var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write(" 23 | 26 | 27 | 28 | 29 | 30 | You will need Flash Player 10+ to see this site. 31 | 32 | 33 |
You will need Flash Player 10+ to see this site.