Skip to content

Public repository of players for Picklet digital popup books. Currently the Flash PickletPlayer is in development.

Notifications You must be signed in to change notification settings

stewarthaines/picklet-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

PickletPlayer

flash/ contains PickletPlayer.fla and *.as files to make a picklet player for the Flash plugin. The .fla contains code to initialize a SimplePlayer instance;

import net.picklet.player.SimplePlayer;

var player = new SimplePlayer();
addChild(player);

stop();

In addition there is an Ant build task which will use Flex 4 to compile the player, which is my preferred method. See flash/build.xml flash/PickletPlayer.mxml and flash/main.as for details.

requires;

com.adobe.serialization.json

picklet.json format

need to document this somewhere...

var layer_prototype = {
  'name': 'head',
  'image': 'images/head.png',
  'start_x': 0,
  'start_y': 0,
  'end_x': 0,
  'end_y': 0,
  'width': 0,
  'height': 0,
  'origin_x': null,
  'origin_x_rel': 50,
  'origin_y': null,
  'origin_y_rel': 50,
  'rotation': 0,
  'rotation_offset': 0,
  'transform': '',
  'index': 0,
  'start_opacity': 1,
  'end_opacity': 1,
  'visible': true
};

var picklet_prototype = {
  'title': '(no title)',
  'about': '(short description of this picklet)',
  'sticky': false,
  'public': true,
  'author_name': 'Firstname Lastname',
  'author_about': 'short biography of author',
  'copyable': false,
  'layers': []
};

About

Public repository of players for Picklet digital popup books. Currently the Flash PickletPlayer is in development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published