dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: daveystew

Search: Search took 0.03 seconds.

  1. Oh, and your best bet for this sort of thing is...

    Oh, and your best bet for this sort of thing is to put the minimum amount of code you can into this class. Let it just be a self-contained video connecting / playing class.

    Really, it should just...
  2. Cool :) You could probably abstract the view...

    Cool :)

    You could probably abstract the view function into 2 functions, one that attaches the stream, and one that plays it. Then the connection success call would go call connectComplete() and...
  3. Replies
    5
    Views
    538

    Why do you need to rename it? Just store a...

    Why do you need to rename it?

    Just store a timeline or class-level reference (outside the event handler) to the current object that you can always access:



    currentTooth =...
  4. Here's an example using functions, and an extra...

    Here's an example using functions, and an extra check for the connection (I'm unsure as to whether the connection needs to be already connected or not before setting up the stream - I suspect it...
  5. Any reason you're passing in a netstream...

    Any reason you're passing in a netstream reference then creating a new one?

    And your client object needs a metadata handler. At the moment it's an empty object.
    You're forgetting to associate it...
  6. It's a bit tricky as we can't see the whole...

    It's a bit tricky as we can't see the whole class, and your code isn't the clearest... (sorry!)

    Problems I've found in the past:

    Metadata width and height come through null (but it looks like...
  7. Replies
    5
    Views
    538

    instance names and variable names (references)...

    instance names and variable names (references) are two completely separate things.

    A variable cares no more about the "name" property of an object than it does about its "color" property, and...
  8. Replies
    8
    Views
    1,201

    Nooooooooooo!!!!! This is not the AS3 way to do...

    Nooooooooooo!!!!! This is not the AS3 way to do it!

    You should define a base class Shape that has common functions such as draw():


    package
    {
    public class Shape extends Sprite
    {...
  9. What's your favourite way to code reusable buttons/menu items?

    A good button should have all the available out, over and down states, and often there are a bunch of nice to haves such as animation, disabled states, filters, you name it.

    I seem to change my...
  10. Replies
    3
    Views
    1,875

    Thanks for the welcome MD. Yup, I found some...

    Thanks for the welcome MD. Yup, I found some rather good links and am slowly getting my head round it!

    :D
  11. Replies
    3
    Views
    1,875

    OK, I got it. Slightly convoluted, but I guess...

    OK, I got it. Slightly convoluted, but I guess I'm still learning the power of this new syntax:

    var list:XMLList = xml..*.elements('text');
  12. Replies
    3
    Views
    1,875

    Nodes named in E4X

    HI all,

    I must admit I'm not enjoying getting my head around E4X. The latest issue is I can't access any nodes in my tree which have the tag name "text":


    <root>
    <section>
    ...
Results 1 to 12 of 12




Click Here to Expand Forum to Full Width

HTML5 Development Center