Converting Actionscript 1.0 to 2.0 in Flash 8

Hi there,
Currently, I am developing game using Flash MX which i using
Action Script 1.0. However, I have install Flash 8.
My question is, how am I to convert the my previous
actionscript 1.0 to actionscript 2.0 in Flash 8?
Thanks.

most of it should be done by flash when you open your a.s.
1.0 scripted swf in flash 8 that has publish settings for a.s. 2.0.
some of it you'll need to do by hand, though.

Similar Messages

  • 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;

  • Converting Actionscript to Javascript

    When I think of the Cappucino framework. It converts Objective-J to pure Javascript in the browser no plugin required because the compiler itself is in Javascript.
    I am thinking, why dosen't Adobe do the same with Actionscript?
    Is this something feasable?

    I've spoken to a few people who think that an "Export to HTML(5)" option in Flash Pro would be awesome.  I have no idea how something like that would work, or if it is even possible.
    The Flex Framework relies heavily on Flash Player APIs.  I suspect there are not standard 'JavaScript' parallels for many if those APIs.

  • Converting actionscript 1.0 to 3.0

    Hi,
    I was wondering: I made the game Mastermind in actionscript
    1.0. But since I have Flash CS3, I've made a MP3 Player in
    Actionscript 3.0. I want to combine those 2 files. But they have
    both different Actionscripts, and that makes it impossible for me
    to combine them. Does anybody know how to make the actionscript 1.0
    file a actionscript 3.0 file?
    Thanks in advance,
    Regards,
    Ithiriel

    The problem is. I got a slider inside of it. A Volume Slider.
    And Flash 6 Player doesn't support that. If you know an other
    solution, please tell me.
    I've already tried to copy everything from my AS1 file to the
    AS3 file. And I got 100 errors. So that's not working.
    And by MP3, I don't just mean the music file, but a complete
    MP3 Player. With Play, Stop, Next, Prev buttons. Artist name is
    showed, name of number that's currently playing, etc. And a volume
    slider.
    But if you know how to import that into AS1, it would be very
    nice.

  • Converted Keynote doesn't show all TextBlocks in Flash

    I have created a small Keynote Presentation with 25 pages and converted it into Flash to upload it on our Server.
    We are a small charity Org. with very limited budget and have seen a few nicely done websites, created with iWork and tried to do the same.
    Some of the text-blocks were copied&pasted from other Word-Dokuments and our earlier Web-Site, we formated these text blocks with the Fonts and Size we use on the website to make everything more homogen.
    But some text blocks didn't appear or show up in the original Fonts in the Flash-File when I open the file with Win-IE Version 6, latest Safari & Firefox - WHY?
    And why did Firefox show a few of those Animations I have added, but most of the other browsers don't?
    I am not very into this stuff (can't write HTML),
    do you might have a suggestion for an other WebsiteBuilder?
    We can't afford GoLive (which was very cool in the early days built by CyberStudio) nor have I time to learn or buy the complex Dreamweaver.

    Your best bet would be to try Rapidweaver: www.realmacsoftware.com
    Best,
    Andrew
    I am not very into this stuff (can't write HTML),
    do you might have a suggestion for an other
    WebsiteBuilder?
    We can't afford GoLive (which was very cool in the
    early days built by CyberStudio) nor have I time to
    learn or buy the complex Dreamweaver.

  • ActionScript syntax errors are not detection with Flash Builder 4

    I encountered a serious bug with Flash Builder 4, it is not showing ActionScript syntax error within an ActionScript class. How shall I fix this.
    Best Regards,

    Hi Mayank,
    Please find the further details below:
    Steps to Reproduce the bug:
    1. Create a Flex Project (say Test for example)
    2. Created a new ActionScript Class ABC.as within the Flex Project.
    on typing the following code (and even after saving it)
    package123 {
      public1234 class ABC {
      }blahblah123...
    Expeteded Behavior:
    ActionScript Editor should report an syntax errors with the following code.
    Present Beharvior
    no syntax error is detected. This is a regression in Flash Builder 4 as Flex Builder 3 detects ActionScript syntax error instantly (while typing).
    Best Regards

  • Convert MP4 to FLV (for integration on timeline Flash Pro.)

    Hello guys,
    I'm having trouble converting MP4 to FLV file, after this latest update seems to me that it was discontinued this type of conversion formats of videos.
    need to convert a mp4 to flv videos and integrate the timeline in Flash Professional.

    See this for an explanation for the change regarding FLV and F4V and for the recommended workflow:
    removal of FLV and F4V export features from Adobe Media Encoder, After Effects, and Premiere Pro

  • Anyone know how to convert h264 .mov files to play in adobe flash player 9?

    Software advice?

    Flash CS3 Professional comes with an utility to convert videos into .FLV. Before that (Macromedia Studio MX 2004, don't know about other versions because I skipped a few) I remember that there was a QT extension that required QT Pro. A quick Google search gave this utility for Windows only.

  • Converting an image sequence to a Movie Clip - Flash CC

    Hi Everyone,
    Hopefully I am just doing this wrong.
    I have a sequence of images I want to convert to a movie clip symbol.
    This is what I'm doing:
    I select all the frames in the timeline and hit f8 & choose movie clip as the symbol type.
    When I drop the newly created symbol back on the stage it only contains the very last frame
    of the animation.
    Is this just not possible?

    You can do this.  Here are the steps:
    1.  Select desired frames
    2.  Copy frames
    3.  Create movie clip symbol
    4.  Paste frames into movie clip symbol
    If this is something you do frequently, there are extensions that streamline this process.
    Edit:  Here's a link to the extension "New Anim Clip".  It's about a third the way down the page.
    http://www.toonmonkey.com/extensions.html

  • Convert Quicktime files or FC Pro projects to Flash files for the internet

    I've never done this before. I have finished FC Pro projects that I need to convert to flash files for the internet. Am I saying that right? I've converted them to QT files. What's next? Thanks

    This site and the readme links and forum can help you display it on the web, works great with Flash or H.264.
    http://www.jeroenwijering.com/?item=JWMediaPlayer

  • Animated .gif actionscript 3 question

    I hqve some small swfs that I need to convert to animated .gifs for
    a client. I assumed this this was a painless task but I was oh so wrong as the bigger the swf the worse
    the animated gif looks. But I have some small.swfs I need to convert and I did and they do not look bad but my problem is the swf had clikTag info in it for googleadwords. When I converted to animated .gif the file does not have any actions inside, which leads me to ask how do I pass actionscript to an animated .gif done in Flash?
    anybody??
    rdee

    HTML links are likely your only recourse.  If you need help with that, visit the Dreamweaver or web design forums.  They might have some alternative approaches to offer as well, possibly using javascript or something along those lines.

  • BlazeDS Java to ActionScript

    Hello, I am trying to send certain data types from a Java
    back-end through BlazeDS to my Flex clients. I wrote a ant script
    that takes JAXWS generated types and converts them into
    ActionScript types. One problem that I am facing is that the Seq
    classes are not being translated. What I mean is that JAXWS classes
    that contain List get wrapped into a class name ClassBSeq which
    contains a List<T> object. From the Java back-end I send the
    JAXWS types in a List to BlazeDS. The List contain a Seq classes
    that have List<t>. It seems on the client side that the main
    List gets translated but any List after that are null. Seems like
    it translated the top level List but no other List after that. Is
    there a way to tell the channel, in this case a
    StreamingAMFChannel, to transverse the object being translated?
    Here some code to help with my explanation.
    The Java Type:
    package handjam.gmiContainer;
    import java.util.List;
    public class GMIContainer {
    public List dataObjects;
    public String methodName;
    public GMIContainer() {
    public void setMethodName(String methodName) {
    this.methodName=methodName;
    public void setDataObjects(List dataObjects) {
    this.dataObjects=dataObjects;
    The ActionScript Type:
    package generated.handjam.gmiContainer
    import flash.utils.*;
    import mx.collections.ArrayCollection;
    [Bindable]
    [RemoteClass(alias="handjam.gmiContainer.GMIContainer")]
    public class GMIContainer
    private var _dataObjects:ArrayCollection;
    private var _methodName:String;
    public function GMIContainer()
    public function get dataObjects():ArrayCollection {
    return _dataObjects;
    public function get methodName():String {
    return _methodName;
    public function set
    dataObjects(dataObjects:ArrayCollection):void {
    trace("Setting the dataObject from Java = " + dataObjects);
    this._dataObjects=dataObjects;
    public function set methodName(methodName:String):void {
    trace("Setting the methods Name from Java = " + methodName);
    this._methodName=methodName;
    Code setting the List:
    GMIContainer container = new GMIContainer();
    List data = new ArrayList();
    data.add(id);
    data.add(mapItems);
    mapItems is a MapItemTypeSeq Java Type
    package mil.army.monmouth.webmap.data;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlType;
    * Array of MapItemType
    * <p>Java class for MapItemTypeSeq complex type.
    * <p>The following schema fragment specifies the
    expected content contained within this class.
    * <pre>
    * &lt;complexType name="MapItemTypeSeq">
    * &lt;complexContent>
    * &lt;restriction base="{
    http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;element name="mapItems" type="{
    http://www.gmiweb.com/schema/mapdata}MapItemType"
    maxOccurs="unbounded" minOccurs="0"/>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "MapItemTypeSeq", propOrder = {
    "mapItems"
    public class MapItemTypeSeq {
    protected List<MapItemType> mapItems;
    * Gets the value of the mapItems property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE>
    method for the mapItems property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getMapItems().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link MapItemType }
    public List<MapItemType> getMapItems() {
    if (mapItems == null) {
    mapItems = new ArrayList<MapItemType>();
    return this.mapItems;
    Here is what the JAXWS Java class look like:
    package mil.army.monmouth.webmap.data {
    import flash.utils.*;
    import mx.collections.ArrayCollection;
    [Bindable]
    [RemoteClass(alias="mil.army.monmouth.webmap.data.MapItemTypeSeq")]
    public class MapItemTypeSeq {
    public var _mapItems:ArrayCollection;
    public function get mapItems():ArrayCollection {
    return _mapItems;
    public function set mapItems(mapItems:ArrayCollection):void
    this._mapItems=mapItems;
    when the message comes to my client the flashlog.txt tells me
    something like this.
    GMIContainer => MapItemTypeSeq
    _mapItems = (null)
    mapItems = null
    Has anyone else ran into this issue with complicated data
    objects? All examples I have seen uses very simple
    data types.
    Thanks for your help,
    dk

    Hi Martin. The way that AMF serialization/deserialization works for BlazeDS is the same regardless of which service is being used, so yes that code will work for messaging as well. On the server, the serialization/deserialization of messages happens at the endpoint. For an incoming message for example, the endpoint deserializes the message and then hands it off to the MessageBroker which decides which service/destination to deliver the message to.
    That was a good question. Thanks for asking it. Lots of people are used to doing custom serialization/deserialization with the RPC services (RemoteObject/RemotingService) but I'm not sure everyone realizes they can do this for messaging as well.
    -Alex

  • Is there any OLD/NEW automatic ActionScript convertor?

    Hello everyone,
    I have been using Macromedia Flash version 4 & 5 during
    the year 1999~2001. -- I'm an old man.
    Then I stopped using Macromedia Flash.
    Now I need to resurrect more than 100 flash swf files that I
    have created at that time (8 years ago).
    Yes, all these swf files which have been written in AS1 still
    work in the current browsers (perhaps the browsers autodetect the
    correct version of flash player for my swf files)
    However, now the problem is I need to add more stuffs to
    & modify these old .fla files using the current version of
    flash. And the new Macromedia Flash doesn't seem to auto-convert my
    old AS1 scripts for the new flash player 8 or higher... and only
    displays the error messages.
    So, my question is, is there any auto ActionScript converting
    software for converting old AS1 files to AS2/AS3
    which can be played using flash player version 8 or
    higher?

    URMyLuckyStar,
    > Yes, all these swf files which have been written in AS1
    still work
    > in the current browsers (perhaps the browsers autodetect
    the
    > correct version of flash player for my swf files)
    Browsers don't inherently detect Flash Player, but the HTML
    that embeds
    your SWFs can be programmed with JavaScript to do so. More
    than likely,
    what you're seeing is simply the fact that (for the most
    part) Flash Player
    is backward compatible. I can only think of one or two
    deprecated
    ActionScript terms (such as the "add" concatenator) that are
    no longer
    supported. It sounds like your AS1 SWFs happen to be free
    from those very
    few scenarios.
    > However, now the problem is I need to add more stuffs to
    > modify these old .fla files using the current version of
    flash.
    That really shouldn't be a problem. :)
    > And the new Macromedia Flash doesn't seem to
    auto-convert my
    > old AS1 scripts for the new flash player 8 or higher...
    Unless your modifications require new Flash Player features,
    you can
    keep right on using AS1 and publishing to Flash Player 4, 5,
    6, and so on.
    > So, my question is, is there any auto ActionScript
    converting
    > software for converting old AS1 files to AS2/AS3
    which
    > can be played using flash player version 8 or
    higher?
    There isn't, that I know of. But what error messages are you
    getting?
    Why do you need to target Flash Player 8 (or higher)
    specifically? (I ask,
    because maybe you don't.) Flash Player 8 was the version to
    drop support
    for the "add" concatentor, so many that's the only issue.
    Let's see some of
    your error messages, and that should bring solutions to
    light.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Manipulating Flash Library MovieClips in Actionscript

    I drew up some graphic symbols in Illustrator and imported and defined them as MovieClips in the Flash library.
    That way I could just place them where I want to visually on the stage. As I have been solidifying the visual design,
    I have been implementing it in Actionscript to access the flexibility the code provides.
    In order to port a symbol to actionscript I did the following:
    Then in actionscript I tried the following:
    Times2.visible = false;
    The "show code hint" led me think I could do that.
    But I get this error:
    Scene 1, Layer 'Code', Frame 2, Line 37 1119: Access of possibly undefined property visible through a reference with static type Class.
    What am I doing wrong here?
    Thanks

    I tried creating an instance of Times2 in Actionscript.
    var myTimes:Times2 = new Times2();
    myTimes.x = 125.0;
    myTimes.y = 125.0;
    but I get the following error:
    TypeError: Error #1034: Type Coercion failed: cannot convert Times2@2b8ffb89 to fl.motion.AnimatorFactory.
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at Multiply_fla::MainTimeline()
    I don't know why it wants to convert it to fl.motion.AnimatorFactory.
    I checked on-line help and found many instances of frustrated users with error #1034, but they all had
    different circumstances. I could not related them to my own situation.
    Very befuddled,

  • Do you need to use Actionscript 3 code in Flash player 9 and above?

    Can anyone tell me if I need to use Actionscript 3 code instead of Actionscript 2 code in the following situation:
    I am running a swf file which is contained in a browser window (all files are contained on a CD and I have a 'trust' file set up to let them play properly).  Up until now, I have been using the following Actionscript 2 code to close the browser window (the Actionscript 2 code is on an 'Exit' button within the swf):
    on (release) {
    getURL("javascript:window.close()");
    This Actionscript 2 code has always worked and still works in Flash player 8 and lower.  However, it does nothing when played using Flash player 9.  Can anyone tell me if Flash player 9 won't recognize Actionscript 2 code?  Is it essential to use ONLY Actionscript 3 code if you are using Flash player 9?
    I am having the same problem when I try to launch another html page containing a swf (popped up from the swf contained in the main html window).  I have the following code on the button to launch the popup html window.  It always worked, but suddenly no longer works with Flash player 9.  Here is the code I am using:
    on (release) {
                getURL("javascript:launchWin2('webpage2.html');");
    I have all the necessary background code to launch 'webpage2.html'.  It works everywhere except in Flash player 9.  Can anyone tell me if it is essential to use Actionscript 3 code ONLY on these buttons in Flash player 9?  I am pretty new to Actionscript 3, so any help with syntax would be appreciated. 
    Please note that I don't want to use the projector.
    Thanks!

    You can use both AS2 and AS3 based applications in both Flash 9 and 10.
    As for the issues you describe - perhaps Flash General Forum is a better bet:
    http://forums.adobe.com/community/flash/flash_general

Maybe you are looking for

  • Comparing the iPhone 3G with my current Japanese iPhone (trying to decide)

    I'm trying to decide whether or not to switch to an iPhone 3G now that it has been released here in Japan. I currently use an AU cell phone by Casio. I would have to switch to Softbank, but you can keep your old phone number now, so that's no problem

  • ITunes no longer imports or plays CD's

    I'm running iTunes 8 on Windows Vista Ultimate 64-bit, and I've run into a problem where if I try to import a CD, iTunes starts to import the first track, then just proceeds to skip through every track until it reaches the end with nothing imported.

  • Saving a pdf in an iframe with specific name

    Hi, in our application there is an iframe which displays different pdf depending of the situation. As source we use URLs. If the user want to save the pdf within the iframe it suggest always a default name. Is it possible that it suggest a specific n

  • Cannot upload from clipboard with Ubuntu Gutsy 7.10 in SAPgui 710r1

    Dear Rolf-Martin, I cannot upload from clipboard when I want to upload a list of material number in Multiple Selection Window. I can only use import from text file and than klik transfer. My OS is Ubuntu Gutsy 7.10 and my SAP Gui is 710r1 java SAPGui

  • NIK plugins and elements 10

    I just installed elements 10 but when I try to add my NIK plugins- silver efex 2, viveza 2 and color efex 3- it states it cannot read the files.  Does anyone else have this problem?  Suggestions?  Thanks Ron