• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Workshop Chapter 3. Creating a Horizonta... > Converting the Slider into a Compone...

Converting the Slider into a Component

We’re about to make our slider slightly better. The limiting issues with the slider we built in the first part of this workshop include the following:

  • All the code is in the main timeline. The problem is that we can’t drag additional instances of this clip from the Library without copying and pasting the code and naming the slider instance. If there were a bug in the code, it could get duplicated and would have to be fixed for each case.

  • The minX and maxX variables are hard-wired. Our component will allow each instance its own minX and maxX values, plus an additional variable for the starting percentage.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint