CSS 파일에서

a { selector-dummy:expression(this.hideFocus=true); } 을 추가하면 a 링크 파란색 테두리가 없어집니다.






뭐가 문제일까.

'tech' 카테고리의 다른 글

natsvc.exe  (0) 2011.05.22
하드 긁는 MsMpEng.exe 프로세스  (0) 2011.05.20
quickdown 프로세스 제거!  (0) 2011.01.02
Nero 9 advrcntr4.dll missing 네로 에러  (1) 2011.01.01
램 구별법  (0) 2010.11.28







 
 import flash.text.TextField;
import flash.net.FileReference;
import flash.events.Event;
import flash.text.TextFieldType;
import flash.events.MouseEvent;

System.useCodePage = false;

var fileLoad:FileReference;
var fileSave:FileReference;

loadbtn.addEventListener(MouseEvent.CLICK, onloadbtnClicked);
savebtn.addEventListener(MouseEvent.CLICK, saveClickListener);

function saveClickListener(e:MouseEvent):void
{
    statetext.text = "saveClickListener";
    fileSave = new FileReference();
    fileSave.addEventListener(Event.COMPLETE, fileCompleteListener);
    var str:String = myTextInput.text;
    fileSave.save(str, "test.txt");
}

function fileCompleteListener(e:Event):void
{
    statetext.text = "fileCompleteListener";
}

function onloadbtnClicked(event:MouseEvent):void
{
    statetext.text = "onBrowse";
    fileLoad = new FileReference();
    fileLoad.addEventListener(Event.SELECT, onFileSelected);
    //var swfTypeFilter:FileFilter = new FileFilter("Text Files","*.txt;");
    var allTypeFilter:FileFilter = new FileFilter("AlFl Files (*.*)","*.*");
    //fileLoad.browse([swfTypeFilter, allTypeFilter]);
    fileLoad.browse([allTypeFilter]);
}

function onFileSelected(event:Event):void
{
    statetext.text = "onFileSelected";
    fileLoad.addEventListener(Event.COMPLETE, onFileLoaded);
    fileLoad.addEventListener(IOErrorEvent.IO_ERROR, onFileLoadError);
    fileLoad.load();
}

function onFileLoaded(event:Event):void
{
    statetext.text = "onFileLoaded";
    var fileReference:FileReference = event.target as FileReference;
    trace("event.target : " + event.target.name);
    var data:ByteArray = fileReference["data"];

    myTextInput.text = data.toString();
    fileLoad.removeEventListener(Event.COMPLETE, onFileLoaded);
    fileLoad.removeEventListener(IOErrorEvent.IO_ERROR, onFileLoadError);
}

function onFileLoadError(event:Event):void
{
    fileLoad.removeEventListener(Event.COMPLETE, onFileLoaded);
    fileLoad.removeEventListener(IOErrorEvent.IO_ERROR, onFileLoadError);
    statetext.text = "File load error";
}


text파일 세이브와 로드를 만들 일이 있어서 만들게 되었습니다. load, save 작성 중 막히는 부분이 있어서 구글링을 하였습니다. 각 각 따로였지만, 정리를 제가 했습니다.

1. 디버그용으로 스테이지의 상단에 TextArea를 인스턴스 네임 statetext으로 생성했습니다.
2. statetext 하단에 myTextInput 인스턴스 네임을 갖는 TextArea 생성.

* TextArea 이 아닌 직접 inputText 형식으로 영역 그려주셔도 됩니다.



*참조 사이트 :
http://actionscriptexamples.com/2008/02/26/loading-text-files-using-the-urlloader-class-in-actionscript-30/
http://help.adobe.com/ko_KR/AS3LCR/Flash_10.0/
http://www.ilike2flash.com/2009/07/load-external-text-in-actionscript-3.html

'tech > FLASH' 카테고리의 다른 글

[AS3] 잘 되던게 안된다. ㅜㅜ  (0) 2011.08.30
adobe flash 10.3으로 퍼블리싱 해봅시다.  (0) 2011.08.12
getDefinitionByName  (0) 2011.01.09
상수 const  (0) 2011.01.09
1180:call to a possibly undefined method addChild.  (0) 2010.12.07




actionscript 2.0에서는 attachMovieClip을 사용하기 위해 linkage를 사용했었습니다.
3.0에서는 attachMovieClip이 없어졌고, 사용하기 위해서는 다음과 같이 사용합니다.

* getDefinitionByName
 매개 변수로 지정된 클래스의 클래스 객체에 대한 참조 반환

var _class:Class = getDefinitionByName("Circle") as Class;
var btn:SimpleButton = new _class() as SimpleButton;
addChild(btn);

1line : Circle linkage name을 클래스로 반환
2line : SimpleButton 참조




//////////////////////

var _class:Class = getDefinitionByName("snd") as Class;
var sound:Sound = new _class() as Sound;
sound.play();

linkage name : snd를 이용한 사운드 플레이

'tech > FLASH' 카테고리의 다른 글

adobe flash 10.3으로 퍼블리싱 해봅시다.  (0) 2011.08.12
[AS3] text 파일 세이브, 로드  (0) 2011.01.14
상수 const  (0) 2011.01.09
1180:call to a possibly undefined method addChild.  (0) 2010.12.07
flash oop 구조 정리 잘 된 곳~  (0) 2010.12.03




public static const 변수:String = "값";

값을 한 번만 대입할 수 있는 변수인 상수이며, 변수 이름은 대문자로 하고 있습니다.


'tech > FLASH' 카테고리의 다른 글

[AS3] text 파일 세이브, 로드  (0) 2011.01.14
getDefinitionByName  (0) 2011.01.09
1180:call to a possibly undefined method addChild.  (0) 2010.12.07
flash oop 구조 정리 잘 된 곳~  (0) 2010.12.03
flash : if(stage) init();  (0) 2010.11.24




P2P사이트의 대세 프로세스는 Quickdownload가 아닐까 합니다.
그리드라는 전문용어가 사용되는데, 이 것은 컴퓨터 자원을 낭비하게 하며, 개인 컴퓨터를 사용하기 때문에 아무런 작업도 하지 않지만, 개인 컴퓨터를 그리드에서 사용하게 됩니다.

그리드는 CTRL + ALT + DEL 작업관리자 - 프로세스에서 확인할 수 있습니다.

문제는 이 것은 언인스톨을 할려고 해도 되지 않습니다.

삭제하는 방법은

윈도우키 + R(또는 시작 -> 실행) ->cmd에서 아래의 명령을 입력하여 주시면 됩니다.

net stop "QuickDownload Agent"
net stop "QuickDownload Service"
net stop "QuickDownload Update"

sc delete "QuickDownload Agent"
sc delete "QuickDownload Service"
sc delete "QuickDownload Update"

------

귀찮으신 분은 첨부된 파일을 받아서 실행하면 됩니다.


'tech' 카테고리의 다른 글

하드 긁는 MsMpEng.exe 프로세스  (0) 2011.05.20
왜 안될까. android  (0) 2011.02.18
Nero 9 advrcntr4.dll missing 네로 에러  (1) 2011.01.01
램 구별법  (0) 2010.11.28
이클립스(eclipse)가 JVM 생성 실패라고 나올 때  (0) 2010.11.10




네로가 언제부터인가 무거워졌습니다.
설치 할 것이 많아서 더욱 오래 걸립니다.

그런데, 에러를 보여줍니다.


advrcntr4.dll missing

윈도우 7 환경이며, 전 그저 네로 설치를 했을 뿐인데, 이렇습니다.

삭제를 하고 다시 설치를 할려고 했지만, 여전한 에러가 나오거나 아예 실행이 되지 않았습니다.

희한한 것은 네로는 제어판 - 언인스톨창에 보이지 않습니다. 따로 제공하지 않는 것 같습니다.

그래서 구글링을 하다보니

삭제를 하게 해주는 유틸을 네로에서 제공합니다.

http://www.nero.com/redir.php?id=4558

'tech' 카테고리의 다른 글

왜 안될까. android  (0) 2011.02.18
quickdown 프로세스 제거!  (0) 2011.01.02
램 구별법  (0) 2010.11.28
이클립스(eclipse)가 JVM 생성 실패라고 나올 때  (0) 2010.11.10
Microsoft AppLocale  (0) 2010.11.06



1180:call to a possibly undefined method addChild.
5000:The class 'filename' must subclass 'flash.disply.MovieClip' since it is linked to a library symbol of that type.

 
            var loadit = new Loader();
            loadit.load(new URLRequest("moving.swf"));
            addChild(loadit);



OOP가 아닐 때는 문제가 없었는데.......

loadMoving.as
 
package  {
    import flash.display.*;
    import flash.net.URLRequest;
   
    public class loadMoving
        {
        public function loadMoving()
        {
            var loadit = new Loader();
            loadit.load(new URLRequest("moving.swf"));
            addChild(loadit);
        }
    }
}


mian.fla - 클래스 지정 : loadMoving.as
moving.swf - 단순 애니메이션 파일입니다.

혹시나 해서 public class loadMoving 뒤에 extends MovieClip을 추가했더니 에러 없이 정상적으로 되었습니다.
무비클립 상속을 무조건 시켜줘야 되나 봅니다.

'tech > FLASH' 카테고리의 다른 글

getDefinitionByName  (0) 2011.01.09
상수 const  (0) 2011.01.09
flash oop 구조 정리 잘 된 곳~  (0) 2010.12.03
flash : if(stage) init();  (0) 2010.11.24
xml loading  (0) 2008.09.23




경로 : http://bbatta.tistory.com/category/AS3

액션스크립트 3.0이나 플래시 OOP관련 서적이 적은 상황에서 나 같은 OOP 무식자들은 설자리가 없어지고 있습니다.

봐도 쓸수는 없겠지만, 도움이 되네요.

'tech > FLASH' 카테고리의 다른 글

상수 const  (0) 2011.01.09
1180:call to a possibly undefined method addChild.  (0) 2010.12.07
flash : if(stage) init();  (0) 2010.11.24
xml loading  (0) 2008.09.23
rewind  (0) 2008.09.23


출처 : http://blog.naver.com/PostView.nhn?blogId=hsjoo00&logNo=112861285

+ Recent posts