Adding bitmap/graphic/movieclip to textfield

Using just the basic textfield I know that I can add an image to it using the <img src=' '> tag. Which links to an image that is not part of my published swf.
Is there a way to specify the source as a bitmap, graphic, or movieclip instance that is set to export for actionscript?

Ah. It doesn't seem to work for an exported Bitmap, but it does for an exported Sprite or MovieClip. Set the library item to export as myPicture and then use:
myTextField.htmlText=" <img src='myPicture' />"
Oddly it seems to need a space or some other character in there or else it won't work...hmmmm

Similar Messages

  • Dynamic MovieClip and TextField

    Hi, I'm begginer in as3, and I want to ask you  my problem.
    I'm creating a lot of MovieClip in for cicle, and i want to add at every  MovieClip a textField.
    I try in this way
    for (var i:int = 0; i < 100; i++)
    var giorno:MovieClip;
    giorno = new MovieClip();
    giorno.graphics.beginFill(Math.random() * 0xFFFFFF);
    giorno.graphics.drawRect(i*(boxWidth+boxMargin),  0, boxWidth, boxWidth);
    var nameGiorno:String = "giorno" + String(i);
    giorno.name = nameGiorno;
    giorno.alpha = 0.6;
    var numGiorno:TextField = new TextField();
    numGiorno.text = String(i);
    giorno.addChild(numGiorno);
    addChild(giorno);
    but the textfield is only in the first movieclip.
    Somebody can help me?
    Thank a lot !!!

    yes, but i'dont find the error. under i post the code entirely
    package
        import flash.display.MovieClip;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import caurina.transitions.Tweener;
        import flash.text.TextField;
        public class Main extends Sprite
            private const boxCount:int = 10;
            private const boxCount_ok:int = 365;
            private const boxWidth:int = 300;
            private const boxMargin:int = 0;
            private const startPoint:int = 50;
            private const boxesWidth:int = boxCount * (boxWidth + boxMargin);
            private const endPoint:int = boxesWidth + startPoint;
            private const zeroPoint:int = stage.stageWidth / 2 + startPoint;
            private var container:MovieClip;
            private var targetX:Number;
            private var speed:Number = 0;
            public function Main():void
                    if (stage) init();
                    else addEventListener(Event.ADDED_TO_STAGE, init);
            private function init(e:Event = null):void
                    removeEventListener(Event.ADDED_TO_STAGE, init);
                    container = new MovieClip();
                    addChild(container);
                    container.x = 150;
                    container.y = 0;
                    for (var i:int = 0; i < boxCount_ok; i++)
                            var giorno:MovieClip;
                            giorno = new MovieClip();
                            giorno.graphics.beginFill(Math.random() * 0xFFFFFF);
                            giorno.graphics.drawRect(i*(boxWidth+boxMargin), 0, boxWidth, boxWidth);
                            var ok:String = "giorno" + String(i);
                            giorno.name = ok;
                            giorno.alpha = 0.6;
                            var numGiorno:TextField = new TextField();
                            numGiorno.text = String(i);
                            //trace(giorno.name);
                            giorno.addChild(numGiorno);
                            giorno.addEventListener(MouseEvent.MOUSE_OVER, illumina);
                            giorno.addEventListener(MouseEvent.MOUSE_OUT, spegni);
                            giorno.addEventListener(MouseEvent.CLICK, tracciaNome);
                            function tracciaNome(e:MouseEvent):void{
                                //Per tracciare il nome del MovieClip corrente sul quale si applica l' evento
                                //bisogna usare il nome della variabile evento della funziona (e:MouseEvent)
                                //e applicare la funzione currentTarget
                                trace(e.currentTarget.name);
                            function illumina(e:MouseEvent):void{
                                Tweener.addTween(e.currentTarget, {alpha:1, time:1});
                            function spegni(e:MouseEvent):void{
                                Tweener.addTween(e.currentTarget, {alpha:0.6, time:0.5});
                            container.addChild(giorno);
                    addEventListener(Event.ENTER_FRAME, enterFrameHandler);
                    stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
            private function mouseMoveHandler(e:MouseEvent):void
                    var distanceFromCenter:int = stage.mouseX - zeroPoint;
                    speed = distanceFromCenter * -0.05; // Bring number into a good range, and invert it.
            private function enterFrameHandler(e:Event):void
                    container.x += speed;
    Thank a lot!

  • How Do I Make Bitmap, Graphic, or Movie Clip into a clickable link??

    I am designing a website entirely in flash (macromedia flash) but I cannot get the bitmap, graphics, or movie clips clickable links, although when hovered over turns into a hand.  Any suggestions? I have also tried the following script;
    on (release){
    getURL("http://www.google.com/", "_blank")
    Obviously I didnt use google, but still no go.
    I'm hot linking the raw fla file below.  I bought this template online and have modified it alot (all cosmetic) but I cant get the tabs to be links!?  I used action script (the one posted above) in every layer and the text inside the tabs.  But still doesnt work Does anybody know whats wrong?
    Sorry, but I dont know much in action script, I'm a c++ and web designer, this is my first time working in only flash.
    http://www.hotlinkfiles.com/files/2449178_iizru/_menu2_fv8.fla
    Here is my modded template in my website:  http://9karim.com/adminI only need to modify the menu bar

    I wouldn't say you're screwed, you just have some work ahead of you to find out what are actually the buttons in that thing.  If you look at the file on stage you'll see a large turquoise shape (an invisible button) that when you select it shows it has an instance name of "menu"... I still couldn't figure out what it has to do with those animated tabs, but it may lead to further discoveries.
    There's a lot of stuff woven into that file, and with the frame by frame animation, it's hard to isolate just about anything.  Based on what I see in the library as far as object naming goes, and your not knowing what's where, I'd conclude that this is an "acquired" design that has been decompiled into the fla you are trying to figure out.  While I haven't any experience with decompiled files, it wouldn't surprise me if there is an increased level of complexity as a result of how the decompiler rebuilt the file.

  • Bitmap graphics print poorly in PDF

    For bitmap graphics, I find that the online version has to be
    shown at 100%. When the true image is bigger and I specify a
    smaller size, the image "crunches" in an illegible way. So I make
    the image size correct for showing at 100%. But this same image
    comes out ugly and often unreadable in the PDF version. This
    problem occurs not only with screen shots but even with Visio
    diagrams saved as GIF. How are people handling this problem?

    ID @ 100%
    PDF @ 100%
    The PDF always looks this way, irrespective of the magnification. You can even see variations in size of each dot along the vertical line.
    I've tried outputting from ID with and without compressed line art, and have adjusted Acrobat Pro to smooth (and not) for LCD screens. No dice.
    One other thing: don't know why there's a size difference between ID and the PDF. Both set 100% @ 96 DPI. Odd.
    Ta,
    NR.

  • Optimisation of bitmap graphics

    Can anyone help? I have to do a report on the optimisation of bitmap graphics in CS4 for college, but it is utter Martian to me!
    Could anyone give me tips on a few things:
    -file format
    -res
    -dithering
    -file size
    -quality
    -bit depth
    -compression
    -delivery mechanisms
    -alpha channels
    I'd appreciate any hints or tips, and I know this looks like a call to have my 500 words written for me, but I don't expect that. So far I have my name at the top of the page, the date and little flashing/blinking vertical line where I intend to type next, and then there I am just staring through eyes stinging with nervous sweat.
    All mini-tips, over-the-top explanations and sarcastic put-downs will be gratefully welcomed.
    BC.

    Goggle and Wikipedia are your friends.  I have researched all of those exact terms and there is tons of information available.  You can also access the online version of my book at:
    http://rockynook.com/glossary/index.php/Online_Glossary_of_Digital_Photography
    John
    John G. Blair Studio

  • Accessing flash movieclips and textfields in flex

    How can I access movieclip and textfields from flash in flex. Suppose I have a dynamic textfield with instance name txt inside a movieclip with instance name mc on stage how can I change the text of the textfield in flex using a swfloader. Has anybody done anything similar.

    Swfloader.content.mc.txt
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Resizing bitmap graphics

    How can you resize the bitmap graphics? I know the book says you can't do it but I am sure someone has been innovative enough to find a way.

    You can use any good graphics package to resize a bitmap. For instance, Paint Shop Pro (PSP) does a pretty good job. You may download a trial version of PSP from download.com.
    You can also save the bitmap as a WMF in PSP if you wish to resize the graphic within Lookout. Use the Animator object for resizing it at runtime.
    Hope this helps.
    Rgds,
    Khalid

  • Adding a bitmap graphic to a movieclip in code

    Hi, I'm new to as3 and programming and I'm trying to add a bitmap to a movie clip in code. However, I'm having trouble getting the bitmap location to go where I want it because it's inside the movieclip and it just shows up at 0,0 of the movieclip instead of the coordinates I want it to be: Here's some of code so you can see what I mean:
    imageBitmapData3 = new Lander(63, 53);
    _player = new Bitmap(imageBitmapData3);
    _gameLevel.addChild(_player);
    _player.x = 145;
    _player.y = 90;
    -Instead of showing up at 145, 90 It just shows up at the movieclip, _gamelevel, 0,0.
    does anyone know how I could get it to do what I want it to do? I want to add it inside the mc because I need everything to move with the _gameLevel background when I move it.
    Thanks

    hi
    your code looks fine to me - you could try adding a breakpoint after _player.y = 90 and see if the bitmap is in the right place when the breakpoint is reached, if it is, there must be some code elsewhere that is subsequently changing x/y to zero?

  • Adding bitmap behide a movieclip layer

    Dear all,
    I have an movieclip on stage, and its' instance name is called "mc_mask". In my actionscript, I will create a bitmap that will be added to stage with addChild(). How do I add the bitmap behide the mc_mask?
    Thank you for your time!
    -Zainuu

    Hi, thanks for both of your replies.
    I'm having this error when I put this line in, do you know what is wrong with it?
    RangeError: Error #2006: The supplied index is out of bounds.
    imageArea.addChildAt(imageLoader, getChildIndex(mc_mask));
    *imageLoader is my loader() to load my pictures...
    Thanks!
    -Zainu

  • Paste graphic/ image in textfield, how to ?

    hello adobe livecycle community,
    i have a working dynamic form ( completed with LSD V8)
    my text-fields work fine.
    (overflow to the next site, dynamically growing....)
    my question:
    is it possible to paste a graphic ( source whatever:MS word, pdf, Photoshop...) into that textfield ?
    in the given fiels, you can only choose between textfield
    or imagefields. That means not "mix-fields"
    It should work like this example within ONE field ( which is enclosed by subfom)
    text
    graphic
    graphic
    text
    text
    text graphic
    and so on.....
    i want to do it without new subforms and buttons. if possible not that way:
    text
    graphic [+][-]
    text[+][-]
    any ideas ?
    thanks...

    Unfortunately you cannot combine types .... a text field holds text and an image field holds an image. You cannot mix and match.
    Paul

  • Duplicating movieclips w/textfields on them & changing the text

    Okay, there is a movie clip in the library. Has three layers.  Each of the layers is also in the library.  Layer 1 has a button symbol, layer 2 a text symbol with instance name 'item_label', layer 3 is color. instance name is 'flbutton'.  To me, it looks like this was created into a symbol itself and given intance name of 'menu_item'.
    An array is created with button label names.  A loop is created based on the number of labels in the array.  An instance of 'menu_item' is created each loop and placed on the stage/screen and the text on the button is changed to the item in the array.
    My question....how do you do that in AS3?
    var menu_label:Array = new Array("Introduction", "Templates", "Services", "Clients",
             "Testimonials", "Support", "About Us", "Contact");
    // *** menu label array length must be equal to number of
    // *** total frames inside "menu button bg" Movie Clip in the library.
    var total:Number = menu_label.length;
    var tween_duration:Number = .85;// in seconds
    var radius:Number = 185;
    var angle:Number;
    var i:Number = 0;
    function create_menu():Void
    angle = (i - 2) * Math.PI * 2 / total;
    position_x = Math.cos(angle) * radius;
    position_y = Math.sin(angle) * radius;
    var fm = menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);//** menu_item_group is instance name already on the
                                                                                                                      //** stage and is instance of symbol in library that has
                                                                                                                      //**instance name of menu_item
    fm.stop();
    fm.bg.gotoAndStop(i + 1);
    fm.over = true;
    fm.item_label = menu_label[i];   //** here is where the text of each newly created MovieClip's text is changed
    fm.item_no = i;
    more code.........
    loop
    Can someone tell me how to do this in AS3?  I have learned how to duplicate a movieclip with DisplayObjects, but I have no way of knowing how to get to the text field in order to change it.
    Regards,
    Kevin
    ps. new to Flash. Decent amount of VB programming experience.

    You are correct about the instance names etc... my apologies... I did not save my work and lost what I was doing.  My Dev enviroment is a personal laptop with Flash.  The company has yet to purchase Flash.  My laptop did an auto Windows update.  I lost my testing .fla.
    You were right about the instance name.  It was missing from my previous example.  That has been correct.  I now get no errors, but setting the autoSize property did not work.
    I'm creating two MovieClips.  One is the MovieClip of the actual TextField and the other is of a MovieClip with the TextField on it.
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    When I create the MovieClip of the TextField directly:
    var mcTxt:MovieClip=new clsText();   //pardon me, but I just had to use some VB naming conventions to help myself out.
    addChild(mcTxt);
    mcTxt.item_Label.autoSize=TextFieldAutoSize.LEFT;
    mcTxt.item_Label.text="Hello Willeeerrrrr";
    When I add the field without changing the text, the text field defaults to "Hello World".  When I attempt a change as in the code above, the text field looks as follows:  Hello Willeee.  If I add a fourth 'e', .text="Hello Willeeeerrrr", it will add it to the text field the next time I test.  The final 'rrrrr's' get truncated.  Wierd.
    Now, when I do the above on the MovieClip with the child text field, the text just disappears.
    var mc:MovieClip=new clsMenuItem();//MovieClip with the embedded/child textfield
    addChild(mc);
    mc.mcMenuItem.item_Label.autoSize=TextFieldAutoSize.LEFT;
    mc.mcMenuItem.item_Label.text="Hello Willred";
    The above code causes the text to display blank.
    I'm close and hope it's just a property setting...ideas?

  • Hyperlink added to graphic

    I was wondering if there was anyway to create a hyperlink to
    a graphic in flash. What I want to be able to do is that I want the
    logo to slide onto my picture and after it slides on I want it to
    become a hyperlink, I'm not really sure how to do this does anyone
    no how?

    Here is the code that I am using, I get an error saying:
    1084: Syntax error: expecting rightparen before colon.
    here is the code:
    getURL(
    http://content.aktion.com/devel/heatcontroller/century.html,_self);
    stop();
    I know I'm doing something wrong, but I'm not sure what, and
    I still can't get the stop action to work, it would work before I
    added the getURL action, it's been awhile since I've used
    actionscript so I'm not really sure what I"m doing wrong. Any help
    would be appreciated.

  • Adding bitmap or gif image in dashboad

    Hi experts,
    I want to add one bitmap image in my xcelsius dashboad?
    How can i do this?
    Thanks in advance,
    Rishit

    Hi guys,
    I got soln by adding image component in my dashboad.
    Sorry for this trouble.
    Thanks,
    Rishit

  • The color white in a colored Bitmap graphics in sapscript is not white

    Hello, I have added a colorred logo in a sapscript. The logo is made with paint.
    When i print this logo with se78 or in the sapscript the white in that logo is a little grey.
    also the background colour is a little grey.

    The image you are using in your form in case if you have uploaded from presentation server you have to change the settings of your image as 256-bitmap image then use it in your form .
    I hope this will solve problem your problem.
    Edited by: Syed Abdul Adil on Aug 5, 2008 3:59 PM

  • Cell shading and adding a graphic above/below a paragraph

    Hi all--
    I'm creating a two-column, one-row table for examples. For the left column, I set up shading for 30% light gray. For the paragraph tag in that same column, I'm importing a frame, which contains the word "Example," from the Reference page. To do this, I selected the Advanced tab in the Paragraph Designer, and selected the frame I created on the Reference page from the Frame Below Pgf. drop-down list.
    The frame appears in the table column, but it appears that the background of the word "Example" isn't transparent. So, the shading of the cell is blocked out by the frame from the Reference page. See the attached .gif file.
    Can anyone provide ideas for either making the frame transparent, or adding shading to the frame? Thanks!

    Lance,
    Going back to your original question, I did some testing. On the reference page, select the frame containing the word Example. Then from the drawing tools, set its fill pattern to None; this makes the frame transparent.
    In my testing, I created a graphic frame with fill of None and inserted a text line inside it. This works.
    You can also create a text frame inside the graphic frame and also set the fill pattern of the text frame to None. This also works.
    Apparently, although you can create a text frame on the reference page, FrameMaker does not allow you to name it; hence, you cannot use it in the paragraph designer as a frame above/below. But creating a graphic frame with fill of None DOES work.
    Good luck,
    Van

Maybe you are looking for

  • Error while activating data loaded into DataStore Object in BI 7.0

    Hi Guys, I am facing the following problem : When I load data into a Datastore Object, all the records get loaded but the job fails during activation of the data. Below is the job log : Activation is running: Data target 0RPM_DS07, from 77 to 77 Over

  • Weblogic em and console crashes in Forms 11gR2 domain

    Hi, I am working towards an APEX and/or Forms11gR2 environment from Forms and Reports 6i. Coming from a client-server background,with the concept of application servers etc totally unfamiliar territory. and a near-zero knowledge of Java its been a to

  • Lumia 800 microphone problem

    Hello, I have a problem with my Lumia 800 microphone.. when someone calls me, or I try to record a video it doesn't work, I can't hear what I sad in the video, neither people can hear me over their phone, but for example when I try to use voice comma

  • Zen Touch porb

    So my Zen Touch is stuck in recovery mode. The drivers are installed and when I connect it to my computer all that pops up is the portable device. Well I downloaded the firmware and when I run the program it says "your player is not connected, please

  • SDO_INDEX_METADATA not populated after impdp

    I have a table in instance 1 that I would like to export to instance 2. I use expdp to export the table from instance 1 and impdp to import the table into instance 2. Syntax for the import as follows: impdp mapinfo/mapinfo TABLES=COUNTY DIRECTORY=opu