Can AS attach image fade to Toggle button?

I have completed my first Flash 8 movie which has an invisible button the size of the image which Stop/starts the movie with AS toggle script below.
click_btn.onRelease=function(){
if(!this.toggle){
chameleon.stop();
} else {
chameleon.play();
this.toggle=!this.toggle;
Can this script be modified so that the movie fades to alpha zero a short time after the stop action, and the re-appears to play instantly when the play action is triggered? If so can anyone help with a script suggestion please.

Thanks again Ned,
A freind of my son worked on this question and following your comments came up with the following code but we cannot make it work.
**Error** Scene=Scene 1, layer=Code, frame=1:Line 1: Syntax error.
     import mx.transitions.Tween;
**Error** Scene=Scene 1, layer=Code, frame=1:Line 2: Syntax error.
     import mx.transitions.easing.*;
Total ActionScript Errors: 2 Reported Errors: 2
Can anyone help fix the code please?
import mx.transitions.Tween;
import mx.transitions.easing.*;
var secNum:Number = 2;
var aTween:Tween;
click_btn.onRelease = function() {
if (!this.toggle) {
chameleon.stop();
aTween = new Tween(chameleon, "_alpha", Quad.easeInOut, 100, 0, secNum, true);
aTween.onMotionFinished = function() {
delete aTween;
chameleon._visible = false;
} else {
aTween.stop();
chameleon._visible = true;
chameleon._alpha = 100;
chameleon.play()
this.toggle = !this.toggle;

Similar Messages

  • Can I add images to my radio buttons in sharepoint ? If so, how do I add images to my radio buttons in sharepoint?

    Hello,
    I would like to add Images to my radio buttons in sharepoint input form. Has anyone tried this and succeeded? If so what did you do?
    I have a "how are you feeling section?" and rather than use words like Happy or Sad; I'd prefer to have a smilie face or a sad face.
    I tried leveraging off the text in the column entry screen (inserting <img) tags and inserting common string combinations that retruned smilie images from Lync/ Im or Skype...
    Any help would be appreciated.
    Thanks !
    Philip

    Hi,
    If it's InfoPath form that you are talking about, then its quite simple. Follow the below mentioned steps,
    1. Add option Button control field(two buttons for happy and sad)
    2. You are supposed to type in the option for the button(like Happy and Sad in words) following each radio button.
    3. Instead of typing there, add a picture control and make it read only. Put the smiley as the default picture of the picture control through picture control properties.(you can browse for the pic from your PC).
    Hope it helps!
    Thanks,
    Tamilarasan R.

  • Why are my attachment images being embedded as distorted thumbnails in the body of the text in Mac Mail?

    Why are my attachment images being embedded as distorted thumbnails in the body of the text in Mac Mail? How can I attach image files as normal attachments?

    Attachments – Disable Embedded Attachments

  • I  can't attach DMG file, I need you to help me!!! Please

    <Edited by Host> So, I can believe you can solve my problem.
    I have problem, but, I doesn't know why it come. I don't know what i've do with my macbook. Recently, I used MacOS Tiger version.
    When I open the DMG files, it can't be mount well. It error and said: Device not Configured.
    Anyone have experienced it??? Please help me!!! Please!!! I can't attach images here. But, if you want it, please contact me at: [email protected]!!!

    Never post your email address in a public forum. Spam bots roam public forums looking for "spam victims".
    If you insist on using your email address in a public forum & you want to "trick" the spam bots, then suggest that instead of using "@ "in the email address, use instead the actual word AT.
    Regarding responding to your emal addy, we ask that you post all questions to the appropriate discussion forum. This allows other users and other helpers to have a chance to view and respond to your post. That way, everyone benefits from the exchange.
    Thank you

  • How can I attach an image without the image is in the email body? (using the new mail the Lion)

    How can I attach an image without the image is in the email body? (using the new mail the Lion)
    I want in attachment, not in the body mail.

    I think your only solution is to zip the image files first and then attach them.
    Read this from a site I found:
    Sending Graphical Attachments -- When you attach a graphical image to your message, the recipient of your message sees the image inline (that is, in the body of the message) if her email client supports inline display. ("Take Control of Email with Apple Mail" contains a table listing the capabilities of popular Mac and PC email clients.) If a client does not support inline display (or the recipient has turned off the inline display option), the file appears as an attachment that must be opened in a separate program.
    On the one hand, an inline image is easier for the recipient to see - all she has to do is look at it. On the other hand, inline images can be frustrating to scroll through. If you do not wish to send a graphical image inline, you must compress the file before attaching it - Mail, sadly, lacks a built-in compression option, though fortunately for Panther users, the Finder offers Zip compression without requiring a separate application.
    Note that when you compose a new message, Mail always shows attachments in the body of your message. You can manually drag them somewhere else, but many email clients display all attachments in a separate list, regardless of where you place them in the message body.
    If you paste an image into a message or drag & drop an image from another window (say, a Web browser), Mail converts the raw image data to an attachment in TIFF format. On the other hand, if you drag & drop the icon of an image file (or use the Attach button to locate the file using the file browser), Mail leaves the attached image in its original format. This difference is significant, because although most email clients can display JPEG images just fine, support for TIFF - especially in non-Mac email clients - is less common. If possible, I suggest attaching image files as opposed to pasting or dragging in raw image data.

  • URGENT: button rollover animations and image fade ins?

    Hello, I have a site where an image appears which has 6 words
    on it. Each word will be a button where the following actions take
    place:
    on rollover a line draws through the button
    an image fades in on the left and another on the right
    when you click the button, a large window (not popup, prefer
    within flash) appears with information, I guess an swf or mc would
    work.
    once you roll out the images fade out and the line draws in
    other direction so it disappears
    How can I code the buttons to do all this? I am using flash
    8.
    THanks!

    Ok so far so good. IF you mouse over super saturday you will
    see what happens. Now, what is the code when I mouse out so those 2
    things that appeared will disappear? Also, when you click super
    saturday, you will see an swf that loads but it loads in between
    other layers and all other buttons are active outside the swf. How
    do I overlay it over everything then also have a close button on
    this swf? here is the code for a button:
    blu.onRollOver = function() {
    blu._parent.attachMovie("link8","blu_mc",1,this.getNextHighestDepth(10000));
    sat.onRelease = function() {
    loadMovie("popup_saturday.swf", "popup");
    and the site so far:
    http://interactiveboom.com/test/final.html
    THX

  • Toggle Buttons for multiple images

    I just watched a video from lilybiri about standard and simple actions and then followed into her blog for the text caption toggle buttons.
    Now reading through that, there was if statements suggesting you can toggle between the values of 1 and 0 to make visible/invisible. Can this be done with more than 2 images? I am more interested in having a toggle feature where I can have 3 or 4 images and toggle the images to see changes in detail within those images. It seems like it has to be possible, but I'm not getting it.
    Also, is there a way that if you have a toggle button, or two perhaps, that you can have the button be displayed as if it was pushed? I know how to make buttons, I'm just wondering if there is a feature to display the button as the _down version until I re-select it, or toggle it off as it were.
    Thank you!

    You will need a conditional action, perhaps use a variable for each button that will be set to 1 if the button is pushed and to 0 if it is free.
    Didn't check it out but action will be something like this:
    IF v_bt1 is equal to 0
        Assign v_bt1 with 1
        Show im_down1        which is the image of the down-state
        Show Image1             which is the image you want to show
        Hide Image2
        Hide Image3
    ELSE
       Assign v_bt1 with 0
       Hide im_down1
       Hide Image1
    You'll have to test, it is too late over here for me to do some testing. I added the hiding of the two other images, because if the user doesn't toggle the buttons for those images to hide them, I think you want to hide them automatically. Perhaps better also hide their correspondent down-states? Be sure to have the image of the down-state on top of the button in the timeline panel.
    And if you ever want to return to the slide, have an on Enter Slide action that hides all the down and real images.
    Lilybiri

  • Bug:  Can't attach an image to a post during edit

    Edited a post I had just made:
    Opened a couple of blank lines.
    Hit the camera icon
    Hit the [Browse...] button
    Selected the file and had its path appear in the Insert Image dialog field.
    Hit the [Insert Image] button.
    Got this failure:
    I couldn't attach the image to this post either, even though it's an under-200K JPEG saved from Photoshop CS6 at quality 10.  Here's a link that will take you to a copy of the file:
    http://Noel.ProDigitalSoftware.com/temp/CloneAndPatternStamp.jpg
    This is my second attempt to post this.  First time I typed in this post I got this message:
    It's an interesting approach, making it particularly difficult to report bugs. 
    -Noel

    Just testing to see if I can insert an image initially in a post with the Advanced Editor...
    Seems to be possible.
    Now an attempt to attach an image while editing, with IE9...
    Hm, that succeeded, at least while editing.  Now an attempt to attach the same image that was giving me trouble before...
    That succeeded interactively as well.  Now to hit [ Update ] to see if they actually show up...
    -Noel

  • How can I attach a sub-vi to a image ?

    I want to create a front panel, where every item is a external image (taked with a digital camera for example) then, I want to attach a Sub-vi to these picture...How can I do that ?

    coutto;
    I don't understand your question.
    Probably what you mean is that you want the front panel to be a picture, and when the user click somewhere on the image, an action (what you are calling a sub-VI) will occur.
    You can use a picture indicator to do that. The picture indicator is located in the control palette, Graph->Ctls->Picture.ctl. Use the picture indicator to display your image. In the diagram, right click the pitcure indicator terminal and create a Property Node. One property is Mouse, which include information about the position of the mouse in the picture indicator. Depending on the position, the corresponding commands is executed.
    That previous method is complex, but may be what you need if your image changes. If you
    r image is always the same, the you can place buttons over the image (Control Palette->Booleans). You can make the button invisible. You won't even need the picture indicator, as you can paste the image in your control panel.
    That is if I understood your question right. Let us know if you are asking for something different.
    Regards;
    Enrique
    www.vartortech.com

  • How can I forward an email and include the attached images?

    I sent a client an email with attahced images (I attached the images, pictures I took).  The client responded with the images attached to the response.  When I try to forward that response to a third party the attached images become place holders only, no image. 
    Shouldn't my forwarded mail include the images?  Short of re-attaching the images how can I get them included in the forwarded email?

    I tested a few I forwarded to myself and I could still forward with attachments. You might try Redirecting it (Message menu).

  • Disk utility - can't restore image - button inactive

    Hi,
    Can anybody tell me why the restore button in disk utility / restore tab, is inactive? Even after choosing the source image it stays that way. It's a USB flash drive that I'm trying to restore on. Any help would be great! Thanks!

    Okay, found it. You have to drag the drive onto the lower field. That should do the trick.

  • In Windows 7, how come my in-line attachment images on email can not be viewed/open in the email?

    I have windows 7. Recently, after Moz upgrade, I noticed that emails with in-line attachments are either completely deleted, or only the name of the file in text is shown - not the image itself.
    How can I re-set or change my settings to enable in-line attached images from the web (example .cid) be viewed? My plug-ins are all up to date (quick time, java, etc).

    Let's try this first. Hold down the Shift key while you try to launch iTunes. You should eventually see the following dialog:
    Click "Choose library". Browse to inside the following location (depending on what operating system you're running):
    Operating System
    Default location of iTunes library
    Microsoft Windows XP
    \Documents and Settings\[your username]\My Documents\My Music\iTunes\
    Microsoft Windows Vista
    \Users\[your username]\Music\iTunes\
    Microsoft Windows 7
    \Users\[your username]\My Music\iTunes\
    ... and open the iTunes library you find in there.

  • How can i put image in a button?

    I need to put an image ( .bmp ) in a button, but i don't know how.
    I need it because in web forms the icons ( files .ico) no show.
    How can i solve this problem?
    Thanks!!

    Hello Arun ,
    Thank you for your help. i tried it but it didn't work. i am sure that is my fault. i try to create a toolbar and i place a button in the toolbar. Then i set the property iconic to yes and i give to the iconfilename property the name of my bmp file. i suppose that the application cannot see the bmp file. i'll try to read some documentation , because as i can see it's little difficult.
    again thanx for your help Arun.

  • How can I manually attach images from my photo booth (imported into iPhoto) to emails? Auto function, in photo booth has my photos lying sideways?

    How can I manually attach images from my photo booth to iCloud emails?
    They are imported as 'events' into my iphoto library.
    Auto function, in photo booth has my photos lying sideways when placed in 'mail' emails?

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Can't attach an image an email after updating to OS4

    I have an iPhone 3G. I recently updated to OS4. Everything works great except that I can't attach a image/picture to an email. When I try to do so, it places a blue box (with a question mark) in my email. However, if i take a picture (or use a picture from my camera roll) it will attach the picture just fine. This problem also is the same for MMS messages. Anyone else having this problem? I would love to know how to fix it. Thanks.
    (I have tried to send the email/mms with the blue box, thinking that maybe it will send ok, but it just simply sends a blank email.

    Just testing to see if I can insert an image initially in a post with the Advanced Editor...
    Seems to be possible.
    Now an attempt to attach an image while editing, with IE9...
    Hm, that succeeded, at least while editing.  Now an attempt to attach the same image that was giving me trouble before...
    That succeeded interactively as well.  Now to hit [ Update ] to see if they actually show up...
    -Noel

Maybe you are looking for