|
||||||||||||||
|
||||||||||||||
The generated slideshow can be either published at a web-site, used in standalone players or in another flash movie. var mc:MovieClip = _root.createEmptyMovieClip("mc", _root.getNextHighestDepth()); mc.loadMovie("test-slideshow.swf"); In the root slideshow there are the methods to manage it. So, if the slideshow was loaded by the above method the managing can have such a view: mc.start(); mc.moveToProgress(0.5);
Available methods:function pause():Void; pause of playing; function start():Void; renewal of playing; function paused():Boolean; true if the slideshow is not played; function moveToProgress(value:Number):Void; value - from 0 to 1 - to set the playing progress; function moveToTime(value:Number):Void; value - in millisec - to jump to the set time position; function getPosition():Number; returns the current posiotion of playing (in millisec); function getDuration():Number; returns the slideshow duration (in millisec);
Controller (navigation bar) template |
| alpha | Number. The controller transparency. |
| mode | Number. The showing method. The follow values can be used: 0 - is not shown; 1 - is shown always; 2 - is shown when the mouse is over. |
| color1 | Number. Color. |
| color2 | Number. Color. |
| facecolor | Number. Color of the button text. |
| showtimer | Number. The timer showing. The follow values can be used: 0 - do not show; 1 - show in sec; 2 - show in millisec. |
| fullScreenMode | Number.Sets Flash Player to full-screen mode. The follow values can be used: 1 - full-screen, 0 - normal mode. |
| screenModeSwitcher | Number.Indicates should the Switcher be shown. The follow values can be used: |
| showmute | Number. Indicates should the mute be shown. The follow values can be used: 1 - show, 0 - do not show. |
| showvolume | Number. Indicates should the volume be shown. The follow values can be used: |
There are some requirements for controller developing.
1. The movie must contain the one frame only and there is the action script stop() in this frame;
2. In frame there must be one movieClip only with an instance name "PRELOADER";
3. The example of Action script for movieClip:
onClipEvent(enterFrame){ if(_root.getBytesLoaded()>=_root.getBytesTotal()){ _root.gotoAndStop(2); } else { //loading progress showing } }
4. In timeline of the movieClip PRELOADER will be added the variable color: Number defining the preloader color.
Copyright 2004-2008 FeatherySoft, Inc. All rights reserved |