A Flash Developer Resource Site

Search:

Type: Posts; User: Ampre

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: & in get method

    by Ampre
    Replies
    1
    Views
    365

    This is php's fault so check the documentation....

    This is php's fault so check the documentation.
    PHP was made to output text for html pages, so strange letters have to be converted to entities.

    You need to run your output through the...
  2. Replies
    3
    Views
    655

    Oops, I made a mental note to put something in...

    Oops, I made a mental note to put something in for that, lets see.
    Looking at it again, it looks like the scrolling would be hard to control at the edges so let me try again :D



    // If mouse is...
  3. Replies
    3
    Views
    655

    Sounds like you want to find the change in mouse...

    Sounds like you want to find the change in mouse position relative to center first.

    Example:



    // If mouse is outside of imaginary 'zero speed' box in middle:
    // This assumes you have your...
  4. Replies
    2
    Views
    367

    Use the functions _root.getBytesLoaded() and...

    Use the functions _root.getBytesLoaded() and _root.getBytesTotal() to fetch the information you need.

    For example, the loaded percent equals:
    percent = (...
  5. Thread: Gallery

    by Ampre
    Replies
    3
    Views
    449

    Not likely, as Joshua Davis is often very...

    Not likely, as Joshua Davis is often very ActionScript oriented.

    It would be very easy to have each button call a function like tweenTo(x)
    When tweenTo(n) is called, it moves the inner movieClip...
  6. Replies
    3
    Views
    649

    It's the php page. If you save the contents of...

    It's the php page.

    If you save the contents of the IFRAME to a seperate file you see it goes to the right and not down. There are no line breaks between the tables.

    I suspect that you checked...
  7. Replies
    1
    Views
    520

    Re: Music Button Code Help.

    It looks like the only time you use the file name is where I have marked it with a comment. Every other use of the word music looks like a MovieClip. It doesn't matter if you use for the MC name.
    ...
  8. Replies
    2
    Views
    818

    Get one of those php scripts and call it up using...

    Get one of those php scripts and call it up using loadVars() with something like this:
    "getImageData.php?url=blah.jpg"

    And it should return something like this:
    "width=100&height=100&author=bob"...
  9. Replies
    2
    Views
    296

    if (instanceName.text != "") { That should...

    if (instanceName.text != "") {


    That should work.

    Good luck, Phil
  10. Replies
    2
    Views
    351

    I don't much care for eval, it's unpredicatable....

    I don't much care for eval, it's unpredicatable. Try:

    for (i = 1; i <= generic_object.list_items; i++) {
    var previous_item = _root["item_" + (i - 1)];
    var item = _root["item_" + i];
    //...
  11. Thread: send score

    by Ampre
    Replies
    5
    Views
    1,003

    What Steve said is right on. You can expect to...

    What Steve said is right on.
    You can expect to run into someone hacking their score because it is so easy, so be careful if it is important.

    Just call loadVars with the url:...
  12. Replies
    10
    Views
    650

    First off, I'd like to say wow :) Your flash...

    First off, I'd like to say wow :)
    Your flash file is one of the cleanest I have seen in a long time, mine included :D

    You wouldn't believe how little I think I changed. The part where you set "x...
  13. Thread: script help

    by Ampre
    Replies
    1
    Views
    622

    I assume you meant the top button. When I deleted...

    I assume you meant the top button. When I deleted "3", from the first gotoAndPlay() I was able to get into the third scene, although only every once in a while.

    I suspect that the problem is that...
  14. Replies
    2
    Views
    623

    Instead of having the movie load the information...

    Instead of having the movie load the information early, why not use a query from inside flash?

    Would a loadVars on "flashInfo.php?a=foo&b=bar" work? With this you could dynamically load anything...
  15. Oh of course! That does make sense. It sounds...

    Oh of course! That does make sense.
    It sounds like you want all out-going mail to have something attached to the beginning or end?

    I am not familiar with any mail servers let alone any "Outlook"...
  16. Replies
    10
    Views
    650

    One word?! Excellent! Just make an array, you...

    One word?! Excellent!

    Just make an array, you won't need a function at all :)

    Use:


    // Outside of loop:
    tasks = ['Task1', 'Task2', 'Task3', /* ... */ 'Task28'];
    // This is an example of...
  17. Replies
    1
    Views
    392

    If you say this is all in the same place, why not...

    If you say this is all in the same place, why not rewrite the code like this..


    on (release) {
    if (name == "") {
    info = "Please enter your Name";
    } else if (email == "") {
    info =...
  18. Replies
    10
    Views
    650

    Absolutely! I would be happy to write up some...

    Absolutely!

    I would be happy to write up some more functions to get any numbers you need, and let me know if any of them behave strangely. Time is a complicated matter, it depends who you ask and...
  19. Replies
    10
    Views
    650

    No, I'm not sure you wan't to use it. I highly...

    No, I'm not sure you wan't to use it.

    I highly recommend using your own, from scratch.

    For starters, you need to pick a day to kick off the 4 week rotation because you can not use months.


    ...
  20. Replies
    10
    Views
    650

    The Date() object seems to be underestimated :D...

    The Date() object seems to be underestimated :D This is the third reply to a date-related question in the last 24 hours. I highly recommend giving it's section in the documentation a once over.
    ...
  21. Replies
    2
    Views
    724

    Flash's Date() object will do the trick. Compare...

    Flash's Date() object will do the trick.
    Compare this date with the date of April first. Remember, Date() is defined to calculate the number of milliseconds from the start of the epoc (Jan 1, 1970 I...
  22. I am not sure I understand. Outlook is usually a...

    I am not sure I understand.
    Outlook is usually a per user (as in, per login) type software which is one step below per computer.
    Sounds like your talking about a server (a step up from per...
  23. Replies
    1
    Views
    667

    It is not possible. From what I see, angle x...

    It is not possible.

    From what I see, angle x is measured against the vert. (90 degrees) down to where the radius is marked.
    You need the angle formed by TCA where T is top, and C is center.
    ...
  24. Replies
    6
    Views
    873

    Hrm, the link worked for me. Yes that is the same...

    Hrm, the link worked for me. Yes that is the same thing.
    phpBB is a nice alternative, although I still recommend Invisions. It is the only php forum (besides vB) that allows you to give forum access...
  25. Replies
    4
    Views
    1,840

    The Date class is more useful if it works in...

    The Date class is more useful if it works in milliseconds.
    To add a day, you just need to figure out how much time passes in a day. You can do this with the following:


    trace( (new Date(2000, 1,...
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center