vSphere sdk api to get the total memory available for booking of virtual machine

What vsphere sdk api should I use to get the total memory available to make reservations for virtual machines?

Here's what I see in the VI client,

Click on hos-> Configuration:

Memory

Physics

Total xx

System xx

VMS 3512,0 MB

Service xx console

Now, when I click on the resource allocation tab I see

3348 MB memory reservation

Memorey reservation used: 0 MB

Unreserved memory: 3348 MB

The question is what value is correct and which are programming API to get all these values (even if it is wrong)?

If you are familiar with the vSphere API, the easiest way is to browse through the documentation of API reference: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/index.html and/or using the CROWD (object browser), once you explore a bit, you will begin to understand where some properties of what you see on the vSphere Client

For the configuration of host memory, take a look at: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.MemoryManagerSystem.ServiceConsoleReservationInfo.html

To the memory of VM host accessible to the general public, take a look at: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ResourceAllocationInfo.html

To get information "Resource allocation", you must get a reference to the list of local resources for your host: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ResourcePool.ResourceUsage.html#reservationUsedForVm

Even if you do not have a "Resource Pool", there is a defect which still exists. This should get your started

If you use the VI of Java, you can take a look at the VI Java Browser: http://www.doublecloud.org/2010/02/22/vijava-browser-a-great-tool-to-recommend/

You must also follow Steve Jin blog (author/creator of connections of vSphere Java open source VI)

=========================================================================

William Lam

VMware vExpert 2009

Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

Twitter: @lamw

repository scripts vGhetto

Introduction to the vMA (tips/tricks)

Getting started with vSphere SDK for Perl

VMware Code Central - Scripts/code samples for developers and administrators

VMware developer community

If you find this information useful, please give points to "correct" or "useful".

Tags: VMware

Similar Questions

  • What SDK / API is more suitable to interact with a web server virtual machines?

    Hi all!

    I am a beginner with virtualization / VMWare and currently have an ESX Server I can get with vSphere. I am trying to perform a certain task and just noticed the different API and SDK Kits available for users of VMWare but do not know which is best for what I'm trying to do.

    Here's what I want to do: for demoing purposes, I would like to automate the creation and management of virtual machines in such a way so that these tasks are linked to a web application. In other words, I want to run a simple web application (ideally with a PHP backend) which allows visitors to create accounts that correspond to the virtual machines. Connect to one account, I would like to start their corresponding VM and hand them a connection. And when they connect, I would like to disable this VM.

    It seems to me that the vSphere Web Services SDK might be the most appropriate resource to manage that kind of thing. Is this fair?

    And - I know that it is not relevant to virtualization, but bear with me if you know the answer - how do I get Java or c#, the language supported by the SDK, to interact with the backend PHP web app? Or would I be better off just working with .NET so that I can use c# from the beginning, or even with Java in the same way?

    Thank you for any recommendations!

    OK, I was playing with it.  I think the example is a very old constructions of SOAP has changed, or modified nusoap.

    I got it to work, but you have to build your soapval a little differently.  This could become tedious if you keep working with it (you'll have to learn that SOAP built).  You can just use Perl based on your project (I've been messing around with Mason/Perl and the SDK).

    The virtual execution code don't mess with expectation that vim25.  For example, does not have the constructor of soapval type = "ServiceInstance"but he defines simply as xsi:string (which is good IMO).  You will have to develop the construction of soap message, which I think you might find get a bit tedious when you start dealing with complex queries later if you project requires it.  You almost create a wsdl-> wrapper of php class for your objects in SOAP or dig in the soap envelope body.

    In any case, this can help you get started...

    
    
    getError();
            if($err) {
                    echo $err . '
    '; } $namespace = "urn:vim25"; unset($soapmsg); $soapmsg[this] = new soapval('_this', false, 'ServiceInstance', false, false, array("type" => "ServiceInstance") ); print(htmlspecialchars($soapmsg[this]->serialize()) . "
    "); $result = $myconnection->call("RetrieveServiceContent", $soapmsg, $namespace); $err = $myconnection->getError(); if($err) { echo $err . '
    '; print_r($result); } else { echo "No Error
    "; print_r($result); echo "

    "; } unset($soapmsg); $soapmsg[this] = new soapval('_this', false, $result[sessionManager], false, false, array("type" => "SessionManager") ); $soapmsg[userName] = "root"; $soapmsg[password] = "VMware1"; print(htmlspecialchars($soapmsg[this]->serialize()) . "
    "); $result = $myconnection->call("Login", $soapmsg, $namespace); $err = $myconnection->getError(); if($err) { echo $err . '
    '; print_r($result); } else { echo "No Error
    "; print_r($result); } ?>

    My outings are not pretty, but you can see his recording with success:

    <_this xsi:type="xsd:string" type="ServiceInstance">ServiceInstance
    No Error
    Array ( [rootFolder] => ha-folder-root [propertyCollector] => ha-property-collector [viewManager] => ViewManager [about] => Array ( [name] => VMware ESX Server [fullName] => VMware ESX Server 3.5.0 build-153875 [vendor] => VMware, Inc. [version] => 3.5.0 [build] => 153875 [localeVersion] => INTL [localeBuild] => 000 [osType] => vmnix-x86 [productLineId] => esx [apiType] => HostAgent [apiVersion] => 2.5u2 ) [setting] => HostAgentSettings [userDirectory] => ha-user-directory [sessionManager] => ha-sessionmgr [authorizationManager] => ha-authmgr [perfManager] => ha-perfmgr [eventManager] => ha-eventmgr [taskManager] => ha-taskmgr [accountManager] => ha-localacctmgr [diagnosticManager] => ha-diagnosticmgr [licenseManager] => ha-license-manager [searchIndex] => ha-searchindex [fileManager] => ha-nfc-file-manager [virtualDiskManager] => ha-vdiskmanager ) 
    
    <_this xsi:type="xsd:string" type="SessionManager">ha-sessionmgr
    No Error
    Array ( [key] => 52494642-84e1-33d1-92f3-95c044257a44 [userName] => root [fullName] => root [loginTime] => 2009-07-14T15:37:21.820431-07:00 [lastActiveTime] => 2009-07-14T15:37:21.820431-07:00 [locale] => en [messageLocale] => en )
    
  • How to get count of vDisks in use by a virtual machine?

    Hello

    I'm poking around CB looking for a measurememt of how many virtual disks are in use by a virtual machine.  I notice that the collector of data store is set to always run (- 1).  I could get this information by counting the number from VM_FILE vmdk files?  It seems that VC datastore entities map to the entity of the hierarchy on the side of CB, or at least they do not in my instance chargeback.

    Thank you

    Bill

    Hi Bill,

    Synchronization of data store sync job up to the sight of the vCenter Server data store. Synchronization job of storage which runs every 30 minutes by default, gets the VMDK files for a virtual machine.

    CB_VM_FILE is the list of files in a virtual machine. Table CB_VM_FILE_INFO gives details of each file with timestamps. You can use these tables to get the list of files used by a virtual machine at any given time.

    Kind regards

    Agnes

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • Is there an API to get the session timeout value

    Hello

    Is there an API to get the value of timeout between vcenter server and vsphere web customer?   I enclose the screenshot that displays this value in the VShpere Web client version 5.1.

    Thank you

    Can you post this question in the forum Web Service SDK? vSphere SDK for management

    There will be more competent people.

  • How can I get the total number of pages printed on my LaserJet 3055?

    I have a nice 1012 LaserJet that is not supported in Windows 7, but there is a solution which is to set up a Vista driver as if the printer is a LaserJet 3055.  It works, even if sometimes I get a printed statement that it does not work, and when that happens I just turn off the printer and turn on again immediately and it is fine.  I would like to know if there is anyway I can get the total number of pages printed at some point, as I could with the LaserJet 1012.

    P.S. This thread was moved from software for Laserjet. -Hp moderator of the Forum

    Please ignore my post on the LaserJet 3055.  With the help of a good soul on another thread of discussion, I was able to install and operate my LaserJet 1012 printer on Windows 7, exactly as it did in XP.  No errors, no slow printing, no problem.  The LaserJet 3055 thing helped initially as a work around, but the message about the bad personality who stopped the printer until you turned off and turned it back was boring.

  • Unable to get the total number of records processed by the processor of trade rules

    Details of the environment

    ======================

    Disqualification Version: 12.1.3.0.0


    I use a business rules processor to implement multiple business rules on one record and I am looking for a summary of the number of records increased and does not have a specific rule.


    To illustrate:
    Suppose there are 2 rules, invalid number in Column1 and valid number on Column2.
    10 records to process and 3 folders don't rule 1 (valid on column1) and 9 entered failure of rule 2 (valid number on Column2).

    In the browser of result of the processor Business, the number of past records and failed is displayed but is not part of the output of the processor itself. In the example above, there will be 1 pass and 9 fail records and given the values of said the total number of records can be derived which is 10.

    This is why the expected output will be:
    Success of failure
    Rule 1:7 (10-3) 3
    Rule 2: 1 (10-1) 9
    Note: The number of records that failed can be derived from the table of the rule ID but I don't know how to get the total number of records in order to calculate the number of records that a given rule.

    I tried to publish the County of acceptance and rejection in the browser of result of the processor Business in an intermediate table and ask the same intermediate table to get the pass and fail values but Disqualification does not allow to write and read the same intermediary object in a single process. What is the best way to get the number of records total handled by the processor business rules? This kind of attributes (that do not exist only in the browser of result) can be included in the output of the processor in the next version of the Disqualification?

    In addition, the intermediate table contains only 1 sheet with pass and failure values while the exceptions which have individual failure on each rule contains 12 Archives. What would be the best approach to merge a single record into multiple records according to the example below?

    Staging table
    Success of failure
    1 9

    Exception table
    Single ID ID rule
    Rule 1 Record1
    Rule 1 Record2
    Rule 1 record Record3
    Rule 2 Record1

    Exception table with: staging Table data merge
    Rule ID ID Unique Pass Fail Total
    Rule 1 1 9 10 Record1
    Rule 1 1 9 10 Record2
    Recording rule 1 Record3 1 9 10
    Record1 rule 2 1 9 10

    Please notify.

    Hi Jason,

    The best way to explain how to do this is with an example project (DXI). I'll send you one in offline mode.

    -Mike

  • Photoshop moved from the old to the new computer. I have no serial and cd. I get the message 'memory couldnot' restarted for the activtion but no change please helpo

    Photoshop has moved from old new machine of the toe. Have the cd and serial No. Get the message "memory could not be allocated for activation. Restarted but no change please help

    Hello

    CS2 and earlier versions are more activated because the activation servers are gone.  You must download the CS2 buildreleased for customers who still use the old software or buy a version of Photoshop.

    See https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml

    ^ Ani

  • How to get the total reserved cpu or total cpu capacity available with PowerCLI?

    I am able to use the cmdlet Get-Host for a total capcity of CPU and the current CPU usage.  However, I am not able to get the total of reserved CPU.  I also tried another cmdlet like Get-VMHostAdvancedConfiguration, but which does not include either total reserved cpu info.  Any suggestion?

    OK, try this

     foreach($esx in Get-VMHost){
       $parent = Get-View $esx.ExtensionData.Parent   $rp = Get-View $parent.ResourcePool   Select -InputObject $esx -Property Name,      @{N="Total CPU Capacity MHz";E={$rp.Runtime.Cpu.MaxUsage}},      @{N="Reserved CPU Capacity MHz";E={$rp.Runtime.Cpu.ReservationUsed}},      @{N="Available CPU Capacity MHz";E={$rp.Runtime.Cpu.MaxUsage - $rp.Runtime.Cpu.ReservationUsed}}
    }
    
  • How to get the total runtime of a file of tkprof

    Hello

    I have a file tkprof. How can I get the total execution time. Through the file I guess than the sum of "Total expected" would give the total time in the section "elapsed time are waiting on the following events:

    . Sample tkprof is given below.
    SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
    
    SELECT POSTED_FLAG 
    FROM
     AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM 
      AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND 
      NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND 
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR 
      (NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND 
      APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING'))) 
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute    442      0.08       0.13          0          0          0           0
    Fetch      963      0.22       4.72        350      16955          0         521
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total     1406      0.31       4.85        350      16955          0         521
    
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 173     (recursive depth: 1)
    Number of plan statistics captured: 1
    
    Rows (1st) Rows (avg) Rows (max)  Row Source Operation
    ---------- ---------- ----------  ---------------------------------------------------
             1          1          1  UNION-ALL  (cr=38 pr=3 pw=0 time=139 us)
             1          1          1   TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
             1          1          1    INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
             0          0          0   NESTED LOOPS  (cr=33 pr=3 pw=0 time=20897 us)
             0          0          0    NESTED LOOPS  (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
             1          1          1     TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
             0          0          0     INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
             0          0          0    TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
    
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       350        0.15          4.33
      Disk file operations I/O                        3        0.00          0.00
      latch: shared pool                              1        0.17          0.17
    ********************************************************************************

    user13019948 wrote:
    Hello

    I have a tkprof file. How can I get the total execution time.
    call count cpu elapsed disk query current rows
    ------- ------ -------- ---------- ---------- ---------- ---------- ----------
    total 1406 0.31 4.85 350 16955 0 521

    TOTAL ELAPSED TIME is 4.85 seconds from line above

  • to get the total value as application even if item_number is added

    Hi all

    I have the following query with me
    SELECT   SUM (  (NVL (f.calc_cement_sk, f.calc_amount) * NVL (f.item_price, 0)
                    )
                  - (  NVL (f.calc_cement_sk, f.calc_amount)
                     * NVL (f.item_price, 0)
                     * (NVL (f.dis_per, 0) / 100)
                    )
                 ) total,
             h.slurry_type, h.stage_id, h.slurry_vol_actual
        FROM xxnp_opn_joblog_est_002 f,
             xxnp_opn_joblog_001 j,
             xxnp_opn_joblog_slurry_003 h,
             qp_secu_list_headers_v qw
       WHERE j.opn_job_desc = 'K/D/KD43/UG187/1338/D/0211/1'
         AND f.opn_joblog_001_id = j.opn_joblog_001_id
         AND j.contract = qw.NAME
         AND h.opn_joblog_001_id = j.opn_joblog_001_id
         AND h.opn_joblog_007_id = f.opn_joblog_007_id
         AND h.opn_joblog_006_id = f.opn_joblog_006_id
    GROUP BY h.stage_id, h.slurry_type, h.slurry_vol_actual
    the result I get is


    SLURRY_TYPE TOTAL STAGE_ID SLURRY_VOL_ACTUAL
    9,562.59 lead 1 490
    2,184.84 1 80 tail
    1,091.73 reload 1 56
    3,431.64 tail 2 100
    when i add f.item_number to the above query as shown below
    
    SELECT   SUM (  (NVL (f.calc_cement_sk, f.calc_amount) * NVL (f.item_price, 0)
                    )
                  - (  NVL (f.calc_cement_sk, f.calc_amount)
                     * NVL (f.item_price, 0)
                     * (NVL (f.dis_per, 0) / 100)
                    )
                 ) total,f.item_number,
             h.slurry_type, h.stage_id, h.slurry_vol_actual
        FROM xxnp_opn_joblog_est_002 f,
             xxnp_opn_joblog_001 j,
             xxnp_opn_joblog_slurry_003 h,
             qp_secu_list_headers_v qw
       WHERE j.opn_job_desc = 'K/D/KD43/UG187/1338/D/0211/1'
         AND f.opn_joblog_001_id = j.opn_joblog_001_id
         AND j.contract = qw.NAME
         AND h.opn_joblog_001_id = j.opn_joblog_001_id
         AND h.opn_joblog_007_id = f.opn_joblog_007_id
         AND h.opn_joblog_006_id = f.opn_joblog_006_id
    GROUP BY h.stage_id, h.slurry_type, h.slurry_vol_actual,f.item_number
    
    
    the field total gets split and gives value corresponding to each item_number
    
    i am giving the ouptut for stage 1
    ITEM_NUMBER TOTAL SLURRY_TYPE STAGE_ID SLURRY_VOL_ACTUAL
    5011.5 1020101001 lead 1 490
    1308.93 1020102002 lead 1 490
    127.215 1020111001 lead 1 490
    138.92 1020112001 lead 1 490
    686 1020113001 lead 1 490
    550,5 1020113002 lead 1 490
    1739.52 1020222010 lead 1 490
    1517.1 1020101001 1 80 tail
    379.5 1020102003 1 80 tail
    83.2 1020103001 1 80 tail
    166.53 1020104001 1 80 tail
    38.511 1020111001 1 80 tail
    1064,7 1020101001 reload 1 56
    27,027 1020111001 reload 1 56


    If we add up the values in the total field to the head, tail, charge that we get 9562.59,2184.84,1091.73 respectively

    kindly Guide
    to get the total value as application even if item_number is added
    thanking in advance

    Hello

    You can do this by enclosing it with another selection

    select
    total, slurry_type, stage_id, slurry_vol_actual,
    sum(total) over (partition by slurry_type, stage_id, slurry_vol_actual) from (
    your actual select
    )
    

    concerning

  • How can I get the total amount of keyframes in the timeline

    I'm building a very simple, single timeline based resource. I want to be able to count the number of pages and display the page number, I'm sure. The resource uses sym.stop (); on the timeline, and the sym.play(1000) () attached to a button. The idea is that I have 2 global variables. 1 that updates the progress of keyframes 'pageNum' and one that calculates the total number of pages (keyframes) on the timeline 'totalPages '.

    "pageNum" is very good, simply a case of incrementing the timeline progress, as I have, but I'm stuck on getting the total number of keyframes. Of course, in the code pane I can look through and count the number of functions "Trigger XXXX @ ms", but can I get the code to do it for me?

    See you soon


    Sean

    Hey,.

    It is ok. I thought about it, although it is very ugly.

    totalPages = 0;

    convert the file edgeActions.js to a string

    $.get ('myAnimateProject_edgeActions.js', {function (data)})

    var data = dataAsStr;

    Look in the 'Editing by default' file as this defines where the triggers are

    var match = dataAsStr.match (/ default Timeline/g);

    get the length of the returned array

    totalPages = match.length;

    });

    If there is an easier way, I'd love to hear, or if people think this way could throw up problems. In the meantime, this will make numbering pages much easier and works for this project

    Thank you for your ideas resdeign.

  • How to get the Total number of nodes XML?

    Hi all

    I have a Flash program that I do in Actionscript 3, using CS6.

    I use the XMLSocket class to read XML data. I'll write some examples of XML that is sent to the Flash

    program below...

    I know with this line here (below) I can access the 4th 'element or node' of XML data.

    To access the XML nodes/elements:

    * I created a Variable XML, called xml, and "e.data" contains ALL the XML data
    var XML = XML (e.data);

    Access to the 4th item of the data:

    . xml MESSAGE[3].@VAR;          -> 'loggedOutUsers '.

    . xml MESSAGE[3].@TEXT;         --->     "15"

    EXAMPLE OF XML DATA:


    < FRAME >

    0 < VAR MESSAGE = "screen2Display" TEXT = "FRAME_1" / >

    1 < VAR MESSAGE = "numUsers" TEXT = "27" / >

    2 < VAR MESSAGE = "loggedInUsers" TEXT = "12" / >

    3 < VAR MESSAGE = "loggedOutUsers" TEXT = "15" / >

    4 < VAR MESSAGE = "admins" TEXT = "2" / >

    < / FRAMEWORK >

    I'm new to Flash and Actionscript but I am very familiar with other languages and how paintings and other work, and I know for

    example, in a Shell Script to get the total number of items in an array called 'myArray' I wanted to write something like

    This-> ${#myArray [@]}. And since the data processing XML looks a lot like a table I thought that there was perhaps

    a way to access the total number of "nodes or elements" in the XML data...?

    Any thoughts would be much appreciated!

    Thanks in advance,

    Matt

    even if you don't need to run to the loop to know the length

    var levelList: XMLList = xml.children ();

    levelList.length (); This will give you the length of all children in your case of length MESSAGE of nodes;

    Pls click useful if my answer is helpful.

    Thank you

    Bala

  • Is it possible to get the total value of column and set to another area

    Hello

    Is it possible to get the total value of a particular column, and assign this value to another discipline?

    How to do this?

    Thanks in advance,
    SAN

    Hi SAM,

    If your controller class throw this message it means that it works very well. Follow these steps, I hope this will solve your problem.

    1 check the following

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAViewObject ratvo = (OAViewObject) am.findViewObject("*CompetenceElementsVO*"); It should be the name of the instance instead of the name Physics vo vo.
    OAViewObject valuevo = (OAViewObject) am.findViewObject("*PerRatingLevelsVO*");

    2. extend this controller class that is associated with this region.

    I hope it will work now.

    Haroon.

  • How to get the total number of frames

    Hai...

    I need this code...

    I have n number of files (swf) flash. Each file contains a number of images. I need to get the totalframes of this flash in Actionscript 3.0 files.

    Please help me through Actionscript.

    You can use a movieclip totalFrames property to get the total number of frames for a timeline.

Maybe you are looking for