Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum - UKWW > General > General Webmaster Talk
Register FAQ Members List Downloads Calendar Today's Posts Webmaster Resources Webmaster Blogs
 
 

General Webmaster Talk General webmaster discussion forums - In this forum and its sub forums you can discuss general webmaster related issues or even issues that does not related to Webmastering.
Sub Forums: Running a forum :: Blogs and Blogging :: Word Press Forums :: Digital Photography

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2004, 12:09 AM
Senior Member
0 posts this year. needs some grease!
New user, who has not interacted much yet.
 
Join Date: Aug 2004
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Default Tutorial>Advanced>AS to code tween...

Eariler I talked about using keyframes and tweens to change a objects size, color, alpha, etc. To make things simpler you can also use AS (or actionscript). Im going to talk about using AS to change the _alpha of an object.

°Create a circle and convert it to a movie clip. Name it whatever you would like. Now open up the actions for the circle. Add the following coding...

Code:
onClipEvent (load) {
rate = 10;
}
onClipEvent (enterFrame) {
if (_alpha>0) {
setProperty(this, _alpha, _alpha-rate);
} else {
_alpha(0);
}
When the movie is loaded this will make the _alpha decrease to 0% if it is not already at 0%

If you wanted the _alpha to increase to 100% if it was not already there you would add the following code...

Code:
onClipEvent (load) {
rate = 10;
}
onClipEvent (enterFrame) {
if (_alpha<100) {
setProperty(this, _alpha, _alpha+rate);
} else {
_alpha(100);
}
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Webmaster Resources
UK WW SEO Tools
Find UK Hosts
 
The Forum Rules
Forum Rules - MUST READ
 
Site Of the Month
BizzFace
Nominate site of the month
 
Tag Cloud
ad agency address backlinks beauty bid directory brand new clothes content for sale directories directory dispute exchange fendi purse flashmint forums forum traffic free directories go kart graphic desingning guaranteed listing handbags internet directories jewelry link link leaders link popularity louis vuitton purse manchester marc jacobs purse max90 mobile phone mortgage page rank pet phone picture of the day post request sunglasses today in history trading versace purse wallets web desinging website video wordpress themes writer

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISO to UTF-8 Tutorial clau General Webmaster Talk 0 12-30-2005 04:54 PM
Advanced PHP Coder required temi Job Opportunities 7 04-28-2005 05:38 PM
Tutorials>Advanced>Movement with hitTest crowebird General Webmaster Talk 0 09-26-2004 02:48 PM
Tutorials>Basic>Motion Tween crowebird General Webmaster Talk 1 09-25-2004 01:55 PM
Tutorials>Advanced>Save Data crowebird General Webmaster Talk 0 09-23-2004 12:40 AM


All times are GMT. The time now is 04:14 PM.

UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons.
Subscribe to our feeds   Subscribe to our feeds

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0