A Flash Developer Resource Site

Search:

Type: Posts; User: gamist

Page 1 of 14 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    4
    Views
    2,142

    Wow. It's more than just a start. I was really...

    Wow. It's more than just a start. I was really struggling with this one. Thank you so much. Now I'm going to mess around with it to get it to work with my current code. Thanks again!
  2. Replies
    4
    Views
    2,142

    Thanks for the reply. Unfortunately that only...

    Thanks for the reply. Unfortunately that only allows the user to drag horizontally. I also need the option of the mc to be dragged vertically as well. The mc would either be dragged straight up/down...
  3. Replies
    4
    Views
    2,142

    Drag in a Straight Line

    I know you can restrain an mc in a rectangle when using startDrag, but is there a way to have the mc only go horizontal or vertical without going off diagonally? Sort of like a slider that can only...
  4. Replies
    2
    Views
    604

    Can Flash Tell What URL?

    I haven't been successful in finding this answer. I'm trying to have a swf recognize what url the swf is embedded in. For example, if the swf is embedded in html on a page with the url...
  5. Replies
    7
    Views
    8,817

    You're right...I wasn't close. I made some...

    You're right...I wasn't close.

    I made some changes, and now I can't get it to fail, so I guess I either fixed the problem or I have to wait until it fails again to see if the try/catch works....
  6. Replies
    7
    Views
    8,817

    I've been trying the try/catch, but can't get it...

    I've been trying the try/catch, but can't get it to work. Is this the correct way of doing it?


    function globalXMLLoaded(event:Event):void
    {
    try
    {
    trace("the external xml data that...
  7. Replies
    7
    Views
    8,817

    Copy and paste fail. I just edited my original...

    Copy and paste fail. I just edited my original post to include it.
  8. Replies
    7
    Views
    8,817

    XML Sometimes Not Loading

    Sometimes my swf can't receive data from an xml and load it. I don't know why sometimes it works and sometimes it doesn't, but I'm trying to have the code respond if it doesn't load. I've looked...
  9. Replies
    4
    Views
    565

    Thanks, that worked!

    Thanks, that worked!
  10. Replies
    4
    Views
    565

    Thanks for the reply. Now I get the following...

    Thanks for the reply. Now I get the following error:

    1119: Access of possibly undefined property txt through a reference with static type Class.
  11. Replies
    4
    Views
    565

    Changing Text From A Different Class

    I have a class called Background that has a function that creates a textfield when my movie is first called:


    public function MakePoint() {
    var txt:TextField = new TextField();
    addChild(txt);...
  12. Thread: Preloader Error

    by gamist
    Replies
    3
    Views
    2,872

    It was a path issue. Thank you!

    It was a path issue. Thank you!
  13. Thread: Preloader Error

    by gamist
    Replies
    3
    Views
    2,872

    Preloader Error

    I used the code below to make a preloader and it works fine when I try it locally, but gives me the following error when I try to use it in a website: "Error #2044: Unhandled IOErrorEvent:....
  14. Replies
    2
    Views
    3,664

    Thanks deadlock32! I love simple solutions.

    Thanks deadlock32! I love simple solutions.
  15. Replies
    2
    Views
    3,664

    How do you create a global counter in AS3?

    I need one of my classes to contain a counter, where every time a new instance of that class is created the internal counter increases. For example, the third time a new instance of the class is...
  16. Replies
    1
    Views
    1,146

    I figured it out. All I needed to do was add the...

    I figured it out. All I needed to do was add the following line of code:


    container_mc.addChild(maskShape);
  17. Replies
    1
    Views
    1,146

    How do I drag a masked bitmap image?

    I have an image in my library and I draw a draggable bitmap circle on the stage (using a mask). So, a portion of the library image (subway) is a circle that can be dragged. The problem is when I...
  18. Thread: Bitmap Drawing

    by gamist
    Replies
    4
    Views
    1,426

    Thanks neznein9. I'm going to stick with the...

    Thanks neznein9. I'm going to stick with the matrix technique because it seems to work better for me.

    Is there a way to draw in a shape other than a rectangle? Like a circle?
  19. Thread: Bitmap Drawing

    by gamist
    Replies
    4
    Views
    1,426

    I somewhat figured it out. For anyone who cares,...

    I somewhat figured it out. For anyone who cares, I had to add a matrix to bitmap drawing. Something like

    var thisMatrix:Matrix = new Matrix(1,0,0,1,-100,-100);
    var bmpData:BitmapData = new...
  20. Thread: Bitmap Drawing

    by gamist
    Replies
    4
    Views
    1,426

    Bitmap Drawing

    I want to use the bitmap features of actionscript to take a take a 'photo' of an image. Actually, just a portion of the image. Right now I can control the width and height of the bitmap, but I can...
  21. Replies
    9
    Views
    1,142

    Oh, I see. Thanks, that worked. And, thanks for...

    Oh, I see. Thanks, that worked. And, thanks for taking the time to make it so clear. I appreciate the lesson.
  22. Replies
    9
    Views
    1,142

    Not sure why the errors came out so screwed up,...

    Not sure why the errors came out so screwed up, but basically there were four errors in the Other.as
  23. Replies
    9
    Views
    1,142

    I really appreciate you taking the time to make...

    I really appreciate you taking the time to make that so clear. I pasted it just like you wrote it, but I'm still getting some errors. I tried figuring out how to get rid of the errors, but had...
  24. Replies
    9
    Views
    1,142

    Thanks for the example, but I couldn't get it to...

    Thanks for the example, but I couldn't get it to work. Does the MainClass.as have to call Second.as?
  25. Replies
    9
    Views
    1,142

    Thanks for the reply. I tried extending the...

    Thanks for the reply. I tried extending the Other class, but it still didn't work. Could you give me an example of how to do it?

    I tried the following in Other.as:

    package Example {

    ...
Results 1 to 25 of 343
Page 1 of 14 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center