Quck Flash Question - Action Scipt (on (release)) - HELP!

Discussion in 'HTML & Website Design' started by SupaSharp, May 31, 2007.

  1. #1
    I integrated a paypal button into my flash site. The code starts as such

    on (release) {
    cmd = "_xclick";
    Code (markup):
    I need to change it so the link will engage on mouse over

    My full PayPal "action" reads like this:

    on (release) {
    cmd = "_xclick";
    business = "me@notreal";
    item_name = "123 product";
    item_number = "zf1";
    amount = "10.00";
    shipping = "0.00";
    Return = "http://www.mykuji.com/html/thankyou.htm";
    cancel_return = "http://www.mykuji.com/html/cancel.htm";
    no_note = "1";
    getURL('https://www.paypal.com/cgi-bin/webscr', "_blank", "POST");
    Code (markup):
    The link part of this works fine, but click on the button is a bit cumbersome, and will only work in some parts (the direct center). I figure mouse over will help solve this problem
     
    SupaSharp, May 31, 2007 IP
  2. idotcom

    idotcom Well-Known Member

    Messages:
    522
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Got a link to the flash file?

    Is the values dynamic? Or is that button always going to have that value?
     
    idotcom, May 31, 2007 IP
  3. SupaSharp

    SupaSharp Well-Known Member

    Messages:
    1,865
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    100
    #3
    thanks for your reply

    The button will always hold the same value, but I figure mouse over will allow of easier execution by the user.

    no link to the site currently, working offline
     
    SupaSharp, May 31, 2007 IP
  4. idotcom

    idotcom Well-Known Member

    Messages:
    522
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #4
    I'm assuming you haven't tried the button using rollover. If a user rolls over like 2,3 times it will open 2,3 times. Are you ok with that?

    EDIT: I was just playing around with it in flash sample.
     
    idotcom, May 31, 2007 IP
  5. SupaSharp

    SupaSharp Well-Known Member

    Messages:
    1,865
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    100
    #5
    True that would be very annoying. . . Why is my button only accepting clicks from the center of the button. All I did was apply an action script to an imported image?

    I notice the button responds on release, what other options do I have in terms of actions execution besides the mouse over, and on release
     
    SupaSharp, May 31, 2007 IP
  6. idotcom

    idotcom Well-Known Member

    Messages:
    522
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #6
    That's basically it. The other options result in the same things, just minor changes. Like rollover and rollout would do the same thing in this case.

    To not annoy the user, I would leave it as on release.

    Try it like this:

    import image
    select and hit F8
    type: button
    select button and enter the actions source (if available)
    paste the actionscript

    I just did that in a sample here and the whole thing is a button.
     
    idotcom, May 31, 2007 IP
  7. SupaSharp

    SupaSharp Well-Known Member

    Messages:
    1,865
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    100
    #7
    Thanks for your reply, I test out.

    Do any side work? As there are a few other actions I am having issues with as well
     
    SupaSharp, Jun 1, 2007 IP
  8. idotcom

    idotcom Well-Known Member

    Messages:
    522
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #8
    Yea... I do here and there. PM me if you want.
     
    idotcom, Jun 1, 2007 IP
  9. wassim

    wassim Well-Known Member

    Messages:
    322
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    110
    #9
    Hi,

    From my experience and based on what you're describing, the problem is that the button you're using has a fill only in its central part (maybe it's a text button?) so the hit area is by default the filled area, you can easily fix this by assigning a fill area with a solid fill all over your button area.

    This should fix your issue.
     
    wassim, Jun 1, 2007 IP
    SupaSharp likes this.
  10. SupaSharp

    SupaSharp Well-Known Member

    Messages:
    1,865
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    100
    #10
    Thanks wassim that work!!! Now the button is so much easier to use. I'm kinda learning flashing by doing.

    Rep given to wassim & idotcom
     
    SupaSharp, Jun 1, 2007 IP
  11. wassim

    wassim Well-Known Member

    Messages:
    322
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    110
    #11
    Glad I could help. :)
     
    wassim, Jun 1, 2007 IP