Flash Card Guidelines: Difference between revisions

From Studio Knowledge Base
Jump to navigationJump to search
(New page: == Publishing your ecard == Publish your ecards in flash version 8 or lower versions. == ActionScript Usage == Use Action Script 2.0 in your cards. Our system currently do not support Act...)
 
Line 3: Line 3:


== ActionScript Usage ==
== ActionScript Usage ==
Use Action Script 2.0 in your cards. Our system currently do not support ActionScript 3.0 and hence usage of ActionScript 3.0 is not recommended.
We recommend you to use Action Script 2.0 in your cards. Our system currently does not support ActionScript 3.0 and hence usage of ActionScript 3.0 is not recommended.


== Play and Replay button ==
== Play and Replay button ==

Revision as of 23:13, 4 March 2010

Publishing your ecard

Publish your ecards in flash version 8 or lower versions.

ActionScript Usage

We recommend you to use Action Script 2.0 in your cards. Our system currently does not support ActionScript 3.0 and hence usage of ActionScript 3.0 is not recommended.

Play and Replay button

Use a Play button at the beginning and a Replay button at the end of your card.

Play button

Use stop(); ActionScript on first frame.

Make a Play button in the first frame and use the following ActionScript on the Play button

 on(release){
   play();
 }

Replay Button

Use stop(); ActionScript on last frame.

Make a Replay button at the end of your card and use the following ActionScript on the Replay button

 on(release){
   gotoAndPlay(2); // where 2 is the frame number succeeding the first frame having the Play button
 }

If you don't provide a Play and Replay button accompanied by a stop(); ActionScript, your card will keep on playing in a loop.

Music

Assuming that Play button is on the first frame, start the music from the second frame.

Frame Rate

Make sure that you are using frame rate of 12 for cards having music embedded on the time line.

Sound Variable

If your card has sound variable with target

Use:

 var mySound:Sound = new Sound(this)

Don't Use:

 var mySound:Sound = new Sound()

_parent and _root

In case you are using parent - child relationship use _parent and _root instead of _level0

Embedding a hyperlink

You can embed a hyperlink in your card. But the link should always open in a new page. In order to do this click on option Target inside flash and select _blank from the drop down.