Wednesday, July 21, 2010

AS quickly teach you to draw simple and practical to use the menu


Preview the final result:

Source and Analysis:

/ / Direct draw with AS menu, features small color blocks will move and move with the mouse.
/ / The following is the main program.
var menuText = new Array ("My collection of pictures," "My music collection", "My personal work,"
"I want the diary," "now wrote to me", "into my book");
/ / Menu label.
var menuURL = new Array ("http:// #", "http:// #", "http:// #", "http:// #",
"Qxiao_xi@tom.com", "http://ningning.dns0755.net");
/ / Menu label point to the URL.
var theItem;
/ / Create MC to spend time on this variable.
var i;
/ / Loop variable.
var step;
/ / Blocks of color moving steps.
var running;
/ / Determine whether the moving variable.
/ / Create a new function. May be cited directly this.DrawRect (x, y, w, h);
/ / X, y -> coordinates, w, h -> width and height.
MovieClip.prototype.DrawRect = function (x, y, w, h) (
this.moveTo (x, y);
this.lineTo (x + w, y);
this.lineTo (x + w, y + h);
this.lineTo (x, y + h)
this.lineTo (x, y);
);
/ / Create menu items function.
/ / Mc -> movie clip x, y -> coordinate w, h -> width and height. Text -> string.
function CreateItem (mc, x, y, w, h, text) (
mc.createTextField ("text", 2, x +10, y, 85, 20);
/ / Create an empty dynamic text paragraph
mc.text.text = text;
/ / Dynamic text segment for the new assignment, color,
mc.text.textColor = 0x000000
/ / Text size with or without borders, can choose.
mc.text.size = 14;
mc.text.border = false;
mc.text.selectable = false;
)
/ / Start building the menu functions.
function CreateMenu (mc) (
/ / Create a movie clip, and a color block of the above. Name bg -> BackGround.
mc.createEmptyMovieClip ("bg", 1);
/ / Create an empty MC
mc.bg.beginFill (0x33ccff, 100);
/ / Start filling
mc.bg.DrawRect (0, 0, 90, 20);
/ / Call the function
mc.bg.endFill ();
/ / End fill
mc.bg._alpha = 50;
/ / Transparency
mc.bg._visible = false;
/ / Visibility
/ / End of the painting.
/ / Start the following cycle.
for (i = 0; i
mc.createEmptyMovieClip ("item" + i, 2 + i);
theItem = mc ["item" + i];
theItem.index = i;
CreateItem (theItem, i * 90, 0, 90, 20, menuText [i]);
/ / Frame start of the action.
theItem.onEnterFrame = function () (
/ / If statement to determine the default condition is "true"
/ / Time when the running == true.
if (running) (
if (mc.bg._x <= step * 90) (
mc.bg._x + = 5;
) Else if (mc.bg._x> = step * 90 +10) (
mc.bg._x -= 5;
)
)
);
/ / Passing motion.
theItem.onRollOver = function () (
mc.bg._visible = true;
running = true;
step = this.index;
);
/ / Left movement.
theItem.onRollOut = function () (
mc.bg._visible = false;
running = false;
);
/ / Action when clicked.
theItem.onPress = function () (
getURL (menuURL [this.index]);
);
)
/ / Loop end.
)
createEmptyMovieClip ("menu", 10);
/ / Create "menu" movie clip.
menu._y = 0;
/ / Coordinate values.
menu._x = 0;
CreateMenu (menu);
/ / Create the menu.
/ / Put this program on the scene of the first frame, and then run.
/ / I spent a morning writing. Also Minato and.






Recommended links:



Nine ways to recruit good staff



Some live for BI to! But Mo take BI as "the Bible"



mov to avi converter free



Mp4 converter free download



LASVEGAS DVD Manager



Bluesea DVD to Apple TV DAT



Youtube FLV Save + Converter Today



Top Backup And Restore



video Format



comments Terminal And TELNET Clients



SP selling? Experience!



3GP Video CONVERTER tool



Business Storage



Hot Flash TOOLS



AUDIO file converter



Swift ASF AVI MPEG to DVD



Tuesday, April 13, 2010

Swift Flash to PS2 PDA Pocket PC


Swift Flash to PS2 PDA Pocket PC is a professional DVD movie to PSP video converter software. Swift Flash to PS2 PDA Pocket PC directly converts DVD movies to your PSP. All you need do is to connect PSP to your PC and start Super Flash to PS2 PDA Pocket PC Converter. When the conversion is completed. Swift Flash to PS2 PDA Pocket PC is an innovative Windows application that transcodes your favorite DVD movies to SONY PSP directly. You can easily convert both PAL/NTSC DVDs for optimized video playback on PSP. Integrated world-class MPEG4 encoder make it possible to transcode whole DVD disc with the time half of playback time of DVD. You can select any audio track, subtitle, chapters of the DVD as you want.

Tuesday, December 15, 2009

Youtube Movie to MPG Help


It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Easily Convert all popular video formats. Provides the highest speed to download YouTube video. Support unlimited simultaneous downloading tasks. Supports auto-name your downloaded video title as the YoutTube page shows. Offers you the most convenient task management and the easiest control capability. About Conversion Features. - is the most powerful YouTube assistant on the planet.

Thursday, November 19, 2009

Youtube FLV to Divx Guide


Hot popluar youtube video Converter + download + player tool. With YouTube tool you can also convert downloaded YouTube videos to a format compatible with your favorite portable device; including - iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, as well as video capable MP3 players, video capable mobile phones, and Pocket PC, And finally... YouTube tool's embedded player will allow you to watch all your favorite YouTube videos off-line. So now you can enjoy any .flv and .swf videos anytime!
Supports customize or create user's own profile for any new (portable) device. The video conversion supports preview. About Playing Features. Embedded YouTube Video (Offline) Player is available, it supports offline play YouTube video, .flv video and .swf video. Supports &quot;Drag and Drop&quot; video files direct to the main window. Easy to select the source files. Cool UI skin available. - is the most powerful YouTube assistant on the planet.

Thursday, November 12, 2009

SuperBurner DVD to Xbox


SuperBurner DVD to Xbox is a professional video converter to convert almost all popular video/movie formats to Xbox MP4 format. The output Xbox MP4 video files can be played on your Apple Xbox. All popular video/movie formats are supported, including AVI, MPEG/MPG/DAT, WMV, ASF, MP4, M4V, 3GP, 3G2, H264, MPEG4, AVC, MOV, QT, DivX, XviD, VOB, FLV, etc. The amazing output quality with super fast conversion speed is brough you by the built-in power MPEG4 encoder. All the output Xbox MP4 videos fit your Apple Xbox.

Tuesday, October 13, 2009

Swift Flash to Mobile


Swift Flash to Mobile is an All-in-One solution to create Mobile Phone 3GP movies from DVDs, TV shows and downloaded videos. The software combines Flash to Mobile Converter and 3GP Video Converter in one package for discounted price. The software is easy to use. It features superb video audio quality and the fastest conversion techniques availabe on the market (Up to 3x faster).



Swift Flash to Mobile easy converts all popular video formats such as AVI, DivX/Xvid, WMV, RM, MPG, MOV, MPEG (and many more) videos into Mobile Phone 3GP format. Watch movies on the road. Support all mobile phones with 3GP video capability. The software is very easy to use. It compresses a full lengh movie into small size which can be fitted in a 128MB memory card. Carry your movie theater on the go! Watch movies anywhere, anytime - a new life style.

Wednesday, September 23, 2009

Happiness AVI to 3GP FLV Apple TV


Happiness AVI to 3GP FLV Apple TV is an All-in-One solution to create Mobile Phone 3GP movies from DVDs, TV shows and downloaded videos. The software combines DVD to 3GP Converter and 3GP Video Converter in one package for discounted price. The software is easy to use. It features superb video audio quality and the fastest conversion techniques availabe on the market (Up to 3x faster).



Happiness AVI to 3GP FLV Apple TV easy converts all popular video formats such as AVI, DivX/Xvid, WMV, RM, MPG, MOV, MPEG (and many more) videos into Mobile Phone 3GP format. Watch movies on the road. Support all mobile phones with 3GP video capability. The software is very easy to use. It compresses a full lengh movie into small size which can be fitted in a 128MB memory card. Carry your movie theater on the go! Watch movies anywhere, anytime - a new life style.