dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: nicholaspaul

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Thanks Flamedude. Frames is an array, so I don't...

    Thanks Flamedude. Frames is an array, so I don't think it would. 'this' wouldn't refer to the same movie clip either. Or am I missing something?

    5Tons - thanks - that worked perfectly! As you can...
  2. Need to reference a movieClip via a variable.

    The scene is a number of movie clips, all already added to the stage (i.e. not dynamically) and when one is clicked, I need to call a property of that clip.

    The clips are named frame_1, frame_2,...
  3. Is there any code I'm missing to make this make...

    Is there any code I'm missing to make this make more sense?
  4. Here's my new Rooms.aspackage { import...

    Here's my new Rooms.aspackage
    {
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;...
  5. That all makes sense - thanks. As you can see I'm...

    That all makes sense - thanks. As you can see I'm still grappling a little with the concepts but the fog is clearing!
    I'll try the dispatchEvent hopefully tomorrow nite and report back.
    Cheers!
  6. [Thanks so much for your help so far! By the way,...

    [Thanks so much for your help so far! By the way, I learned AS1, then AS3 procedurally, and am now trying to get a handle on OOP, so I'm a bit rusty here!]
    I actually have two other classes, left...
  7. Thanks 5Tons. Yes, scope does sound like the...

    Thanks 5Tons. Yes, scope does sound like the problem. Putting the methods in Main seems to make sense. I'm wondering if I should put the methods in the class that the objects belong to? Does it...
  8. Rooms.as (used for the rooms, or backgrounds)

    package
    {
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import...
  9. Here is Main.as

    //Main
    package
    {
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.events.MouseEvent;


    public class Main extends MovieClip
    {
  10. Would code samples help?

    Would code samples help?
  11. How can I turn off event listeners in other classes?

    To save anyone reverse engineering my reams of code, here it is in a nutshell.

    Two buttons, left and right, move the (full screen) backgrounds. If you click the right arrow, the current...
  12. Replies
    14
    Views
    1,059

    Oops. I had a feeling that nesting functions was...

    Oops. I had a feeling that nesting functions was bad. I'll fix em - thanks.

    I've found a way to make things a tad easier - include external .as files and keep functions separated according to...
  13. Replies
    14
    Views
    1,059

    The reason I had the arrays starting at 1 was...

    The reason I had the arrays starting at 1 was just to make sense of there being four rooms, numbered 1 to 4. The rooms to darken start at 2, the room that is next.

    I see what you mean about...
  14. Replies
    14
    Views
    1,059

    What if I were to back up a bit... Taking the...

    What if I were to back up a bit...
    Taking the original code, how could I convert it into Classes? Or am I heading in the right direction?

    Just trying to cut down on the migraines...
  15. Replies
    14
    Views
    1,059

    AHA! "undefined TypeError: Error #1010: A...

    AHA!

    "undefined
    TypeError: Error #1010: A term is undefined and has no properties.
    at com::Rooms/darkenRooms()
    at com::Rooms()"
  16. Replies
    14
    Views
    1,059

    I get '4', which is what it should be.

    I get '4', which is what it should be.
  17. Replies
    14
    Views
    1,059

    Yup. room[1] (livingroom_mc) is the background on...

    Yup. room[1] (livingroom_mc) is the background on the stage.
    I pasted in those traces and got -

    [object MovieClip]
    [object MovieClip]
  18. Replies
    14
    Views
    1,059

    I put the room[]; line in the constructor and...

    I put the room[]; line in the constructor and added a couple of traces to darkenRooms to see where I'm getting the error.

    I changed darkenRooms to read just
    room[1].alpha = 0; and I still get...
  19. Replies
    14
    Views
    1,059

    I should mention that the error I'm getting at...

    I should mention that the error I'm getting at the moment is:


    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com::Rooms/darkenRooms()
    at...
  20. Replies
    14
    Views
    1,059

    AS on timeline works - not in Classes...

    I've got a project working with all the AS in one keyframe on the timeline. Lovely. Then I thought this should probably be in packages and classes. That's where it went wrong.
    I managed to fix a...
  21. Flash Map - rollover lights up locations

    Alright, I'm not really a Flash newbie, but it's been so long I might as well be! I'm very rusty... veeeeery rusty!
    Ok, so I have a map, which dots for locations, and a list on the right of place...
  22. Replies
    0
    Views
    460

    How can I export to mov?

    I 'm trying to export a flash movie to mov but the result is really low quality. I'm using png's (for the transparencies) and always select 'none' for compression. The file is also 67MB. And it looks...
  23. I chose to turn off 'selectable text' and that...

    I chose to turn off 'selectable text' and that did the trick - Thanks jasonsplace!
  24. [RESOLVED] Website buttons seem quirky.

    I'm having a bit of trouble building a website menu. The buttons look ok, and are meant to descend quickly then ascend a small amount - like a short 'wobble' - when moused over. They only seem to do...
  25. Replies
    2
    Views
    453

    Well, reading that reply would have been nice....

    Well, reading that reply would have been nice. Anyone else know what I can do?
Results 1 to 25 of 54
Page 1 of 3 1 2 3




Click Here to Expand Forum to Full Width

HTML5 Development Center