Set the effect of BitmapImage with actionscript

Hi all

I met it in a mobile application that needs to display the icon in IconItemRenderer with a fade effect (0 to 1.0 Alpha). But for me, it is general that the way to set the effect with actionscript? In addition, I'm not sure if the BitmapImage support this.

Anyone would help show me the codes of configuration effect (not MXML)?

Kind regards

Felix


http://ns.adobe.com/mxml/2009"
                  xmlns:s="library://ns.adobe.com/flex/spark"
                  xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="application1_creationCompleteHandler(event)">
     
     
     
          
     
     
          
     

This some how work for me.

Tags: Flex

Similar Questions

  • Recreating the effect of animation with actionscript

    Hello
    I found a beautiful Gallery and I was wondering how I would create animation from left to right in the overview.
    The link is here:
    http://www.Mlink-foto.de/02-Flash/content/Mlink.html

    On the one hand, it seems quite complex, and on the other hand, it seems quite simple

    Suggestions appreciated

    You can use:

  • ERROR - 1051414 - cannot set the role of group with shared services [30:1101:JNDI error] error.

    Hi all

    I tried provide access to filter the group in both SSP and thru Maxl command but still get the error below. Any experience of this problem? If Yes, please let me know how you solved this problem.


    ERROR - 1051414 - cannot set the role of group with shared services [30:1101:JNDI error] error.


    Thanks in advance!

    Krishna

    Read the support document that I posted the link, prior to changes for openldap ensure you that it is saved.

  • How to set the simultaneous request completed with warning?

    Hi all:
    How to set the simultaneous request completed with warning in oracle 11.5.9?


    For example:

    I completed an application with "Completed" 'Normal '.
    After I put a condition similar to when xxx > 0 then
    It will complete a request indicates 'Complete' 'warning '.



    My environment is: oracle 11.5.9 and operating system is Linux Redhat 4.0



    Concerning
    Terry

    Terry,

    You can use 'FND_CONCURRENT. Function SET_COMPLETION_STATUS.

    Note: 866194.1 - is there a method to return a 'Warning' to host Language simultaneous program status?

    The Oracle Applications Developer's Guide
    http://download-West.Oracle.com/docs/CD/B11454_01/11.5.9/Acrobat/115devg.PDF

    FND_CONCURRENT. SET_COMPLETION_STATUS
    http://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT.SET_COMPLETION_STATUS&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001

    Thank you
    Hussein

  • Set the time on cRIo with delay VI

    Hi all

    I want to correct both the cRio and tried to use the time VI. It gave me error 2147467263 which means "not implemented".  the error message is "node in nisyscfg.lvliband Time.vi:6150001-> put time.vi".» I don't know how to fix this error and to change the time.

    I've attached a screenshot of the program to this message, I would appreciate any ideas or suggestions.

    Best regards

    Hello imnewhere

    run the vi in my computer, then it should set the time.

    This may also help

    How can I configure my controllers time real CompactRIO to synchronize with the SNTP servers?

  • How to set the size of text with the report generator

    Hello.

    I'm trying to set the size of the text with the report generator, but I find that I can't do this. Here is an example of the code that I use. Can someone tell me what I'm doing wrong please?

    Thank you, Alec

    I was generation from a word template.

    I hacked my version of the Toolbox to give me maunal indicator control "model? He had obtained his permenatly self stuck on "T". I exposed this flag outside the API, so I can control under certain weather conditions I may or may not use the model police.

    Does anyone know how to use this toolkit, or I did the right thing?

    Cheers, Alec

  • How to set the & quot; setContentPath & quot; with a URL parameter

    Hey,.
    I have a video player (video_player.swf) with the component playback flv in it. I was wondering how to use the URL to set the parameter "setContentPath". While I didn't have to make a separate video player for ever flv on the site. I didn't know if I could add a listener to the URL or something so that I could put it like /player/video_player.swf?video_id=1

    Thank you very much people P.S. I need that's before the end of the month.

    OK, here's the html part of the process:
    http://www.polar-lights.com/FLA/URL.html

    Here is the flash part:
    vid.contentPath = _level0.movie;

    vid is the name of the instance of the FLVPlaybackComponent
    _level0. Movie is a variable passed in the url string - it would look like:
    http://www.yoursite.com/filename.html?movie=flvfilename.FLV
    See how after the html page you ger the? film - which is the variable passed in flash. Be sure to use the HTML code on the top of the sample page in order to pass the variable into the SWF.

  • Interpolation of the properties of flex with actionscript

    Hello

    Is it possible to tween flex properties (such as backgroundAlpha) in actionscript?

    At the moment I can put it like that

    myBox.setStyle ("backgroundAlpha", 0.2);

    but I want to make is that it's tweener

    Tweener.addTween (myBox, {backgroundAlpha:1, time: 1, transition: "easeInBounce"});

    Thank you

    H.

    Never done in ActionScript.

    If you want to try it in MXML, there are many ways. Here's a simple fade effect:

    Mx.effects.easing import. *;



    showEffect = hideEffect "fadeInEffect" = "fadeOutEffect" / >

    Now when you change the visible property of myBox to true or false, the effects will be run.

  • How to set the orientation of page with postscript when the pdf file is displayed in Adobe Acrobat format?

    I have a program that generates a postscript and then 'prints' the script in a PDF file using gs.

    The user can opt for the document in landscape format.  The program handles this with the addition of the 'Rotation 90' command early in the script.  It works without problem.  When the user opens the PDF file in Adobe Acrobat, it is displayed in landscape orientation.

    In addition, the user may have a "watermark", adding the document which is the text at an angle of 60 degrees.  This is handled by the emission of the "rotation of 60", then the text of the watermark, then "rotation-60.  This also works without problem.  The resulting PDF file has watermark text at an angle of 60 degrees to the rest of the text in the document.

    The problem is when these two options are used together.  The document is correctly mounted (in orientation landscape with a watermark properly tilted), but it is displayed in Acrobat in portrait, forcing the user to rotate to be able to read it.  When I look at the postscript, it seems OK, just the sum of these two options:

    rotation of 90

    things...

    60 rotate

    ... watermark text...

    turn-60

    ... the rest of the document...

    'Net turnover' is 90, leading me to believe that it would be displayed in landscape orientation, but it is displayed in portrait mode.

    There is no other sizing page not declared in the script.

    How can I get the document to display in the landscape when opened in Acrobat?  Thank you.

    Check to see that the 'gs' (ghostscript) isn't reorienting the page, by default, based on what he thinks is the correct meaning of reading.

  • Satego P100-491: how to set the contrast on Vista with Nvidia 7900 Go?

    Hello

    Can someone help me? How is it possible to change the contrast on my new laptop Satego P100-491 OS Vista Nvidia
    Gefore go 7900 gs Driver 7,15,10,9748. After using goto Nvidia display option in the control panel and change the settings but there is no menu to 'adjust desktop color settings.

    Thank you

    Hello

    with this old XP drivers it was possible, but now... you can try with these color settings, but I don't know if you would have this success.
    I tried to do things like you (some contrast, gamma, etc.), but I think they did not set up that works right now in the Vista drivers.

    So, maybe we just have to wait...

    Welcome them

  • How to set the text to align with their base line, not their bounding box?

    Untitled.png

    Left: ' vertical align text to bottom'ed with black outline box

    Right: manually move the text with a smart guide to align with its base line. (what I want to achieve)

    As you can see in the left, text has its baseline under him, and his rectangle encompassing does not correspond to its base line. When I use align, it does not align with its base line but his rectangle encompassing.

    How can I make the text line up easily using their base line?

    You can actually get align text, but the method to make some features using the majority of people do not know:

    1. Select type > effect > path > describe the object
    2. in the preferences to put a brake on the front of the preview limits use

  • How to set the units creating paths with a script?

    I'm trying to update a script that used to work in Photoshop CS4, but that seems to completely ignore the units that I use in the clouds.  The script below should create a path with two lines that form an X through the whole document.

    To test, I created a new page 8.5 x 11 inches and 300 DPI.  I then run the script.  However, the form that is produced is huge and most are off the screen.  What I am doing wrong?

    function Point(x, y)

    {

    This.x = x;

    This.y = y;

    }

    function addVertexCorner (lineArray, x, y)

    {

    var p0Info = new PathPointInfo();

    lineArray.push (p0Info);

    p0Info.kind = PointKind.CORNERPOINT;

    p0Info.anchor = new Array (x, y);

    p0Info.leftDirection = p0Info.anchor;

    p0Info.rightDirection = p0Info.anchor;

    }

    function appendLine (p0, p1, lineSubPathArray)

    {

    var lineArray = new Array();

    addVertexCorner (lineArray, p0.x, p0.y);

    addVertexCorner (lineArray, p1.x, p1.y);

    pathInfo var = new SubPathInfo();

    lineSubPathArray.push (pathInfo);

    pathInfo.operation = ShapeOperation.SHAPEADD;

    pathInfo.closed = false;

    pathInfo.entireSubPath = lineArray;

    }

    function createPathLayer (title, subPathArray)

    {

    var app.activeDocument = docRef;

    var originalUnit = app.preferences.rulerUnits;

    app.preferences.rulerUnits = Units.PIXELS;

    var myPathItem = docRef.pathItems.add (title, subPathArray);

    app.preferences.rulerUnits = originalUnit;

    }

    var app.activeDocument = docRef;

    var imgWidth = docRef.width.as ("px");

    var imgHeight = docRef.height.as ("px");

    P00 var = new Point (0, 0);

    P10 var = new Point (imgWidth, 0);

    P01 var = new Point (0, imgHeight);

    P11 var = new Point (imgWidth, imgHeight);

    var lineSubPathArray = new Array();

    appendLine (p00, p11, lineSubPathArray);

    appendLine (p01, p10, lineSubPathArray);

    createPathLayer ("Big X", lineSubPathArray);

    The code you have posted product lines with points in the corners of the image for me when the image is 72DPI.

    Could you post a screenshot of the faulty results with the relevant panels visible?

    OK, but what is so special about using 72 DPI?

    At 72 dpi 1 pixel corresponds to 1 point.

  • Set the Images to scale with the width of the browser

    This appears to have just broken on my Site and I can't understand why?

    I thought that if I put an image of "scale to fill" then drag the image to the border of the page margin. Then the image would make the scale with the size of the browser.

    I had to work, and then it stops suddenly. I use Muse 7.1? Current? Any help?

    When I update my page and I adapt the browser upward I see white margins on both sides of the page - that is not what I want.

    Help!

    J

    I thought about it.

    I thought that if the rectangle box was outside of the margin of the page then it would be 100% width.

    You must line up exactly with the margin of page until you see "100% width.

    Thank you

  • Load the file vidlist.xml with ActionScript

    Hello world

    I'm following lessons on ActionScript 3.0 11 (classroom in a book) and I use Flash CS4 professional; I have successfully copied and participated from the CD in my PC lessons. I'm to the point where she describes the process of loading external files dynamically using the xml list. I followed to a tee, however when I came along to test, it loads the list but the next video. Please note that the first video is of the components Inspector.

    Can anyone shed some light on this?

    Thank you

    softkens

    Hello Kglad,

    I found the problem, it is this statement: var nextVid:String = "... /Video/"+vidList_XML.vid[Count].file;

    It should be: var nextVid:String = vidList_XML.vid [count] mpfprojectdir\dev10\src\csharp\projectbase.file; It works fine now. Thank you.

  • setting the focus to textfield in ActionScript 3.0

    I use an event handler to listen to the MOUSE_UP on stage_mc to allow the user to create text and images on the screen. I have buttons above the stage that has defined a variable and then the variable determines what action has occurred with the mouse event.

    I would like the user to be able to enter text and may create a field for entering text on the stage, but the user should then click inside the area of text to start typing. Due to the event handler, this 2nd MOUSE_UP repositions the text field, even if it IS successful to focus.

    Ideally I'd like the user to be able to create the text field by clicking on the stage and then start typing without having to click a 2nd time. It sounds simple enough, but I still do not quite understand OOP to decipher the help pages available in the program.

    Does anyone have any suggestions? Here is my code (some of the included variable are defined in the previous lines):

    Configure the settings of text field

    var outputText:TextField = new TextField();
    var textFormat:TextFormat = new TextFormat();


    Allow the entry tools

    function startDraw(event:MouseEvent):void {}
    If (currentTool.name == "lineTool_mc") {}
    newLine.graphics.moveTo (event.localX, event.localY);
    stage_mc.addEventListener (MouseEvent.MOUSE_MOVE, drawLine);


    } Else if (currentTool.name == "textTool_mc") {}
    textFormat.color = 0 x 336699;
    textFormat.size = 48;
    textFormat.font = 'Times '.
    outputText.defaultTextFormat = textFormat;
    outputText.selectable = true;
    outputText.x = event.localX;
    outputText.y = event.localY;
    outputText.background = false;
    outputText.border = true;
    outputText.autoSize = TextFieldAutoSize.LEFT;
    outputText.type = TextFieldType.INPUT;
    designContainer.addChild (outputText);

    } Else if (currentTool.name == "brushTool_mc") {...

    MouseUp or click, if the mouse is pressed, you can use:

    internship. Focus = outputText;

    If the mouse is not down, you don't need a listener to trigger the above.

Maybe you are looking for