Converting Actionscript from 1.0 to 2.0

I am trying to convert Actionscript written in 1.0 to 2.0 for
Flash 8. It is from a tsunami menu I downloaded off kirupa.com.
There is no actions layer where al the actionscript is kept, and I
have tried to convert it. I customized the menu and the tsunami
effect works great, however, when I try to convert the
actionscript, it is a mess. I am building a flash site, and don't
want to have to import the swf containing my menu. If I do have to
do that, will the fact that it is written in Actionscript 1 for
Flash Player 4 have any bearing on the fact that I am making the
site for Flash Player 8 or above? Also, how can I import just the
text portion without any background (transparent background) in
Flash so it lays neatly over the background I've created for the
site? Although I have designed many flash headers and elements for
my HTML websites, I am a newbie when it comes to Flash Site design
and have a ton of questions, but this will get me started. Thank
you for your time.

The code is not in an "actions layer", it is attached to
buttons and movie clips. Here is the code:
colnum = "1";
startnum = 1;
endnum = 19;
numberofItems = 19;
mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));
i = startnum;
m = startnum;
filledSpace = 0;
gapspace = 0;
if (Number(myInit) == Number(FALSE)) {
// on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _y ) );
i = Number(i)+1;
i = startnum;
myInit = TRUE;
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add
colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add
colnum,_height);
if (Number(mouseposX)>=Number(boundleft) and
Number(mouseposX)<=Number(boundright) and
Number(mouseposY)>=Number(boundtop) and
Number(mouseposY)<=Number(boundbottom)) {
while (Number(i)<=Number(endnum)) {
myDif = (eval("textY" add i) ) - (mouseposY - boundtop);
// percentage increase
scaleAmount = 175-((myDif*myDif)/14);
alphaAmount = 100-((myDif*myDif)/6);
if (Number(alphaAmount)<50) {
alphaAmount = 50;
if (Number(scaleAmount)<100) {
scaleAmount = 100;
setProperty("text" add i, _xscale, scaleAmount);
setProperty("text" add i, _yscale, scaleAmount);
setProperty("text" add i, _alpha, alphaAmount);
i = Number(i)+1;
// *** add up total Y pixels taken by text ***
while (Number(m)<=Number(endnum-1)) {
filledSpace = filledspace + getProperty ( "text" add m,
_height);
m = Number(m)+1;
// *** find total Y pixels not taken by text
totalheight = getProperty ( "text" add endnum, _y) -
getProperty ( "text" add startnum, _y);
gapSpace = totalheight-filledspace;
avgDistance = gapSpace/numberofitems;
m = Number(startnum)+1;
while (Number(m)<=Number(endnum-1)) {
setProperty("text" add m, _y, (getProperty ( "text" add
(m-1), _y) + getProperty ( "text" add (m-1), _height)) +
avgdistance);
set("watchheight" add m, getProperty ( "text" add m,
_height));
m = Number(m)+1;
} else {
// *** shrink text back when mouse rolls out
i = startnum;
while (Number(i)<=Number(endnum)) {
if (int ( getProperty ("text" add i, _yscale ) ) >= 100)
// return scale back to original state
setProperty("text" add i, _yscale, int ( getProperty ("text"
add i, _xscale ) ) - 1);
setProperty("text" add i, _xscale, int ( getProperty ("text"
add i, _yscale ) ) -1);
if ( getProperty ("text" add i, _y) < eval("textY" add
i)) {
// return y position back to original state
setProperty("text" add i, _y, int ( getProperty ("text" add
i, _y ) ) + 1);
if ( getProperty ("text" add i, _y) > eval("textY" add
i)) {
setProperty("text" add i, _y, int ( getProperty ("text" add
i, _y ) ) - 1);
if ( getProperty ("text" add i, _Alpha) > 50) {
setProperty("text" add i, _alpha, int ( getProperty ("text"
add i, _alpha ) ) - 1);
i = Number(i)+1;

Similar Messages

  • Convert time from digits to words

    Hi,
    Is there a built-in or freely available actionscript function
    that would convert time from digits to words. For example, "9:30"
    becomes "half past nine"?
    Thanks!

    oops, missed the requirement for numbers as words, added that
    in:
    edit: fixed '1 minutes past' changed to '1 minute past'
    edit2:clarity with Number type on hour

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?

    How can I convert Pdf from RGB to CMYK, keeping font color 100% K while working in Illustrator?
    When I try to open the document in Illustrator and I convert to CMYK the black font converts to rich black, but to set up for Offset printintg I need the text to be only in Black (100%K).
    The original source of the document is a Microsoft Word file, I have converted the Word file to Pdf in order to setup for OFfset Printing.
    Thanks

    I have tried that way, but the downside is that the fonts are set in gray not in a 100%K, also I have to deal with other fonts that are composites and meant to stay Full Color. I could select text by text and convert to gray but, its a 64 page document and I wouldn't want to make a expensive mistake.

  • Error when starting a converted VM (from vmware server edition)

    Hi, i am trying to start a converted VM from VMWARE SERVER. I think i have followed steps to import an VMWARE machine (using resources >> virtual machines images) and it does not return errors when converting VM but then, when trying to start it, it returns
    failed:<OVSException: no server selected to run vm('/OVS/running_pool/SIR_xxx') memory=512> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 77, in start_vm raise e
    I have also checked that there is enough memory.
    This is the contect for vm.cfg
    acpi = 1
    apic = 1
    builder = 'hvm'
    device_model = '/usr/lib/xen/bin/qemu-dm'
    disk = ['file:/OVS/running_pool/SIR_xxx/SIR_xxx.img,hda,w',
    'file:/OVS/running_pool/SIR_consulnor/SIR_xxx (2).img,hdb,w',
    ',hdc:cdrom,r',
    kernel = '/usr/lib/xen/boot/hvmloader'
    memory = '512'
    name = 'SIR_xxx'
    on_crash = 'restart'
    on_reboot = 'restart'
    pae = 1
    serial = 'pty'
    timer_mode = '1'
    uuid = 'e23767cc-dc3d-0255-a7ac-65f111b589d7'
    vcpus = 1
    vif = ['bridge=xenbr0,mac=00:16:3E:71:AF:B1,type=ioemu']
    vif_other_config = []
    vnc = 1
    vncconsole = 1
    vnclisten = '0.0.0.0'
    vncpasswd = 'xxx'
    vncunused = 1
    Thanks for your help

    user559432 wrote:
    failed:<OVSException: no server selected to run vm('/OVS/running_pool/SIR_xxx') memory=512> StackTrace: File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 77, in start_vm raise eDo your servers have Hardware/Full Virtualization enabled? You can check on the console and ensure the console says that Hardware Virtualization is enabled. If not, check in your BIOS that the processor hardware virtualization is enabled. If you don't have an option, your PC may not have the Intel VT-x or AMD-v extensions required to support hardware virtualization.
    You can check to see if your processor supports this extension by using:
    Intel processor:
    # cat /proc/cpuinfo | grep vmxAMD processor:
    # cat /proc/cpuinfo | grep svmIf you see a result, it means the processor has that support. You still need to ensure that it is enabled in the BIOS.

  • How to convert date from "yyyymmdd" to "MM/DD/YYYY" format

    1. I have one BLDAT field in my internal table.
       its getting updated from input file.
    2. The value in the input file is like yyyymmdd.
       So the internal table field is filled like this
       "YYYYMMDD".
    3. After this,I have to compare this internal table  
       field with BSAD table.
    4. The BLDAT field in BSAD table is in the format of 
       "MM/DD/YYYY".
    5. the BLDAT field is having diff format in internal  table and BSAD table.So I am unable to check this value.
    How to convert it as like the BSAD table format."MM/DD/YYYY" format.
    Thanks in advance!!

    Using the WRITE statement
      data: gd_date(10).  "field to store output date
    * Converts date from 20020901 to 09.01.2002
      write sy-datum to gd_date mm/dd/yyyy.
    OR u can
    CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
    into gd_date seperated by '/' .
    Hope this helps.
    Kindly reward points and close the thread for the
    answer which helped u OR get back with queries.

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

  • Convert report from SAP to Excel

    Hi All,
    How to convert report from SAP to Excel.Here now taking default text(.txt) format.But we want defualt taking (.xls) format only.
    Regards
    Usha

    hi usha
    u can even export the text in txt format and later right click and open with excel , u wont be able to directly import it into excel as it is not giving u any option to upload in excel directly
    Regards,
    Manish

  • Error while converting schema from oracle to SQL server

    Hello,
    I am getting following error while converting schema from oracle to SQL server using SSMA.
    I get Errors 1-3 while migrating procedures and error 4 while migrating a table.
    1- O2SS0050: Conversion of identifier 'SYSDATE' is not supported.
    2- O2SS0050: Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.
    3- O2SS0050: Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported.
    4- O2SS0486: <Primary key name> constraint is disabled in Oracle and cannot be converted because SQL Server does not support disabling of primary or unique constraint.
    Please suggest.
    Thanks.

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • Any idea why my saved documents are unable to be read? "convert file from" box pops up, applications are listed to use but if any are chosen, the file then opens but is in symbols

    When attempting to open saved documents for viewing a box pops up "convert file from" with applications that can be chosen from to use. When any of the options are chosen the document then opens but is in symbols and is unreadable. This is happening with all saved documents.  Can you offer any help with this?

    Hi,
    If you don't find any clue, you can send your file to me (guillaume.rouyreATgcosiDOTcom, replace cap) so I can give a try.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Can I convert a from from Adobe Forms Central to a PDF Form?

    Can I convert a from from Adobe Forms Central to a PDF Form?

    Yes, you can save a FormsCentral form as a PDF form. In FormsCentral, the menu item when in design view is: File > Save as PDF Form

  • Problem with converted PDF from OTF

    Hello,
    im having a problem with character interpretation in PDF document when i convert it from OTF.
    At the moment im using Arial true type font in my smartform, im using function module CONVERT_OTF to convert OTF to PDF.
    When i open PDF document with Adobe reader it looks fine, but the problem is when im trying to convert PDF file to other format for example PNG, or trying to copy and paste text from PDF document.
    im getting Klaipìda instead of Klaipėda, it seems that baltic symbol "ė" is interpreted like "ì", other baltic symbols are interpreted as they should, there is problem only with character "ė".
    have anyone faced that kindof problem? or maybe anyone know the solution for this problem? if so please tell me.
    Best regards,
    Rimantas Sebeckis.

    Hi Rimantus,
    Did you check the fonts installed in your system,,,
    As PDF is a unchangeable format, it doesnt depend upon the installed fonts in the system,,
    but when you copy, you need some fonts in system,, if not you will get the same problem,,,
    Thanks & regards,
    Dileep.C

  • How do I save the file after I have converted it from pdf to word

    HOW DO I SAVE A FILE AFTER I HAVE CONVERTED IT FROM PDF TO WORD

    Hi,
    After converting your file a box will appear on top of the window showing 'Download' option.
    When click on that your file will be downloaded and it will show the notification at the bottom.
    Click on arrow -> 'Show In Folder'.
    It will direct you to the location where your file has saved.
    Regards,
    Florence

  • Adobe Reader X Not Converting To / From PDF ?

    I have a licensed copy of Adobe Reader X Version 10.1.08 which was purchased a couple of years ago & registered. I cannot now convert to / from PDF without being redirected to an obligatory online subscription. Why is this so ?

    You probably had Adobe Acrobat, not Reader, which is indeed a paid product with the ability to convert to/from PDF files.
    If you also installed Reader you can remove it and go back to using Acrobat, which has all the functionalities that Reader has, and more.

  • How to convert value from exp. value to double/float???

    Hi all,
    I am fetching values from database, which is of type double / float.
    eg. values will be like -22,777,548 will be stored in database.
    NOw if i use
    float a= rs.getFloat(1);
    out.println("a="+a);
    I get output as a= -2.2777548E7
    I want to remove "E" from out put value and display as it was given in DB.
    How to solve this problem?
    Please Help!
    Regards
    Ashvini

    What do you mean - 'how does it work' ? All format classes (MessageFormat, DecimalFormat , SimpleDateFormat etc) are used to convert data from one form to other. Go through the java.text.* api. They work based on some pattern searches, pattern matches etc - dont know in detail :)
    As for the other things, thanks :)
    cheers,
    ram.

Maybe you are looking for

  • ITunes 10 will not load required software to use iPod touch

    After installing iTunes 10, this is the message I get,,, " This iPod cannot be used because the required software is not install. Run the iTunes installer to remove iTines, then install iTunes again. " I have done this twice already and keep getting

  • How to read data from success function

    Hi, In the success function of my POST method, I want to read a property from the data parameter. This is my code: success : function(data, response) {                                 console.log(data);                                 alert("succes")

  • Movies and videos not appearing on iPhone.

    I have an odd problem with movies (both those made by me and those purchased via iTunes) not appearing on my iPhone 3GS after syncing, even though they used to. All of the options in iTunes are set correctly for syncing. The strange thing is this: I

  • How to improve the speed for backing up files to time capsule via in hose wifi?

    How to improve the speed for backing up files to time capsule via in hose wifi?

  • Some Problem while working with MEDRUCK

    Dear Abapers, As Rich told me his previous message I copied all the function groups & function modules. Now, please tell me where in SE71 I should change the logo of IDES with my company logo and where should I change the address.                Also