A Flash Developer Resource Site

Search:

Type: Posts; User: mrgrim333

Page 1 of 11 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    1
    Views
    1,820

    Modulus 6. y_counter%6.

    Modulus 6.
    y_counter%6.
  2. Replies
    1
    Views
    1,820

    [RESOLVED] Rounding Issue?

    I've got a rounding problem eating my brain away!

    When my character walks down tiles, I have a y_counter to keep track of his position. The counter goes up sequentially, 0,1,2,3,4,5,6,7 etc.
    I...
  3. Replies
    3
    Views
    2,540

    So in theory I could store the map information in...

    So in theory I could store the map information in a txt and export txt with recompiled data?
  4. Replies
    3
    Views
    2,540

    Export .as file?

    So I'm working on a tile based engine, and how I load the maps in is via .as file.
    Is there any way to export (save) an .as file that's been manipulated in the swf? (I have a map editor, and want to...
  5. Replies
    1
    Views
    641

    Answering another one of my questions I see......

    Answering another one of my questions I see... :crazy:
    I used the eval to use dynamic array naming.



    on (release)
    {
    for(count=1,age=1; count<=5; count++)
    {
    testing = eval("a" +...
  6. Replies
    1
    Views
    641

    [RESOLVED] Loop logic help?

    I feel like a complete ass hat having this staring me in the face and not having a solution to it.

    What do I need to make this dynamic and not such a cluster of code!? :confused:



    on...
  7. Replies
    5
    Views
    8,257

    [**SOLVED**] So the answer for this one was both...

    [**SOLVED**]
    So the answer for this one was both Recursion and Pass by reference.
    Recursion to call the function from the function.
    Pass by reference because I never knew flash would let you pass...
  8. Replies
    5
    Views
    8,257

    PM'd with the file, so you can help a noobie.

    PM'd with the file, so you can help a noobie.
  9. Replies
    5
    Views
    8,257

    So I need _root.a1[1] to be dynamic too. Would I...

    So I need _root.a1[1] to be dynamic too.
    Would I just do like


    var plant //whatever plant is

    var f1 = {};

    f1.func = _root.tilePlant;
    f1.args = [plant, 1, 11, _root.plant1[4]];
  10. Replies
    5
    Views
    8,257

    [RESOLVED] Functions Delema

    So, how do I explain this?...
    I'm working with all dynamic stuff.

    On the main frame, I have a function, with parameters.
    Each tile (there's 25), holds it's own call on the function.

    Main...
  11. Thread: Classes?

    by mrgrim333
    Replies
    5
    Views
    1,214

    Classes?

    How would I got about setting up classes in as2?
    I've used them in c++, but never flash.

    I want to have like:

    class plants
    {
    public:
    int number;
    int age;
  12. Replies
    8
    Views
    1,685

    Ok. I put in the random value to stop the caching...

    Ok. I put in the random value to stop the caching from happening, but it still doesn't update. Maybe I'm calling it wrong or something?

    Maybe my function isn't right? :confused:
  13. Replies
    8
    Views
    1,685

    I found a tutorial (forgot to get the link) that...

    I found a tutorial (forgot to get the link) that worked...
    But I have a problem refreshing it >:(

    flash code:


    var here = this;
    varReceiver = new LoadVars();
    varReceiver.load("coins.php");...
  14. Replies
    8
    Views
    1,685

    Say in my php file I have: $coins =...

    Say in my php file I have:

    $coins = $mysql_coin_value;

    Every time you press the button in flash, it calls the php that deducts a point in the mysql database. I got this working. Now...

    I...
  15. Replies
    8
    Views
    1,685

    Get mysql value?

    So I have a mysql database with uses info.
    The user has 5 coins a day that they can use.
    When the user clicks a button in flash, I want it to send a php script that I have to deduct a point.

    How...
  16. Replies
    1
    Views
    1,260

    Attach Movie Clip to Movie Clip?

    Is there a way to attach a movie clip to a movie clip?

    _root.MC.attachMovie(MC,MC2,0,ATTACH_MC);

    Something like that? Because that doesn't work lol :confused:
  17. Replies
    0
    Views
    420

    Seperate input text

    I have 3 text boxes.

    Input.
    User.
    Password.

    I want to be able to paste a line like:

    joe***mycat1***
    into the input box, and it out in the user and password field without the *'s on a...
  18. Replies
    3
    Views
    538

    As in, the same location. Local.

    As in, the same location.
    Local.
  19. Replies
    3
    Views
    538

    [help] Read txt line by line

    I don't even know where to start with this one, I'm completely new to as3.
    I know as2 couldn't read in txt's line by line.

    What I'm going for is read in a txt line by line as a button is pressed....
  20. Replies
    9
    Views
    1,018

    It did come down to an array! I ran across what...

    It did come down to an array!
    I ran across what I was looking for on accident in, you guessed it, one of tonypa's tutorials!

    See, what I wanted to do is be able to add like an age by frame....
  21. Replies
    9
    Views
    1,018

    Couldn't I just use a For loop for that?...

    Couldn't I just use a For loop for that?
    Something like:


    for(i=1; i<counter; i++)
    {
    block1.i.gotoAndStop(_currentframe = day);
    }
  22. Replies
    9
    Views
    1,018

    Ok, so I changed it so each movie clip name is...

    Ok, so I changed it so each movie clip name is dynamic.
    Problem is now, when I try to use a _currentframe on them, BOOM! lol
    If I use something like:

    block1.counter.gotoAndStop(_currentframe =...
  23. Replies
    9
    Views
    1,018

    Attached MC's share?

    So I've attached a couple movie clips with some actionscript.
    All of the same mc.

    I have a day counter.
    When the day ages, I want the mc to age.
    When I try to age the blocks, only one will age....
  24. Replies
    0
    Views
    1,442

    What was it? (huge puzzle site)

    I remember going to a website dedicated to a HUGE puzzle game.
    It worked on a room basis. Once you figured out how to get to the next room,
    the page would reload and you'd have to beat that room...
  25. Replies
    3
    Views
    585

    That works for the foundation of what I'm trying...

    That works for the foundation of what I'm trying to do, but as far as fine tuning goes, the transition is a bit rough.
Results 1 to 25 of 254
Page 1 of 11 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center