DevelopPHP
home gear home donate
Search Results For
in:

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting Developer Q+A
Sprite Programming Mastery

Download Source Files

<iframe width="560" height="315" src="http://www.youtube.com/embed/VpqAF3XR0m8" frameborder="0" allowfullscreen></iframe>
You can embed this video on your blog or web page by copying the video embed code above and pasting it into the source code of your page. Adjust the width and height to specify the size you would like it to display.
Thumb Multilayer Flash Website Backgrounds Tutorial for CS3 and CS4
Embed Source - http://www.youtube.com/watch?v=VpqAF3XR0m8
Publish Date - Nov 20, 2009     Author - Adam Khoury
Multilayer Flash Website Backgrounds Tutorial for CS3 and CS4
Learn how to create awesome multilayer easing backbrounds for your flash projects. They can also each be clickable items instead of design elements only. This one should spark some great sites. Happy Coding!
Lesson Code
// Set stage instance, and get width and Height numbers for stage
var myStage:Stage = this.stage;
var stageW:int = myStage.stageWidth;
var stageH:int = myStage.stageHeight;

// Set variables for numbers we need in our equations
var diff1X:int = clip1_mc.width - stageW;
var diff1Y:int = clip1_mc.height - stageH;
var diff2X:int = clip2_mc.width - stageW;
var diff2Y:int = clip2_mc.height - stageH;
var diff3X:int = clip3_mc.width - stageW;
var diff3Y:int = clip3_mc.height - stageH;
var easeSpeed:int = 10;
var offSet:int = 0;

// Listeners on the stage to Add / Remove Enter Frame Events
myStage.addEventListener(MouseEvent.MOUSE_OVER, addEnterFrameEvent);
myStage.addEventListener(MouseEvent.MOUSE_OUT, removeEnterFrameEvent);
// Add Enter Frame Event Function
function addEnterFrameEvent (event:MouseEvent):void {
addEventListener(Event.ENTER_FRAME, activate);
}
// Remove Enter Frame Event Function
function removeEnterFrameEvent (event:MouseEvent):void {
removeEventListener(Event.ENTER_FRAME, activate);
}

// Function that activates the movement (MOUSE_OVER stage)
function activate(event:Event):void {

var divX:Number = mouseX / stageW;
var divY:Number = mouseY / stageH;

var moveX:Number = divX * diff1X;
var moveY:Number = divY * diff1Y;
var moveclip2X:Number = divX * diff2X;
var moveclip2Y:Number = divY * diff2Y;
var moveclip3X:Number = divX * diff3X;
var moveclip3Y:Number = divY * diff3Y;

clip1_mc.x += (offSet - moveX - clip1_mc.x) / easeSpeed;
clip1_mc.y += (offSet - moveY - clip1_mc.y) / easeSpeed;
clip2_mc.x += (offSet - moveclip2X - clip2_mc.x) / easeSpeed;
clip2_mc.y += (offSet - moveclip2Y - clip2_mc.y) / easeSpeed;
clip3_mc.x += (offSet - moveclip3X - clip3_mc.x) / easeSpeed;
clip3_mc.y += (offSet - moveclip3Y - clip3_mc.y) / easeSpeed;
}

Home   •   Terms of Use   •   T-Shirts   •   RSS   •   Testimonials   •   Subscribe   •   Classroom Chalkboard   •   Developer Q+A   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
DevelopPHP.com is a growing educational system packed with video and written material that you can access 24/7 100% free. The focus here in 2014 is spread between five technologies: HTML, CSS, JavaScript, PHP and MySQL. Learn programming theory, database interaction, web design, animation, graphics editing, vector art, 3D modeling, and much more. The educational experience here is a hybrid one offering both high quality video tutorials and code libraries that grow more robust every day. The code libraries are being assembled so that developers can discover all of the building blocks of their favorite languages. The libraries coupled with high quality video tutorials will take you deep down the rabbit hole very quickly. You can also ask questions and get free advice at WebIntersect.com.
HTML5