COMPUTER: some FLASH-related technical materials collected

Source: Internet
Author: User
Tags border color

AS create text box
_ Root. createTextField ("mytext", 1, 50, 50,100, 20 );
Mytext. multilance = false; // you can specify a single row;
Mytext. text = "this is a text box" // value assignment
Then delete the created text box:
Mytext. removeTextField (); // Delete!

If you want to create a text box with line breaks, you need to add:
Mytext. wordWrap = true // indicates that the text field is automatically wrapped.
Mytext. autoSize = true // specifies the automatic alignment and size adjustment of text fields

 

TextField class method Abstract

TextField. addListener () registers an object to receive notifications when the onChanged and onScroller event handler functions are called.

TextField. getFontList () returns an array of font names on the player's host system.

TextField. getDepth () returns the depth of the text field.

TextField. getNewTextFormat () gets the default text format allocated to the new inserted text.

TextField. getTextFormat () returns the TextFormat that contains some or all of the text format information in the text field.
Object.

TextField. removeListener () deletes the listener object.

TextField. removeTextField () deletes text fields created using MovieClip. createTextField.

TextField. replaceSel () replaces the selected content.

TextField. setNewTextFormat () specifies the TextFormat object for text inserted by the user or method.

TextField. setTextFormat () sets a TextFormat object for the text within the specified range in the text field.

Attribute Summary of TextField class

The transparency value of the TextField. _ alpha text field instance.

TextField. autoSize controls the automatic alignment and size adjustment of text fields.

TextField. background indicates whether the text field is filled with background.

TextField. backgroundColor indicates the background fill color.

TextField. border indicates whether a text field has a border.

TextField. borderColor indicates the border color.

The bottom visible line in the TextField. bottomScroll text field. Read-only.

TextField. embedFonts indicates whether the text field uses an embedded font outline or a device font.

The height of the TextField. _ height text field instance, in pixels. It only affects the border of text fields, and does not affect the Border Width and text font size.

TextField. _ highquality indicates the quality of the SWF file.

TextField. hscroll indicates the horizontal scroll value of the text field.

TextField.html indicates the current maximum scroll position of a text field.

TextField.html Text contains the HTML representation of Text fields.

The number of characters in the TextField. length text field. Read-only.

The maximum number of characters that a TextField. maxChars can contain.

The maximum value of TextField. maxhscroll TextField. hscroll. Read-only.

The maximum value of TextField. maxscroll TextField. scroll. Read-only.

TextField. menu associates a ContextMenu object with a text field.

TextField. mouseWheelEnabled indicates whether Flash Player should automatically scroll multiple lines of text fields when the mouse pointer stops on the text field and you scroll the scroll wheel.

TextField. multiline indicates whether a text field contains multiple rows.

The instance name of the TextField. _ name text field instance.

TextField. _ parent refers to the parent instance of this instance. Its type is Button or MovieClip.

TextField. password indicates whether the text field hides input characters.

TextField. _ quality indicates the quality of the SWF file.

TextField. restrict users can enter character sets of text fields.

The rotation Degree of the TextField. _ rotation text field instance.

TextField. scroll indicates the current scroll position of the text field.

TextField. selectable indicates whether the text field is optional.

TextField. _ soundbuftime specifies the amount of time that the sound must be buffered in advance before the sound enters the stream.

TextField. tabEnabled indicates whether the video clip is included in the automatic sorting of the Tab key.

TextField. tabIndex indicates the object's Tab key order.

TextField. _ target specifies the target path of the text field instance. Read-only.

The current text in the TextField. text field.

The color of the current text in the TextField. textColor text field.

The height of the border of the TextField. textHeight text field.

The Border width of the TextField. textWidth text field.

TextField. type indicates whether the text field is an input text field or a dynamic text field.

TextField. _ url: Create the URL of the SWF file of the text field instance. Read-only.

TextField. variable is the variable name associated with the text field.

TextField. _ visible: determines whether the text field instance is a hidden or visible Boolean value.

The width of the TextField. _ width text field instance, in pixels. It only affects the border of text fields, and does not affect the Border Width and text font size.

TextField. wordWrap indicates whether the text field is automatically wrapped.

TextField. _ x coordinate of the text field instance

The x coordinate of TextField. _ xmouse pointer relative to the text field instance. Read-only.

TextField. _ xscale specifies the percentage of the horizontally scaled text field instance.

The y coordinate of the TextField. _ y text field instance.

The y coordinate of TextField. _ ymouse pointer relative to the text field instance. Read-only.

TextField. _ yscale specifies the percentage of the vertically scaled text field instance.

Summary of TextField class event processing functions
Event processing functions

TextField. onChanged
Called when the text field is changed.

TextField. onKillFocus
Called when the text field loses focus.

TextField. onScroller
Called when one of the Text Field Rolling attributes is changed.

TextField. onSetFocus
Called when the text field receives the focus.

Summary of the TextField class listener

TextField. onChanged
Get notification when text field changes.

TextField. onScroller
You will be notified when the scroll or maxscroll attribute of the text field is changed.
Some common attachSound statements
Aa = new Sound (); // create a new music
Aa. attachSound ("jgw"); // exports the music with the library identifier jgw for playback (the identifier is named in the Library Link menu)
Aa. start (10000); // The second offset of music playback is 0, playing times
Aa. stop (); // stop playing aa.

If you don't want to see the Flash About and setting menu, just put the following code in the first frame:
_ Root. createTextField ("danger", 999, 0, 0, Stage. width, Stage. height );
Now we have a new menu.
Note: This is suitable for animation without interaction. If you need a button, remove it.
(This is a Blog reposted from Dengjie)

Restrict flash viewing only on the server
Add the following code to the first frame:
Fscommand ("allowscale", "0 ");
Url = "http://goday.gtma.cn"; // '"target =" _ blank "> http://goday.gtma.cn"; // replace this with your domain name
If (_ url. substring (0, 20) <> url) {// that 0 (h), 20 (n) means to count backwards from the first character to 20th characters (including ": // "and". "symbol), this please change according to the above url = following the http://goday.gtma.cn
GotoAndPlay (2 );
} Else {
GotoAndPlay (3 );
}
Add the second frame:
Stop ();
Add the third frame:
Stop ();
Then put the formal content in the third frame, and put the second frame into the error content.
Of course, some people say that you can skip the video by playing the video. Here is an idea. You can use loadmove and so on to attach a formal video.

Use jsonobject to save data locally (the following post will explain in detail)
For example, if you want to save data locally, you can also save the data remotely, which is similar to the following example. However, to install flashcom, you need $ very expensive)
Function test (){
This. userinfo_so = export dobject. getLocal ("test/userinfo ","/");
If (this. userinfo_so.data.info = null ){
This. userinfo_so.data.info = new Object ();
This. userinfo_so.data.info.username = new Array ();
This. userinfo_so.data.info.email = new Array ();
}
This. setUserinfo = setUserinfo;
This. getUserinfo = getUserinfo;
This. delUserinfo = delUserinfo;
}
Function setUserinfo (username, email)
{
With (this. userinfo_so.data ){
ULength = info. username. length;
ELength = info. email. length;
Info. username [uLength] = username;
Info. email [eLength] = email;
}
Var status = this. userinfo_so.flush ();
}
Function delUserinfo (){
This. userinfo_so.data.info = null;
This. userinfo_so.flush ();
}
Function getUserinfo (){
For (var I = 0; I trace (I + ":" + this. userinfo_so.data.info.username );
}
}
Var gg_so = new test ();
Gg_so.setUserinfo ("glghcool", "glghcool@etang.com ");
Gg_so.getUserinfo ();

External Loading of Text
Dynamic text boxes must be placed in MC
System. useCodepage = true;
LoadVariables ("1.txt", mc)
The front of the text is: variable name of the dynamic text box = your content is easy

Determine whether the user name and password are correct, and enter different frames based on different user names
The username text box is myname, And the password box is mypass
On (release ){
If (myname = "username 1" & mypass = "password 1 "){
GotoAndPlay (85 );
} Else if (myname = "username 2" & mypass! = "Password 2 "){
GotoAndPlay (82 );
} Else if (myname! = "Username 3" & mypass = "password 3 "){
GotoAndPlay (83 );
} Else if (myname! = "Username 4" & mypass! = "Password 4 "){
GotoAndPlay (84 );
}
}

FLASH production without finger buttons
You only need to add the following to the first frame:
Buttonname. useHandCursor = 0
Buttonname is the Instance name of your button (not the name in the library, the Instance name in the property panel)

Set FLASH as the home page, add to favorites, and open a new window
Set as homepage:
On (release ){
GetURL ("javascript: void (document. links [0]. style. behavior = 'url (# default # homepage) '); void document. links [0]. setHomePage ('HTTP: // www.flashempire.com/&##39;); "," _ self "," POST ");
}

Add to favorites:
On (release ){
GetURL ("javascript: void window. external. addFavorite ('HTTP: // www.flash8.net &; #39;, 'flash'); "," _ self "," POST ");
}

Open a new custom browser window in Flash
Get URL ("java script: window. open (" new.htm "," newwin "," width = 320, height = 320 ");")

Loading production materials (all Loading files use these AS files. Different Loading files have different performance methods, and the AS files are similar. You can see it by yourself)
Create a MC. Make a loading animation of 100 RMB. Drag the name of the Instance named Bar in the home scene, drag a dynamic text box under the loading entry, and add the variable name Percent in the lower right corner.

Add the handler label loop to the first worker, open the action panel, and enter the following code:

Bt = int (_ root. getBytesTotal ()/1000 );
L = int (_ root. getBytesLoaded ()/1000 );
P = int (l/bt) * 100 );
Percent = p + "%"; // Percent is the dynamic text variable name, that is, the display percentage.
_ Root. Bar. gotoAndStop (p); // Bar indicates the name of the load entry instance.

Join in the second region

If (p = 100 ){
StopAllSounds ();
GotoAndPlay ("main ");
} Else {
GotoAndPlay ("loop ");
}

Add the animation tag main at the beginning of the animation or change it to the next scene name or a certain animation.
Loading is mainly used:
X = Math. floor (_ framesloaded/_ totalframes) * 100); // _ framesloaded indicates the number of dropped frames _ total number of totalframes Frames
SetProperty ("_ root. load", _ xscale, x); // The value of the cross-scale percentage.
Jindu = "downloaded" + _ root. x + "% \ n please wait ";

Frame 2:
Input AS: if (x <100 ){
GotoAndPlay (1 );
} Else {jindu = "Download complete! ";
}

Draw lines with the mouse
OnMouseDown = function (){
LineStyle (000000,100)
LineTo (_ xmouse, _ ymouse)
}

OnMouseMove = function (){
If (){
LineStyle (000000,100x100); // specifies that the width of the line is 2, the color is black, and the transparency is;
LineTo (_ xmouse, _ ymouse); // draw a line to the mouse position;
}
UpdateAfterEvent (); // force refresh; Flash force refresh the display. This statement does not depend on the trigger of time frames.
};
OnMouseDown = function (){
A = true; // press the mouse to assign true to the variable, that is, execute the above if statement in parentheses and start to draw lines;
MoveTo (_ xmouse, _ ymouse); // locate the start point;
};
OnMouseUp = function (){
A = false; // release the mouse and assign a value to variable a to false. Do not execute the above if statement in parentheses and stop the line painting;
};

Several
1. var a = Math. abs (-7); // calculates the absolute value (here we get-7)

2. function myFunction (myNum ){
Var newNum = myNum + 5;
Return newNum;
}
Trace (myFunction (8 ));
// Define the call and output function value

3. In most cases, you need to place the cursor in the home scene, so you can use _ root. _ xmouse and _ root. _ ymouse.
OnClipEvent (enterFrame ){
_ X = _ root. _ xmouse;
_ Y = _ root. _ ymouse;
} // Maintain the same coordinates for video editing and mouse

4. Use rectangular film editing as a mask image
Add the following ActionScript to the action panel of a rectangular video clip:
OnClipEvent (load ){
Xs = _ width;
Ys = _ height;
}
OnClipEvent (enterFrame ){
_ Xscale = 100 * (_ root. _ xmouse-_ x)/(xs/2 );
_ Yscale = 100 * (_ root. _ ymouse-_ y)/(ys/2 );
}
In the load event, use the xs and ys variables to obtain the width and height values in the initial state of the video clip. In the enterFrame event, calculate the distance between the mouse position and the center of the rectangular video clip, calculate its ratio to the width and height of the rectangle, and then use it as the value of _ xscale and _ yscale. This animation allows you to move the mouse position to change the mask effect.

5. An Array object (the "object"/"core" directory of the Action panel) is an Array used to record group related or similar variables. Create an empty array:
MyArray = new Array ();
As shown in the following figure, create an array of determined values and display the values of each element in the output window:
WeekDay = new Array ("SUN", "MON", "TUE", "WED", "TUR", "FRI", "SAT ");
For (var I = 0; I <7; I ++ ){
Trace (weekDay );
}

An array can also be nested to form a multi-dimensional array, as shown below:
PolyArray = new Array ();
For (var I = 0; I <3; I ++ ){
PolyArray = new Array (I * 3 + 1, I * 3 + 2, I * 3 + 3, I * 3 + 4 );
Trace (polyArray [0] + "" + polyArray [1] + "" + polyArray [2] + "" + polyArray [3]);
}
The output window displays:
1 2 3 4
4 5 6 7
7 8 9 10

Determine and download the Flash Player version of the Local Machine
Ss = System. capabilities. version;
If (substring (ss, 5, 1) <> "7") {getURL ("http://www.macromedia.com/cn";, _ blank );} // '"target =" _ blank "> http://www.macromedia.com/cn", _ blank);} // that 7 is the version number

Use parity to make a button sound Switch
Add the first frame (the first frame is empty ):
T = 0 // assign the initial value to t

Add the second frame:
Stop (); // stop at the second Frame
Ms = new Sound // create a Sound object ms
Ms. attachSound ("sound") // empty sound object calls a sound called by the connection name from the library
Ms. start () // ms to start playing
Ms. onSoundComplete = function () {// when the ms sound is played, execute the following
Ms. start // replay ms
}

Add the control button above the second Frame
On (release) {// when the mouse is released, execute the following
T = t + 1 // t is equal to its own value plus 1
If (t % 2 = 1) {// if T is touched, 2 equals to 1
Ms. stop () // stops playing in ms.
B = ms. position/1000 // The value of B is equal to the position where the ms sound stops.
} Else {// otherwise
Ms. start (B) // ms starts playing from the stopped position (B ).
}
}

Implement reverse playback (you can think of it to make a lot of uninterrupted scaling effects, such as dynamic buttons. I once wrote a tutorial like this ):
Add the following statement to MC with 40 cores in the scenario:

OnClipEvnt (load ){
GotoAndStop (40); // when the video is loaded, it jumps to 40 Gb/s and stops.
}

OnClipEvent (enterFrame ){
PrevFrame (); // continuously play the previous frame,
}

Some simple AS and some program ideas, master the best:
**************************************** **************************************** *******
1. Copy the MC and randomly set the attributes of the submc:
DuplicateMovieClip ("mc", "mc" + I, 10 + I );
SetProperty ("mc" + I, _ x, random (400); // x coordinate
SetProperty ("mc" + I, _ y, random (300); // y coordinate
SetProperty ("mc" + I, _ alpha, random (100); // transparency attribute
I ++;
If (I> 200) {// set the number of copies;
I = 1;
}
**************************************** **************************************** *********
2. text appears one by one (Typing effect)
Frame1: text = "the word to appear in quotation marks ";
Ll = text. length; // The number of characters in text;
I = 1; // control the output variable;

Frame4:
If (I text1 = text. substring (0, I); // It is extracted and displayed starting from 0th characters. The extraction length is I;
I ++;
}
Frame5:
GotoAndPlay (4 );
**************************************** **************************************** *********
3. Bubble Sorting:
For (I; I for (j = n; j <= I + 1; j --) {// inner loop;
If (a [j] temp = a [j];
A [j] = a [J-1];
A [J-1] = temp; // Switch location;
}
**************************************** **************************************** *********
4. sort by insertion method (the algorithm complexity is smaller than that of the bubble method ):
For (I = 2; I <= n; I ++ ){
J = I;
If (a [j] temp = a [j];
A [j] = a [J-1];
A [J-1] = temp;
J --;}
}*************************************** **************************************** **********
5. One button controls the playing and stopping of the sound:
On (release)
{A = a + 1;
If (a % 2 = 1) {// parity check;
Mysound. stop ();
_ Root. B = int (ji. position/1000); // record the position where the player stops;
}
Else {mysound. start (_ root. B); // resume playing from the last stop position;
}
}
**************************************** **************************************** *********
6. MC rotating at a constant speed

OnClipEvent (enterFrame ){
_ Rotation + = 6; // you can specify the rotation Angle for each rotation;
}
**************************************** **************************************** *********

Use layers in combination with WEB design to cover FLASH
1. Add parameters in flash
2.

Cover parts other than scenes
Stage. scaleMode = "exactFit ";

 

 

--------------------------------------------------------------------------------

Ding8285 Banzhu 13 floor join, thank you! I hope everyone can make up for it!
Function used to determine whether the input is a number:

On (release ){
If (Number (pass) = NaN) {// determines whether the input is a Number.
Pass = "";
}

 

Check functions for the E-MAIL:

Function checkemail (email ){
Var str = new String (email );
Var arr_email = str. split ("@");
If (arr_email.length! = 2) | (arr_email [1]. indexOf (".") <1 )){
Return (false );
} Else {
Return (true );
}
}

Latency functions:

Function showTime (second, option ){
// Latency Function
This. createEmptyMovieClip ("t_mc", 9999 );
T = getTimer ();
F = false;
If (getTimer ()-t)> (second * 1000 )){
Option ();
}
}
Function go (){
// Add results
Jpg2. _ y = jpg2. _ y + 77;
Jpg2. _ alpha = jpg2. _ alpha-15;
}
Fscommand ("fullscreen", "true ");
CreateEmptyMovieClip ("jpg1", 1 );
CreateEmptyMovieClip ("jpg2", 2 );
Jpg1.loadMovie ("1.jpg ");
Jpg2.loadMovie ("2.jpg ");
I = 0;
While (I <= 100 ){
ShowTime (0.1, go );
I = I + 20;
}

 

Letter of retaining decimal places in FLASH

Int (your number * 10)/10;
In this way, keep one
Multiply by 100 is two digits. And so on

 

FLASH script Shutdown

Flash5:
Fscommand ("exec", "rundll" + chr (9) + "user.exe, exitwindows ");

 

 

Double-click the mouse!

Lsn_DbClick = new Object ();
Lsn_key = new Object ();
Lsn_DbClick.onMouseDown = function (){
ClickTime = getTimer ();
If (clickTime-lastClickTime <= 300 ){
Trace ("double-click the mouse ");
}
LastClickTime = clickTime;
};
Mouse. addListener (lsn_DbClick );
Time = getTimer ()-down_time;
If (time <300 ){
// Double-click the Code Section
}
Down_time = getTimer ();
How to Get variables from another swf

LoadMovieNum ("vars.swf", 1 ["POST"]);
_ Root. onEnterFrame = function (){
Trace (_ level1.myvab );
};
// After loading, the output will have a value...

Right-click and scroll wheel code

If Key. isDown (2) {}, (the left-click code is 1)

Left click: Key. isToggled (1)
Right-click Key. isToggled (2)
Wheel: Key. isToggled (4)
Wheel 1: Key. isToggled (4) on PC
Wheel 2: Key. isToggled (3) for MAC
Unknown: Key. isToggled (3)
This. onEnterFrame = function (){
If (Key. isDown (2 )){
Trace ("asdfjsdjkf ");
}
}

 

 

Implement the TAB Function

Focus
Use the Selection. setfocus () function
For example:
For example, if you have N text boxes in the main video, the variables are text1, text2...... you want to set the focus to the first one when playing the video.
The text box is added to the first frame as follows:
Selection. setfocus ("_ root. text1 ");

We can give a similar picture.

Implement TAB function 2

Make N text boxes into an array
Numarray = new array ("_ root. text1 "," _ root. text2 ",..................... "_ root. textn ");
First, get the mouse focus
X = Selection. getfocus ();/* x gets a string of the mouse focus.
For (I = 0; I <= n; I ++)
{
If (numarray = x ){
Num = I;/* obtain the position of the current focus in the array
}
Then write the TAB key function
On (keyPress ""){
If (num = n) {num = 0 ;}
Else {num ++ ;}

Selection. setfocus (numarray [num]);

}
Button can be converted and selected using the Tab key like window
Use button. onKillFoucus

* Draw a straight line between two points
* Draw a spiral
* Draw squares, circles, and ovans
* Parabolic
* Sine and cosine

Usage: you can add it to the frame.

// Draw a straight line
/// X1, y1: Start Coordinate
// X2, y2: End Point Coordinate
// K is a layer
Movieclip. prototype. drawline = function (x1, y1, x2, y2, k ){
This. linestyle (1 );
This. moveTo (x1, y1 );
This. lineTo (x2, y2 );
};
// Draw a line from (0, 0) to (100,100)
_ Root. createEmptyMovieClip ("mc", 10 );
Mc. drawline (0, 0,100,100 );
// Draw a spiral
// W, h for width and height
// The length of the f control line, expressed in radians
Movieclip. prototype. drawhelix = function (w, h, f ){
For (var I = 0; I this. lineTo (x = Math. sin (I) * I * w, y = Math. cos (I) * I * h );
This. linestyle (1 );
}
};
// Draw a spiral line centered on (100,100)
_ Root. createEmptyMovieClip ("luo", 1 );
With (luo ){
Drawhelix (5, 5, 13 );
_ X + = 100;
_ Y + = 100;
}
// Multi-function functions, which can be circular, elliptical, and polygon
// N indicates the number of edges.
Movieclip. prototype. draw.pdf = function (w, h, n ){
F = 2 * Math. PI;
For (var I = 0; I <= f/n * (n + 1); I + = f/n ){
This. lineTo (x = Math. sin (I) * w, y = Math. cos (I) * h );
This. linestyle (1 );
}
};
// Draw a positive Pentagon
_ Root. createEmptyMovieClip ("duobian", 2 );
With (duobian ){
Drawmany (50, 50, 5 );
_ X + = 250;
_ Y + = 100;
// 5 is the number of sides of a polygon, and 6.3 is 2pai.
}
// Draw an ellipse
_ Root. createEmptyMovieClip ("tuo", 3 );
With (tuo ){
Drawmany (25, 50,100 );
_ X + = 400;
_ Y + = 100;
}
// Circle
_ Root. createEmptyMovieClip ("yuan", 4 );
With (yuan ){
Draw.pdf (50, 50,100 );
_ X + = 400;
_ Y + = 300;
}
// Parabolic
Movieclip. prototype. drawparabola = function (l, r, k ){
For (var I =-l; I <= r; I + = 1 ){
This. lineTo (x = I, y = k * I );
This. linestyle (1 );
}
};
// Call
_ Root. createEmptyMovieClip ("parabola", 100 );
With (parabola ){
Drawparabola (50, 50, 0.05 );
_ X + = 200;
_ Y + = 200;
// Vertex coordinates
}
// Sine line, cosine similar
Movieclip. prototype. drawsin = function (n, k ){
For (var I = 0; I <= 90 * n; I + = 1 ){
This. lineTo (x = I, y = k * Math. sin (I * Math. PI/180 ));
This. linestyle (1 );
}
};
_ Root. createEmptyMovieClip ("sin", 101 );
With (sin ){
Drawsin (4, 50 );
_ X + = 200;
_ Y + = 200;
// Vertex coordinates
}
Movieclip. prototype. drawwave = function (w, h ){
For (var I = 0; I <= 6.3; I ++ = 0.01 ){
This. lineTo (x = w/Math. cos (I), y = h * Math. sin (I)/Math. cos (I ));
This. linestyle (1 );
}
};
_ Root. createEmptyMovieClip ("wave", 105 );
With (wave ){
Drawwave (100,100 );
_ X + = 200;
_ Y + = 200;
// Vertex coordinates
}

A dynamic text setting alpha function.

Function setAlpha (obj, alpha ){
Var rgb = "0x" + (255 * (100-alpha)/100). toString (16 );
Rgb = rgb <16 | rgb <8 | rgb;
Obj. backgroundColor | = rgb;
Obj. borderColor | = rgb;
Obj. textColor | = rgb ;}

 

A function that traverses the instance name of all MC in level0. (You can modify it to another category)

 

Function readAllMC (){
This. MCitem;
For (what in _ level0 ){
If (typeof (_ level0 [what]) = "movieclip "){
This. MCitem [what] = _ level0 [what];
}
}
}

 

 

 

Set the MovieClip color:

MovieClip. prototype. setColor = function (c_color)
{
Var mycolor = new Color (this );
Mycolor. setRGB (c_color );
};
// Call:
YourMovieClip. setColor (0xff0000 );

 

How to Set as and reject the use of loadMovie to import a video

The following as must be set in the top-layer actions. The first line is valid.
_ Root. _ name = "nn ";
This. onEnterFrame = function (){
If (this. _ name! = "Nn" | _ root. getDepth ()! =-16384 ){
This. unloadMovie ();
}
};

 

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.