A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: A little bug

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    5
    Hi all,

    Forgive my bad english, I'm french!

    I'm new to 3DFA and I'm still testing this product. I've just found an annoying bug at least for me. It's a common use in the HTML world to use an empty.gif file (1 pixel by 1 pixel, transparent color) and to resize it to help for building table cells for example. I've used this technique to make a button (invisible) over a picture and to associate some event (ie mouse over, mouse leave...) it works fine. If I save the project, quit 3DFA and then launch 3DFA my button zone is reduced to a 1x1 pixel but the properties of the image are correct (Resolution 544 x 363 pixels in my case). So I need to use the resize button on the image element associated to the button to get back to a normal situation. This is completely reproductible and I'm using version 3.51.

    Thanks for this great and original product.

    fb

  2. #2
    Senior Member kusco's Avatar
    Join Date
    Nov 2001
    Posts
    681
    Hi fbattail,

    Have you considered using a button element in 3dfa in place of the 1x1 gif?

    Add a button element and size it to what you need. Add to the button a paint element (a rectangle to fill the inside of the button). In the paint element's properties window make sure you change the interface from simple to advance. Next scoll down the properties window until you see the Opacity option. Make this 0 to hide the image or rectangle you put in the button.

    At this point you should have an 'invisible' button on the screen which can be place behind any object in the movie. ie. you can put an image on top of the button. Use the button mouse over tabs to set your desired actions.

    I hope I'm making sense, I'm not too good at explaining things at times.

    Cheers,
    Kusco

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    same

    Originally posted by kusco
    Hi fbattail,

    Have you considered using a button element in 3dfa in place of the 1x1 gif?

    Add a button element and size it to what you need. Add to the button a paint element (a rectangle to fill the inside of the button). In the paint element's properties window make sure you change the interface from simple to advance. Next scoll down the properties window until you see the Opacity option. Make this 0 to hide the image or rectangle you put in the button.

    At this point you should have an 'invisible' button on the screen which can be place behind any object in the movie. ie. you can put an image on top of the button. Use the button mouse over tabs to set your desired actions.

    I hope I'm making sense, I'm not too good at explaining things at times.

    Cheers,
    Kusco
    This is exactly How I would do it as well (have used it many times)

    Flat you need to remeber this is not HTML it is 3dfa and just because something works in HTML does not mean it will work in 3dfa even in the HTML text element.

    For example to make a sound on/off toggle switch I place an invisible button over a chooser element that has two states the on graphic and the off graphic then the invisible button changes the current view and turns the sound off and on.

    you can see a button like this on the intro flash at my site.

  4. #4
    Junior Member
    Join Date
    Mar 2002
    Posts
    5

    Smile

    Thanks a lot for your advices ; looking like I'm still having some HTML habits ! I will use this technique and go farther with 3DFA.

    Have a nice day,

    fb

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