go to php / flash action / english dictionary

 회원가입 |  로그인

{loadVariablesNum}
( home ) 2005-04-21 13:35:25

loadVariablesNum 없길레 임시로 영문옮겨놓음

Availability

Flash Player 4. Flash 4 files opened in Flash 5 will be converted to use the correct syntax.

Usage

loadVariables ("url" ,level [, variables])

Parameters

url An absolute or relative URL where the variables are located. If you access the movie using a Web browser, the host for the URL must be in the same subdomain as the movie itself.

level An integer specifying the level in the Flash Player to receive the variables.

variables An optional parameter specifying an HTTP method for sending variables. The parameter must be the string GET or POST. If there are no variables to be sent, omit this parameter. The GET method appends the variables to the end of the URL, and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for long strings of variables.

Returns

Nothing.

Description

Action; reads data from an external file, such as a text file or text generated by a CGI script, Active Server Pages (ASP), or PHP, or Perl script, and sets the values for variables in a Flash Player level. This action can also be used to update variables in the active movie with new values. When you load variables into a level, the action in the Actions panel in normal mode becomes loadVariablesNum; in expert mode, you must specify loadVariablesNum or choose it from the Actions toolbox.

The text at the specified URL must be in the standard MIME format application/x-www-form-urlencoded(a standard format used by CGI scripts). The movie and the variables to be loaded must reside at the same subdomain. Any number of variables can be specified. For example, the phrase below defines several variables:

company=Macromedia&address=600+Townsend&city=San+Francisco&zip=94103

The first movie to open in an instance of the Flash Player loads into the bottom level (identified in code as _level0). When you use the loadMovie or loadMovieNum action to load subsequent movies into the Flash Player, you must assign a level number in the Flash Player or a target movie clip into which each movie will load. When you use the loadVariablesNum action, you must specify a Flash Player level into which the variables will load.

Example

This example loads information from a text file into text fields in the main Timeline of the movie at level 0 in the Flash Player. The variable names of the text fields must match the variable names in the data.txt file.

on(release) {
        loadVariablesNum("data.txt", 0);
}

See also

getURL
loadMovie
loadMovieNum
loadVariables
MovieClip.loadMovie
MovieClip.loadVariables



  목록

 플래시 게시판 소스 
 플래시 게시판 [2]
 ㅅㄷㄴㅅ  비밀글입니다  : E
 플래시 마우스 오른쪽 금지    : 수학/물리
 unloadMovieNum (eng ver.)    : U
 loadMovieNum (eng ver.)    : L
 탄력적인 움직임 소스    : 액션모듬
 hitTest    : H
 플래시 액션스크립트 모음    : 액션모듬
 메뉴 묶기    : 액션모듬
 3초후에 다음프레임으로 이동    : 액션모듬
 .  비밀글입니다  : operators
 study    : 액션모듬
 플래시 검색엔진 만들기    : 액션모듬
 prototype    : P
 onMouseDown    : O
 onMouseMove    : O
 마우스 커서 숨기기 Mouse.hide();    : M
 플래시 동영상    : 액션모듬
 getDepth    : G
 거꾸로 재생되는 무비    : 액션모듬
 swapDepths    : S
 마우스 오른쪽 메뉴수정하기 - ContextMenu    : 액션모듬
 마우스 over 재생 out 역재생    : 액션모듬
 charCodeAt    : C
 전역 속성    : 액션모듬
 charAt    : C
 플래시 풀스크린창 최소화하는 버튼    : 액션모듬
 #include 지시문    : #
 #endinitclip 지시문    : #
 #initclip 지시문    : #
 enterFrame (이벤트)    : E
 *-1 로 토글버튼만들기    : 액션모듬
 플래시 인트로.. [1]   : 액션모듬
 clearInterval()    : C
 setInterval()    : S
 숫자묶기    : 액션모듬
 슬라이드 메뉴    : 액션모듬
 무비클립 인스턴스네임    : 액션모듬
 연산자 new    : N
 onMouseUp (이벤트)    : O
 예약어 _global 전역함수    : G
 서브메뉴의 현재위치 표시 [1]   : 액션모듬
 슬라이드 메뉴    : 액션모듬
 getBytesLoaded    : G
 getBytesTotal    : G
 스크롤 올리기내리기버튼    : 액션모듬
 선을 복사해서 그림그리기    : 액션모듬
 마우스를 부드럽게 따라다니는 무비클립    : 액션모듬
 눈내리기    : 액션모듬
 외부음악 부르기 간단    : 액션모듬
 플래시에서 배경음악 차례로 골라듣기..(외부음악 이용) [1]   : 액션모듬
 핸드커서 안보이기    : 액션모듬
 즐겨찾기버튼    : 액션모듬
 플래시 간단시계    : 액션모듬
   [re] 플래시 시계 시분초    : 액션모듬
 랜덤으로 파일부르기    : 액션모듬
 플래시 투명    : 액션모듬
 플래시로 전체창    : 액션모듬
 한글이 깨질때    : 액션모듬
 loading 바와 100% 보여주기 액션    : 액션모듬
 TextField.borderColor    : T
 colorchange    : 액션모듬
 사운드 볼륨조절 사용예제    : 액션모듬
 Math 함수    : M
 for 문을 이용한 버튼 제어    : 액션모듬
 onKillFocus    : O
 tabIndex    : T
 onSetFocus    : O
 loadVariablesNum    : L
 XML(object) -2    : X
 XML(object) -1    : X
 _x    : X
 with    : W
 var    : V
 _url    : U
 updateAfterEvent    : U
 unloadMovie    : U
 unescape(최상위레벨 함수)    : U
 typeof    : T
 trace    : T
 _totalframes    : T
 toggleHighQuality    : T
 this    : T
 tellTarget    : T
 targetPath    : T
 _target    : T
 substring    : S
 String(object)    : S
 " "    : S
 String(function)    : S
 stopDrag    : S
 stopAllSounds    : S
 stop    : S
 startDrag    : S
 _soundbuftime    : S
 Sound(object)    : S
 setProperty    : S
 set    : S
 Selection(object)    : S

    목록            1 [2][3]

Copyright 1999-2018 Zeroboard / skin by Yoojunge