Wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

Following code :
<!DOCTYPE html>
<style type="text/css">
div {
display: block;
margin-left: 2em;
span {
display: list-item;
list-style-type: decimal;
</style>
&lt;div>
&lt;span>first&lt;/span>
&lt;span>second&lt;/span>
&lt;span>third&lt;/span>
&lt;/div>
Displays as :
0. first
0. second
0. third
while looking fine in other browsers (checked IE7, chrome, opera, safari...)

updated code snap...

Similar Messages

  • Problems with display-lists (Urgent)

    I would like to load 3d polygonal Objects into seperate display lists and deliver them to OGL, which works fine.
    But if I want to clean up my screen with the intention to load some new objects, I have the big problem deleting my old display lists.
    Maybe the problem is caused by other reasons. But finally my Canvas displays everytime the old 3d Object. Here are some essential snippets of my code:
    public class CanvasOGL extends JPanel implements GLEventListener {
    public final static int GL_POLYGON_MODE_LINE = 1;
    public final static int GL_POLYGON_MODE_FILL = 2;
    public final static int GL_POLYGON_MODE_POINT = 3;
    private int iGLPolygonMode = 2;
    private final GLCapabilities caps = new GLCapabilities();
    private final GLJPanel drawable = GLDrawableFactory.getFactory().createGLJPanel(caps);
    private GL gl;
    private GLU glu;
    private float fDistance = -3f;
    private float view_rotx = 0f;
    private float view_roty = 0f;
    private float view_rotz = 0f;
    private int prevMouseX;
    private int prevMouseY;
    private Color bgColor = new Color(255, 255, 255, 0);
    private Color fcolor = new Color(222, 222, 222, 0);
    private String imagePath = "";
    private PgGeometry[] pgGeometries;
    private int lists;
    public CanvasOGL() {
    caps.setAlphaBits(8);
    drawable.setOpaque(false);
    drawable.addGLEventListener(this);
    drawable.addMouseListener(this);
    drawable.addMouseMotionListener(this);
    drawable.addMouseWheelListener(this);
    setLayout(new BorderLayout());
    add(drawable, BorderLayout.CENTER);
    public void setPgGeometries(PgGeometry pgGeometries[]) {
    // delete old lists
    if (gl!=null)
    gl.glDeleteLists(lists,this.pgGeometries.length);
    // create new lists
    this.pgGeometries = pgGeometries;
    createLists();
    drawable.display();
    public void setPgGeometry(PgGeometry pgGeometry) {
    // delete old lists
    if (gl!=null)
    gl.glDeleteLists(lists,pgGeometries.length);
    // create new lists
    pgGeometries = new PgGeometry[1];
    pgGeometries[0] = pgGeometry;
    createLists();
    drawable.display();
    /* GLEventListener Methods */
    public void init(GLDrawable glDrawable) {
    System.out.println("call: init");
    gl = glDrawable.getGL();
    glu = glDrawable.getGLU();
    gl.glClearColor(bgColor.getRed() / 255f, bgColor.getGreen() / 255f, bgColor.getBlue() / 255f, bgColor.getAlpha() / 255f); //This Will Clear The Background Color To Black
    gl.glClearDepth(1.0);
    gl.glEnable(GL.GL_DEPTH_TEST);
    gl.glDepthFunc(GL.GL_LEQUAL);
    gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
    /* Init Light1 */
    float[] LightAmbient = {0.8f, 0.8f, 0.8f, 1.0f};
    float[] LightDiffuse = {1.0f, 1.0f, 1.0f, 1.0f};
    float[] LightPosition = {2.0f, 0.0f, 2.0f, 1.0f};
    gl.glLightfv(GL.GL_LIGHT1, GL.GL_AMBIENT, LightAmbient); // Setup The Ambient Light
    gl.glLightfv(GL.GL_LIGHT1, GL.GL_DIFFUSE, LightDiffuse); // Setup The Diffuse Light
    gl.glLightfv(GL.GL_LIGHT1, GL.GL_POSITION, LightPosition);
    gl.glEnable(GL.GL_LIGHT1);
    gl.glEnable(GL.GL_LIGHTING);
    gl.glEnable(GL.GL_CULL_FACE);
    gl.glBindTexture(GL.GL_TEXTURE_2D, 1);
    gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
    gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
    gl.glEnable(GL.GL_TEXTURE_2D);
    gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE);
    createLists();
    public void display(GLDrawable glDrawable) {
    System.out.println("call: display");
    switch (iGLPolygonMode) {
    case GL_POLYGON_MODE_LINE:
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_LINE);
    break;
    case GL_POLYGON_MODE_FILL:
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
    break;
    case GL_POLYGON_MODE_POINT:
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_POINT);
    gl.glClearColor(bgColor.getRed() / 255f, bgColor.getGreen() / 255f, bgColor.getBlue() / 255f, bgColor.getAlpha() / 255f);
    gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
    if (!imagePath.equals("")) {
    RenderedImage image = JAI.create("fileload", imagePath);
    BufferedImage img = ImageUtils.toBufferedImage(image);
    makeRGBTexture(img, GL.GL_TEXTURE_2D, false);
    gl.glLoadIdentity();
    // Position des Auges des Betrachters
    gl.glTranslatef(0, 0, fDistance);
    gl.glPushMatrix();
    gl.glRotatef(view_rotx, 1.0f, 0.0f, 0.0f);
    gl.glRotatef(view_roty, 0.0f, 1.0f, 0.0f);
    gl.glRotatef(view_rotz, 0.0f, 0.0f, 1.0f);
    gl.glColor4f(fcolor.getRed() / 255f, fcolor.getGreen() / 255f, fcolor.getBlue() / 255f, fcolor.getAlpha() / 255f);
    for(int i=lists; i<= pgGeometries.length; i++)
    gl.glCallList(i);
    private void createLists() {
    if (gl == null)
    return;
    System.out.println("call: create");
    int num = pgGeometries.length;
    lists = gl.glGenLists(num);
    for (int i = 0; i < num; i++) {
    PgElementSet pgElementSet = (PgElementSet) pgGeometries;
    PdVector[] bounds = pgElementSet.getBounds();
    PdVector pdVectorDiagonal = PdVector.subNew(bounds[1], bounds[0]);
    double dx = pdVectorDiagonal.getEntry(0);
    double dy = pdVectorDiagonal.getEntry(1);
    double dz = pdVectorDiagonal.getEntry(2);
    double temp;
    if (dx < dy)
    temp = dy;
    else
    temp = dx;
    if (temp < dz)
    temp = dz;
    double dScale = 1 / temp;
    double dMaxx,dMaxy,dMaxz,dMinx,dMiny,dMinz;
    dMaxx = pgElementSet.getVertex(0).getEntry(0);
    dMaxy = pgElementSet.getVertex(0).getEntry(1);
    dMaxz = pgElementSet.getVertex(0).getEntry(2);
    dMinx = pgElementSet.getVertex(0).getEntry(0);
    dMiny = pgElementSet.getVertex(0).getEntry(1);
    dMinz = pgElementSet.getVertex(0).getEntry(2);
    int numV = pgElementSet.getNumVertices();
    for (int j = 1; j < numV; j++) {
    if (dMaxx < pgElementSet.getVertex(i).getEntry(0))
    dMaxx = pgElementSet.getVertex(i).getEntry(0);
    if (dMaxy < pgElementSet.getVertex(i).getEntry(1))
    dMaxy = pgElementSet.getVertex(i).getEntry(1);
    if (dMaxz < pgElementSet.getVertex(i).getEntry(2))
    dMaxz = pgElementSet.getVertex(i).getEntry(2);
    if (dMinx > pgElementSet.getVertex(i).getEntry(0))
    dMinx = pgElementSet.getVertex(i).getEntry(0);
    if (dMiny > pgElementSet.getVertex(i).getEntry(1))
    dMiny = pgElementSet.getVertex(i).getEntry(1);
    if (dMinz > pgElementSet.getVertex(i).getEntry(2))
    dMinz = pgElementSet.getVertex(i).getEntry(2);
    double x;
    double y;
    double z;
    PdVector pdVector;
    gl.glNewList(lists+i, GL.GL_COMPILE);
    for (int j = 0; j < pgElementSet.getNumElements(); j++) {
    gl.glBegin(GL.GL_POLYGON);
    PiVector piVector = pgElementSet.getElement(j);
    for (int k = 0; k < piVector.getSize(); k++) {
    int index = piVector.getEntry(k);
    pdVector = pgElementSet.getVertex(index);
    x = dScale * (pdVector.getEntry(0) - (dMaxx + dMinx) / 2);
    y = dScale * (pdVector.getEntry(1) - (dMaxy + dMiny) / 2);
    z = dScale * (pdVector.getEntry(2) - (dMaxz + dMinz) / 2);
    gl.glTexCoord2d(0.5 + x, 0.5 + y);
    gl.glVertex3d(x, y, z);
    gl.glEnd();
    gl.glEndList();
    I would be pleased about every kind of help. Thanks a lot!
    Kindly regards,
    Eldar

    Use Windows Device Manager to set it back to F:
    These directions are for an ipod but will work for an exHD, too:
    http://support.apple.com/kb/TS1493
    Change the drive letter while itunes is closed. When you reopen itunes all the file paths should be OK.

  • Using Stage3D in tandem with Display List

    Can it be done? Like... using Stage 3D but also using Flex Buttons or some old-fashioned drawing via Sprite / Shape?

    Definitely. We got quite a lot of stuff already built via Flex, or, my case, my own UI library. I would hate to lose that once I go 3D. This is one of the things which makes me most happy about FP 11.
    Practically, HUDs & Shops and stuff like that will get their own rendering, while the game has its own stuff via the 3D renderer.

  • Smartforms issue with displaying line items

    Hi All,
    I had a requirement where in which in the main window Five line items and then the corresponding values of line items below in the same main window.
    Example :
      01      item1_description       value1    value2
      02      item2_description       value1    value2
      03      item3_description       value1    value2
      04      item4_description       value1    value2
      05      item4_description       value1    value2
      01      Jass                            value1    value2
      02      Jass                            value1    value2
      03      Jass                            value1    value2
      04      Jass                            value1    value2
      05      Jass                            value1    value2
    if the value increases they go to next page the number of line items displayed will have the corresponding values to
    be printed in the same page and in the main window.
    Please help me how to do this.
    Thanks & Regards,
    Durga Naresh
    Edited by: NareshBD on May 12, 2011 10:58 AM

    I sense this will be either impossible or quite hard to accomplish.
    What i dont understand is: why dont you go for the approach to print all you info regarding one line item into ONE line like:
    01 item1_description value1 value2 01 Jass value1 value2
    02 item2_description value1 value2 02 Jass value1 value2
    03 item3_description value1 value2 03 Jass value1 value2
    04 item4_description value1 value2 04 Jass value1 value2
    05 item4_description value1 value2 05 Jass value1 value2
    that again would make things very easy.

  • Missing New Document Window when opening new document, along with other menu items: Object style, effects panel, etc.

    I am missing many elements, it seems in my InDesign program.  How can this be?  I am taking a course at the local college (inDesign CS6), and when going through the book and steps, I keep noticing that I am missing things.  For example:  When I open a New Document - no new document window shows up on my screen, and there is no way to change the page size, etc that shows up. 2.) There is no Object Styles panel - Window>Styles>Object Styles - but the Object Styles option doesn't exist.  3.) There is no Effects panel to be found, either. As I continue the course, more and more things keep showing up like this.  What is going on?  I am not doing something wrong; my instructor verified that indeed these things seem to be missing.  I purchased the Adobe Creative Suite 6 Design & Web Premium disk for Windows OS.  Please help!
    I did have trouble installing the disk, but thanks to someone in the forum, I was able to drag everything to the desktop and it installed that way.  Could that be why this is happening?

    The Knowledge Base plugin is not required, but the Master Page is, so there's definitely an install problem. Go back to Help, and hold down the Ctrl key while you click on About InDesign. What is the full version number in the upper left of the dialog that appears?
    Also, go to Adobe - Exchange : Download the Adobe Extension Manager and download and install the latest version of the CS6 extension manager.

  • Multilevel List Style and Numbering

    I have searched the forum without success regarding a RH8 problem. Can someone help? My problem may be user error, but I suspect it is a bug based on the few posts I found regarding multilevel list numbering.
    I created a multilevel list style. I configured the alignment of the text lines as desired. I used the style. All was working well. Then for no apparent reason, the alignment of the lines changed. The second line of text in a numbered line does not align correctly, as shown in the file attached to this post. I can resolve the problem but only temporarily by reinstalling RH8.
    Alas, I was excited about the new multilevel list functionality, but I have found it to be very unstable.

    Thanks to Rick, my problem is solved!
    Rick looked at my style sheet and used it to make a small chm file and it displayed perfectly. He told me that he suspected either the browser settings or perhaps the display settings.
    After comparing all IE settings to no avail, I turned to the Display Settings for Windows 7.
    In Display Settings, I had the text setting set on medium (125%), so I changed it back to the default, which is smaller 100%), logged off and then back on and BINGO!!
    That was it!
    I thought I had a problem with RoboHelp and it turned out to be the display setting for the OS! Urghhhhh!!!
    Hope this helps other folks, who might be using the same setting and think that they're having a problem with their chm.....
    Thanks again, Rick!
    Best regards,
    Deb

  • Does Adobe Photoshop Elements work with MacBook Pro with Retina display?

    Does Adobe Photoshop Elements work with MacBook Pro with Retina display, please?
    Have searched Adobe website for answer - most recent is 2013 answer, saying no.
    Contradicted by a staff ember who only referred to Photoshop, not Elements.
    Reason I need it is that iPhoto does not support very high resolution photos - which I have now scanned onto my MacBook and do not want to re-scan!! After 90 minutes at my local Genius bar (lovely folk, very conscientiously searching for an answer...), re-scanning was their final piece of advice.
    Help, please...

    Hello Smis,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues with your HP Monitor on your MAC. I am providing you with an HP Support document: Updating a Monitor Driver, where it states under the sub-heading Using HP monitors on a Mac "HP monitors are not supported in a Mac environment. However, newer Macs use graphics with VESA modes and can display to most HP LCD monitors. To do this, connect the monitor to the Mac while the Mac is off, and then turn on the MAC. The monitor should operate at 60Hz. The INF and software for the HP monitor are for Microsoft Windows and cannot be run in a standard MAC OS environment."
    This being said all I can advise is that you check to see that the monitor is set to operat at 60Hz and contact Apple for assistance if that does not get your monitor displaying correctly.
    I hope I have answered your question to your satisfaction. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Is there a way to fix ipod touch screen display problem with song list?

    I was wondering if anybody has had this problem? I have an ipod touch 64gig 5th gen for probably about 2 years. I hardly use it because I have it as a back up ipod until primary one dies. This is the first time I came across this problem. Upon turning on device, the first artist/song list I choose displays correctly. Once I start choosing any other artist/song list afterwards, the display for the 1st artist/song list re-appears. If the song list is only a single song to 3-4 songs it will display correctly. Any other song list I choose that consist more than 5 songs, the first artist/song list re-appears on screen like the display is messed up.
    For example: Upon turning on device, I choose Aaliyah with a list of 9 songs displaying.
    Upon trying to select a different artist and song, for example I choose Nachtmar with a  list of 20 songs.
    The Aaliyah with the list of 9 songs re appears in place of the song list I am attempting to choose. The songs play and it works, but the display is incorrect. Why is it doing this? Does anybody have this problem? I have tried resetting and it has currently been updated. I have came across this problem just very recently a couple of days ago. I have had a couple of hard resets requiring to erase all data in the past and I don't want to go that way again because I have about 3,500 songs. I have never experience this problem before in the past. I just want it to display the current list of songs. It's inconvenient having to type in every song while playing in the car instead of being able to easily pick an individual song.

    I have this problem too and it drives me crazy. When I view my ipod, I don't want to see a list of the first 8 songs in my ipod library. I just want to see the current song playing. It's like the ipod display goes into some type of "sleep" mode while your music plays,and the display defaults to show the first few songs in your ipod touch library, even though none of those songs are currently being played. I have to take the time to either flip the ipod over a couple of times in order for that list to disappear just to see the current song playing.
    This is an example of what I see on my display after the current song begins playing. These are the first songs in my ipod library. To get rid of this view, I have to either shake the ipod or flip it over a couple of times and the current song is now displayed, allowing you to see the current song, also allowing you access to the arrows to either fast forward or playback/reverse. On the display, the songs are in a grid or table format (unable to show that here).
    Acoustic Soul
    Aaliyah
    Adventers on the Wheels
    Adventures in Paradise
    After Tonight
    Will Downing

  • How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1

    How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1
    A senior citizen needs some help.
    Thanks

    Saving each image as different size - is it an option for you?  I would save images with their name as: 20x30.png, 16x20.png etc etc.
    Or explain whether you want these in a webpage  in which case only one image is necessary and different sizes are displayed with good CSS code.  this is question for Dreamweaver forum if this is what you want.

  • I have created a spreadsheet on numbers for ipad with a list of customers as a drop down menu. How can i make their address appear underneath when i select the customer?

    I have created a spreadsheet on numbers for ipad with a list of customers as a drop down menu. How can i make their address appear underneath when I select the customer?
    iselect the customer?

    Hi bazza,
    We won't be able to put the address from a formula into the same cell that you enter the customer's name. We can put the address in the cell under the customers name.
    First let's take James advice and concatenate the address in the address table.
    Here is the formula in G2
    =CONCATENATE(B2&"
    ",C2&"
    ",D2&"
    ",E2)
    It shows this way because after I clicked on B2 and typed [&"] (no brackets) I typed option-return
    This gives you your new line. Then I typed the closing ". I repeated this for the rest of the address.
    Next we want to bring this to your order sheet. I prefer using the two formulas OFFSET and MATCH instead of VLOOKUP.
    base tells OFFSETwhere to start counting from. Click A1.
    row-offset is for the row. we will use MATCH() -1 to give us the row.
    What MATCH does is give you the row number where something is found and you can specify an exact match. I usually construct the MATCH formula first and then cut and paste it into OFFSET. MATCH looks like this: MATCH(A2,Table 1::A,0). A2 is what we are looking for, Table 1A::A is where we are looking (the entire column A), and 0 means we want an exact match. Can you see it inside the OFFSET formula? Notice that we had to subtract 1 from its result.
    column-offset tells OFFSET which column A=0 so we want 6.
    we ignore "rows", "colomns" we don't need them.
    If this seems like too much, just break it down into small pieces.
    quinn

  • Dynamic select list with display,return val & join condition issue.

    hello,
    I am having a dynamic select list with display, return value
    say for example my select statement is
    select distinct dname d, deptno r
    from dept dt
    right join emp e on (e.deptno=dt.deptno)
    where (condition)
    when i tried this query for my select list, it is not working. It saying that
    " LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query. "
    I am not able to understand the problem. Can anyone help me out with this issue?
    thanks.

    Shouldn't your join have dept as the driving table?
    select distinct dname d, deptno r
    from dept dt
    right join emp e on (dt.deptno = e.deptno)
    where (condition)
    Or using older Oracle standard join
    select distinct dname d, deptno r
    from dept dt, emp e
    where (dt.deptno (+) = e.deptno) AND (OTHER WHERE condition)
    OR
    (Since a right join is just getting the values from the driving table that are NOT in the associated table)
    select distinct dname d, deptno r
    from dept dt
    WHERE dt deptno NOT IN (SELECT deptno FROM emp) AND (OTHER where condition)
    Thank you,
    Tony Miller
    Webster, TX

  • [svn] 4023: Interim check-in for FXG as SWF graphics primitives, integrating Kaushal' s prototype of programmatic linkage of TextGraphic instances with the appropriate parent DefineSprite in the SWF display list .

    Revision: 4023
    Author: [email protected]
    Date: 2008-11-05 11:10:38 -0800 (Wed, 05 Nov 2008)
    Log Message:
    Interim check-in for FXG as SWF graphics primitives, integrating Kaushal's prototype of programmatic linkage of TextGraphic instances with the appropriate parent DefineSprite in the SWF display list. This change temporarily adds awareness to [Embed] to allow sprites to be constructed from .fxg files.
    QA: No
    Doc: No
    Checkintests: Pass
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Transcoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/AbstractTextNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicContentNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GraphicNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GroupDefinitionNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/GroupNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/TextGraphicNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/text/ParagraphNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/dom/text/TextNode.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/sax/FXGSAXScanner.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TypeHelper.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineSprite.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FXGTranscoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/AbstractFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/SpriteClass.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TextFXGGraphics.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/TextHelper.java
    Removed Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fxg/swf/FXGSWFGraphics.java

  • Help with taking a pic with Android camera and adding pic to display list

    Hi,
    My students and I have not been able to make an AIR app that can take a picture using the devices camera and then add the image to the display list. We are able to open the devices camera and of course take a picture, but that's it.
    We've been using these two tutorials/examples:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/CameraUI.html
    and
    http://tv.adobe.com/watch/adc-presents/input-for-mobile-devices-camera /
    I've uploaded our project: http://www.dayvid.com/professor/camera.zip
    Can someone help us out?
    Thanks!
    Below is the main document class:
    package  {
    import flash.desktop.NativeApplication;
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.ErrorEvent;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.MediaEvent;
    import flash.media.CameraUI;
    import flash.media.MediaPromise;
    import flash.media.MediaType;
    import flash.events.MouseEvent;
         public class Main extends MovieClip{
              private var deviceCameraApp:CameraUI = new CameraUI();
              private var imageLoader:Loader;
              public function Main()
                   this.stage.align = StageAlign.TOP_LEFT;
                   this.stage.scaleMode = StageScaleMode.NO_SCALE;
                                     camera_btn.addEventListener(MouseEvent.CLICK, cameraBtnClicked);
                          private function cameraBtnClicked(event:MouseEvent):void
                                    if( CameraUI.isSupported )
                                                      result_txt.text = "Initializing camera...";
                                                      deviceCameraApp.addEventListener( MediaEvent.COMPLETE, imageCaptured );
                                                      deviceCameraApp.addEventListener( Event.CANCEL, captureCanceled );
                                                      deviceCameraApp.addEventListener( ErrorEvent.ERROR, cameraError );
                                                      deviceCameraApp.launch( MediaType.IMAGE );
                   else
                                                      result_txt.text = "Camera interface is not supported.";
              private function imageCaptured( event:MediaEvent ):void
                   result_txt.text = "Media captured...";
                   var imagePromise:MediaPromise = event.data;
                   if( imagePromise.isAsync )
                    result_txt.text = "Asynchronous media promise.";
                    imageLoader = new Loader();
                    imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, asyncImageLoaded );
                    imageLoader.addEventListener( IOErrorEvent.IO_ERROR, cameraError );
                    imageLoader.loadFilePromise( imagePromise );
                   else
                    result_txt.text = "Synchronous media promise.";
                    imageLoader.loadFilePromise( imagePromise );
                    showMedia( imageLoader );
              private function captureCanceled( event:Event ):void
                   result_txt.text = "Media capture canceled.";
                   NativeApplication.nativeApplication.exit();
              private function asyncImageLoaded( event:Event ):void
                   result_txt.text = "Media loaded in memory.";
                   showMedia( imageLoader );  
              private function showMedia( loader:Loader ):void
                   this.addChild( loader );
              private function cameraError( error:ErrorEvent ):void
                   result_txt.text = "Error:" + error.text;
                   NativeApplication.nativeApplication.exit();

    Hi,
    My students and I have not been able to make an AIR app that can take a picture using the devices camera and then add the image to the display list. We are able to open the devices camera and of course take a picture, but that's it.
    We've been using these two tutorials/examples:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/CameraUI.html
    and
    http://tv.adobe.com/watch/adc-presents/input-for-mobile-devices-camera /
    I've uploaded our project: http://www.dayvid.com/professor/camera.zip
    Can someone help us out?
    Thanks!
    Below is the main document class:
    package  {
    import flash.desktop.NativeApplication;
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.ErrorEvent;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.MediaEvent;
    import flash.media.CameraUI;
    import flash.media.MediaPromise;
    import flash.media.MediaType;
    import flash.events.MouseEvent;
         public class Main extends MovieClip{
              private var deviceCameraApp:CameraUI = new CameraUI();
              private var imageLoader:Loader;
              public function Main()
                   this.stage.align = StageAlign.TOP_LEFT;
                   this.stage.scaleMode = StageScaleMode.NO_SCALE;
                                     camera_btn.addEventListener(MouseEvent.CLICK, cameraBtnClicked);
                          private function cameraBtnClicked(event:MouseEvent):void
                                    if( CameraUI.isSupported )
                                                      result_txt.text = "Initializing camera...";
                                                      deviceCameraApp.addEventListener( MediaEvent.COMPLETE, imageCaptured );
                                                      deviceCameraApp.addEventListener( Event.CANCEL, captureCanceled );
                                                      deviceCameraApp.addEventListener( ErrorEvent.ERROR, cameraError );
                                                      deviceCameraApp.launch( MediaType.IMAGE );
                   else
                                                      result_txt.text = "Camera interface is not supported.";
              private function imageCaptured( event:MediaEvent ):void
                   result_txt.text = "Media captured...";
                   var imagePromise:MediaPromise = event.data;
                   if( imagePromise.isAsync )
                    result_txt.text = "Asynchronous media promise.";
                    imageLoader = new Loader();
                    imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, asyncImageLoaded );
                    imageLoader.addEventListener( IOErrorEvent.IO_ERROR, cameraError );
                    imageLoader.loadFilePromise( imagePromise );
                   else
                    result_txt.text = "Synchronous media promise.";
                    imageLoader.loadFilePromise( imagePromise );
                    showMedia( imageLoader );
              private function captureCanceled( event:Event ):void
                   result_txt.text = "Media capture canceled.";
                   NativeApplication.nativeApplication.exit();
              private function asyncImageLoaded( event:Event ):void
                   result_txt.text = "Media loaded in memory.";
                   showMedia( imageLoader );  
              private function showMedia( loader:Loader ):void
                   this.addChild( loader );
              private function cameraError( error:ErrorEvent ):void
                   result_txt.text = "Error:" + error.text;
                   NativeApplication.nativeApplication.exit();

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • Filling a table in Dreamweaver with different lists based on user decisions

    Hi, I'm very new to Dreamweaver and web design as a whole, so this might seem like a far fetched idea.
    What I want to do is have a situation where a user could click one of 4 buttons, upon which a predefined list would appear, presumably populating a table. As in, there are four lists (A, B, C, and D), and clicking on the respective button would make that respective list appear in a table. I only assume that a table is the appropriate option here. Furthermore, I want the user to be able to click on an element in the appearing list to make an image appear.
    Does anyone have any ideas on how I can do this? Am I on the right track with a table? I might be thinking too much in java...
    Thank you very much.

    I might be thinking too much in java...
    I believe you have confused Java with JavaScript. The two are very different, and usually when talking about web pages and interactive effects on them, it's the latter that would be relevant.
    You could do what you want most easily by building a page with all 4 tables (each containing the desired display effects already applied) explicitly coded (presumably one after the other). Each of these tables should be given a unique ID value (e.g., id="table1", id="table2", etc.) Then you would use CSS to hide all 4 tables using the style "display:none;". Then you would apply a javascript behavior to each of your buttons to change the CSS style on the table from "display:none;" to "display:block". That would make only that table appear. In addition, each of those buttons would have to set the style on the three other tables back to "display:none" to account for any table that may have been previously made visible.
    You can do this style changing using the DW behavior called "Change Property", by changing the display style on the desired table to "block", and on the other tables to "none;".
    This is a lot for a beginning user to absorb, so ask questions as you need answers. I don't think there would be any easier way to do this.

Maybe you are looking for

  • Adobe Reader XI 11.0.09 Update broke image signatures

    I allowed my computer to download and install the latest Adobe Reader XI update, to version 11.0.09. Since doing that, I can no longer sign PDFs. Adobe Reader "forgot" my signature, and prompts me to create a new one, but gives me an error when I try

  • ISE 1.1.2 - strange GUI behaviour? bug?

    Something has changed in GUI in the latest 1.1.2 version cause its not working properly. In the first place I encountered an issue while adding new endpoint group. I added some - then it refused to add new, rename old. I tried to add authorization pr

  • How do i move the Itunes application and all its content (songs) to a "new" user on the same laptop?

    my neice has a bad virus on her laptop that has affected her user profile. I have created a "new" computer Profile and want to move all her relevant documents and Itunes. After i move all the files i will then delete the Bad Computer profile. I am It

  • Cannot scan with my c7200 printer

    I have a photosmart C7200 All in One printer and I am unable to scan a document.  The printer copies, and prints fine - but it will not scan.  I have reloaded the software and did all updates.  Shut the computer down and restarted.  Unplugged printer

  • BTDF - Web services deployment (Orch publishing as WCF service)

    I wanted to include my WCF published Orch deployed  in btdf.proj way. (BTDF 6.0) I followed the instructions by adding :  and set Virtual Directory to True When I deploy it, receiving error as : error : The VDirList ItemGroup is no longer supported.