Please help convert from as2

I never learnt as2 and I just purchased a fla file from a stock sight thinking it was in as3 and it isn't!!! doh
can anyone help me convert this from as2 to as3:
stop();
import flash.filters.*;
//--------------variables to change--------------------------//
//set this value to true if you want sparkles to be created from the mouse
//and false if you want automatic sparkles
var createSparklesFromAnyMouse:Boolean = true;
//set to true if you want sparkles to stop being created when the mouse
//is still
var createSparklesFromClick:Boolean = false;
//modify the size of the sparkles
var maxSparkSize:Number = 18;
var minSparkSize:Number = 8;
//increase this value to shorten the life, 0 to live forever
var fadeSpeed:Number = 10;
//the speed the sparkles fall, higher number quicker the speed
var speed:Number = 1;
//choose whether you want the sparkle colour to be random
var randomColour:Boolean = true;
//if you don't want a random colour pick a default colour
defaultColour = 0xFFffFF;
//do not modify code below here...
var sparkle:Number = 0;
var mousePosX:Number;
var mousePosY:Number;
var whichBat:Number;
var count:Number = 0;
this.createEmptyMovieClip("empty",this.getNextHighestDepth());
howToCreate();
function howToCreate() {
          if (createSparklesFromClick == true) {
                    trace("create sparkles every time I click the mouse");
                    //create sparkles from mouse clicks
                    activateClick();
          } else {
                    if (createSparklesFromAnyMouse == true) {
                              trace("create sparkles from the mouse");
                              //create sparkles from the mouse
                              this.onEnterFrame = function() {
                                        createSparkle();
                                        createSparkle();
                    } else {
                              trace("create sparkles every time I move the mouse");
                              //create sparkles ONLY when the mouseMoves
                              createWhenMoving();
function createWhenMoving() {
          this.onEnterFrame = function() {
                    if (mousePosX != _root._xmouse && mousePosY != _root._ymouse) {
                              createSparkle();
                    mousePosX = _root._xmouse;
                    mousePosY = _root._ymouse;
function activateClick() {
          empty.onMouseDown = function() {
                    this.onEnterFrame = function() {
                              createSparkle();
          empty.onMouseUp = function() {
                    delete this.onEnterFrame;
function createSparkle() {
          movingSparkle = this.attachMovie("colouredSparkle", "s_"+sparkle, sparkle);
          movingSparkle2 = this.attachMovie("colouredSparkle", "ss_"+sparkle, sparkle+100);
          sparkle++;
                    if(sparkle>100){
                    sparkle = 0;
          setParams(movingSparkle);
          setParams(movingSparkle2);
function setParams (movingSparkle){
          movingSparkle._x = _root._xmouse+randRange(-8, 8);
          movingSparkle._y = _root._ymouse+randRange(-15, 0);
          movingSparkle._xscale = movingSparkle._yscale=Math.random()*maxSparkSize+minSparkSize;
          movingSparkle._rotation = randRange(0, 360);
          if (randomColour == true) {
                    col = Math.round(Math.random()*0xFFFFFF);
          } else {
                    col = defaultColour;
          colouredFill = new Color(movingSparkle.colour_mc);
          colouredFill.setRGB(col);
          colouredFill = new Color(movingSparkle.white_mc);
          colouredFill.setRGB(col);
          moveSparkle(movingSparkle);
function moveSparkle(movingSparkle) {
          var ySpeed = randRange(0, speed);
          var rot = randRange(-15, 15);
          var blurX = randRange(2, 5);
          var blurY = blurX;
          var blurFilter = new BlurFilter(blurX, blurY, 3);
          movingSparkle.white_mc.filters = [blurFilter];
          movingSparkle._alpha = randRange(85, 100);
          var alphaDrop = randRange(1, fadeSpeed);
          movingSparkle.onEnterFrame = function() {
                    //change speed
                    this._y += ySpeed;
                    //change rotation
                    this._rotation = this._rotation+rot;
                    //make it smaller
                    this._xscale = this._yscale=this._xscale*0.98;
                    //fade the sparkle
                    this._alpha = this._alpha-alphaDrop;
                    //remove the movieclip if it get tiny
                    if (this._alpha<10) {
                              this.removeMovieClip();
                              delete this.onEnterFrame();
                    if (this._height<4) {
                              this.removeMovieClip();
                              delete this.onEnterFrame();
function setColour(mc, col) {
          colourIt = new Color(mc);
          colourIt.setRGB(col);
function randRange(min:Number, max:Number):Number {
          var randomNum:Number = (Math.random()*(max-min))+min;
          return randomNum;

Zhanbolat,
In theory, conversion of this code is not difficult, especially because it is clear what the logic is designed to do. The issue is that you will not have an expected result once only this code is converted in isolation. This puppy uses some other objects that are written in AS2 including entities in the FLA library.
In short, it looks like this application needs a total overhaul at every level in order for it to properly function as an AS3 program.
With that said, although this is, again, not a difficult task, it is unlikely to find someone to do it for free. You may have a better luck if you start conversion yourself and post focused questions as you go.

Similar Messages

  • Hello! Friends I don't have FaceTime in my iPod touch4 please help me from where can I get FaceTime.I live in Saudi arabia

    Hello friends
    I don't have FaceTime in my iPod touch 4 please help me from where can I get FaceTime live in Saudi Arabia.

    There is no Facetime installed on devices bought in certain counties, your country is one of them:
    FaceTime in the Middle East: The story so far
    Apple Tells Us Exactly Where FaceTime Is Not Available
    And it can't be installed on those devices, due to certain laws in those countries.

  • Please help - convert Flash8 to MX 2004

    I really need a tutorial file converted from Flash 8 to MX
    2004. Can someone help? My students await.... :)

    PM me. Maybe I can help.

  • Please help convert 8.2 vi to 8.0 (urgent)

    Hi all,
    Could anyone please help me convert the attached vi to labview 8.0. Thanks
    Attachments:
    Google_Earth-LV.llb ‏199 KB

    Try this...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Google_Earth-LV_80.llb ‏197 KB

  • Need help converting from 4.0 to 2011

    hello,
    Need help converting files from 4.0 to 2011.
    thank you
    Solved!
    Go to Solution.
    Attachments:
    noise source.vi ‏73 KB
    8673D.vi ‏30 KB
    8970 FREQ.vi ‏26 KB

    attached as 8.2, which you can open
    missing some subVIs - not sure if you already have them
    Attachments:
    8673D.vi ‏13 KB
    8970 FREQ.vi ‏11 KB
    noise source.vi ‏24 KB

  • Any help converting from Entourage to iCal?

    With all the problems syncing between Entourage calendar and my wife's iPhone (and now Apple dropping sync to Entourage in the new "forced" upgrade on MobileMe), I want to help my wife convert from Entourage to iCal.  Anyplace to go for that help?

    You can use Thundebird to replace Entourage and get the Lighting.Add-on to Thunderbird to replace the calendar of Entourage which USED TO synch over ical to Mobile Me as follows:
    1. How to set up the iCal for Lightning and MobileMe
    open Thunderbird
    Install the Lightning add-on
    Select “Preferences” “Advanced” “General”“Config Editor…”
    yes, be careful
    scroll down until you find  “general.useragent.extra.lightning” andset the value to (nothing). you can also set the value to “ical” or whatever,just change it.
    Close the config editor, close Thunderbird
    Get the link to your iCal on MobileMe asfollows:
    open ical (YES, iCAL)
    right click the calendar under [email protected] youwant to access 
    select“get info”
    copythe url after “CalDAV url:” it should read“/calendars/users/1.xxxxxxxxx/xxx-x-x-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx”
    OpenThunderbird (assuming you have the Lightning add-on installed)
    Within Thunderbird
    File/ New / Calendar
    onthe networkselect “CalDav”
    intolocation: type the following (excluding the “”) :“https://cal.me.com:8443/calendars/users/1.xxxxxxxxx/xxx-x-x-xxxxxxxx-xxxx-xxxx-x xxx-xxxxxxxxxxx”where the xxx stuff is the part of the url that you copied under 5. above.
    Whenyou check what is written in the location field, it will end with a   “/” which is correct.
    This works fine for me.
    If you want to back-up your calendar on Thunderbird/Lightning outside the cloud,  goto iCal and export the file to a local location as backup.

  • Please help me from smashing my computer

    about a week ago I started getting this little box popping up in the middle of every video I try to play it is a small box in the center of the video and it says on top Adobe Flash Player Settings then it says local storage s.ytimg.com is requesting permission to store information on your computer request: up to 10 KB Currently using: 1KB and has a picture of a little file on the botton and a button that says allow and another one that says deny. When I click deny it usually freezes up on me and won't let me get rid of it although on some videos it will disappear but then pop back up if I change the volume or something why it doing that and how do I get it to stop doing that I have Windows 8.1 and I have the latest version of adobe flash player please help it is driving me crazy and am at my wits end 

    Back everything up now if you haven't already.
    I'd say use restore but I think it's too late for that to work for you.
    Now that all your other music is safe you have to check what's running on your computer particularly if it can index files on its own ( a data sync program perhaps?).
    It's unlikely that iTunes deleted your music but it's losing/confusing file paths and you need to find out why and another indexing/synching program is the first thing you check.
    What little nuisance did HP install that you might not have activated till now ( I swear some of them are "sleepers". )?
    Failing that it's an iTunes re-install but clear that up first.

  • HT5628 Please Help Me from Middle of Window Setup On My MacBook OS X 13''

    Dear Sir,
    I have a MacBook 13' When i doing a Partition via Bootcamp for install window than i do a Mistake on memory Format or Delete window installation time, Than after Its Not Install Windows or not back to Mac OS-X.Its Show window Copy/Load than after show Hard File Corrupted. PLEASE HELP ME.
    Thanks
    Bashir Ahmed
    Dhaka,Bangladesh.
    <Phone Number Edited by Host>

    Mac OS 10.5.6
    Disc vertion 1.0
    MacBook
    Mac OS X Install DVD
    Now i have nothing in inide in lapto and srceen is likr this.

  • Please help converting i-tunes from old computer to new computer!!?

    Hi there,
    Please keep in mind I am not very computer literate and therefore although I am sure this is a very easy question I can't do it and I need some help!!!
    I have upgraded my old computer. This had my i-tunes on it, however after a while it got so slow I started to keep music on an external hard drive, which resulted in my music files being split. I have now dragged and dropped everything on to my hard drive under one folder (I think) and I now want to put this on to my new computer.
    Well actually I want to keep my library on the hard drive so that anything I download etc goes on to there (this computer is just a stop gap for now). I have changed the file location in preferences but cannot seem to get it to pick up the music from the hard drive!!!
    What do I do!!? Any help appreciated...!
    Thanks in advance

    Hello and Welcome to Apple Discussions. 
    This Apple article (link) explains how to move your music library between computers and in addition it explains how you can ensure all your music is consolidated into one location. Hopefully that will cover everything you need.
    kind regards
    mrtotes

  • [AS] Beast of a script needs help converting from Quark 8 to InDesign CS5

    First off, THANK YOU for even reading this post. Here's the dilema. I work in a publishing company that used an AppleScript from Quark 8 to automate our pagination from set text we pull from our sales reps worksheets. About 8 months ago we switched fully to InDesign CS5, but have had to hold onto Quark 8 to be able to keep running our pagination. I'd like to see if the geniuses (yes, I've been trolling these forums looking to solve this myself and seen some great problems fixed) on these forums can help me figure out the proper conversion I would need to be able to leave Quark 8 in the rearview.
    Here's our current code... (I warned you it was a beast)
    set Ad_Props to {¬
         {Ad_Label:"SPREAD – ", Ad_Width:2.495, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"FULL – ", Ad_Width:1.225, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"SPREAD – ", Ad_Width:2.495, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"JUNIOR – ", Ad_Width:0.90625, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/2H – ", Ad_Width:1.225, Ad_Height:0.785, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/2V – ", Ad_Width:0.5875, Ad_Height:1.62, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/3V – ", Ad_Width:0.5875, Ad_Height:1.2025, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/4 – ", Ad_Width:0.5875, Ad_Height:0.785, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/4 Strip – ", Ad_Width:0.26875, Ad_Height:1.62, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/8H – ", Ad_Width:0.5875, Ad_Height:0.3675, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/8V – ", Ad_Width:0.26875, Ad_Height:0.785, Ad_Text_Angle:90}, ¬
         {Ad_Label:"Junior (GOLF) – ", Ad_Width:0.8, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/3V (GOLF) – ", Ad_Width:0.375, Ad_Height:1.62, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/3sq. (GOLF) – ", Ad_Width:0.8, Ad_Height:0.785, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/6V (GOLF) – ", Ad_Width:0.375, Ad_Height:0.785, Ad_Text_Angle:90}, ¬
         {Ad_Label:"Directory Listing Only – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}, ¬
         {Ad_Label:"INSERT (# in notes) – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}, ¬
         {Ad_Label:"Other (See Notes) – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}, ¬
         {Ad_Label:"------------ – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}}
    set Position_Width to number
    set Position_Width to 11.375
    set Position_Height to number
    set Position_Height to 1.875
    set Jump_Height to number
    set Jump_Height to 0
    set Variable_Count to number
    set Variable_Count to 0
    set Variable_Height to number
    set Variable_Height to (1.875 + (1.62 * Variable_Count))
    set Last_Ad to number
    set Last_Ad to 0
    tell application "QuarkXPress"
         activate
         try
              display dialog "WARNING: This version of 'Dummy Square Maker' runs much slower than the last version, a confirmation will tell you when you are finished. Please be patient." & return & return & "Make sure to have the text box selected" buttons {"Cancel", "Accept"} default button 2 with icon caution
              set ThisBox to object reference of current box
              tell story 1 of ThisBox
                   set (every paragraph where it is return) to ""
                   set style sheet of every text to null
                   set style sheet of every text to "DUMMY TEXTS"
                   repeat with i from 1 to (count of paragraphs)
                        try
                             tell paragraph i
                                  set ThePage to my get_CurrentPage()
                                  try
                                       if it contains " – " then
                                            set style sheet to "AD SIZE"
                                            set Ad_Size to contents
                                            set {This_Width, This_Height, this_angle} to {"", "", ""}
                                            repeat with This_Ad in Ad_Props
                                                 if Ad_Size contains (Ad_Label of This_Ad) then
                                                      set This_Width to Ad_Width of This_Ad
                                                      set This_Height to Ad_Height of This_Ad
                                                      set this_angle to Ad_Text_Angle of This_Ad
                                                      exit repeat
                                                 end if
                                            end repeat
                                            set Ad_Box to my Make_Box(ThePage, {1.875, 10.875, This_Height + 1.875, This_Width + 10.875}, this_angle)
                                            duplicate contents to (end of Ad_Box)
                                       else if it contains "—" then
                                            set style sheet to "AD REP/PLACEMENT"
                                            duplicate contents to (end of Ad_Box)
                                       else if it starts with "©" then
                                            set style sheet to "AD REP/PLACEMENT"
                                            delete (character 1)
                                            duplicate contents to end of Ad_Box
                                            if Position_Width ≤ 19.75 then
                                                 set Jump_Height to Jump_Height + This_Height
                                                 (*_________________This is where Ad Boxes Stack_________________*)
                                                 if (Jump_Height ≤ 1.62) then
                                                      set origin of bounds of Ad_Box to {Position_Height, Position_Width}
                                                      set Position_Height to Position_Height + This_Height
                                                      (*_________________This is where Ad Boxes more right_________________*)
                                                 else
                                                      set Position_Height to Variable_Height
                                                      (*set Position_Width to Position_Width + This_Width + 0.05*)
                                                      set Position_Width to Position_Width + Last_Ad + 0.05
                                                      set origin of bounds of Ad_Box to {Position_Height, Position_Width}
                                                      set Jump_Height to This_Height
                                                      set Position_Height to Variable_Height + This_Height
                                                 end if
                                                 set Last_Ad to This_Width
                                                 (*_________________This is where New Row appears_________________*)
                                            else
                                                 set Position_Width to 11.375
                                                 set Variable_Count to Variable_Count + 1
                                                 set Variable_Height to (1.875 + (1.62 * Variable_Count))
                                                 set Position_Height to Variable_Height
                                                 set origin of bounds of Ad_Box to {Position_Height, Position_Width}
                                                 set Position_Height to Position_Height + This_Height
                                                 set Jump_Height to This_Height
                                                 set Last_Ad to This_Width
                                            end if
                                       else
                                            duplicate contents to (end of Ad_Box)
                                       end if
                                  end try
                             end tell
                        on error errmsg number errnum
                             display dialog "There has been an error " & "[" & i & "] (" & errmsg & " [" & errnum & "])" buttons {"Okay"} default button 1 with icon stop
                        end try
                   end repeat
                   delete contents
                   set style sheet of every text to null
              end tell
              beep 2
              display dialog "Automation Finished" & return & return & "IMPORTANT NOTE: Color your Ad Squares according to Sales Rep, and select them all and 'BRING TO FRONT [F5]', this is VITAL." buttons {"Okay"} default button 1 with icon stop
         on error errmsg number errnum
              beep 3
              if errnum ≠ -128 then
                   beep
                   display dialog errmsg & " [" & errnum & "]" buttons {"OK"} default button 1 with icon stop
              end if
         end try
    end tell
    on Make_Box(ThePage, TheBounds, this_angle)
         local ThePage, TheBounds, this_angle
         tell application "QuarkXPress"
              tell page ThePage of document 1
                   set Ad_Box to make new text box at end with properties {bounds:TheBounds, vertical justification:centered, color:"Rep_Other", shade:100, opacity:10, text angle:this_angle, frame:{style:solid line, color:"Black", shade:60, width:0.1}}
              end tell
         end tell
         (*end tell*)
         return Ad_Box
    end Make_Box
    on get_CurrentPage()
         tell application "QuarkXPress"
              tell document 1
                   return page number of current page
              end tell
         end tell
    end get_CurrentPage

    Hi,
    I think with this, you can already make good progress in your work.
    Good luck!
    global mydocument
    tell application "Adobe InDesign CS5.5"
         set mydocument to active document
         tell mydocument
              set myParaStyle to paragraph style "DUMMY TEXTS"
              tell page 1
                   set TheBounds to {0, 0, 20, 50}
                   set Ad_Box to make text frame
                   tell Ad_Box
                        set geometric bounds to TheBounds
                        set vertical justification of text frame preferences to center align
                        set contents to "This is the contents"
                   end tell
                   set myStory to parent story of Ad_Box
                   set applied paragraph style of every paragraph of myStory to myParaStyle
              end tell
         end tell
    end tell
    Your two handlers then look like this:
    on Make_Box(ThePage, TheBounds, this_angle)
         local ThePage, TheBounds, this_angle
         tell application "Adobe InDesign CS5.5"
              tell page ThePage of mydocument
                   set Ad_Box to make text frame
                   tell Ad_Box
                        set geometric bounds to TheBounds
                        set vertical justification of text frame preferences to center align
                   end tell
              end tell
         end tell
         return Ad_Box
    end Make_Box
    on get_CurrentPage(CurrentTextFrame)
         tell application "Adobe InDesign CS5.5"
              tell mydocument
                   return name of parent page of parent page of CurrentTextFrame
              end tell
         end tell
    end get_CurrentPage
    Shorter version:
    on get_CurrentPage(CurrentTextFrame)
         tell mydocument of application "Adobe InDesign CS5.5"
              return name of parent page of parent page of CurrentTextFrame
         end tell
    end get_CurrentPage
    Ce message a été modifié par: OlivierBerquin

  • Checking convert from AS2 - AS3

    I am praticing to convert AS2 to AS3 code . Here moviclip instance name is handle_mc. Here I have AS2 code and trying to convert into AS3. Will u please look at my code of AS3. Is my code is correct ?
    AS2 Code 
    stop();
        var t1:Number = 0;
        handle_mc.onPress = function() {
            if (t1>=0) {
                if ((getTimer()-t1)<300) {
                    popContent_mc.play();
                } else {
                    _root.main.pop_mc.startDrag();
            } else {
                t1 = 0;
            var time:Number = getTimer();
            t1 = time;
        handle_mc.onRelease = function() {
            _root.main.pop_mc.stopDrag();
    AS3 Code
    stop();
        var t1:Number = 0;
        function press_handle_mc(event:KeyEvent)
            if (t1>=0) {
                if ((getTimer()-t1)<300) {
                    popContent_mc.play();
                } else {
                    _root.main.pop_mc.startDrag();
            } else {
                t1 = 0;
            var time:Number = getTimer();
            t1 = time;
        function click_handle_mc(event,MouseEvent)
            root.main.pop_mc.stopDrag();
        handle_mc.addEventListener(KeyEvent.PRESS,press_handle_mc);
        handle_mc.addEventListener(MouseEvent.CLICK,click_handle_mc;

    No, you still have AS2 code elements in your AS3 code.  If you really are trying to learn this, and not just seeing if you can get people to do your design work for you, then you should be running the code, seeing what errors occur, and then researching how to fix them one at a time.  The compiler will be happy to tell you where you have problems.  That is how you will learn it.

  • Help convert from 7 to labview 6.1

    Hi,
    Could anyone help me to convert the code to labview 6.1
    Thankyou very much
    Attachments:
    ag663xxa.zip ‏503 KB

    You can try creating a 6.1 driver yourself. All the IVI drivers are simple wappers around a Call Library Node Function into the DLL created in LabWindows/CVI. The LabVIEW driver is created from the Tools>Instrumentation>Import CVI Instrument Driver selection. Download the CVI driver and install it. The converter will require some files installed in the \VXIpnp\WinNT (.fp) and \VXIpnpWinNT\bin (.dll) folders.

  • Please, up convert from LV 5.1 to LV 2011

    Hello,
    I want to convert the attached file from LV 5.1 to LV 2011.
    Could someone help me?
    Thanks
    Attachments:
    Aq6331 Ver5.llb ‏1294 KB

    Mass compiled in 8.2.1, which you can open with 2011.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Aq6331 Ver5.llb ‏709 KB

  • Please help convert MSSQL Stored Procedure to Oracle PL/SQL

    Hi there to all,
    this be my first post to these forums. I have already posted this question on a microsoft msdn forum, until someone advised that I ask my question here - dunno why I didnt think of that! ?:|
    Im working with an Oracle 10g Database from an ASP.NET 2.0 application, and want to know if it Oracle supports OPENXML (rhetorical question I fear!). The reason I ask is because I want to create an Oracle Stored Procedure that will accept an XML string as an input parameter, prepare it, select from it, and then insert it into an Oracle table.
    I have done this successfully in SQL server using the following as an example:
    CREATE PROCEDURE [dbo].[Employee_INSERT]
    bq. @INSERTRECORD XML
    AS
    BEGIN
    bq. DECLARE @XDOC INT; \\ EXEC sp_xml_preparedocument @XDOC OUTPUT, @INSERTRECORD; \\ INSERT INTO [dbo].[REC_Employees] (
    bq. bq. [EMPTITLE], \\ [EMPFNAME], \\ [EMPLNAME], \\ [EMPDEPTID], \\ [EMPBEGINDATE], \\ [EMPACTIVE], \\ [EMPDATEADDED]
    bq. )
    bq. SELECT
    bq. bq. [EMPTITLE] = Title, \\ [EMPFNAME] = Firstname, \\ [EMPLNAME] = LastName, \\ [EMPDEPTID] = DepartmentID, \\ [EMPBEGINDATE] = StartDate, \\ [EMPACTIVE] = IsActive, \\ [EMPDATEADDED] = GETUTCDATE()
    bq. FROM
    bq. bq. OPENXML(@XDOC, '/EMPREC/Table', 2) \\ WITH (
    bq. bq. Title VARCHAR(10), \\ FirstName VARCHAR(50), \\ LastName VARCHAR(50), \\ DepartmentID INT, \\ StartDate DATETIME, \\ IsActive BIT
    bq. bq. );
    bq. EXEC sp_xml_removedocument @XDOC;
    END
    I would sincerely appreciate any help in this regard!
    PS - Please excuse the formatting!
    Much Thanks!
    regards
    shalan

    Assuming your table is named DESTINATION
    Name                                      Null?    Type
    TITLE                                              VARCHAR2(10)
    FIRSTNAME                                          VARCHAR2(50)
    LASTNAME                                           VARCHAR2(50)
    DEPARTMENT                                         NUMBER
    STARTDATE                                          DATE
    ISACTIVE                                           NUMBERYou can use a procedure like:
    create or replace
    procedure test (p_xml in xmltype)
    is
    begin
      insert into destination
      select title
           , firstname
           , lastname
           , department
           , to_date (startdate, 'yyyy-dd-mm hh24:mi:ss') startdate
           , isactive
        from (xmltable ('/EMPREC/Table' passing p_xml
                       columns title varchar2(5) path 'Title'
                             , firstname varchar2(10) path 'FirstName'
                             , lastname varchar2(10) path 'LastName'
                             , department number path 'Department'
                             , startdate varchar2(20) path 'StartDate'
                             , isactive number path 'IsActive'
                      ) temp
    end test;to create records in the table
    Removed a unnecessary SELECT FROM DUAL...
    Edited by: Alex Nuijten on Jan 19, 2009 2:24 PM

  • Help converting from PC

    I have been a Mac user for several years now. Minus a few years that I am not proud of. LOL I have converted several of my family members and friends as well. My sister is now looking at an iMac to replace her Dell.
    The question is this. She has an external hard drive to back up all of her pictures etc. Due to the fact that she is having serious problems with her current Dell, I am not sure that we will be able to burn cds to transfer all of these documents.
    Is there any other way to get the information transferred easily? I am guessing that I cannot simply plug the PC formatted external hard drive into the new iMac for transferring. Once we get the information off of the external hard drive, I should be able to reformat the drive to work with the Mac though correct??
    Appreciate all of your help and tips. I always seem to get really good information from the folks on here.
    Thanks
    J

    As Niel has said, MacOS can read NTFS and FTA32 drives, it can also write to FAT32 drives. As long as the pictures and other files are in a common format (JPG, TIFF, TXT, DOC, etc.) you can copy those files to the iMac and use the included or freely available software to access the files.
    While there are a very few drive enclosures that don't work or work well with MacOS, but for the most part, you will be able to re-format (or more likely re-partition & re-format) the drive to be in a Mac format. There are a couple of free, and commercial drivers to allow you to have full read/write access to an NTFS drive while running MacOS. I mention this because if there is a chance that she will want to share that drive between a PC and a MAC, getting NTFS access from MacOS is generally easier and cheaper than getting HFS+ access from a PC.

Maybe you are looking for

  • Cannot trace AR Downpayment Invoice link to which AR Invoice

    Hi With reference to SAP Message 279116, SAP Support Center has confirmed it is not possible to know the evidence this Downpayment Invoice is linked to which Invoice without going into the Down Payments to Draw in every Invoice entry. This ability to

  • Quicktime x displaying incorrect aspect ratio

    Hi, I have a strange display issue with QT X which is occurring on both my MacBook Pro and Mac Pro. Quicktime X is displaying all movies in a squashed aspect ratio. For example a 640x360 movie is displayed (actual size setting) as 640x340. The same m

  • Shortdump problem for loadinf data from ODS to InfoCube

    hai im trying to load the data from ODS to InfoCube.But i got the following error like below Short dump in the Warehouse Diagnosis The data update was not completed. A short dump has probably been logged in BW providing information about the error. <

  • Role SAP_BC_JSF_COMMUNICATION_RO

    hello experts I am finishing the configuration of AS, and I'm seven administrative users, but when I click on the button "Create User" (in UME) I get the following error: An exception was thrown in the UME / ABAP User Management connector. Message: C

  • Exclude stacked photos in a Smart Album?

    Hi all, Is there a way to exclude photos that are stacked in a Smart Album? I want to duplicate images (new version) and rotate the duplicates.  Then, I want to stack the two images.  In this project, there are already images that have been "processe