Demo Effect:
Click here to download the source file
Shooting game The main application of the code1. Mouse follow StartDrag (this, true); used to make a standard device.2. Layer-level control swapdepths ();3. Collision Detection HitTest (_root.gun.hit)4. Dynamic loading of the enemy: _root.attachmovie ();5. Dynamic text box to make a display scoreProduction process:1. Prepare a sight MC, containing the animation of firing2. The enemy
Masks are commonly used in flash animation production. It can form a cavity to make the covered object visible through the cavity. The mask layer is often used on the flash stage to implement this technology. In AS, MC is often used to implement the mask. Make the masked object and the masked object into MC, and then use the setMask () method to implement the mask effect.SetMask () method:MC's setMask (
Looking at the extjs source code, we found that there are many mixedcollections. It is a collection class that contains both a digital index and a key, and exposes related events. It is equivalent to map and list in Java, and has four events: add element, remove element, replace element, clear set clear
(1) Let's see how it works.
1 // General Method2 var MC = new Ext. util. mixedcollection ();3 MC. Add (so
(BigInteger unscaledval, int scale, Mathcontext MC)This constructor is used to convert to BigInteger non-scale values and an int scale to BigDecimal, which is rounded based on context settings.
4
BigDecimal (BigInteger val, Mathcontext MC)This constructor is used to convert BigInteger to BigDecimal rounding based on context settings.
5
BigDecimal (char[] in)This constr
When we browse the Web , we often see a variety of pictures scrolling menu, banners and ads, although the effect is basically the same, but because the writer's ideas vary, so the complexity of the script is very different, here is a very simple script example.Basic ideas
① at the center of the MC of the left and right sides, while placing the same set of pictures, the center point is also the beginning and end phase
② measured the distance between
of each parameter:
X1,Y1,Z1: These three real numbers represent the position of the particle you want to create in the coordinate system.
Dist1, which describes the distance from the eye of the observer to the plane of Xoy. The value of the distance is positive real number. Note that the smaller the distance, the more visible the "perspective" effect of the object you see, the greater the "perspective" effect of the object you see. In general, if you want a more visible perspective, select a va
1. What do MC, FS, and AS often mentioned in the forum mean?MC = Movie Clip (cartoon "," www.Shutterstock.jp "," afs "," 1000016004 "); 'onmouseout = 'isshowgg = false; inTextAds_GgLayer = "_ u52A8_u753B_u7247" '> animation fragments); FS = FSCOMMAND is a very important command set of Flash; AS = Action script is the programming language of Flash.2. W
. The default is 0xFFFFFFFF (white) *[Bracket] Indicates an optional argument For example (to create a 100*100 bitmap data): Import Flash.display.BitmapData; var bm:bitmapdata = newBitmapData (100,100,FALSE,0XFFFF00) V. Bitmapdata.draw () method The Draw () method is simply understood to be: to copy pixels into a BitmapData object. For example: There is a movie clip at the home scene, the instance named "Pic" Import Flash.display.BitmapData; var bm:bitmapdata = new BitmapData (100, 100); Bm.draw
VaR movespeed = 8; // movement speed
// Mc mobile video
// Long distance
// Posx original X coordinate
Function leftbody (MC: movieclip, long: Number, posx: Number ){
VaR old = posx;
This. onenterframe = function (){
If (MC. _ x-(old-long)> movespeed ){
MC. _ x = mc. _ x-mov
Programming | skills | experience
In fact, my level is not very good, today the reason for a programming experience (mainly their own little experience summary) introduction, mainly to help interested in the deep study as friends, because of the limited level of individuals, which inevitably have fallacies, we welcome discussion to correct. To help me advance, and more importantly, to prevent beginners from developing bad programming habits! A lot of crap, here's the start:
A. Flash has three pl
1. Create a new Flash document first:
2, in the background to write a good display of words, properties of the color of their own tune.3, continuously presses two ctrl+b, separates the text into a graph. (Lest fonts are missing)4. Select the Mobile tool and then point to the text to convert the text to: movie clips into components5, in the property surface version of the instance name change: MC6, from the library to drag components to the background outside the place7. Create a new Layer 28, s
breakdown of these two processes.
1.1 Model Observation Transformation
Let's start by figuring out the rendering pipeline in OpenGL. Pipelines are an abstract concept and are called pipelines because the graphics cards are processed in a fixed order, and strictly in this order . Just as water flows from one end of a pipe to the other, this order cannot be broken. Let's take a look at figure 1 below:
Figure 1 OpenGL rendering pipeline
The main part of the OpenGL graphics pipeline is shown in the
three spaces, and ' Jone Smith ' has 2 spaces, to change the middle space to a space, use replace to use 2 times, instead of regular expressions, we can design the pattern as' () {2,} ' thisRegexp_replace (MC, ' () {2,} ', ')-------------------------------------------------------------------------------Regexp_like is an enhanced version of like that can contain _ and% wildcard characters, which are used in the Where condition.Regular expression attri
the INDEX
BINARY_INTEGER.Example:
The Code is as follows:
DeclareCursor cur_test is select id, mc from test;Type t_test1 is table of varchar2 (60) index by binary_integer;Type t_test2 is table of test % rowtype index by binary_integer;Var_test1 t_test1;Var_test2 t_test2;Var_new t_test2;BeginSELECT id, mc INTO var_test2 (0) FROM test WHERE id = '000000 ';Dbms_output.put_line ('var
);Dbms_output.put_line (var_array (I). sex );End loop;End;
About arrays in ORACLE: record the same setThe set can be implemented in three ways:1. Use VARRAY to customize a TYPE to obtain an array. However, you can only define the basic TYPE as follows:Create type name as varray of VARCHAR2 (20 );
1. Use VARRAY to customize a TYPE to obtain an array. However, you can only define the basic TYPE as follows:Create type name as varray (52) OF VARCHAR2 (20 );
The following cannot be used:Creat
MC. dialog is a js pop-up layer MC developed by Xiao Yi (YesSky), which features beautiful interfaces and easy operations. dialog is a strictly tested and compatible with ie7 + and other non-ie core browsers. It Perfectly simulates the built-in Dialog box function of the browser:
Features of MC Dialog
1. Supports keyboard operations (esc is disabled, enter is
Q: How can I scale an externally loaded image?
Step 1: Load External images. Second, use its scalex and scaley attributes to scale their proportions, and third, scale proportionally by clicking an event.
Package
{
Import flash. display. movieclip;
Import flash. Events .*;
Import flash. display. loader;
Import flash.net. URLRequest;
Import flash. display. Bitmap;
Public class example extends movieclip
{
Public Function example ()
{
Init ();
}
Private function Init (): void
{
V
Currently, memcache is widely used in server cache. Here is an example of implementing message queue waiting in memcache. For more information, see.
The principle of memche message queue is to make an article on the key to record messages or logs after serialization with a continuous number plus a prefix. Then, the contents are stored in files or databases through the Timer Program.
For example, it takes a lot of time to send a large number of emails when sending emails, so you can use a queue.T
referenced again must be explicitly initialized; otherwise, if this variable is referenced elsewhere, null is returned.
Copy code The Code is as follows: Private function addlabel (txt: textfield, X: uint, Y: uint, text: string): void {
TXT = new textfield ();
TXT. x = X;
TXT. Y = y;
TXT. Text = text;
Addchild (txt );
}
Everything in as3 is new. New is not enough. You must use addchild () to add it to the display list.
Copy code The Code is as follows: Private function addbtn (
Optimize Oracle with full table Scan
Today, development has met a very BT demand.Find all friends of a person, query all works of all friends, and sort them in reverse chronological order to obtain several records,Then associate the Work Comment table.Works include the original singing table, Replaying table, accompaniment table, video table, blog table, and photo table,Different types of works must be associated with different album tables and user tables ..
------------------------------------
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.