Dynamic
Today we introduce a few flash common dynamic background of the simple production method, the main use of random numbers, simple steps, but the effect is very good. One, the swaying vertical line
Download learning from the original file
This effect is very common, in fact, the implementation is relatively simple, mainly through the control of the MC x coordinates to achieve.Create a new MC, nam
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 w
We recommend that you first download the original file and open it so that you can refer to the following descriptions.1. we need to use a button to drag the text, so we need to have a text mc (mc refers to video editing), write a text in the scene, select a text, press F8 to convert it into mc, mc is named as a public
= false;Pool. Initialize (); Initialize the pool for memcache serversGet the Client instancememcachedclient mc = new Memcachedclient ();//Initialize a clientMc. EnableCompression = false;Console.WriteLine ("---------Test----------");Mc. Set ("Test", "my Value");//store data to the cache server, where the string "My value" is cached, keyif (MC. Keyexists ("test")
. In -Wl,--wrap,malloc the role of coming here again, so opened the "chicken eggs, eggs and chickens" in the death cycle, until--stack overflow.Therefore, in this function can use only the stack space or global space, if you must use heap space, also must be shown to use instead of __real_malloc new or malloc. Because of the inevitable use of dynamic memory space in map, hash, or discard it.What do we do? To avoid complications, I used the simplest but somewhat stupid method-arrays.struct memory
113. Q: How does FLASH connect to the background? [Source code]A: Use the sendAndLoad () method of the LoadVars () object to send and receive data. 114. Q: How can I pause or play a sound?A: When running the stop () command, you can use the position attribute of the sound object to obtain the playback time (in milliseconds) of the current sound file, and then use start (time, loop) play the video at the current position. 115. Q: How do I define a two-dimensional array?A: The following defines a
model. Volcano Personal Portal V3 main station, because the background picture size is too large, I used this mode, according to most people, the user experience is very good:
In short, the three models can be said to have advantages and disadvantages, how to choose or to be based on specific project decisions, of course, team and individual capacity is also an important factor. In general, programmers are likely to prefer flash mode; traditional web designers tend to prefer PS mode; the guys w
For an object type, when declaring a property, the attribute's attribute is set to retain or copy, which is different from setting it to assign.The following is an example of the Student class and the MyClass (Class) class to illustrate why you want to set to retain or copy.Student class@interface** sex; -(ID) Initwithname: (NSString *) name *) sex; -(void) sayhi; @endNow declare a MyClass class with a property of type Student and now set it to assign.@class Student; @interface *
● Action instruction function ●
1. Video Clip control action (equivalent to the method of the same name as the video clip object ):Play ()Start playing the current video clip (starting from the current frame ).Stop ()Stop playing the current video clip.Prevframe ()Jump to and stop in the previous region.Nextframe ()Jump to and stop the next shard.Prevscene ()Jump to and stop 1st frames in the previous scenario.Nextscene ()Jump to and stop the first frame in the next scene.Gotoandplay ([scene,] f
unscaledval, int scale) converts BigInteger non-scale values and int scales to BigDecimal.BigDecimal (BigInteger unscaledval, int scale, Mathcontext MC) converts BigInteger non-scaling values and int scales to BigDecimal (based on context settings into Row rounding). BigDecimal (BigInteger val, Mathcontext MC) converts BigInteger to BigDecimal (rounded based on context settings). The use of BigInteger in J
Cycle
Demo Effect:
Click here to download the source file
Using for is an important means of optimizing as. If we want to 20 MC implementation in response to mouse click events, if not for the direct write then need dozens of or hundreds of lines, and for only a few lines to use. See we achieve this effect: on the stage 20 MC Clicks, in the MC in the dynamic tex
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
tell me gotoAndPlay (1)
So the 1 inside is the parameter of this function of course, besides this parameter, do you know gotoAndPlay () other parameters?
You'll answer I have such as gotoAndPlay ("XX frame label") gotoAndPlay ("xx scene")
Because of these parameters, this function is the external interface we only know gotoAndPlay (10) The timeline jumps 10 frames to play
and gotoAndPlay () How it works inside, we don't need to know,
As long as we know what the interface is and what we can do w
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
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.