![사용자 삽입 이미지](http://blog1.phps.kr/attach/1/1313480779.jpg)
- Posted
- Filed under Scorm
![사용자 삽입 이미지](http://blog1.phps.kr/attach/1/1313480779.jpg)
blog.visualp.com
// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)
function flashWrite(url,w,h,id,bg,vars,win){
// 플래시 코드 정의
var flashStr=
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
"<param name='allowScriptAccess' value='always' />"+
"<param name='movie' value='"+url+"' />"+
"<param name='FlashVars' value='"+vars+"' />"+
"<param name='wmode' value='"+win+"' />"+
"<param name='menu' value='false' />"+
"<param name='quality' value='high' />"+
"<param name='bgcolor' value='"+bg+"' />"+
"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
"</object>";
// 플래시 코드 출력
document.write(flashStr);
}
<script type="text/javascript">
function OP(src) { // OP 함수를 선언
window.open(src, "small", "width=640, height=480, scrollbars=yes, menubar=yes, toolbar=no, status=no, directories=no, menubar = no ");
}
</script>
1. mysql
i) <mysql 소스 디렉토리>/support-files/mysql.server 또는
<mysql 설치 디렉토리>/share/mysql/mysql.server 파일을 /etc/rc.d/init.d/ 디렉토리에 복사한다.
ii) chkconfig 실행
# chkconfig --add mysqld
# chkconfig --level 2345 mysqld on
iii) 서비스 추가 확인
# ntsysv
2. 아피치
i) <아파치 설치 디렉토리>/bin/apachectl 파일을 /etc/rc.d/init.d/ 디렉토리에 복사
ii) chkconfig 를 위하여 /etc/rc.d/init.d/apachectl 파일을 열어 상단 부분에 다음을 추가한다.
--- /etc/rc.d/init.d/apachectl ---
# chkconfig: - 92 92
# description: Apache Web Server Version 1.3.27
저장하고 나와서
iii) chkconfig 실행
# chkconfig --add apachectl
# chkconfig --level 2345 apachectl on
iv) 서비스 추가 확인
# ntsysv
[출처] MySQL 과 아파치 자동 실행시키는 방법|작성자 천광우
First, let's look at pulling out all of the tags:
var tags:Array = htmlText.match(/<[^<]+?>/g);
This code simply returns an array of substrings from the htmlText that match a simple regular expression. The regular expression matches any text that:
Next, let's pull out the individual text elements:
var text:Array = input.htmlText.match(/(?<=^|>)[^><]+?(?=<|$)/g);This time the RegEx pattern is a bit more complex, incorporating positive forward and backward lookarounds. A lookaround allows you to search for something before or after your main pattern that you do not want included in the result.
Here's a simple demo of the code in action:
[원문] - http://www.gskinner.com/blog/archives/2008/03/parsing_tags_an.html
Note: The empty entry in the text list is a space that is between the tags after "HTML", and the tags before "and".
You can download the Flash CS3 FLA for the above example by clicking here.