A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: [RESOLVED] Problems Using Classes

Hybrid View

  1. #1
    JayVEE
    Join Date
    Jan 2001
    Location
    Kgn Jamaica
    Posts
    44
    well I think I followed your instructions. Have you managed to make it work? please let me know so at least I know that it is possible using the info I have.

    Thanks
    'til next time

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You have to get it work. if I have to create everybody's movies I will be sitting here 24hours/day.

    I am only trying to eliminate the problems you are encountering, which I see when I see that script.

    This is not my tutorial. The first thing I do when I read a tutorial is not change anything but exactly follow the instructions.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I had not seen your example, since I did not get all the emails. The guy who created this script has left out important information, may be deliberately . From his instructions the script will not work. Your version had additional problems.
    1. You renamed the file to flip, but you did not rename the constructor (function CardFlip). Then it won't work. If you rename it to flip you get into trouble because there is a function called flip and you can only have one constructor.

    2. The function flip in the script is public. It means that most probably you need to add this function in your fla somewhere. However, now the problem starts. The parameters are all numbers. I added some and get some effect, but not what I want.

    I don't understand the whole script just by looking at it. I don't even know he posted the right script. From the comments you can see that others have problems, too. I will have a look may be tonight, but I can't promise.

    I have attached the modified version I have so far.
    Attached Files Attached Files
    Last edited by cancerinform; 08-25-2006 at 11:38 AM.
    - The right of the People to create Flash movies shall not be infringed. -

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Ok, place the image at position x 200 and then use this script in your fla:

    import CardFlip;
    myButton.onPress = function ()
    {
    var myFlip = new CardFlip (card_mc, "cardBack_mc", 200, ds);
    myFlip.flip (1, 20, 0, 360);
    };


    You can change the way the card flips with some scroller as shown on that original site.
    Last edited by cancerinform; 08-25-2006 at 11:31 AM.
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center