Making AS3 code backward compatible to Flash 8?

So I made a slideshow swf in AS3 only to later find out it needs to be compatible with Flash 8...and in my estimation AS3 cannot publish back to a Flash 8 swf without it being AS2...is there anyway I can do this without rewriting the code? I'm fairly new to AS, starting with 3 - so I really don't have any AS2 knowledge.  Any help is always greatly appreciated.

If the file needs to be compatible with Flash 8, then you need to first do the conversion to AS2, then you need to save the file as a Flash 8 file, which you'll need Flash CS3 to do. So if you're working with CS4, first you need to save the file as a CS3 file, then you need to have CS3 to be able to save it to Flash 8.

Similar Messages

  • Making Code Backward Compatible (SDK 1.4 - 1.3)?

    In SDK there is a method added in Toolkit class: "public void setDynamicLayout(boolean dynamic)".
    Is it possible to generate code which is compatible no matter if the bytecode runs on a 1.3 VM or a 1.4 VM?
    I would like to do something like (pseudocode):
    if(sdkVers > 1.4)
        Toolkit.getDefaultToolkit().setDynamicLayout(true);I didn't try it, but I think it wouldn't work. Or am I wrong? If I'm right, is there a way to do what I want (make code compatible on different VM versions)?

    Actually, I think it is a very good question. One that I have been wondering about for some time myself. The question is: when will the JVM actually try to lookup the method? Is it when the class is loaded or resolved? Or is it when it has to call the method the very first time? Or is this not specified at all?
    if(sdkVers > 1.4)
    Toolkit.getDefaultToolkit().setDynamicLayout(true);If the JVM waits until the actualy method invocation, then the above code would actually work on a 1.3 JVM since it will never try to invoke the non-existing method.
    Our programs need to be able to run on Java 1.3 because we have to support MacOS X. But it annoys me that I cannot take advantage of 1.4 features when the program runs on Windows. I don't like the use of reflection because it destroys compile-time checking. So until now I have stayed away from using 1.4 features completely.

  • Making a plugin backward compatible

    Hi
    I have developed a plugin using java 1.5. It is a set of preference pages with lot of UIs. I am using SWT and preference store extensively. My client wants me to make it compatible with java 1.4 . How can I do this. What all changes will be required to be made.

    They can be two types of changes:
    1) Remove all language extensions introduced in 1.5, like generics, for-each loops etc.
    You can compile it with 1.4 compatibility. That way, you get compiler errors for everything that is not compatible with 1.4 syntactic and semantic wise. Calling javac directly would then look like this:
    javac -source 1.4 [FILES]2) Compile it with an 1.4 compiler to see if you're using 1.5 specific classes and methods. In every Java version, new ones are added, and you might use some of them. You cannot check this with step 1, you really have to use a 1.4 compiler.
    3) If you're through the previous steps, make sure you test your plugin thoroughly just to make sure nothing got broken

  • Flash 8 compatible with Flash 9 Player

    Just want to make sure that the Flash 9 Player is backwards
    compatible with Flash 8 files. Are there any limitations? System is
    Windows 2K and XP - no Vista worries yet!

    Hi Cug90,
    Flash Player 9 is backwards compatible. There was a security
    update with Flash Player version 9.0.124.0 and you can find out
    more about these changes here:
    http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html
    “Understanding Flash Player 9 April 2008 Security
    Update compatibility”
    For known issues and system requirements please read the
    Adobe Flash Player release notes:
    http://www.adobe.com/support/documentation/en/flashplayer/9/releasenotes.html
    Important Note: These online forums are for user-to-user
    discussions of Adobe products, and are not an official customer
    support channel for Adobe. If you require direct assistance, or
    prefer to contact Adobe support staff directly, please contact
    Adobe support.

  • Freelance Flash AS3 coder needed in Dublin Ireland

    Experienced freelance Flash AS3 coder needed to resolve issues on a  touchscreen interface built using Flash AS3.
    Needs to have experience with Timer Class and URLRequest  method.
    Anyone interested, please let me know.

    We've done these types of playbars before for other clients. Cannot promise anything, but we'll take a look at your requirements.
    For future reference, this link provides some information about commissioning a custom-built widget: http://www.infosemantics.com.au/catalog/widgets/Custom_WDGT_DevService/about
    The most important thing to remember is that anything like this will cost many times more than even the msot expensive widget you can buy online, because those widgets are sold hundreds of times over before the developer recovers their costs.  Development of one-off widgets need to be fully funded by the person that wants it.  If this widget isn't worth a lot to you, but would just have been "nice to have" you're probably NOT going to be interested in what it would cost to build.

  • I need to make a task with less as3 code and more timeline structure and event dispatcher !

    I went to an interview in a big company. I had to make a  task in which there is a wall with 3 lines and 5 columns filled with bombs.When you click on a bomb the bomb changes its scale, a robot enters, goes under the bomb and takes it, then goes to a smaller wall, makes the bomb smaller and place it at the same place it had been in the previous wall.I made the task with tween througout as3 code.The interviewer told me it was good but i need to make it with the less code possible and with more complex timeline structure and to use event dispatcher.What is the best way to do this ?

    The immediate thing that comes to mind is they might want to see that you can balance work between design teams and development teams.
    To do that, the robots movements (pick up bomb, bomb grows/shrinks, arms/treads/legs moving, sequences of 'doing things') can be timeline based so animators can work on those separate from code.
    Developers would be working on the logic of keeping score, moving the robot around to the correct spot with path detection, collision detection, etc.
    It's very similar to thinking in simple factories (which Flash is good at being automatically with timelines), and a bit of MVC (or just VC in some cases).
    Big companies have lots of different types of employees so you'll probably be very specific in your role so you're efficient.

  • Can someone pls help me to change AS3 code to AS2 code

    Hello! Dear All,
    I dont understand why with AS3 code my swf file is not working smooth at all. I would like to try it with AS2. In publish setting when I am selecting Flash Player 8, AS2 my swf is running good but showing lots of code errors.
    I dont have much knowledge about AS2 so if someone can help me with this...it would be great.
    Thanks,
    Cheers!
    Code1:
    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("GetVars",GetVars);
    ExternalInterface.addCallback("SetVariable1",SetVariable1);
    function GetVars():Array {
    return [
      {VariableName:"SetVariable1",DefaultValue:"Variable1"}
    function SetVariable1(variable:String):void {
    for (var i:int = 0; i < numChildren; i++) {
      var mc:MovieClip=getChildAt(i) as MovieClip;
      if (mc!=null&&mc.name=='Audi_Cup') {
       mc.variable1=variable;
       mc.SetVariable1(variable);
    Code 2
    this.mask_mc.cacheAsBitmap=true;
    this.mask_mc.cacheAsBitmap=true;
    Text1.mask=(mask_mc);
    function SetVariable1(variable:String):void {
    if (variable!=null) {
      for (var i:int = 0; i < numChildren; i++) {
       var mc:MovieClip=getChildAt(i) as MovieClip;
       if (mc!=null&&mc.name=='Text1') {
        var object:TextField=mc.getChildByName('InputTextField1') as TextField;
        if (object!=null) {
         object.text=variable;
    SetVariable1(this.variable1);

    it's possible, but unlikely, you'll fix anything by converting to as2.  so, what problems are you having with as3?

  • Flash Builder - No Code Hinting For New Flash Professional Project??

    I had been using flash builder as an as3 editor and compiling from flash builder. The Flash Professional Project in Flash Builder seems perfect. It will give me the flexibility to compile from Flash Professional, or compile from the flex sdk, use breakpoints, have all my files nicely in the package explorer.
    However, it has been a terrible terrible experience. For some reason code hinting is completely turned off on all levels in Flash Professional Projects. I have been looking in every preference panel trying to figure out why this is happening. If it is actually the case that you get no code hinting whatsoever then they really should not have even bothered adding this into Flash Builder because coding in this fashion is a joke.
    However, I am still optimistic about it. Can someone help me turn on code hinting?

    Ok. Solved it. The issue was that we were using linked source code and library swcs that were all located under the same directory. When you pull up the project's properties and go to "Flex Build Path" under the "Source Path" tab you can add that directory without a problem. However, under the "Library Path" instead of just adding the directory, I added each swc individually and that solved my problem. Now all the code hinting is working perfectly.

  • CC Apps NOT Backward compatible with Master Collection 6.0...WHY NOT?!!!!

    This is just horse doodoo. Adobe, you've already got us hooked and paying out the nose, so WHY do I have to save all of my files in an OLDER version (InDesign, for instance) when I'm working on them in Creative Cloud just so I can be able to open them with my MasterCollection6 I paid $3000+ for?
    I should NEVER see the message: "Cannot save because file was created with a newer version Creative Cloud..." when I am working with your latest NON-MONTHLY CS6 Master Collection Apps. It is a pain in the a$$ and slows down our workflow.
    PLEASE, either give your loyal Master Collection 6 customers updates that make our Apps compatible with Creative Cloud, or start making Creative Cloud Apps backward compatible with our 6.xx version!
    Stop trying to hold us hostage with your plans to monthly-revenue everything we already paid thousands for, please!
    Sincerely pisT,
    Small Business Owner

    New features in new software does sometimes mean that new files do not open in old software
    Microsoft also does this... the new DOCX documents will not open in the old Word 97 (and, in fact, I had to buy MS Office 2003 because MS Office 97 would not even install and run on Windows 7)

  • Can Framemaker 12 save files down in Framemaker 11 and 10 ? Is it backward compatible?

    Can Framemaker 12 save files down in Framemaker 11 and 10 ? Is it backward compatible?
    Thanks,

    > Times New Roman ... you’re probably using the Unicode version of it ...
    Port a legacy font from the FM7 machine to the FM12 machine, such as Type1 Times, and convert the document to that on the FM12 machine.
    This may not completely solve the problem, as FM8 and later, when opening a pre-FM8 document, appears to convert some things to Unicode code points (even to the point of synthesizing a Unicode encoding of a legacy font, see Re: Adding the Trademark symbol to a document). Saving back to MIF7 probably does not convert the code points back, and FM7 may well complain, or crash, or something.
    If the problem is limited to certain special characters, like ™, there may be work-arounds, like invoking them only as Variables.
    This Unicode border between FM7.2 and FM8 may prove to be one-way for many documents, rather like the spikes at the exit of rental car lots. Do not back up. Extreme document damage may result.

  • How backwards compatible are PDF Porfolios, exactly?

    I can't find any definitive info in online help, Padova's Bible, or elsewhere on how backwards-compatible PDF portfolios are. Hoping to get some help here.
    I know that they can be opened in Reader 8 (as a package), can they be opened in Reader 4, 5, 6, or 7? (none of which I still have installed here). In other words, if I send out a PDF Portfolio "blind" ... have no idea what version of Reader the recipient might have ... what's the worst scenario? I could give the recipient a heads-up in the email carrying the attachment, if I knew.
    What does a Reader 4, 5, 6, or 7 user see when they (try to) open the portfolio? Does anyone know?
    I sent a portfolio containing a dozen PDFs and a ZIP to a new vendor of mine a couple days ago. No flash files or anything. I emailed her last night to make sure she got the files, she just sent me this:
    >I got a file. I've been unable to open it yet. I had to download some software, and then I had to see clients, so I don't know what's in the file yet.
    >I'll let you know at end today if I have problems. Unfortunately, I'm i the field most of the day today, and was all day yesterday as well.
    And this is a savvy Mac user. (Not a designer though.) Other people I may send this to may not be so motivated, or even have the right user privileges, to download and install software ... I'm guessing she's trying to download Reader 9.
    Thanks for any help,
    AM

    Hi Richard, Anne-Marie,
    You've probably worked out how to replace the rather loud and bullish 'Upgrade to 9 ...' screen in an Acro9 Portfolio opened in Acrobat 7 Reader. I think Anne-Marie certainly has.
    I'm using Acro 9 (trial version currently) and I think most of my users have Reader 7 but, as with Anne-Marie, I certainly would not want to make them feel they have to upgrade just to access my docs.
    For anyone interested, this is how I've worked it out so far:
    1. Create an alternative cover page and PDF it.
    - Note where you've put it.
    2. In Acrobat 9, open your portfolio.
    3. On the View menu, select Portfolio and then choose Cover Page.
    4. On the vertical Icon bar (left column, 3 buttons on my set up), click Pages icon(topmost).
    5. Right click the thumbnail of the page to be replaced and select Replace pages.
    6. Select the page you created at step 1 above and click Select.
    7. To go ahead, select OK and then, Yes.
    8. On the File menu, select Save Portfolio.
    9. Close Acro9 and open up the portfolio in reader 7.
    All the best, regards
    Matt

  • Flash cs5 backward compatibile with flash cs4

    Hello there
    Can anyone tell if cs5 flash is backward compatible?
    Thanks

    The correct word from Ned Murphy answer is 'in theory'. As actually there are lots of bugs when working with cs4 files in cs5:
    a. compiler works incorrectly and sometimes throws compile errors where cs4 compiles the same file correctly with no errors; and these issues concern not some 'reserved words' or classes that are omited in cs4, but rather as simple and unexpected elements as movie clips names, etc.
    b. when saving FLA file with embedded fonts in cs4 format fonts may include all outlines even though you may select just a few sets; so it may result in compiled SWF with quite huge size (imagine embedding all unicode Arial and Times fonts - that would take about 500 kb on fonts only).
    c. one time I had a bug with one graphic asset being replaced with another after compilation; that was I spent about two crazy hours finding out what causes this strange bug and couldn't - after restarting Flash the bug was eliminated in the same strange way.
    And that may be not the full list as Flash CS5 has some serious problems with Library - it causes lots of crashes.

  • Would someone be willing to check as3 code for a guestbook

    Would someone be willing to check out some as3 code for a guestbook? I'm an old person, and can't seem to get it working.
    Thanks!

    Ned suggested that I post the code, so everyone could see it. The SWF works, but the code doesn't. Any help appreciated!
    package com.mgraph\
      //IMPORTS
      import flash.display.Loader;
      import flash.display.MovieClip;
      import flash.display.Sprite;
      import flash.display.StageAlign;
      import flash.display.StageScaleMode;
      import flash.events::EventDispatcher/dispatchEventFunction();
      import flash.events::EventDispatcher/dispatchEvent();
      import flash.events.MouseEvent;
      import flash.events.TextEvent;
      import flash.events.KeyboardEvent;
      import flash.geom.Rectangle;
      import flash.net::URLLoader/onComplete();
      import flash.net.URLRequest;
      import flash.net.URLRequestMethod;
      import flash.net.URLVariables;
      import flash.text.TextFieldAutoSize;
      import flash.text.TextFormat;
      import com.utils.StringUtils;
      import com.caurina.transitions.Tweener;
      import com.pageflip.Page;
      import com.pageflip.PageEvent;
      public class Guestbook extends MovieClip {
      //PRIVATE VARS
      private var myXML:XML;
      private var frm:TextFormat;
      private var popup_mc:MovieClip;
      private var greySprite:Sprite;
      private var initPosition:Number;
      private var dy:Number;
      private var initContentPos:Number;
      private var moveVal:Number;
      private var rectScroll:Rectangle;
      private var stageWidth:Number;
      private var stageHeight:Number;
      public function Guestbook(){
      addEventListener(Event.ADDED_TO_STAGE,init);
      private function init(e:Event):void {
      stage.showDefaultContextMenu = false;
      stage.align = StageAlign.TOP_LEFT;
      stage.scaleMode = StageScaleMode.NO_SCALE;
      stageWidth = stage.stageWidth;
      stageHeight = stage.stageHeight;
      // LOAD THE XML
      var xmlPath:String;
      var xmlLoader:URLLoader = new URLLoader;
      if (root.loaderInfo.parameters.myconfig) {
      // XML PATH FROM HTML flashvars (myconfig)
      xmlPath = root.loaderInfo.parameters.myconfig;
      else {
      // DEFAUL PATH OF XML
      xmlPath = "config.xml";
      xmlLoader.load(new URLRequest(xmlPath));
      xmlLoader.addEventListener(Event.COMPLETE,xmlLoaded);
      private function xmlLoaded(e:Event):void {
      // XML LOADED COMPLETE
      myXML = new XML(e.target.data);
      // ADD EVENT LISENER TO FIELDS AND TO (send_btn)
      form_mc.name_txt.addEventListener(TextEvent.TEXT_INPUT,clearAlert);
      form_mc.email_txt.addEventListener(TextEvent.TEXT_INPUT,clearAlert);
      form_mc.message_txt.addEventListener(TextEvent.TEXT_INPUT,clearAlert);
      form_mc.email_txt.addEventListener(Event.CHANGE,checkMail);
      addMouseEvent(form_mc.send_btn,sendEvent);
      // CREATE TEXT FORMAT (frm)
      frm = new TextFormat  ;
      frm.leading = 4;
      form_mc.message_txt.defaultTextFormat = frm;
      // LOAD BACKGROUND IMAGE
      var backLoader:Loader = new Loader();
      backLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,backLoaded);
      backLoader.load(new URLRequest(myXML.img_back));
      // ADD KEYBOARD EVENT WHEN PRESSING ENTER KEY
      stage.addEventListener(KeyboardEvent.KEY_DOWN,keyboardDown);
      // CREATE THE GREY SPRITE
      greySprite = new Sprite  ;
      greySprite.graphics.beginFill(0x000000,0.2);
      greySprite.graphics.drawRect(0,0,stageWidth,stageHeight);
      greySprite.graphics.endFill();
      greySprite.useHandCursor = false;
      // CREATE THE POPUP and ADD EVENTLISTENER TO (close_btn)
      popup_mc = new popup_obj;
      popup_mc.x = (stageWidth - popup_mc.width)/2;
      popup_mc.y = (stageHeight - popup_mc.height)/2;
      addMouseEvent(popup_mc.close_btn,closeEvent);
      private function keyboardDown(e:KeyboardEvent):void{
      if(e.keyCode == 13){
      // STOP USING BREAK LINE IN message_txt
      stage.focus = null;
      private function backLoaded(e:Event):void{
      // BACKGROUND LOADED COMPLETE
      var back_mc:MovieClip = new MovieClip;
      back_mc.addChild(e.target.content);
      addChildAt(back_mc,0);
      form_mc.wait_mc.visible = false;
      startPageFlip();
      // START LOADING GUEST MESSAGE FROM DATABASE
      load_guestbook();
      private function startPageFlip():void{
      var flipedPage:Page = new Page(this, stageWidth, stageHeight, 0, 0);
      flipedPage.turnPageForward();
      private function load_guestbook():void {
      // GET MESSAGES FROM DATABASE USING PHP
      var guestLoad:URLLoader = new URLLoader  ;
      var guestReq:URLRequest = new URLRequest(myXML.phpURL);
      guestReq.method = URLRequestMethod.POST;
      guestReq.data = new URLVariables  ;
      guestReq.data["getMessage"] = 1;
      guestLoad.addEventListener(Event.COMPLETE,bookLoaded);
      guestLoad.load(guestReq);
      private function bookLoaded(e:Event):void {
      // MESSAGES LOADED SUCCESSFULLY FROM DATABASE
      var bookXML:XML = new XML(e.target.data);
      showMessages(bookXML);
      private function showMessages(_xml:XML):void{
      var guest_mc:MovieClip;
      // CREATE (guest_mc) to SHOW EACH GUEST NAME & MESSSAGE
      for (var u=0; u<_xml.guest.length(); u++) {
      guest_mc = new messageObj  ;
      guest_mc.y = 95 * u;
      //CAPITALIZE THE FIRST CHAR IN NAME
      guest_mc._Name = StringUtils.capitalize(_xml.guest[u].name);
      guest_mc._Msg = _xml.guest[u].msg;
      guest_mc._Date = _xml.guest[u].sdate;
      guest_mc.guestName_txt.htmlText = setHtmlFormat(14,myXML.name_color,guest_mc._Name);
      //IF guestMessage_txt TEXT LENGTH > 110 substr guestMessage_txt AND ADD (...)
      guest_mc.guestMessage_txt.htmlText = setHtmlFormat(12,myXML.message_color,StringUtils.capitalize(StringUtils.truncate(_xml.gue st[u].msg,110,"...")));
      guest_mc.guestMessage_txt.setTextFormat(frm);
      guest_mc.tabChildren = false;
      guest_mc.tabEnabled = false;
      // ADD EVENT LISTISTENER  TO (readMore_btn) FOR EACH (guest_mc)
      addMouseEvent(guest_mc.readMore_btn,readEvent);
      msgContainer.addChild(guest_mc);
      // SHOW/HIDE SCROLL
      if (msgContainer.height < mask_mc.height) {
      scroller.scroll_btn.visible = false;
      else {
      this.mouseChildren = false;
      scroller.scroll_btn.y = 0;
      if(msgContainer.y != 10){
      Tweener.addTween(msgContainer,{y:10,time:1.5,onComplete:initScrollPos});
      else{
      initScrollPos();
      scroller.scroll_btn.visible = true;
      // ADD EVENT  TO SCROLL
      addMouseEvent(scroller.scroll_btn,scroll_Event);
      scroller.scroll_btn.addEventListener(MouseEvent.MOUSE_UP,scroll_Event);
      private function initScrollPos():void{
      this.mouseChildren = true;
      dy = 0;
      initPosition = scroller.scroll_btn.y = scroller.bar_mc.y;
      initContentPos = msgContainer.y;
      moveVal = (msgContainer.height-mask_mc.height)/(scroller.bar_mc.height-scroller.scroll_btn.height);
      rectScroll = new Rectangle(scroller.bar_mc.x + 4,scroller.bar_mc.y,0,scroller.bar_mc.height - scroller.scroll_btn.height);
      private function readEvent(me:MouseEvent):void {
      var _this = me.currentTarget;
      switch (me.type) {
      case "mouseOver" :
      _this.alpha = 0.8;
      break;
      case "mouseOut" :
      _this.alpha = 1;
      break;
      case "mouseDown" :
      // SHOW POPUP WITH MORE INFORMATIONS ABOUT THE CURRENT MESSAGE
      popup_mc.pop_nom.htmlText = setHtmlFormat(15,myXML.name_color,_this.parent._Name) + setHtmlFormat(13,myXML.datePosted_color," - Posted "+_this.parent._Date);
      popup_mc.pop_message.htmlText = setHtmlFormat(13,myXML.message_color,StringUtils.capitalize(_this.parent._Msg));
      popup_mc.pop_message.autoSize = TextFieldAutoSize.LEFT;
      popup_mc.pop_message.setTextFormat(frm);
      popup_mc.back_mc.height = popup_mc.pop_message.height + 50;
      popup_mc.x = (stageWidth - popup_mc.width)/2;
      popup_mc.y = (stageHeight - popup_mc.height)/2;
      addChild(greySprite);
      addChild(popup_mc);
      popup_mc.alpha = 0;
      greySprite.alpha = 0;
      Tweener.addTween(popup_mc,{alpha:1,time:0.6});
      Tweener.addTween(greySprite,{alpha:1,time:0.6});
      break;
      private function setHtmlFormat(_size:Number,_color,_txt:String):String{
      var htmlFrm:String  = "<font size='"+_size+"'color='"+_color+"'>"+_txt+"</font>";
      return htmlFrm;
      private function closeEvent(me:MouseEvent):void {
      switch (me.type) {
      case "mouseOver" :
      popup_mc.close_btn.alpha = 0.8;
      break;
      case "mouseOut" :
      popup_mc.close_btn.alpha = 1;
      break;
      case "mouseDown" :
      if (stage.contains(popup_mc)) {
      Tweener.addTween(greySprite,{alpha:0,time:0.6,onComplete:function(){removeChild(greySprit e)}});
      Tweener.addTween(popup_mc,{alpha:0,time:0.6,onComplete:function(){removeChild(popup_mc)}} );
      break;
      private function scroll_Event(me:MouseEvent):void {
      switch (me.type) {
      case "mouseOver" :
      scroller.scroll_btn.alpha = 0.7;
      break;
      case "mouseOut" :
      scroller.scroll_btn.alpha = 1;
      break;
      case "mouseUP" :
      scroller.scroll_btn.stopDrag();
      scroller.scroll_btn.removeEventListener(Event.ENTER_FRAME, scrollMove);
      break;
      case "mouseDown" :
      scroller.scroll_btn.startDrag(false, rectScroll);
      scroller.scroll_btn.addEventListener(Event.ENTER_FRAME, scrollMove);
      stage.addEventListener(MouseEvent.MOUSE_UP, releaseOut);
      break;
      private function scrollMove(event:Event):void {
      dy = Math.abs(initPosition - scroller.scroll_btn.y);
      msgContainer.y = Math.round(dy * -1 * moveVal + initContentPos);
      private function releaseOut(me:MouseEvent):void {
      scroller.scroll_btn.stopDrag();
      scroller.scroll_btn.removeEventListener(Event.ENTER_FRAME, scrollMove);
      stage.removeEventListener(MouseEvent.MOUSE_UP, releaseOut);
      private function sendEvent(e:MouseEvent):void {
      switch (e.type) {
      case "mouseOver" :
      form_mc.send_btn.alpha = 0.7;
      break;
      case "mouseOut" :
      form_mc.send_btn.alpha = 1;
      break;
      case "mouseDown" :
      // CHECK FIELDS AND EMAIL THEN SEND DATA TO PHP
      if (form_mc.name_txt.text == "") {
      stage.focus = form_mc.name_txt;
      show_alert("You must enter the : « Name »");
      else if (form_mc.email_txt.text == "") {
      stage.focus = form_mc.email_txt;
      show_alert("You must enter the : « E-mail »");
      else if (form_mc.validating.currentFrame == 1) {
      stage.focus = form_mc.email_txt;
      form_mc.validating.alpha = 1;
      form_mc.validating.gotoAndStop(1);
      show_alert("« E-mail » address is incorrect");
      else if (form_mc.message_txt.text == "") {
      stage.focus = form_mc.message_txt;
      show_alert("You must enter the : « Message »");
      else {
      sendData();
      break;
      private function checkMail(e:Event):void {
      form_mc.validating.alpha = 1;
      var mail_validation:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;
      mail_validation.test(form_mc.email_txt.text);
      if (mail_validation.test(form_mc.email_txt.text) == true) {
      form_mc.validating.gotoAndStop(2);
      form_mc.alert_txt.text = "";
      else {
      form_mc.validating.gotoAndStop(1);
      private function clearAlert(te:TextEvent):void {
      if (form_mc.alert_txt.text != "") {
      form_mc.alert_txt.text = "";
      private function show_alert(txt:String):void {
      form_mc.alert_txt.htmlText = "<font color='" + myXML.alert_color + "'>" + txt + "</font>";
      private function sendData():void {
      // SEND NAME-EMAIL-MESSAGE TO PHP
      this.mouseChildren = false;
      form_mc.wait_mc.visible = true;
      var phpLoad:URLLoader = new URLLoader  ;
      var phpReq:URLRequest = new URLRequest(myXML.phpURL);
      phpReq.method = URLRequestMethod.POST;
      phpReq.data = new URLVariables  ;
      phpReq.data["name"] = StringUtils.stripTags(form_mc.name_txt.text);
      phpReq.data["email"] = form_mc.email_txt.text;
      phpReq.data["message"] = StringUtils.stripTags(form_mc.message_txt.text);
      phpLoad.addEventListener(Event.COMPLETE,insertPHP);
      phpLoad.load(phpReq);
      private function insertPHP(e:Event):void {
      this.mouseChildren = true;
      var phpXML:XML = new XML(e.target.data);
      form_mc.send_btn.mouseEnabled = true;
      form_mc.wait_mc.visible = false;
      if (phpXML.inserted == 1) {
      startPageFlip();
      form_mc.alert_txt.htmlText = myXML.insert_ok;
      form_mc.validating.alpha = 0;
      form_mc.validating.gotoAndStop(1);
      while (msgContainer.numChildren) {
      msgContainer.removeChildAt(msgContainer.numChildren-1);
      // SHOW THE CURRENT POSTED MESSAGE AND CLEAR FIELDS
      showMessages(phpXML);
      clearFields();
      else {
      form_mc.alert_txt.htmlText = myXML.insert_error;
      private function clearFields():void {
      form_mc.name_txt.text = "";
      form_mc.email_txt.text = "";
      form_mc.message_txt.text = "";
      form_mc.validating.gotoAndStop(1);
      form_mc.validating.alpha = 0;
      private function addMouseEvent(_targ,_func):void {
      _targ.buttonMode = true;
      _targ.mouseChildren = false;
      _targ.addEventListener(MouseEvent.MOUSE_OVER,_func);
      _targ.addEventListener(MouseEvent.MOUSE_OUT,_func);
      _targ.addEventListener(MouseEvent.MOUSE_DOWN,_func);

  • Vector shapes not backwards compatible?

    Hello,
    I work in an office where some people are on differnt versions of Photoshop while I am using CC. When I create vector objects and save them in a file they sometimes show up as all black in older versions of photoshop. Is there a process that I can use that will get around this issue? These files are passed back and forth and I understand that I may loose the ability to use some of the newer features with CC in order to avoid issues. But I need to use the vector options on a daily basis.
    I see another issue that people are running into that I also deal with alot and that is the crop tool adjustments. When you use the crop tool it sometimes makes the vectors all out of wack.
    Any help is apreciated!
    Thank you,
    Andrew H

    You have your compatibilities backwards. Older versions are not forward compatible for newer features are not in older versions of Photoshop so compatibility is not possible.   Newer versions of Photoshop for the most part are backwards compatible with older versions of Photoshop. However Adobe drops the ball at times. Since CS4 Photoshop is not fully backwards compatible in fact Photoshop CS4 and newer are not fully compatible with themselves.  There are bugs and compatibility issues with options in the adjustment panels fly-out menu.  Option in it can change Photoshop default operation which not only makes it not backwards compatible they make some feature  in the current version work in an inconsistent manner.  The code implementing these options  are not without their bug. Photoshop does not always operate the way the options are set.

  • JMF mp3 compatible with Flash?

    Hi,
    I am trying to convert some wav files to mp3 on the fly so as to allow streaming of the mp3 files using a flash player. However, I have noticed that the converted mp3 don't seem to be compatible with flash. Some of the essential details are as follows:
    Input wav format: LINEAR, 8000.0 Hz, 16-bit, Mono, BigEndian, Signed
    Output mp3 format: MPEGAUDIO, 22050.0 Hz, 16-bit, Stereo, BigEndian, Signed
    Apart from the above mp3 format, I've also tried all the tweaking the sample rate, channels etc but none of the formats seem to be playing on the flash player. For conversion, I have tried using both the Transcode.java sample code as well as the JMStudio application provided with JMF installer. The mp3 files play out fine on other media players such as windows media player and on JMStudio as well.
    When I try to use Audacity to convert the wav file to the same mp3 format as above, there is a difference of about 2kb in the size of the files converted using Audacity and JMF, the earlier being the larger one. The version of flash player that I am using is WIN 9,0,124,0.
    Can someone please give an insight into what might be happening here. Thank you.

    The MP3 plugin contains a decoder only. JMF does not support MP3 encoding.

Maybe you are looking for