Thursday 20 September 2012

First post.

Getting used to the basic princples of website creation.


Double click after duplicating by holding the 'alt' key and dragging, This will allow you to go into the button view and allows you to change the colour and effects of your buttons before during after they are in use.

Coding to link buttons to their destination pages.


stop();
btn1.onPress = function()
{
 gotoAndStop(1);
}
btn2.onPress = function()
{
 gotoAndStop(2);
}
btn3.onPress = function()
{
 gotoAndStop(3);
}
btn4.onPress = function()
{
 gotoAndStop(4);
}

coding for page links

onEnterFrame=function()
{
 obj._x = _xmouse
 obj._y = _ymouse
};

coding for mouse shaddow

onEnterFrame = function ()
{
 obj._x -= (obj._x - _xmouse) / 25;
 obj._y -= (obj._y - _ymouse) / 25;
 obj2._x -= (obj2._x - _xmouse) / 12.5;
 obj2._y -= (obj2._y - _ymouse) / 12.5;
};

coding for distant mouse shaddow x2