Join Joseph Labrecque for an in-depth discussion in this video Controlling line thickness, part of Building a Mobile App with Feathers and Starling.
The drawing mechanism we have created here, is much more dynamic…if certain elements of the generated lines, can controlled by the user.…We'll allow control of the line thickness through a feather slider component.…So, the first thing that we'll do for this is actually import starling.events.event.…And this'll allow us to listen for events on the slider.…Now that we've imported that class, we'll go down to build…controls and actually set some properties on the existing slider component.…Locating the slider itself.…We can then go in and start setting these properties.…
The first thing we'll do is set the minimum equal to one.…The slider maximum, we'll set to 50.…And then we need to set the current or default value of the slider.…And we'll set that to ten. The next thing to do is to…add an event listener to our slider component,…so that it responds to changes in value.…So, that type of event is going to be, event.change.…And we'll invoke a function called switchLineStyle.…
Since this function isn't created yet, Flash Builder underlines which…
- Downloading the frameworks and the AIR SDK
- Configuring the project
- Implementing a theme
- Creating the screen classes
- Adding a navbar component
- Building the classes
- Returning saved files
- Publishing a project
- Installing and running the app
Skill Level Intermediate
Building Flash Games with Starlingwith Lee Brimelow2h 57m Intermediate
Flex 4.6 and AIR 3.0 New Features for Mobile Appswith James Talbot1h 49m Intermediate
1. Project Setup
2. Feathers Screens
3. Building the Interface
Using layouts in Feathers1m 55s
4. Sketch Functionality
5. Browse Functionality
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.