//
Video Clips named mc_bursh/mc_earse must be placed on the current layer of the stage.
//
Friendly reminder. In this example, there is something irrelevant to the page presentation.Code, But it does not affect the actual function. You can delete it as needed when using it!
Import Flash. display. bitmapdata;
Import Flash. Geom. rectangle;
Import Flash. Geom. Point;
VaR Tools = "bursh ";
VaR Widthh = 1200;
VaR Base_point: Point = new point (0, 0 );
VaR Base_rectangle: rect
The main view of the MC to create replication and access to the production and database combined with the Flash site is also a more important link.The creation of the MC:
The code is as follows
Copy Code
Common way to create a movie clip named MC2----------------var mc2:sprite = new Sprite (); Like C #, Initializes an instance ofMc2.graphics.beginFill (0XFFCC00); Set Fill ColorMc2.graphics.drawCircle (50, 50, 40); Draw a CircleMc2.buttonmode = true;AddChild (MC2); Ad
Question everybody to duplicatemovieclip () should not be unfamiliar with it, it is used to copy MC. The Duplicatemovieclip () has a parameter----Depth, which is used to control the depth of the newly copied MC, the larger the number, the higher the top level.
As an example:
There are 1 MC1 on the stage, written on the frame
Mc1.duplicatemovieclip ("MC2", 2);
Mc1.duplicatemovieclip ("MC3", 20);
Plus these words, in order to make the copied MC2
.instance2
_level0.instance1
We note that even if the MC is not named in the _root, the Flash compiler is automatically named for the MC, and the previous _level10 refers to the depth of the component as 10.
Flash charge 3:. onenterframe
(1) Onenterframe is the soul of as animation and game making.
(2) When we at home scene first frame write onenterframe=function () {...} , in fact the Flash compiler automatically adds _root to the front and turns _root.onenterframe.
(3) Important: Moviecl
);}else if(evt.target ==mc3){sum=evt.target.data;trace(sum);}else if(evt.target ==mc4){sum=evt.target.data;trace(sum);}}mc1.addEventListener("click",obj);mc2.addEventListener("click",obj);mc3.addEventListener("click",obj);mc4.addEventListener("click",obj);
Set the name of each component to mc1, MC2, MC3, and mc4.
Frame 2:
Stop ();
_global.sum2=0;var obj=new Ob
Original December 25, 2008 11:54:00
Label:
MySQL/
Collation/
Character/
Variables/
Database/
Server
This exception was found today when using a cursor for a database temp table.After finding the information, the final result. Here to share with you. Character set problem or must unify is the simplest.Create temporary table TEMP2 (MC1 varchar) default ', MC2 varchar default ', MC3 varchar (default '), MC4 varchar
will have 36 stars around in a circle, 360/36*i is the MC1 angle is 10* 1,MC2 angle is 10*2, MC3 angle is 10*3 when multiply to 37 when its angle is more 10 is 370, the 37th MC Angle will be the original MC angle 370-360 is 10, this is the value of n equals a circle of stars reason.
The code we put in the first frame of the home scene is obviously dragging the MC0, why the video of MC copied will follow the mouse, put in as the second frame set X, y
/ Python-memcached-1.58.tar.gzLinux Environment:Tar python-memcached-1.58.tar.gzcd python-memcached-1.58python setup.py InstallReference Links: https://www.cnblogs.com/xiao1/p/5858967.html4.2 Start./memcached-d-U root-p 11211./memcached-d-u root-p 11212./memcached-d-u root-p 11213Example:#!/usr/bin/env Pythonimport memcache# Initializes a memcache client object with a port weight of 1:2:1 and an open error debug display MC = Memcache. Client (["192.168.2.230:11211", 1), ("192.168.2.230:11212", 2
Statement
Well, for with, I do not know what you flasher is a kind of understanding. In fact, with is theoretically not a very important statement, without with, many functions can still be implemented, because with itself is not responsible for creating, recycling any SWF resources.However, the presence of with has greatly facilitated the design of our designers. The with in the code allows us to more clearly manage the specific MC.For example, in a complex logic control to operate on the MC1,M
ellipse on the x, Y axis of the load distance, representing the size of the ellipse, Radian continuously increase can realize the change of MC coordinates, so that the MC in the Oval movement. The center coordinates of the ellipse are (0,0). To translate the ellipse, add the coordinates of the MC to the central coordinates (cen_x,cen_y), and specify the method:
Mc._x=a*math.cos (Radian) +cen_x;Mc._y=b*math.sin (Radian) +cen_y;
2. How to handle multiple MC distributions on Ellipse
Figure 2
If mo
Statement en, for with, I do not know what you flasher is a kind of understanding. In fact, with is theoretically not a very important statement, without with, many functions can still be implemented, because with itself is not responsible for creating, recycling any SWF resources.
However, the presence of with has greatly facilitated the design of our designers. The with in the code allows us to more clearly manage the specific MC.
For example, in a complex logic control to operate on the MC1,M
first frame insert MC2 (next to the layer one in the MC1 end)
At frame No. 600, move and change the MC1,MC2 position (at which point MC2 is in the scene, MC1 moves out of the stage)
1200th frame, move and change the MC2 position (out of the stage)
07, with a similar sixth-step production method, the production of the 3rd layer MC3 effect.
Insert MC3 in Layer 3, 600 frame, 1200 frame, 1800 post, move cha
As mentioned in msdn, the data source object that can be used as a data binding control must inherit and implement the ienumerable or ilistsource interface.
The dictionary class obviously inherits and implements the ienumerable interface. So how do I bind a dictionary object to controls such as repeater?
--------------------
The following is an example (segment)
1
Public
Class
Dictest: Page
2
{ 3 Protected Repeater namelist; 4 Dictionary String , String > List
First look at the effect ~
This example mainly analyzes the use of shift () unshift () Pop () Push () and other methods to make a summary.
Push (): Add one or more elements to the end of the array and return the new length of the array.
Pop (): Delete the last element in the array and return the value of the element.
Shift (): Delete the first element in the array and return the element.
Unshift (): Add one or more elements to the beginning of the array and return the new length of the array.
not necessarily convergent.5) High efficiency of TD, fast convergence and good convergence of MC6) The MC converges toward the least squares; TD converges to MDP7) TD explores Markov nature and is more effective in Markov environment; MC does not explore Markov nature and is more effective in non-Markov environment4. Comparison of DP/MC/TD1) Bootstrap: MC does not Bootstrap, Dp/td Bootstrap (bootstrap: Not with real final feedback as the goal, but with indirect intermediate results)2) Sampling:
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.