How to use powershell to create data warehouses Fibre Channel

Hello

Does anyone know how to use powershell to create data warehouses Fibre Channel?

A text file lists the data warehouse with data store names and sizes (GB) as input:
DatastoreName1 10
DatastoreName2 200
DatastoreName3 10

Version5 VMFS file system
Block size of 1 MB

The script should ignore LUN ID 0 as long as it is not a data store, it's a startup logic unit number.

The value in $esxname is correct?

Do you want to see this name when you

Get-VMHost | Select name

Tags: VMware

Similar Questions

  • Best practices for creating data warehouses

    I have 10 iSCSI LUN (all on the same device), each 1.8 size to which I want to introduce ESXi to create data warehouses.  Are there all recommended for how I divide these LUNS to the top, or should I just do a giant data store?  Maybe there are performance factors to consider here?

    If I had to do 10 1.8 data stores to I can see a problem on the road when I need to expand a vmdk but cannot because there is not enough free space on the data store, it would be less of a problem if I had a giant data store at first.

    Thank you.

    First of all, it's one of those type questions "how long is a piece of string.

    It depends of course of the VMDK number you're going to be running, the available storage, the type of storage, IO, storage, type of virtual machines etc. etc. etc.,

    Things to consider are for example, you have a storage that deduplication and storage cost a major factor (and so on)
    Of course. . almost always, a cost reduction is equivalent to a drop in performance.

    In any case, a rule very loose, I have (in most cases), among which I size LUN somewhere between 400 and 750 GB and rarely (if ever) have more than 30 VMDK per LUN.

    Almost always, redirect the request to the following resources:

    first of all, the maximum rates of configuration:
    http://www.VMware.com/PDF/vSphere4/R40/vsp_40_config_max.PDF

    http://www.gabesvirtualworld.com/?p=68
    http://SearchVMware.TechTarget.com/Tip/0, 289483, sid179_gci1350469, 00.html
    http://communities.VMware.com/thread/104211
    http://communities.VMware.com/thread/238199
    http://www.yellow-bricks.com/2009/06/23/vmfslun-size/

    (although Post-andre above covers most of them)

  • How to use a form created on the Capture of a vector

    People, I'm having difficulties to find out how to use a form created on the Capture of a vector. For example, I open Illustrator on my desk and, although the form is saved in a creative library of clouds, I can't find how to open this archive as a vector. I tried everything from capture, but then I can just export the shape as a bitmap image. I'm really lost on this.

    Hello Cristina,

    In Illustrator, simply drag the shape of your library panel in an open document. That's all there is to it.

    Mike

  • How to use CSS to create the horizontal navigation bar in Dreamweaver CS6

    How to use CSS to create the horizontal navigation bar in Dreamweaver CS6

    One of the ways to do this is the following: Editor Tryit v1.9

    You can also use floats to get something in the same direction.

  • The E-mail Message body dynamics PowerShell/PowerCLI with data warehouses

    Hello what follows is related to this e-mail, but I'm stuck at the rounding of numbers

    The E-mail Message body dynamics PowerShell/PowerCLI

    I get an email with the following information:

    Datastore HealthCheck vCenter

    Available data store space
    UsedGB data store                                 Free GB                                 Perc Free
    Name1 273.30078125                         274.25                                    99%
    name2 273.30078125                         274.25                                    99%
    Name3 268.466796875                         274.25                                    99%
    name4 273.30078125                         274.25                                    99%

    Three things I'm stuck: the value UsedGB, woud have first with only two decimal points instead of having 273.30078125, nice to have 273.30. Secondly I do not receive the right percentage. Third: How can I sort the free Perf in the percentage values lowest for the greater? Thanks for your help

    Code:

    $msg. Object = "vCenter Datastore health CompanyvCenter.
    $array0 = @)
    $array1 = @)
    $array2 = @)
    Start-sleep 1
    to connect-VIServer $vcserver
    $array0 += get-Datastore. Select-Object - ExpandProperty name
    $array1 += get-Datastore. Select-Object - ExpandProperty FreeSpaceGB
    $array2 = get-Datastore. Select-Object - ExpandProperty CapacityGB
    $UsedSpace = [math]: tour (($array2 [$i]-$array1[$i]), 2)
    $PercFree = [math]: Round ((100 * $array1 [$i] / $array2[$i]), 0)
    $String0 = ' $PercFree$ %.
    $i = 0
    $j = 0
    # Header
    $msg. Body += "< FONT COLOR = black > Datastore HealthCheck CompanyvCenter < / POLICE > < BR > < BR >".
    # Datastore header
    $msg. Body += "< B > < FONT COLOR = black > Datastore space available < / POLICE > < / b > < BR >".
    $msg. Body += "< B > < COLOR of FONT = black > Datastore < / POLICE > < / b > < B > < FONT COLOR = black > UsedGB < / POLICE > < / b > '."
    < B > < FONT COLOR = black > free GB < / FONT > < / b > '
    "< B > < FONT COLOR = black > free Perc < / POLICE > < /B >.
    # Datasores
    0. ($array0.) Count-1) | %{
    $msg. Body += "< BR > < DO COLOR = Black > ' + $array0 [$_]
    $msg. Body += "< / FONT > < FONT COLOR = Black >" + [math]: tour (($array2 [$_]-$array1[$_]), 2)
    #$msg. Body += ' < / POLICE > < DO COLOR = Black > ' + $array1 [$_]
    $msg. Body += ' < / POLICE > < COLOR of POLICE black = > ' + $array2 [$_] + ' < / POLICE >.
    #$msg. Body += "< / FONT > < FONT COLOR = black >" + [math]: tour (($array2 [$_]-$array1[$_]), 2) + "< station >"
    $msg. {"Body +=" "< ARE COLOR = Black >" + [math]: round ((100 * $array1 [$i] / $array2 [$i]), 0) + "$Percent" + "< / FONT > < BR >"}
    $msg. Attachments.Add ($att1)
    $msg. IsBodyHTML = $true
    $smtp. Send ($MSG)
    $att1. Dispose()
    Disconnect-VIServer $vcserver - confirm: $false

    #Here configure your paraneters

    $SMTPServer = "Exchange".

    $MailSubject = 'vCenter Datastore health CompanyvCenter.

    $Email = "[email protected]".

    function {Set-AlternatingCSSClasses

    (param

    [string] $HTMLFragment,

    [string] $CSSEvenClass,

    [string] $CssOddClass

    )

    [xml] $xml = $HTMLFragment

    $table = $xml. SelectSingleNode ('table')

    $classname = $CSSOddClass

    {foreach ($tr in $table.tr)}

    If ($classname - eq $CSSEvenClass) {$classname = $CssOddClass}

    else {$classname = $CSSEvenClass}

    $class = $xml. CreateAttribute ('class')

    $class.value = $classname

    $tr.attributes.append ($class) | Out-null

    }

    $xml.innerxml | out-string

    }

    Function report-Datastore {}

    $output = @)

    Get-Datastore. % {

    $props = [ordered]@{'Name'=$_. Name;

    "UsedSpace' = [math]: Round (($_.)) CapacityGB - $_. (FreeSpaceGB), 2);

    "PercFree" = [math]: Round ((100 * ($_.))) FreeSpaceGB / $_. {(CapacityGB)), 0)}

    $output += new-Object - TypeName PSCUstomObject-property $props

    }

    $output

    }

    "$style = @".

    "@

    #Connect to Vcenter

    SE connect-VIServer $vcserver

    # Trnasform the object in the HTML

    $html_DS = report-Datastore.

    Sort-Object PercFree |

    ConvertTo-HTML-Fragment |

    Out-string.

    Game-AlternatingCSSClasses - CSSEvenClass 'even' - CssOddClass 'odd '.

    $html_DS ="

    Data warehouses

    $html_DS ".

    $params = @{'head' ='vCenter Datastore health CompanyvCenter$style ';

    ««PreContent =»

    HealthCheck CompanyvCenter data store

    ";

    "PostContent' = $html_DS}

    # Send email

    Send-MailMessage-to $Email - subject $MailSubject-BodyAsHtml (ConvertTo-HTML @params) body - SmtpServer $SMTPServer

    # Disconnect Vcenter

    Disconnect-VIServer $vcserver - confirm: $false

  • Satellite L300: How to use a partition of data for my documents

    Hello

    the Sat L300 160 GB hard drive is partitioned into vista and data.
    I want to save a large number of photos in my documents, which is on the part of vista.
    This example uses only half of the road.

    How to use the data for my documents component? TIA

    Hello

    You can make a folder on the second partition, and can store the necessary files (documents, photos) in specific files.

    Or maybe you want to decrease the Vista partition?

  • vSphere ESXi 5.5: creating data warehouses

    I installed vSphere ESXi 5.5 on a system of self-build and downloaded VIClient her... everything connects very well.

    The system itself is an Intel Core i5 with 8 GB of ram and an Office CT pro Intel network card. Records are:

    • IBM 32 GB SSD (the ESXi OS is installed on this and can be seen fine... of course I guess).
    • a SATA III 1.5 TB drive
    • a disc of 2 TB SATA III

    The system can see the other readers, but when I try to create data stores that I can use, I get the error:

    Call 'HostStorageSystem.ComputeDiskPartitionInfo' to object 'storage system' on ESXi 'xxx.xxx.xxx.xxx' failed.

    Anyone has any idea why this would be and if I can do something? The only things I can think of existing partitions (it certainly is on the smaller disk as it was originally a server system 2008) or some kind of requirement for specific formatting, first.

    James

    This could be a problem with the current data on the disk. I suggest clean you the partition info using the DD explained to the KB VMware: Troubleshooting in the add storage Wizard error: cannot read this disk partition information to see if that solves the problem.

    André

  • remove the new HBA analysis when creating data warehouses?

    I created a script to create multiple data warehouses (100 +), but notices after each one is created, it triggers a new analysis of all the HBAS the LUNS is announced to the.

    It is; This new analysis can hold until all data stores have been created, then just scan once at the end?

    example line of code to the ctreation store:

    < New-store data-server vcenter - VMHost esx.domain.com - name san-lun-01-path naa.xxxxxxxxxxxxxxxxxxxxxxxx - Vmfs - BlockSizeMB 4 >

    Thanks a bunch for all help!

    The new analysis is actually performed by vCenter, you could follow Duncans post for this disable manually or you can add a line to your script that adds the parameter disable the Rescan and then change it back after...

    http://www.yellow-bricks.com/2009/08/04/automatic-rescan-of-your-HBAs/

  • How to use the aggregate with Date function

    Hi all

    I have a Group date is it possible of Max and Min to date.

    I tried like this but its out errored <? MIN (current - group () / CREATION_DATE)? >.

    I also tried this, but it does not work
    <? xdoxslt:minimum (CREATION_DATE)? >

    Is it possible to use the function of aggregation with date values.

    Thanks and greetings
    Srikkanth

    You can use
    Ensure that the "date" is in canonical format

  • Flex 3: how to use the trace print data in the console

    Hello

    I heard that we can use trace to print data on the console in Flex Builder 3. But when I try, it's of no luck.

    Below is a simple program, in which I was out of luck.


    public function callMe (): void
    {
    trace ("AAA");

    }

    < mx:Button id = 'Save' name = 'Save' label = "Save" height = "23" click = "callMe ()" / >

    Here in the porogram above, after you have clicked on the button, I can't see 'AAA' related inside my Flex Builder.

    Any help?

    Thank you.

    Hi Kiran

    Made a breakpoint to the line of trace and debug the application you can find the message u typed in the console... trace works only in debug mode... not in development mode...

    Good day

    Thank you

    RAM

  • How to use NFS to create a data store on a server ESX 4.0?

    I have 2 questions.

    (1) ESX server 4.0 cannot be installed in 64 bit cpu?

    (2) when I create a new storage, the use of the NFS (Network File System)? Because the error message: "" error during the configuration of the host: Please make sure that you have configured the network for VMkernerl ""

    I don't really know what it is. Is there any useful for this document? Thank you!!

    There are a lot of video about it:

    http://www.howtodothings.com/video/121144555/how to AddVMkernelPorttoanESX3.5 + host

    Use an IP address on the same network of your NFS server.

    Then go to storage and add new NFS data store.

    Don't forget that you will need to a NFS with NFSv3 access TCP server and the root.

    André

  • How can I use Powershell to create shortcuts "File Folder" in the section network location?

    Hello

    I am trying to create a powershell batch file that will create a bunch of shortcuts to files to Sharepoint document libraries network.

    To get an idea, the manual method would be to go to computer--> right click--> Add a network location

    From there, I can enter the path of the URL to a Sharepoint document library and it will create a folder shortcut in this library of documents that allow people access to the library without having to go through Sharepoint to access.  So when the user clicks the shortcut, it opens an Explorer window to view and manipulate the files.

    I found the script next, but it will create a shortcut 'Internet' when I put in the path instead of a shortcut of the file folder. So when the user clicks on it, it just opens the web page.  Any help would be great!  Thank you!

    [Environment]: GetFolderPath ("ApplicationData")
    $path = [Environment]: GetFolderPath("ApplicationData") + '\Microsoft\Windows\Network Shortcuts\ACL Documents.lnk.
    $comobject = new-Object - comObject WScript.Shell
    $link = $comobject. CreateShortcut ($path)
    #targetpath can be the UNC path or physical path to .exe
    $link.targetpath = "https://finance.domain.net/ACL/Shared%20Documents".
    $link. IconLocation = '% SystemRoot%\system32\imageres.dll,137 '.
    $link. Save()

    Thank you

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.technet.Microsoft.com/forums/en-us/category/SharePoint2010, sharepoint

  • How to use AppleScript to create a menu shortcut in figures?

    Does anyone know how I can create a pop up menu numbers using AppleScript.

    say application "Numbers".

    activate

    say le first table of the sheet active of the document 1

    the value the format of cell "B3" to popup menu

    end say

    end say

    I can create a pop up menu by using this code, but this is the default list.

    If I have a composed list {'mouse', 'Keyboard', 'Trackpad'}, how would be to create a context menu with these items?

    Thanks in advance.

    Steve Longley

    Hi Steve,.

    I wonder why you feel the need to use (or what you think you would get to use) an AppleScript to create a cell in the context menu.

    With the help of numbers 3, it's a fairly simple process:

    Open a table, or use a column with enough empty cells to accommodate the menu in the menu items.

    Access to the list of items of a line in your column.

    Select all cells that contain entries.

    Open the Inspector to Format, choose the cell, choose the context menu.

    Any selected cell now contains the same menu, each set to the original value in this cell.

    If you want that each menu includes a "white" cell, then:

    Select all the cells (three).

    Modify the beginning with... pop - up 'Start with white '.

    Click on one of the cells, and then click control v next to the cell to display the menu choices. Each cell contains the same menu with the value initially entered in the selected cell, so what a no point, which will produce a cell empty, at the top of the list.

    The menu can be copied and pasted into other places or can be filled in the column or line using the handles to fill yellow appearing in the centres of the edges of the cell when the mouse cursor is brought near. The cell glued/filled setting will be the same as that of the pasted source cell.

    Kind regards

    Barry

  • HOW to use the file/BLOB data temporary - email for multiple users... Please see code

    Dear gurus
    the code below works fine, he sends a good fixation to the first user, but to the 2nd user, it send blank (empty) file.
    What I want, I have read the data from the source and enter the temporary BLOB and use the same data to send several users in the loop.


    create or replace
    PROCEDURE dba_ho.emailattacheulhr is
    / * LOB related operation varriables * /.
    v_src_loc BFILE.
    l_buffer RAW (54);
    l_amount directory: = 54;
    l_pos INTEGER: = 1;
    l_blob BLOB: = EMPTY_BLOB;
    l_blob_len INTEGER.
    v_amount INTEGER.
    / * Related UTL_SMTP varriavles. */
    v_connection_handle UTL_SMTP. CONNECTION;
    v_from_email_address VARCHAR2 (200);
    v_to_email_address VARCHAR2 (200);
    v_cc VARCHAR2 (200);
    v_smtp_host VARCHAR2 (50);
    v_subject VARCHAR2 (500);
    l_message VARCHAR2 (30000);
    l_filename VARCHAR2 (4000);
    CustNo number (8);
    CNAME varchar2 (50);

    cst slider is
    Select a.EMAIL_ADDR, a.CARDHOLDER_NAME
    Cust a
    ORDER BY a.cust_no;

    / * This procedure of send_header is mentioned in the documentation * /.
    PROCEDURE send_header (pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    pi_name | ': ' || pi_header | UTL_TCP. CRLF);
    END;

    BEGIN
    v_src_loc: = BFILENAME ('DIR_MMAIL', 'MAKPROM.pdf');
    v_from_email_address: = '[email protected] ';
    v_cc: = '[email protected] ';
    v_smtp_host: = 'mailhost.mak.com ';
    v_subject: = 'list of Promotion of Mak;
    -l_blob BLOB: = EMPTY_BLOB;
    / * Prepare the LOB of attachment file. */
    DBMS_LOB. OPEN (v_src_loc, DBMS_LOB. LOB_READONLY); -Read the file
    DBMS_LOB. CREATETEMPORARY (l_blob, TRUE); -Create a temporary LOB to store the file.
    v_amount: = DBMS_LOB. GETLENGTH (v_src_loc); -Amount to be stored.
    DBMS_LOB. LOADFROMFILE (l_blob, v_src_loc, v_amount); -A temporary file in LOB loading
    l_blob_len: = DBMS_LOB.getlength (l_blob);


    Begin
    CSE opened;

    loop
    extract the CSE in custno, v_to_email_address, cname;
    When the output cst % notfound;

    l_message: = 'Dear customer ' | UTL_TCP. CRLF;
    l_message: = l_message | CNAME | UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | "Thanks for choosing. Enclosed please find our current list of promotion for your review. '||
    UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | "Sincere friendships. UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | UTL_TCP. CRLF;
    l_message: = l_message | "To Mak' | UTL_TCP. CRLF;
    l_message: = l_message | ' www.mak.com' | UTL_TCP. CRLF;

    / * Associated with coding UTL_SMTP. */
    v_connection_handle: = UTL_SMTP. OPEN_CONNECTION (v_smtp_host, 25);
    UTL_SMTP. HELO (v_connection_handle, v_smtp_host);
    UTL_SMTP. MAIL (v_connection_handle, v_from_email_address);
    UTL_SMTP. RCPT (v_connection_handle, v_to_email_address);
    UTL_SMTP. RCPT (v_connection_handle, v_cc);

    UTL_SMTP. OPEN_DATA (v_connection_handle);
    send_header ("", v_from_email_address) ;--|| ("<>'");
    send_header ("TO", v_to_email_address) ;--|| ("<>'");
    send_header ('CC', v_cc);
    send_header ('Subject', v_subject);

    -MIME header.
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    "MIME-Version: 1.0 ' |" UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Type: multipart/mixed; ' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    "boundary =" ' | "'" Sample.SECBOUND' | '"' ||
    UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);

    -Body of the message
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    '--' || "Sample.SECBOUND" | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Type: text/plain; "|| UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    'charset = US-ASCII' | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, l_message |) UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);

    -Attachment of e-mail
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    '--' || "Sample.SECBOUND" | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Type: application/octet-stream' |
    UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Disposition: attachment; ' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    "filename =" ' | "MakMail.pdf" | '"' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    ' Content-Transfer-Encoding: base64' | UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);
    / * Write the BLOB into pieces * /.
    While l_pos < l_blob_len LOOP
    DBMS_LOB. READ (l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data (v_connection_handle,
    UTL_ENCODE. Base64_encode (l_buffer));
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);
    l_buffer: = NULL;
    l_pos: = l_pos + l_amount;
    END LOOP;
    UTL_SMTP. WRITE_DATA (v_connection_handle, UTL_TCP. CRLF);

    -E-mail nearby
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    '--' || "Sample.SECBOUND" | '--' || UTL_TCP. CRLF);
    UTL_SMTP. WRITE_DATA (v_connection_handle,
    UTL_TCP. CRLF. '.' || UTL_TCP. CRLF);
    UTL_SMTP. CLOSE_DATA (v_connection_handle);
    UTL_SMTP. Quit (v_connection_handle);
    -DBMS_LOB. FREETEMPORARY (l_blob);
    -DBMS_LOB. FileClose (v_src_loc);

    End loop;


    EXCEPTION
    WHILE OTHERS THEN
    UTL_SMTP. Quit (v_connection_handle);
    DBMS_LOB. FREETEMPORARY (l_blob);
    DBMS_LOB. FILECLOSE (V_SRC_LOC);
    dbms_output.put_line (SQLERRM); -try to print the error message.
    END;
    DBMS_LOB. FREETEMPORARY (l_blob);
    DBMS_LOB. FileClose (v_src_loc);
    End;

    -end of code

    Help, please.

    Concerning

    S.Garewal

    This is what happens when you copy a code without understanding.
    Take a look at the code here

    /* Writing the BLOB in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    

    Discover the parameters of DBMS_LOB. READ.
    For the first time it's good reading but your position and the quantity is not initialized when you loop and read again and is not read correctly.

  • How to use Flash to create an interactive diagram

    Hi all.

    I'm an extreme newbie. I would like to create an interactive schema and someone said I should use Flash to do.

    The idea is to create an organization chart (like the ones you can produce in MS Word 2010). Every station will have its own box or button. When a user clicks on the box or button, a Word document or internet link will be activated and take the user to another resource.

    Is it possible to do it in Flash?

    The reason why I chose Flash is because I have a large number of these diagrams and they must go to Moodle. Flash is apparently the only program I should use to import the schema into Moodle.

    Can someone help me please advice on how to do this?

    Thank you

    Sharyn

    By the end of the diagram of the things... Start by creating the chart in Flash.  Everything you intend to use as clickable elements, create them as movieclip symbol so that you will be able to assign instance names their.  You assign the instance names by selecting the object on the stage and entering a unique name in the properties panel where it says .  This name will be used in the code that you will use to create the feature by clicking on/Binder.

    End of things, start simple binding... create a diagram that has one click and get only a point of work.  What you learn can be applied to the larger version.  The same indicated in the first subparagraph shall apply.  Additional info only you need is to create the actual code.  To help that you must decide which version of Actionscript, you are going to use, which may depend on what version of Flash you use.  AS3 is the latest version of Actionscript, and there for the first time in being back with Flash CS3.

    The first thing you need to do to make a useful movieclip down must assign a unique instance name.  If you drag a copy of it on the stage of the library, and while it is still selected, enter you this unique instance for her name in the Panel properties... say you name "btn1.

    In AS3, to make a movieclip to work with the code, you must add a listener of events and event handler for it function.  You may need to add a little (for different events, like reversal, deployment, by clicking on it, but for now let's just say you want to be able to click them to get a web page.)  In the scenario that contains this button, a layer of separate actions that you create in a similar framework where this button exists, numbered, you must add the event listener:

    Btn1.addEventListener (MouseEvent.CLICK, btn1Click);

    The name of the unique function for the treatment, the click of this button is specified at the end of the assignment of event listener, so now you just have to write this function:

    function btn1Click(evt:MouseEvent):void {}

    var url: String = "http://www.awebsite.com/awebpage.html";

    var req:URLRequest = new URLRequest (url);

    navigateToURL (req);

    }

Maybe you are looking for