homecontact


News

Using Behaviors

If you was creating some web content where there would need to be links you would need to add some behaviors to enable a link. Behaviors are ready made action script which makes it easy for users to add script. When creating flash websites it can be difficult to create navigation through the timeline.

Creating a link to webpage

The first step is to open the behaviors pannel which you simply go to Window, Behaviors. With the panel open click the keyframe and then click the cross on the behaviors pannel and cick web - go to webpage. Once you click that the dialouge box as shown below should open. Enter your URL in the box and click ok and should have a link to an external page.


Go to URL

 

This shows how you can change the event such as the link will activate once the user has released there finger of the right button.

 

Behaviors_Drop_Down

Creating links in the flash file

This is quite difficult but when using behaviours can be very simple. Here i will be working with actionscript as well as behaviors. The image below shows the timeline. The top layer which I have created is going to be where i insert the actions. I have inserted a stop action in the first frame this stops the timeline playing to the next frame. You may think well this will stop my animations, well this timeline basically is the main timeline for your project and the things such as page animations would go inside frames and you would have a series of multiple timelines.

So i have in the first frames my button which i created in an earlier tutorial. In the frame 25 i have inserted sum text "Page 2" just as an example.

Timeline

 

To insert a stop action you will need to select the first keyframe and then from the actions pannel insert stop from the timeline catagory.

 

Stop Action

Go to and stop Behavior

To create a go to and stop behavior select the first keyframe which is the button. From here open the behaviors pannel and select the go to and stop behavior.

 

Keyframe

 

I have labeled previously the keyframe which i want to land on Page 2 but you can alternativley just enter the keyframe number. Click ok and you should have a actionscript and behavior which links your document.

 

go to and stop action

 

Back to Top