A Flash Developer Resource Site

Search:

Type: Posts; User: senocular

Page 1 of 20 1 2 3 4

Search: Search took 0.71 seconds.

  1. It depends what your class is used for. All...

    It depends what your class is used for.

    All timelines (movie clips) are defined by their own classes. when you create variables in the timeline, that variable becomes a class member variable of...
  2. If you want ButtonA_btn, HolderB_mc, or...

    If you want ButtonA_btn, HolderB_mc, or HolderC_mc, make sure you use e.currentTarget, not e.target
  3. Replies
    1
    Views
    547

    you have to use addEventListener on the object...

    you have to use addEventListener on the object dispatching the event. Just like you added the CLICK listener to the rectangle (since the rectangle dispatches the CLICK event), you would need to add...
  4. You could at least be a little less obvious in...

    You could at least be a little less obvious in your cross-site posting :P
  5. Thread: classes

    by senocular
    Replies
    9
    Views
    935

    If you've created a script that uses a bunch of...

    If you've created a script that uses a bunch of classes that require importing and you didn't import them, then yes, you basically have to go through that script, find each case where a class is...
  6. Replies
    3
    Views
    586

    I'm with sstalder. Benchmarch. Some things are...

    I'm with sstalder. Benchmarch. Some things are faster, others are not. For some things, new features and enhancements can take more time to process, while for other things, improvements were made...
  7. Replies
    4
    Views
    534

    With this, note that types (anything after the...

    With this, note that types (anything after the ":" in a variable declaration) cannot be dynamic. They need to be known types at compile time. Any value passed into a function as an argument or...
  8. Thread: Split method

    by senocular
    Replies
    5
    Views
    669

    str.match(/[^\/]+/g) Broken down: str The...

    str.match(/[^\/]+/g)

    Broken down:

    str
    The String you're performing the operation on (str being the name of the variable)

    match
    A method of the String class, match is kind of like a regular...
  9. Thread: Split method

    by senocular
    Replies
    5
    Views
    669

    str.match(/[^\/]+/g)

    str.match(/[^\/]+/g)
  10. That bug, btw, is for handling errors via AS...

    That bug, btw, is for handling errors via AS only. If you're strictly interested in logging the errors, you can use ErrorReportingEnable=1
    http://livedocs.adobe.com/flex/3/html/logging_04.html
  11. http://bugs.adobe.com/jira/browse/FP-1499

    http://bugs.adobe.com/jira/browse/FP-1499
  12. Replies
    2
    Views
    476

    XML is just text. You would need to store your...

    XML is just text. You would need to store your movie clip reference in a non-xml variable.
  13. Replies
    6
    Views
    11,009

    FWIW, with AS3, you can use the in operator if...

    FWIW, with AS3, you can use the in operator

    if ("foo" in gd) { ...
  14. Thread: 2 Questions.

    by senocular
    Replies
    2
    Views
    386

    1. One instance of the CS3/CS4 application can...

    1. One instance of the CS3/CS4 application can open many files so it would be wasteful to have multiple instances of the application open.

    2. It means that the current object (this) has 4 parents,...
  15. And if you're too lazy to make a new Event class...

    And if you're too lazy to make a new Event class but want to have events with custom properties, you can also use a SyncEvent
    http://livedocs.adobe.com/flex/3/langref/flash/events/SyncEvent.html...
  16. use the TextEvent.TEXT_INPUT event of the...

    use the TextEvent.TEXT_INPUT event of the TextField
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/text/TextField.html#event:textInput
  17. Replies
    5
    Views
    1,030

    It's usually the other way around. Flash can...

    It's usually the other way around. Flash can load images cross-domain without any restrictions. It, however, cannot load text. Security restricts that. To enable the loading of text, the domain...
  18. I'm not familiar with the FLAIR toolkit, but the...

    I'm not familiar with the FLAIR toolkit, but the classpath is provided to the compiler by you, or your IDE. So it depends on your environment
  19. Replies
    1
    Views
    489

    whatever is handling curImg, say, the...

    whatever is handling curImg, say, the "ThumbnailManager" class, should also be responsible for updating the thumbnails to reflect what curImg is. This would typically mean something like



    if...
  20. Replies
    6
    Views
    1,868

    You forgot 'new'. You would also want to be sure...

    You forgot 'new'. You would also want to be sure to set bytesLoaded/bytesTotal in that event
  21. Replies
    6
    Views
    1,868

    If you want to use e.bytesLoaded/e.bytesTotal...

    If you want to use e.bytesLoaded/e.bytesTotal then you'll need to be sure e has those properties; i.e. you should be dispatching a ProgressEvent
  22. addEventListener.( should be ...

    addEventListener.(

    should be

    addEventListener(
  23. Replies
    1
    Views
    456

    Download the zip file in the page you linked. It...

    Download the zip file in the page you linked. It shows you how to save the class file in relation to the FLA
  24. Replies
    3
    Views
    1,759

    Make the image Bitmap persistent; declare it...

    Make the image Bitmap persistent; declare it outside of the loadComplete function and immediately add it to the display list. Then in loadComplete simply set its .bitmapData to evt.target.content
  25. Replies
    11
    Views
    4,923

    If you're going to be using the timeline heavily,...

    If you're going to be using the timeline heavily, and you go with AS3, make sure you publish to FP10 - there were a lot of timeline fixes in FP10 that made the timeline a nightmare for AS3 in FP9.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center