dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Kid Charlie

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Create a pubic property in the class ...

    Create a pubic property in the class




    public class YourClass{
    public var color:uint = new uint();
    public function YourClass(){
    function disEvent(e:MouseEvent):void{
    ...
  2. Replies
    5
    Views
    853

    math calculations might not be the best why to...

    math calculations might not be the best why to see a difference in speed, either as a lot of them are the same common packages. Push and remove items from an array to see the real difference in...
  3. Replies
    3
    Views
    480

    This seems to be a bug. On the positive side,...

    This seems to be a bug. On the positive side, however, the number it returns is pretty darn close to 0. That's what piqued my interest in this because a lot of my programs rely on cos. This should be...
  4. You can save a MouseEvent as a variable. var...

    You can save a MouseEvent as a variable.
    var Mevent:MouseEvent; \rfunction clicked(e:MouseEvent):void{\r\tMevent=e;\r}\raddEventListener(MouseEvent.CLICK,clicked); from there you can save that...
  5. Replies
    6
    Views
    580

    What version of flash and Actionscript are you...

    What version of flash and Actionscript are you using? This would work in CS3 with actionscript 3
  6. I am missing your point. It sounds like you don't...

    I am missing your point. It sounds like you don't really know what to do to get your info from your XML. Maybe instead of ranting you should ask how to access your files.

    Where I have had issues...
  7. Replies
    6
    Views
    580

    All code should be in the main timeline. Make a...

    All code should be in the main timeline. Make a flvPlayer (wth flvComponent or whatever) named video player. Place the graphic over it. Inside the listener function remove the graphic (...
  8. OK just quickly i stepped back and asked how I...

    OK just quickly i stepped back and asked how I would create a sound in the main timeline. This is what I got:



    import flash.events.Event;

    function createAndPlaySound():Sound
    {
    function...
  9. Should be really simple. Here is an example of...

    Should be really simple. Here is an example of how to do a lot of this in AS3 with the flex sdk. The actionscript should all be the same but you might need to figure out how to create the right...
  10. I am typing you these answers too quickly I am...

    I am typing you these answers too quickly I am sorry. It should be Event.COMPLETE

    Sorry
  11. Replies
    1
    Views
    448

    Here is some documentation:...

    Here is some documentation: http://livedocs.adobe.com/flash/9.0/main/00002938.html, http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/IEventDispatcher.html

    Also there is...
  12. you need some more code to make it play. ...

    you need some more code to make it play.



    function playSound(e:Event):void{
    mySound.play();
    }
    mySound.addEventListener(complete, playSound); //To call the playSound when the load of the...
  13. Replies
    9
    Views
    1,732

    It's pretty simple really. In order to dispatch...

    It's pretty simple really. In order to dispatch an event you just need to create one. A custom event is essentially an object with information about the event.

    to dispatch an event just do...
  14. @Hummercash: Everything I said above would work...

    @Hummercash: Everything I said above would work in AS2. I would recommend that if you coming back into it that you try to learn AS3 as it is much better than AS2. Really you can embed the flash with...
  15. Thanks for the fix MFIAT. I always manage to...

    Thanks for the fix MFIAT. I always manage to forget the event and to remove the eventlistener on my first draft of code. I always appreciate the second eye.

    I personally wouldn't use the enter...
  16. I am having difficulty to understand exactly what...

    I am having difficulty to understand exactly what you are trying to do. The way actionscript 3 works is that things aren't visible unless they are added into the DisplayObjectContainer. This is...
  17. Replies
    6
    Views
    580

    removeGraphic(e:Event):void{ //remove graphic...

    removeGraphic(e:Event):void{ //remove graphic here
    videoPlayer.removeEventListener(VideoEvent.PLAYING_STATE_ENTERED,removeGraphic);
    }
    ...
  18. Replies
    1
    Views
    518

    http://livedocs.adobe.com/flash/9.0/ActionScriptLa...

    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextFormat.html
    You can also apply css styles. It is a bit of pain but you can get through it.
  19. Did you ever add mc2 to the stage or to mc1?

    Did you ever add mc2 to the stage or to mc1?
  20. function startSound():void{ var mySound:Sound...

    function startSound():void{
    var mySound:Sound = new Sound(new URLRequest('sound2.mp3');
    }
    addEventListener(Event.ENTER_FRAME, startSound);


    Let's go through it line by line. Line 1:...
  21. How would mc2 have a property of x if it wasn't...

    How would mc2 have a property of x if it wasn't on the stage?
  22. Could be a problem if he is planning on making...

    Could be a problem if he is planning on making any money from it. But i can't see youtube getting upset about personal FLV streamer. I have seen things like this on other sites. Besides the flvs will...
  23. To answer your first question. If a youTube video...

    To answer your first question. If a youTube video url is http://www.youtube.com/watch?v=CNB1EUJg1-w&feature=dir then the flv url is http://74.125.0.90/get_video?video_id=CNB1EUJg1-w . Where the...
  24. Replies
    5
    Views
    605

    It doesn't crash for me on either browsers, Mac...

    It doesn't crash for me on either browsers, Mac or PC parrallels. Sounds like you have a bad install of flash to me. Reinstall your flash and see if it fixes it.
  25. Replies
    6
    Views
    539

    Your code is not actionscript 3. try: ...

    Your code is not actionscript 3.

    try:


    function onclick(event:MouseEvent):void{
    gotoAndPlay('Click');
    }
    your_mc.addEventListener(MouseEvent.CLICK, onclick);
Results 1 to 25 of 193
Page 1 of 8 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center