Newbie having difficulty centering images in browser using ActionScript 3.0

I'm a newbie using flex builder 3. I'm learning
ActionScript3.0. After running the AS code from the book, my images
are never in the center of the browser(IE7). After running the
following code (which is supposed to produce a yellow arrow, in the
center of the stage, that rotates to the mouse), I get all the
desired results except the arrow is positioned in the bottom right
corner of my browser and only part of the arrow is visible. if
anyone can suggest a solution it would be highly appreciated.
Please keep in mind that I am a COMPLETE newbie to ActionScript,
Flex Builder 3, and the Flash environments. Thanks in advance.

on mouseup or click, if the mouse is down, you can use:
stage.focus=outputText;
if the mouse isn't down, you can don't need a listener to trigger the above.

Similar Messages

  • I'm having difficulty downloading apps to Iphone using my PC. I keep reading that there is a "device" button to click on in Itunes Store but it's not visible on my PC. Any tips?

    I'm having difficulty downloading apps to Iphone using my PC. I keep reading that there is a "device" button located in the Itunes page... but I don't see it.

    What do you mean?
    You buy an app from itunes on your computer?
    If so, then sync it to your iphone.
    Open itunes, connect iphone, select the apps you want under the apps tab and sync.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Showing various images on browser using JSP and Servlet

    Hello Guys!
    I am starting to develop in Java and already I am facing a big problem.
    If somebody will have some tip or suggestion, will be very well comings!
    The application must present in browser images originnally of format TIF. As it is not a native format of the I.E. , I converted the image for JPG (without saving it on disk) and send it to the browser a encoded image (encode) using JAI library in one servlet had access by a JSP. Then, the structure of my application is thus:
    1) an archive JSP draws the initial screen in browser and presents one input text.
    2) later that the user places the parameter, I make an access to the database and read a quantity of images to be presented.
    3) From there in the proper JSP, I use de tag img src to send image to the browser in agreement archive the amount of images.
    It follows the code of the JSP:
    <% 
                    int intI=0;
                    int intCont=0;
                    if(blnImagem == true){
                        out.println("<br>");
                        out.println("<table border=0 STYLE=border-collapse:collapse>");
                        out.println("<tr>");
                        for(intI=0;intI < Processo.intQtdImagens;intI++){
                           Imagem.strImgTif = Imagem.IndicarImagem(Processo.strNmPath,Processo.strSubPath,Processo.intNuImagem,intI);                                                                    
                           out.println("<th>");
                           out.println("<table border=1 STYLE=border-collapse:collapse rules='cols'>");
                           out.println("<tr>");
                           out.println("<th>");
                           %>
                             <img src="ShowImg" WIDTH=100>
                           <%
                           out.println("</th>");
                           out.println("</tr>");
                           out.println("</table>");
    %>and code on the ShowImg servlet:
            response.setContentType("image/jpeg");       
            ServletOutputStream sos = response.getOutputStream();
            RenderedOp src = JAI.create("fileload", Imagem.strImgTif);           
            ImageEncoder encoder = ImageCodec.createImageEncoder("JPEG",sos,null);       
            encoder.encode(src); 
            sos.close();The problem is if I have 10 images to present, it WILL BE it is executed 10 times and it passes 10 names of different archives, but in the page only the last image is presented 10 times. It is as if it processed the TAG to the end of everything in way that the value of the static variable Imagem.strImgTif was chore only with the last value and the same loaded image 10 times. How I make to solve this? Somebody has some idea?
    THANK YOU !
    Emidio

    If I understand correctly what your problem is:
    Do this in the jsp:
    out.println("<img src=\"ShowImg?image=" + intI + "\" WIDTH=100>");
    In the image servlet, get the "image" parameter and parse it as an int. Move the Imagem.IndicarImagem() call to the image servlet.

  • Newbie having problems with image on form

    In Design, I use both the "image" and "image field" tools to place a JPG image on my form, but the image does not show up on the form (the placement is there for the image, but not the image). How can I correct this problem?

    I had this same problem in the past and I'll second the notion that changing the image from CMYK to RGB easily solves the problem. Or, just make sure your image is in a .PNG format.

  • Having difficulty starting a Compressor job using a cluster

    The batch monitor will error out- something having to do with timing out before Qmaster can open it's storage area on the host machine (not sure if that makes sense). Anyway, the cluster i created, has 2 service nodes, both with Final Cut, and DVDSP4 installed. I've never been able to submit a job to the cluster. It will always error out.

    Are you submitting directly from Final Cut using "Export to Compressor"? Are you using a quickcluster, or a managed cluster? Do you see your nodes in Qadministrator? Do you have shared storage? If not did you turn on "Personal File Sharing" in system preferences and enable applesharing in network prefs on both machines. Did you disable the firewall?
    I'm not in front of my computers, but there is a setting in the Compressor settings that allows you to change "Always copy files to cluster storage", "Never", etc Try changing that to always. I really don't know if it will help, but it got me hung up on my setup for ahwhile. Did you change the cluster storage in sys prefs on either machine? (You shouldn't) Also try resetting the nodes by stopping the services on them, then holding option-apple and click reset.
    Finally, see if you can post the exact error that you are receiving. There is a log file somewhere in "/var/log" that might help to narrow down the problem.
    I use NFS with a Managed cluster, but if you are using Appleshare I think you should be able to go to the Go->Connect to Server from finder and connect to your machine by typing in the IP address or hostname.
    There's some ideas to get you started.
    ~half.italian

  • Importing external images into Flash using ActionScript 3.0

    Hey Guys!
    What i'm trying to do it import a few (say four) images from
    an external
    folder at random and display them in a row. The folder would
    contain up to a
    hundred pictures, sequentially named (ie. 1.jpg, 2.jpg,
    3.jpg, 4.jpg,
    etc...)
    any suggestions on how I could do this??
    thanks,
    -Chris

    thanks for getting me started! Is there a way to get the four
    images
    directly out of an external folder, though?
    thanks,
    -Chris
    "kglad" <[email protected]> wrote in message
    news:f7eop9$8um$[email protected]..
    > here's code to get you started. this allows you to
    select 4 of your
    > images at
    > random. then use the loader class and its load method to
    start your loads
    > and
    > use its contentloaderinfo property to attach listeners
    to detect if
    > there's
    > been a load error (so you can load another) and load
    completion (so you
    > can
    > position your images):
    >
    >
    >
    > Array.prototype.shuffle = function() {
    > var p:int;
    > var t:int;
    > var ivar:int
    > for (ivar = this.length-1; ivar>=0; ivar--) {
    > p=Math.floor((ivar+1)*Math.random())
    > t = this[ivar];
    > this[ivar] = this[p];
    > this[p] = t;
    > }
    > };
    > var tl:MovieClip=this;
    > var swfNum:int=100;
    > var num:int=0;
    > var i:int;
    > var swfA:Array=[];
    > for (i=1; i<=swfNum; i++) {
    > swfA.push(i+".jpg");
    > }
    >
    > swfA.shuffle();
    >
    > // swfA[0], swfA[1], swfA[2], swfA[3] contain references
    to 4 of your
    > images
    > randomly selected. if one of them doesn't exist
    > // use the ieError event to select the next one at
    random: swfA[3] etc.
    >

  • Centering images on fluid site

    Rebuilding a very antiquated site to meet the upcoming Google deadline, I'm having problems centering images. I defined a class of "center" but it's not working;
    http://www.aptcoweb.com/dev/aptcoFluid/office/label.htm
    Sometimes I want to center a single image, other times a group of images. What's wrong with my css?
    Also, what's the best way to center the iframe video?

    larrycfc wrote:
    Still don't know how to center the video. wrapping the iframe in a div made it disappear.
    Add some inline css styling to the iframe:
    <iframe width="640" style="display: block; margin: 0 auto;" height="480" src="https://www.youtube.com/embed/RWgpByd3UrI?rel=0" frameborder="0" allowfullscreen></iframe>

  • Show image in browser

    hi,
    i am new in PHP and oracle. can i show image in browser using image path from database?

    vikash wrote:
    No, Actually I m putting the path of image in database in varchar2 and i want to show image in browser using this path...plz helpGotcha - that actually makes life a little easier...
    What you'll want to do with PHP (I'll lay this out for you a bit - I don't have a code editor/environment handy at the moment..)
    1) You'll retrieve your image path from the database. Note that this path has to be the 'web accessible path', not a full file system path. (e.g. if your "Web Root" is /var/http/www and the full file system path to your image is /var/http/www/images/myimage.png, then the image you should have in the database is /images/myimage.png. This could also be a relative image path, etc.)
    2) Use your retrieved database path to insert into your HTML <img/> tag. If you have 'short tags' enabled, it should look something like this:
    <img src="<?= $myImagePath ?>" />
    That's the basics - is there anything here that sounds familiar?

  • HT5012 I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

    I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • How do I download Adobe Acrobat using the Agreement Number provided by my employer.  Having difficulty connecting to Adobe Chat with Support option.

    How do I download Adobe Acrobat using the Agreement Number provided by my employer?  Having difficulty connecting to Adobe Chat with Support option.

    Hi,
    If you already have the serial number then I would request you to download the software from the below link and install it.
    http://www.adobe.com/downloads/other-downloads.html
    Regards,
    Anand

  • How to upload the image and diplay the image in the browser using jsp

    How to upload the image and diplay the image in the browser using jsp
    thanks
    shan

    i'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question

  • I am having difficulty in printing from my ipad to a Kodak Hero 9.1 WiFi printer. I am using Prin Pro Central as an App. The printer is not recognised on my Ipad. Any help or ideas would be appreciated.

    I am having difficulty in printing from my ipad to a Kodak Hero 9.1 WiFi printer. I am using Prin Pro Central as an App. The printer is not recognised on my Ipad. Any help or ideas would be appreciated.

    Versuche es mal ohne express vi s
    Eine Whileschleife, dessen Zähler Du als Zeitbasis verwendest,
    Sinusfunktionen als Signalquellen, g .....  ups english forum
    Try it without express vis
    a while loop with the index as timebase (multiply by your timestep to get t)
    sinus functions with 2 Pi  t  as signals
    In your vi in every interation of the while loop you generate an array of values where you always pich the same index   ...
     PS: here is my version
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • I am having difficulty locating my library. This has just happened, after using iTunes for many years. What's up with that?

    I am having difficulty locating my library. This has just happened, after using iTunes for many years. What's up with that?

    Hi geojobowden,
    If you opened up iTunes and your library appeared empty, this article may help:
    iTunes creates an empty library file in Windows
    http://support.apple.com/kb/TS2715
    Take care,
    - Ari

  • When using facetime having difficulty with video, sound is ok.screen says reconnecting.

    When using facetime having difficulty with video.msound is ok. Screen says reconnecting

    There have been numerous reports of FaceTime problems for the last several days and it is unclear what the cause if. Following is one of many discussions of the issue: https://discussions.apple.com/thread/6096640?tstart=120

  • I have a HP workforce 610 and cannot scan.  I just spoke with HP and they told me it is a software problem with my MAC for image capture.  Anyone else having difficulty?

    I have a HP workforce 610 and cannot scan.  I just spoke with HP and they told me it is a software problem with my MAC for image capture.  Anyone else having difficulty?

    If Image Capture doesn't work you could try the paid for app VueScan ( www.hamrick.com ). You can try it for free in demo mode to see if it works before purchase.

Maybe you are looking for

  • List of Bugs Fixed in JDev 3.2.3

    Several users requested a list of bugs addressed in JDeveloper 3.2.3. Here is a list: Bugs Fixed for DAC Infoswing Frame Could Not Be Closed. (1729167) Validation Methods Are Invoked During Removing Of A New Row From Gridcontrol (1727214) Regrn:Lov C

  • How to disable Cross client Table Access

    Hi All, i have created a Sand box client and i have set its cross client object value to "No Changes to repository and cross client customizing objs" but still users are able to run transactions like SR13 which are cross client tables please help

  • ABAP program to search for FM/User-Exit lookups

    Hi everyone, I have a need to find any and all Function Modules and User Exits that may have been written in BW that are used to do a lookup of data from one InfoProvider to another.   I have found the following program from Lijo John which works for

  • Rebuild photos in iphoto 08

    whenever I hold down apple-option and launch iphoto and try to rebuild all of the photos thumbnails the program crashes about 30 mins in. this happens consistently and i just installed iphoto 08 on my new imac 2.8ghz. when i run the other options, li

  • Balance sheet adjustment balance becomes double

    Dear Experts My finance users execute Balance sheet adjustments monthly through the years upto current month. Somehow, now they discover that there were some postings made to period 13 two years ago which have not been reversed when they reversed the