Popups & ActionScript
Popups are simply movie clips which apear above the book pages.
The code used to create popups can also be called from your own ActionScript thus:-
_root.Zoom.ShowClip({ src:"popups/pop1.png", x:25, y:25,scale:100, entrance:myEntrance, exit:myExit, scrollMode:"NONE", callback:ZoomStatus, width:100, height:200, filter:myFilter, exitButton:true });
The advantage of the above method of calling the function means that you can specify the attributes in any order you like.
| Attribute | Comment |
| src | source for popup content |
| x | x location of the popup relative to screen 0,0 |
| y | y location of the popup relative to screen 0,0 |
| width | expected width of the popup - used by the load indicator |
| height | expected height of the popup - used by the load indicator |
| scale | scaling factor. e.g. 50=50% |
| entrance | entrance transition |
| exit | exit transition |
| canDrag | true or false |
| scrollMode | SCROLL, SLIDE, NONE |
| callback | A function you want called with a single string parameter value of ENTER when the entrance transition is complete and EXIT when the exit transition is complete. |
| exitButton | true or false. If true an exit button is placed at top right and is the only way to close the popup. |