dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: vitaLee

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    5,716

    in this case you need to create custom button...

    in this case you need to create custom button yourself.
    use movie clip, draw the states in frames and then manage add event listeners for the states you'd like.
  2. Replies
    3
    Views
    5,716

    button_1.mouseEnabled = false;

    button_1.mouseEnabled = false;
  3. XML.contains accepts argument of type XML where...

    XML.contains accepts argument of type XML where you're passing String
    if(localXML.Party[k].contains("<name>" + List.selectedItem.label + "</name>")){
    this way please...
  4. Replies
    1
    Views
    1,079

    from senocular.com // XML with xpl namespace...

    from senocular.com

    // XML with xpl namespace
    var xml:XML =
    <xml xmlns:xpl="http://www.example.com/uri/">
    <text>Hello World</text>
    <xpl:text>Hello Namespace</xpl:text>
    </xml>;

    //...
  5. Replies
    7
    Views
    1,903

    as i wrote this code was pseudo-code, meant only...

    as i wrote this code was pseudo-code, meant only for demo purpouse. i haven't tested it at all.
    the btn decalration inside onClipOver wasn't intentional, i just missed it when was copy-paste-ing....
  6. Replies
    2
    Views
    1,165

    import flash.display.Sprite; import...

    import flash.display.Sprite;
    import flash.events.MouseEvent;

    var a:Sprite = getRectSprite(0);
    a.addEventListener(MouseEvent.ROLL_OVER, onOver);
    a.addEventListener(MouseEvent.ROLL_OUT, onOut);...
  7. Replies
    7
    Views
    1,903

    in pseudo code it would look something like this:...

    in pseudo code it would look something like this:


    var overTargetFrame:int = 10;
    var outTargetFrame:int = 1;

    for each(var clip:MovieClip in [over_company, over_services, over_port,...
  8. Replies
    7
    Views
    1,903

    why dont you use tween library for this purpouse?...

    why dont you use tween library for this purpouse?
    with tweenlite it would look like this

    TweenLite.to(mc, 0,5, {frame:10}); //tween mc movieclip's frame to frame 10 over 0.5 sec
    TweenLite.to(mc,...
  9. Replies
    2
    Views
    3,485

    google made us too lazy. :) switch...

    google made us too lazy. :)


    switch (studentNumber){
    case 1:
    case 4:
    case 8:
    trace("Good kids");
    break;
    case 2:
  10. Replies
    1
    Views
    1,363

    if you'd like the items to be of variable width...

    if you'd like the items to be of variable width then you need to know what the position and width of the previous item was. something like:

    function createMainMenu(xmlData:XMLList):void {
    //...
  11. generally speaking, with this kind of...

    generally speaking, with this kind of referenecing objects you're running away from OOP.
    a step in the right direction would be for your pistol object to dispatch custom events (PistolEvent.FIRE)....
  12. Replies
    2
    Views
    1,182

    for each(var clip:MovieClip in [over_company,...

    for each(var clip:MovieClip in [over_company, over_services, over_port, over_contact]){
    clip.addEventListener(MouseEvent.ROLL_OVER, onClipOver);
    clip.addEventListener(MouseEvent.ROLL_OUT,...
  13. var PicRotation:Tween= new Tween(IMG11_mc,...

    var PicRotation:Tween= new Tween(IMG11_mc, "rotation", Strong.easeInOut, IMG11_mc.rotation+180, IMG11_mc.rotation, 5, true);
    ?
  14. Replies
    3
    Views
    1,642

    var now:Date = new Date(); trace(now);...

    var now:Date = new Date();
    trace(now);
    trace(new Date(now.time + 30*1000));
  15. //add loading text ...

    //add loading text

    myTextLoader.addEventListener(Event.COMPLETE, onTextLoaded);

    myTextLoader.load(new URLRequest("sozluk.txt"));

    function onTextLoaded(e:Event):void {
    trace('text loaded');...
  16. Replies
    1
    Views
    770

    each event has boolean bubble property that you...

    each event has boolean bubble property that you can set upon creation.
    in your case it would be something like

    dispatchEvent(new CostumeEvent(CostumeEvent.SOMETHING, true));

    refer to the book...
  17. Replies
    8
    Views
    1,250

    myRoot.main_mc.nav_mc.btn1.addEventListener(MouseE...

    myRoot.main_mc.nav_mc.btn1.addEventListener(MouseEvent.MOUSE_DOWN, btn1);
    function btn1(evt:MouseEvent):void {
    myRoot.main_mc.gotoAndStop(1);
    clearInterval(intervalID);
    intervalID =...
  18. you're loading txt file which contains 75981...

    you're loading txt file which contains 75981 words each on a new line.
    when loaded you're initialising array by doing
    myArrayOfLines = e.target.data.split(/\n/);
    this initalisation of array of...
  19. Replies
    8
    Views
    1,250

    you need to put intervalID = setInterval(play,...

    you need to put intervalID = setInterval(play, 5000); right after the slide(on-demand/click) animation is done.
    assuming the time it takes for the slides to change from one state to another is the...
  20. noone would be able to tell you what's causing...

    noone would be able to tell you what's causing the freezing from the snippet you supplied.
    i can only guess.
    you have a bunch of initialisations.
    clearLetters(); - what is this method doing...
  21. Replies
    8
    Views
    1,250

    basicly you need one variable representing your...

    basicly you need one variable representing your setInterval id. then you use it cancel the interval.

    var intervalID:uint;
    intervalID = setInterval(play, 5000);
    // later if you'd like to go to...
  22. Replies
    5
    Views
    1,392

    could you share .fla file?

    could you share .fla file?
  23. Replies
    5
    Views
    1,392

    are you sure the 'wait' frame you land on doesn't...

    are you sure the 'wait' frame you land on doesn't contain code which starts your timer again ?
    EDIT : not necesserily on exactly the same layer. on some other layer ?
  24. Replies
    5
    Views
    1,392

    if you'd like your timer to execute just one time...

    if you'd like your timer to execute just one time then you should specify that when initialising your timer object.
    and instead of listening for TimerEvent.TIMER listen for...
  25. Replies
    8
    Views
    1,250

    it would be good if you share what you've...

    it would be good if you share what you've acomplished so far, and continue the discussion from there
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center