Creating Interactivity with dynamic text ..

The outcome of this exercise, is to introduce you string variables and how thay could be used.

View demo download partial source .fla

download completed .fla

Step1

Open a new project in flash and create the following layers

 

Step2

Goto menu/modify/document properties and set the following. choose any colour that you want

Step3

Goto file import and import the pics for the story

download Images

 

 

Step4

Insert key frames at the following intervals using f6 or menu/insert/keyframe

 

Step5

Place the images from the library on the key frames leaving keyframe 1 blank

Convert the bitmap images to vector using menu/modify/trace bitmap

Step6

Convert each image into a symbol using menu/insert/convert to symbol

Step7

On frame1 of the story layer create a static text box, to make a title for the story and convert it to a movie symbol "so later it can be animated "

 

Step8

On all key frames on the story layer add the action stop()

by selecting the keyframe and clicking your right mouse then select actions

 

 

Step9

Create an input textbox on on frame 1 of the story layer and give it an instance name "name"

 

 

Step10

Frame 1 story layer should look something like this

 

Step11

Your timeline should look like this, the pictures layer has tweens on it to allow for transitions between scenes.

 

On the story layer on each keyframe add a dynamic textbox for a scene caption, give each textbox an instance name "page1, page2" so on then add some code to the story layer keyframe to dynamicaly place text
On actions for the next button on frame1. add this code to set the variable for character name that will be used throughout the story