Coder Social home page Coder Social logo

bitmapscroller's Introduction

Hello,

Welcome to my Bitmap Scroller project. Once you have a look through the demo app
it should be relatively easy to incorporate this into your own project. Here is
a little info on how to get the demo up and running.

Building Without Ant

If you do not want to use ANT you must manually copy the build/bin-resources/images 
folder to your bin or bin-debug directory and compile the app like you normally 
would. The main class is called BitmapScrollerApp located in the src folder. This 
represents a demo class to show off how the BitmapScroller works.

You will also have to set up a few extra lines of code in the advanced compiler area 
of your project’s settings:

	-use-network=false (If you are not testing this on a localhost or server)

	-define=CONFIG::mobile,false (If you are compiling for desktop. For mobile 
	change this to true. This allows you to configure different logic for each 
	platform which I will talk about later).

	-static-link-runtime-shared-libraries=true (This is important on any project 
	that uses Flex 4 since it is set to false by default. This may not impact 
	this project but if you begin embedding assets it is key).


Building With  ANT

The build file is located in the root directory. It relies on a build.properties 
file to run. I provide a template file called build.template.properties which you 
can copy and rename to build.template. Once you do that open it up and lets change 
a few key properties.

You will need to set the following paths:

	FLEX_HOME - path to your Flex SDK. If you have FlashBuilder installed it 
	is located in the App’s dir under SDK 4.0.

	android.sdk - path to your Android SDK

	browser - On a PC you will want to use the path to the actual browser 
	such as C:/Program Files/Mozilla Firefox/firefox.exe. On a mac the name 
	of the browser will work such as Safari.

Once you set these paths you should be able to run the ANT Build. The default build 
is compile swf. After running it, the build will create a bin folder for you and 
compile the swf in there. From there you can launch the index.html however you want. 
There is an ANT target for local-run located in the compile-swf include build or use 
the IDE to launch the index file and trigger the debugger, which is what I normally do.

bitmapscroller's People

Contributors

jessefreeman avatar theflashbum avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.