How to get the names of the external images sorted by number to use a loading in Flash

Hello.!

I have a question about loading external images in Flash, but without putting their names in the table.

I think it is the way to go. But I didn't think about her again.

I use the loader to load the image. And I see a way to put lots of pictures on the stage using the loop function but it is doing the photos appear at the same time. ! :[

Here is my case:

I've renamed all my photos in the numbers from 1 to 227 .jpeg

(Yes, they are a lot of pictures, that's why I don't want all the names of types in the Array();)

And I have 2 buttons to click: previous and next to see pictures.

Simple thing I want, that's when click on the 'next' button, a photo calling + 1 that the current shown in the photo will appear, when click on the "back" button, then the same thing but with-1 for the name.

Understand what I'm asking?  ;} If you need more information that tell me.

Thank you

If you don'; t know exactly what to type, then type in something and then ask questions about it if it does not - understand what you typed in your ad.  Otherwise your messages appear as you ask people to make your code for you, and it's not what people are here for.

Tags: Adobe Animate

Similar Questions

  • How to get the external hard drive to connect to VMWare Player?

    Hi all

    I currently have VMWare Player 3.1.4 and that you have a VM installed on an external SSD that works very well.

    The guest operating system is XP and host operating system is OpenSuSE 11.4.

    The problem is that I have another external hard drive that I want to connect to the virtual machine to store files and other (WD Scorpio Black 320 GB).

    So what I tried was when I opend VMWare Player, I went to add a new SCSI device, found the hard drive, I wanted to use and created it. But when I go in-> "VM" > "Removable devices" > "generic SCSI (SCSI 0:1) ' > 'Connect'-> I get the below error message.

    Device virtual scsi0:1: could not open the device host "/ dev/sdc": not sufficient permissions to access the file. Please make sure that the virtual device is configured to use a Linux generic SCSI device (/ dev/sg *), and that the physical device works normally on the host computer.
    Cannot connect the device virtual scsi0:1.

    Does anyone know if I'm doing something wrong? What are the permissions are they talking about?

    Thanks in advance,

    Matt

    Are back at the office and tested on a variety of Linux Ubuntu and was able to add a second drive HARD/dev/sdb as a physical and even disc was also able to boot from it even if it needs to be dismantled first and I had to start VMware Player using sudo, because I was using a standard account both add the disk and run the virtual machine with the added disk.

  • How to get the contact's mobile phone number?

    I know there is StringArray for data http://www.blackberry.com/developers/docs/4.6.0api/index.html telphone and I see someone [contact.getString (Contact.TEL, 0)] to obtain the HOUSE telphone number. From my point of view, it should be Contact.Tel [N] above. So my question is how do I get the mobile phone number? Can I use contact.getString (xxx)? Thanks for any response.

    VR;

    getString (Contact.TEL, Contact.ATTR_MOBILE)

    instead of 0 as the 2nd argument

  • How to get the IOM Admin roles for a user using API

    Hi all

    I'm trying to get the roles of administrator to a user by using the API. I'm using the code below, but it is returning null, even if the user has two Admin roles...

    private void getUserAdminRoles (String userID)
    {
    Ars AdminRoleService = oimClient.getService (AdminRoleService.class);
    The list < customer > a = ars.getAdminRolesForUser (userID, null);
    System.out.println ("*" + a.size ());
    }

    Thanks in advance

    Ars AdminRoleService = oimClient.getService (AdminRoleService.class);
    List = ars.getAdminRolesForUser (userID, null);
    System.out.println ("*" + a.size ());

    Go to take instead of the user name.

  • How to get the background image to fill the browser and stay fixed in IE and Firefox?

    Basically what it says in the title. I came very close to achieve, but something comes to Moor in the html and css code...

    First of all, I use the latest version of Firefox and IE8 to test this situation.

    I used 2 sources of information to get this done: 1) http://css-tricks.com/perfect-full-page-background-image/ and ) 2 http://stackoverflow.com/questions/8958697/css3-background-size-cover-doesn ' t-make-image-co-ver-vertical


    In 1 case , the example of the called page CSS-Only Technique #1 gives the code that works almost perfectly for me, except that obviously I need to a background image, but the CSS provided ago obviously just for an image has fallen in the body of a page without taking account of any other content that may already be there. "The html code that I put on the page is simply < img class ="bg"src ="... / pictures/background_image.jpg "> "

    Of course, I used the CSS code in the example, less the last piece which is "@media screen" etc., which seems irrelevant to me. Of course by replacing the values according to the picture on my page.

    So what happened was that it worked almost as expected in both browsers (which means the image filled both browsers first as it should and also remained fixed when I zoomed in, inside or outside, in each case), except that the picture went on top of the current content that I already there precisely because there isn't a background in this 'technical '. (A note on the side of curious, is that the image didn't turn down content, I expected under normal circumstances, but he went right on top of it so she she hidden (like the z-index).)

    One thing that bothers me in this regard 'technical' is that if you click on view the demo just below the code provided, you will see on the example of work page (bottom of the forest), the image clearly works as a backdrop and the content is fortunately located on top! So I don't know if the person who provides the example was trying to deceive people or what! Or he got lazy and showed another page which did not use the exact code, he has provided. No matter.

    In any case this leaves me with only half-completed work, because I still need a background image that functions as the 'normal image' code provided.

    In 2 cases and on this page, the first example provided gives the CSS for clutter - namely the code in the html {...} part and shows also the same "normal image" code as shown in box 1. In this case however, that the person provide a suggestion, the html and the css is not really properly more Moor some css and html seems a little redundant. So this time, when I used the part "html" in the CSS code (i.e. just the bit that was no longer relevant), I had two different behaviors in each browser and neither of which was quite what I'm looking for. In IE8, initially the page seems well (background fills the page and the content is on top) but when I Zoom in or out the background also zooms in or out accordingly so is NOT fixed. In Firefox, the background image stays fixed, but because the image is initially not the height of the browser I guess the code it extends down (keeping the proportions - so the image enlarges essentially) to fill it. The fast way to get around it is probably add white space at the bottom of the image just to give it sufficient height is not extensible / resize automatically. But it would be nice to know at least how to work around this problem in the code. Overall, I would say that the result in Firefox is closest to the desired solution, but of course it is not arranged things with IE8.

    Apologies for the long description, but which should at least provide much info for anyone who might have a possible solution for me. Essentially what would be great is if someone could advise me how to take the code of case 1 and apply it to a piece of 'background' coding as the type that is contained in html {...} in Case 2 . Like I said, it is almost there, but I just can't operate atm after trying to combine different bits of code this way and that... Also, if anyone has another version of html-css that works well to achieve then please by all means of let me know! V thanks a lot in advance!

    It works in modern browsers of the CSS3 support.  But not pre - IE9.

    http://ALT-Web.com/test/resizable-BG.shtml

    Nancy O.

  • How to get the external Bitmap of URL object

    Hi all!

    I'm a developer starting with components of BlackBerry, I try to get a Bitmap of the outer object
    URL, but my getImage method does not work correctly. I think that the problem lies in the getImage method. just at the moment where I try to
    create form of Bitmap bytes. Note: J2me with the Image object, that it works!

    could someone help me please?

    Sorry for my bad English & thank you for helping me!

    Code:

    SerializableAttribute public class MainForm extends form {}

    private String url = "http://user-xxxx/json.js";
    private String [] imageURLs = new String [5];

    public MainForm() {}

    try {}
    getJSON (url);
    } catch (IOException e) {}
    e.printStackTrace ();
    }

    try {}
    Add (GetImage(this.imageURLs[0]));
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    Public Sub getJSON (String url) throws IOException {}
    StringBuffer sb = new StringBuffer();
    InputStream is = null;
    HttpConnection hc = null;
    try {}
    long bytesLength = 0;
    int ch = 0;
    HC = (HttpConnection), Connector.open (url);
    is = hc.openInputStream ();
    bytesLength = hc.getLength ();
    If (bytesLength! = - 1) {}
    for (int i = 0; i)< byteslength;="" i++)="">
    If ((ch = is.read (())! = - 1) {}
    SB. Append ((Char) ch);
    }
    }
    } else {}
    While ((ch = is.read (())! = - 1) {}
    bytesLength = is.available ();
    SB. Append ((Char) ch);
    }
    }
    parseJSON (sb.toString ());
    } {Finally
    is. Close();
    HC. Close();
    }
    }

    {} public void parseJSON (String sb)
    try {}
    JSONObject jo = new JSONObject (sb);
    If (jo! = null) {}
    JSONObject channel = jo.getJSONObject ("channel");
    If (channel! = null) {}
    JSONArray points = channel.getJSONArray("item");
    If (items! = null) {}
    for (int i = 0; i)< items.length();="" i++)="">
    JSONObject point = items.getJSONObject (i);
    this.imageURLs [i] = item.getString ("image");
    }
    }
    }
    }
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    I think that the problem lies in this method.

    public BitmapField getImage (String url) throws Exception {}
    InputStream inputStream = Connector.openInputStream (url) (InputStream);
    Bitmap image = null;
    BitmapField bf = null;
    try {}
    ByteArrayOutputStream Baos = new ByteArrayOutputStream();
    int ch;
    While ((ch = inputStream.read ())! = - 1) {}
    Baos.Write (ch);
    }
    Byte [] imageData = baos.toByteArray ();
    Image = Bitmap.createBitmapFromBytes (imageData, 0, imageData.length, 1);
    BF = new BitmapField (image);
    } {Finally
    If (inputStream! = null)
    inputStream.close ();
    }
    return (bf == null? null: bf);
    }

    public String [] getImageURLs() {}
    Return this.imageURLs;
    }

    }

    Finally my fatal mistake was in archive JSON, I change the URL of the images of http://localhost/image.jpg to
    http://user-xxx/image.jpg (MDS - CS available in http://localhost URL: 8080 /), and now it works!

    Ted and arkadyz, your suggestions have been very helpful for me, thank you very much!

    Final code:

    Class MainMIDlet

    Import net.rim.device.api.ui.UiApplication;

    SerializableAttribute public class MainMIDlet extends UiApplication {}

    public MainMIDlet() {}
    MainForm mf = new MainForm();
    pushScreen (mf);
    }

    Public Shared Sub main (String [] args) {}
    MainMIDlet mm = new MainMIDlet();
    mm.enterEventDispatcher ();
    }
    }

    Class MainForm

    import java.io.ByteArrayOutputStream.
    import java.io.IOException;
    import java.io.InputStream;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.HttpConnection;

    Import org.json.me.JSONArray;
    Import org.json.me.JSONObject;

    Import net.rim.device.api.system.EncodedImage;
    Import net.rim.device.api.ui.component.BitmapField;
    Import net.rim.device.api.ui.component.LabelField;
    Import net.rim.device.api.ui.container.MainScreen;

    SerializableAttribute public class MainForm extends form {}

    private String url = "http://user-xxx/json.js";
    private String [] jsonTitles = new String [5];
    private String [] jsonImages = new String [5];
    private LabelField lf = null;
    private BitmapField bf = null;

    public MainForm() {}

    try {}
    getJSON (url);
    } catch (IOException e) {}
    e.printStackTrace ();
    }

    LF = getLabelField(this.jsonTitles[0]);
    Add (LF);

    try {}
    BF = getBitmapField(this.jsonImages[0]);
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Add (BF);

    }

    Public Sub getJSON (String url) throws IOException {}
    StringBuffer sb = new StringBuffer();
    InputStream is = null;
    HttpConnection hc = null;
    try {}
    long bytesLength = 0;
    int ch = 0;
    HC = (HttpConnection), Connector.open (url);
    is = hc.openInputStream ();
    bytesLength = hc.getLength ();
    If (bytesLength! = - 1) {}
    for (int i = 0; i)< byteslength;="" i++)="">
    If ((ch = is.read (())! = - 1) {}
    SB. Append ((Char) ch);
    }
    }
    } else {}
    While ((ch = is.read (())! = - 1) {}
    bytesLength = is.available ();
    SB. Append ((Char) ch);
    }
    }
    parseJSON (sb.toString ());
    } {Finally
    is. Close();
    HC. Close();
    }
    }

    {} public void parseJSON (String sb)
    try {}
    JSONObject jo = new JSONObject (sb);
    If (jo! = null) {}
    JSONObject channel = jo.getJSONObject ("channel");
    If (channel! = null) {}
    JSONArray points = channel.getJSONArray("item");
    If (items! = null) {}
    for (int i = 0; i)< items.length();="" i++)="">
    JSONObject point = items.getJSONObject (i);
    this.jsonTitles [i] = item.getString ("title");
    this.jsonImages [i] = item.getString ("image");
    }
    }
    }
    }
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    public getLabelField (String title) {} LabelField
    LabelField lf = new LabelField (title);
    return of lf;
    }

    public BitmapField getBitmapField (String url) throws IOException {}
    InputStream is = Connector.openInputStream (url) (InputStream);
    BitmapField bf = null;
    try {}
    ByteArrayOutputStream Baos = new ByteArrayOutputStream();
    int ch;
    While ((ch = is.read (())! = - 1) {}
    Baos.Write (ch);
    }
    imageData Byte = baos.toByteArray ();
    BF = new BitmapField (EncodedImage.createEncodedImage (imageData, 0,))
    (imageData.length) .getBitmap ());
    } {Finally
    If (is! = null) {}
    is. Close();
    }
    }
    return (bf == null? null: bf);
    }

    }

  • How to get the external file linking in as3

    I want to open files outside different format (*.mp4, *.wmv, *.pdf, * .ppt,.doc etc.) on the click event, I try that for *.wmv but I received an error.

    --------------------------------------------------------------------------------

    package {}

    to import flash.display.SimpleButton;

    import flash.events.MouseEvent;

    import flash.net.navigateToURL;

    import flash.net.URLRequest;

    public class button click extends SimpleButton {}

    public void clickbutton() {}

    this.addEventListener (MouseEvent.CLICK, clickF);

    }

    private void clickF(e:MouseEvent):void {}

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    videoPlayer.attachNetStream (ns);

    var listener: Object = new Object();

    listener.onMetaData = function(evt:Object):void {};

    NS.client = listener;

    NS. Play ("video_test.wmv");

    }

    }

    }

    --------------------------------------------------------------------------------

    Please tell me the correct code

    you don't need the swf file.

    you create a projection file (.exe).

    If you know users will have default settings to open the types of files and programs, you can use fscommand to open them (as long as they files are located in a subdirectory of fscommand).

    you will need to use an executable support, too: http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy

  • How to get the value of prompt financial reports and use it as a header

    Hi gurus of the Oracle,.

    I have Hyperion Financial Reporting 11.1.1.3. I've created a report.

    I have the Products dimension on rows. And I also fast for the products.

    Let's say there are 3 products, product A, B and C, each has its own point of level 0 (for example, A1, A2, B1, C1)

    Currently in my situation, user will be prompted to select a list of products, and then the report will only show the level 0 of the product selected by the user. For example, the user select product has, then the report (or grid) displays A1 and A2 on the ranks. The user select product B, B1 will be displayed.

    My question is, I want to create a dynamic header report, so how can I get this prompt value and use it as a report header? For example: sale of product when the user choose the product, or sales of product B when the user choose produced B.


    Thanks a lot for your answer.

    Hello

    Here's the way to do this:
    1 insert a line (can be in line 1) in the report that produced as 'ask the user.
    2 always mark this as hidden line
    3. the user other lines like Level0 of product online 1
    4 use MEMBERALIAS in the header to use the product as dimension & row as row1

    It could be useful!

    Published by: user8628169 on June 22, 2011 10:53

  • View object: how to get the value of a 'connection variable' by using expression groovy?

    Hi all

    I have a view object, and I set a variable binding for the VO. Then, I want to set the default value of an attribute of the VO to the variable binding.
    I try to set the Type of object to the Expression attribute value and the value in the name of the connection variable. But it does not work.

    My question is how to use a bind variable in groovy script?

    Thanks in advance and sorry for my bad English.
    Samson Fu

    Hi Samson,.

    Try this:
    viewObject.getNamedWhereClauseParam ("Your_Bind_Variable_Name")

    Note: Keep the viewObject is, don't replace with your name viewobject

    Jean Lou

  • How to get the program to accept a number of product keys?

    Does not accept key number. Just a couple of months ago, I bought a new computer with Windows 7 home installed.  A couple of weeks, I installed Windows 7 Professional.  When attempting to open the photos by e-mail, he asked my 25 digit product key number.  I type in and it will not accept it.  I tried to call problem and tried home 20-digit and professional window version 25-digit.  It does NOT recognize a number.  WHY? and how to fix.

    Hello
     
    Could you please answer these money questions?
     
    one) tell us the exact error message?
    (b) don't you activate the Windows operating system?
    (c) not this message only occurs when opening images from e-mail?
    (d) you tell the office suit error message?
     
    You can also visit the link of the article of Microsoft that will guide you on how to ask questions below.
     
     
    As a solution, I suggest you follow this forum link, which talks about the same issue below.
     
     
    Thank you, and in what concerns:
    I. Suuresh Kumar-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.
  • How to get the best image quality when you insert PDF into Word?

    I am able to insert a PDF file as an object in Word, but the image quality is a bit fuzzy.  Is this what I can adjust in order to improve the clarity of the image in Word?

    You can try to extract the images with the help of extract all Images or select only the parameters of the screen recording you get when you save in a DOC, but I think that the general result is that the image recorded with the same resolution as shown in the PDF document. It may be that you simply adjust your screen in WORD. You can look at the picture in WORD and see if it is used at 100% or some other resolution. Bitmaps are not very forgiving if the resolution is changed to the document and not as something other than the small number of fractions of resolution appears change.

  • How to make the color of ScrollBar that are created using the css code is displayed in Windows 8

    I wish I could understand how to get the color of ScrollBar that are created using the css code appears on my web design theme games. But I can't see them in Windows 8. Is there something that I need to enable to see colorful scroll bars? I'm used to be able to see them on my Windows XP computer. It is important for me because a lot of people like models with colorful scroll bars.

    Open the Tools menu and turn on "Compatibility view" to do.  Note that this works only in the desktop version of Microsoft Internet Explorer.

  • How to get the name of sbRIO programmatically

    How to get the 'name' and 'Comment' by sbRIO I write to sbRIO-9602 Max in the box of Identification (model, serial number, MAC address, name)?

    Use RT Information.vi of target is located under the range of public services under LabVIEW Realtime.

    Christian

  • How to get the name of the bluetooth device and the name of the bluetooth device address device class?

    Hi all

    Can I know how to get the bluetooth device name and the name of the bluetooth device address device class?

    Example:-if my bluetooth device address is :-98:EB:CD:01:1F::90 then how do I get my bluetooth device name?

    I hope you understand my problem. Let me know as soon as possible.

    :

    Thanks for the reply.

  • How to get the number and the name of the contacts selector

    Hi all

    I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.

    There are attributes that I can put like contactId.value () to retrieve or there is another way?

    Thanks in advance.

    ImageButton{
                        defaultImageSource: "asset:///images/bluebutton.png"
                        onClicked: {
                            contactPicker.open();
                        }
                        attachedObjects: [
                            ContactPicker {
                                id: contactPicker
                                onContactSelected: {
                                    result.text = "You chose contact: " + contactId;
                                }
                            }
                        ]
    
                    }
    
                    Label {
                        id: result
                        text: "You chose contact: "
                    }
    

    Hello

    You can get the contact name and phone number as this,

    ImageButton{
                        defaultImageSource: "asset:///images/bluebutton.png"
                        onClicked: {
                            contactPicker.open();
                        }
                        attachedObjects: [
                            ContactPicker {
                                id: contactPicker
                                onContactSelected: {
                                    result.text = "You chose contact: " + contactId;
    // call a cpp method to get the details
    
    app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
    

    the CPP code:

    void ContactDetails(ContactId id)
    {
    Contact contact_info = m_contactService->contactDetails(id);
    
        QString firstName = contact_info.firstName();
        QString lastname = contact_info.lastName();
            QList phoneno_list = contact_info.phoneNumbers();
    
        QStringList no_s;
    
        foreach(ContactAttribute attr, phoneno_list)
        {
            no_s << attr.value();
        }
    }
    

    You can get details like this.

    Kind regards

    Naresh Kodumuri.

Maybe you are looking for