Swf-fla question

i made a fla a while back with a little animated navigational
aid, which because my scripting skills are so poor, was quite
tedious to program. now i need to edit it but i've lost the fla.
can flash convert the swf back into a fla?
any suggestions?
thanks,
macron

thanks for running it through your program. it's interesting,
the layer names don't look the same as i remember, and it seems as
if it put each invisible button on its own layer, whereas i had
them on one. and the text shows up as question marks. it did
retrieve the animation script though, which i was dreading having
to rebuild from scratch. that's terrific. i'll take a look at
so-think. thanks for the advice.
much obliged,
macron

Similar Messages

  • How to add a dropdown menu in flash document (.swf, .fla) ??

    How to add a dropdown menu in flash document (.swf, .fla) ??
    as i am developing a website for my semester proj, i need to add some flash contetn in the website..
    here is the link, http://www.mediafire.com/?wnx1jkwkkx9c118
    Check Out..
    the thing is i want a dropdown list/menu in "language selection - tab " (check the html page in above link).. plz help me out..
    Thank You,
    sairam

    For Flash questions check the Flash Forums. 
    http://forums.adobe.com/community/flash
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Importing SWF/FLA animated intro...

    I created an intro animation in Flash 8 to use as the intro
    for our captivate classes.
    The animation does not play well, it skips forward through
    70% of the animation, and only plays one of the audio pieces.
    I dont seem to be doing it right. Also I created the
    animation as the same widthxheight as the captivate video but it
    seems to be resizing it. Could this be the problem?
    Thanks.

    Hi there. There are just too many variables to do more than
    give you wild guesses. But maybe with some more information ...
    We don't speak "does not play well"
    , so you'll have to be more specific please.
    When you say it "skips forward through 70% of the animation",
    I assume you mean that the Flash 8 - generated intro only shows the
    last 30%??
    And about those "audio pieces" that it only "plays one" ...
    how many separate audio files are included in the Flash Intro SWF?
    And where are the missing ones time-lined to play (in Flash)?
    Open the FLA for the intro and double-check (in Flash 8) what
    Flash version you specified when you published the SWF from Flash.
    That could be the problem ... try Flash version 7 (if you already
    output as version 8) to see if that helps. Let us know what that
    does ...
    In the meantime, the answer to your other question is "no",
    the Flash SWF size shouldn't have any affect at all, because as a
    Flash-generated SWF it would be vector-based, so reducing or
    enlarging it should be okay ... unlike Captivate SWFs which are
    raster-based (bit-mapped) and aren't as "scalable" as
    vector-graphics.
    Hope this helps somewhat.
    .

  • Flash cc .swf file question

    Hello
    i am at a stuck point on a project I am working on which includes editing a pre built flash player banner in the .swf file format. My problem is I need to change where the links are directing to in the flash banner but have no xpieriance in it. I installed flash cc and noticed it won't let me open a .swf file so I could try and give editing the link a go.
    I Did download so-think swf editor and decompressor with no luck as I don't understand it's mechanics, but really want to be able to find a permanent   solution for future projects to come within the adobe cloud applications I am already working with.
    my question is what are my options for being able to edit swf files do I have to turn them into .fla files and if so how would I do that as I already attempted to simply rename the files .fla instead of .swf but flash cc found problems with that.
    I am very much stuck and am encouraging any guidence I could possibly get to find a resolution to my problem, please help!
    thanks
    Erik

    You cannot edit swf files... they are the result of publishing the fla files that create them.  You need to acquire the fla files and edit and publish them in order to have the swf with the changes.  If you are not able to acquire the fla files then you probably do not have the legal right to use the file.

  • Basic swf & layers question

    If i make a swf of a dot at center stage and publish it, then
    add it to a layer in DW, it shows up as a grayed out box blocking
    whats underneath making it difficult to work on whats underneath,
    also much larger than the actual movie needs to be.
    1. Can I Do anything about the grey to view whats underneath?
    2. Can I crop the movie so that the layer is smaller only
    showing the area of interest?
    Thanks

    hard to understand - this may just be a DW question.
    What "gray box"? is it a rectangular graphic in your flash
    doc or the stage color? Or are you
    looking at it in the DW authoring tool?
    You can't "crop" flash movies - but rather you can edit the
    width and height in the html (or DW)
    after it has been embedded into the page.
    If you must "crop" - go back to source FLA and edit the width
    and height of your movie - but flash
    only "crops" from right and bottom edges of the stage - so if
    your circle needs to be center - then
    you will need to use the align panel to center it again.
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    Alfred Hitch wrote:
    > If i make a swf of a dot at center stage and publish it,
    then add it to a layer
    > in DW, it shows up as a grayed out box blocking whats
    underneath making it
    > difficult to work on whats underneath, also much larger
    than the actual movie
    > needs to be.
    > 1. Can I Do anything about the grey to view whats
    underneath?
    > 2. Can I crop the movie so that the layer is smaller
    only showing the area of
    > interest?
    >
    > Thanks
    >
    >

  • Converting swf/fla

    I have a problem with Flash converting. I have a one swf file that will not open in Adobe Flash. The problem , however, is the following . I want to edit swf file and to access the fla file , I use Sothink decompiler where I convert the same Swf file to fla . When I convert the file in decompiler 7.0 , I get to choose which flash format , from 6.0 to 12.0, I want to use. what I choose for version does not seem to matter ( except that the converter nobody seems gone well ) , the result is a failure when I then made my changes in the fla file in adobe flash and want to save it to the swf in the same program. following text is displayed several times :
    The problem occurs when I want to save. Wrong to . Swf in adobe flash . following problems appear repeatedly :
    / Applications / Adobe Flash CS6/Common/Configuration/Component Source / ActionScript 3.0/FLVPlayback/fl/video/UIManager.as , Line 449 1120 : Access of undefined property PLAYER .
    when I click on the error , I can edit the CONFIG :: PLAYER {
    besides it is also shown :
    / Applications / Adobe Flash CS6/Common/Configuration/Component Source / ActionScript 3.0/FLVPlayback/fl/video/UIManager.as , Line 452 1120 : Access of undefined property AIR.
    CONFIG :: Air {
    I convert fla file in the PC and Opens the adobe flash in mac . but don't thinks that's the problem

    Hi,
    You can decompile the SWFs you are working on using any SWF
    decompiler, search for one on Google, but the result sometimes is
    not as good as the source files.

  • Convert swf/fla

    I have a problem with Flash converting. I have a one swf file that will not open in Adobe Flash. The problem , however, is the following . I want to edit swf file and to access the fla file , I use Sothink decompiler where I convert the same Swf file to fla . When I convert the file in decompiler 7.0 , I get to choose which flash format , from 6.0 to 12.0, I want to use. what I choose for version does not seem to matter ( except that the converter nobody seems gone well ) , the result is a failure when I then made my changes in the fla file in adobe flash and want to save it to the swf in the same program. following text is displayed several times :
    The problem occurs when I want to save. Wrong to . Swf in adobe flash . following problems appear repeatedly :
    / Applications / Adobe Flash CS6/Common/Configuration/Component Source / ActionScript 3.0/FLVPlayback/fl/video/UIManager.as , Line 449 1120 : Access of undefined property PLAYER .
    when I click on the error , I can edit the CONFIG :: PLAYER {
    besides it is also shown :
    / Applications / Adobe Flash CS6/Common/Configuration/Component Source / ActionScript 3.0/FLVPlayback/fl/video/UIManager.as , Line 452 1120 : Access of undefined property AIR.
    CONFIG :: Air {
    I convert fla file in the PC and Opens the adobe flash in mac . but don't thinks that's the problem

    You are not likely to get help decompiling someone else's files.

  • SWF Decompiler Question

    Hello,
    I'm trying to get a working .fla file of the .swf at the bottom of this page...
    http://www.fsip.biz/About.html
    I tried the free version of SoThink's decompiler, but all I got was a black box with lots of layers. I'm using Flash CS3.
    Any advice?

    Contact SoThink and see what their customer support has to offer.

  • Swf file question

    One thing I haven't learned on flash yet...and I'm sure it's
    quite simple...is how do you run a swf file without it having to
    have the support files that go along with it?
    i.e., i want to send someone a completed swf file without
    having to also send the fla file etc..
    I'm assuming it has something to do with embedding.
    Any help will be appreciated.
    =)

    You should be able to send the swf file by itself. If the
    other person has the player to support it installed, then it should
    play for them.

  • Help importing SWF / FLA contact form into FLA file.

    I've been trying to import, embed, or load a contact form into a fla flash website (i have the fla and files) however i cant seem to get it to work.
    The form is separate file, I have the fla source file for it as well.
    I'm using Actionscript 3. I would like to have the form dynamical load into my existing project/page - http://www.photorexit.com/site/contact/contact
    Here is the contact form page - http://www.photorexit.com/site/contact/contact_page.html
    any suggestions?
    -Jason

    The contact_page.fla page is a template contact file I purchased on the net.
    I spent most of the morning going through the files and I cant seem to pin point why the contact_page is trying to load contact.swf from my local computer.
    I assume it has something to do with the "contact_page" ContactPage.as file and the Monitor.as file.
    I have to admit, I'm in over my head...
    -Jason
    ContactPage.as
    package as3{
        import flash.display.Sprite;
        import flash.display.MovieClip;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.events.Event;
        import flash.events.IOErrorEvent;
        import flash.events.MouseEvent;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.net.navigateToURL;
        import flash.utils.Timer;
        import flash.geom.ColorTransform;
        import caurina.transitions.Tweener;
        import caurina.transitions.properties.ColorShortcuts;
        ColorShortcuts.init();
        public class ContactPage extends Sprite {
            public var itemsPath:String='';
            private var xmlCOLORS_DFT:String = 'colors.xml';
            private var colorStatus:Boolean=false;
            public var color_dfr:Object=new Object();
            private var xmMAIN_XML_PATH:String = 'cgal.xml';
            private var mainXMLStatus:Boolean=false;
            public var xmlDate:Array = [];
            private var mainTitle:String='';
            private var bg:BG;
            private var monitor:Monitor;
            public var footerMenu:FooterMenu;
            private var b_colorOut:uint;
            private var b_colorOver:uint;
            public var container:MovieClip;
            public var closeF:Function;
            public var monitorHeight:int=0;
            public var monitorWidth:int=0;
            public var email_for_contact_form:String;
            public function ContactPage() {
                addEventListener(Event.ENTER_FRAME, aplLoading);
                addEventListener(Event.REMOVED_FROM_STAGE, remove);
            private function remove(e:Event):void {
                trace(this);
                removeEventListener(Event.ENTER_FRAME, aplLoading);
                removeEventListener(Event.ENTER_FRAME, loading);
                stage.removeEventListener(Event.RESIZE, appResizeHandler);
            private function aplLoading(e:Event):void {
                var bytesTotal = stage.loaderInfo.bytesTotal;
                var bytesLoaded = stage.loaderInfo.bytesLoaded;
                var percentLoaded : Number = Math.floor(Math.round( bytesLoaded/bytesTotal ));
                if (percentLoaded==1) {
                    if (parent!=stage) {
                        closeF= Object(parent).goBG;
                        container = Object(parent).div;
                        xmlCOLORS_DFT =  Object(parent).xmlCOLORS_DFT;
                        xmMAIN_XML_PATH = Object(parent).xmMAIN_XML_PATH;
                        itemsPath=Object(parent).itemsPath;
                    init();
                    removeEventListener(Event.ENTER_FRAME, aplLoading);
            public function init() {
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.align = StageAlign.TOP_LEFT;
                stage.addEventListener(Event.RESIZE, appResizeHandler);
                footerMenu = new FooterMenu();
                monitor = new Monitor();
                bg = new BG();
                bg.alpha=0;
                addChild(bg);
                appResizeHandler();
                var mainLoader:URLLoader = new URLLoader();
                mainLoader.addEventListener( Event.COMPLETE, onMainXMLLoad );
                mainLoader.addEventListener(IOErrorEvent.IO_ERROR, errorTrace);
                mainLoader.load( new URLRequest(xmMAIN_XML_PATH) );
                var colorLoader:URLLoader = new URLLoader();
                colorLoader.addEventListener( Event.COMPLETE, onColorXMLLoad );
                colorLoader.addEventListener(IOErrorEvent.IO_ERROR, errorTrace);
                colorLoader.load( new URLRequest(xmlCOLORS_DFT) );
            public function colorCgange(obj:Object, color:uint):void {
                var colorTransform:ColorTransform = new ColorTransform();
                colorTransform.color = color;
                obj.transform.colorTransform = colorTransform;
            private function onColorXMLLoad( event:Event ):void {
                try {
                    var mainData:XML = new XML( event.target.data );
                    for (var i:int; i<mainData.elements().length(); i++) {
                        var attribCol:Object = {};
                        for each (var attribute:XML in mainData.elements()[i].attributes()) {
                            attribCol[attribute.name().toString()] = attribute.valueOf().toString();
                        color_dfr[mainData.elements()[i].name().toString()] = attribCol;
                    colorStatus = true;
                    addEventListener(Event.ENTER_FRAME, loading);
                } catch (e:Error) {
                    errorTrace("Couldn't load the Color XML file.<br/>"+e.message);
                    trace( 'Color XML Loading Error: ' + e.message );
                    return;
            private function onMainXMLLoad( event:Event ):void {
                try {
                    var mainData:XML = new XML( event.target.data );
                    mainTitle = [email protected]();
                    if (Boolean([email protected]())) {
                        monitorWidth = parseInt([email protected]());
                    if (Boolean([email protected]())) {
                        monitorHeight = parseInt([email protected]());
                    if (Boolean(mainData.@email_for_contact_form.toString())) {
                        email_for_contact_form = mainData.@email_for_contact_form.toString();
                    } else {
                        errorTrace("There is no e-mail address.");
                        trace( "There is no e-mail address.");
                        return;
                    for (var i:int=0; i<mainData.elements().length(); i++) {
                        xmlDate[i] = {title:mainData.elements()[i][email protected](), cont:mainData.elements()[i]};
                    mainXMLStatus = true;
                    addEventListener(Event.ENTER_FRAME, loading);
                } catch (e:Error) {
                    errorTrace("Couldn't load the Main XML file.<br/>"+e.message);
                    trace( 'Main XML Loading Error: ' + e.message );
                    return;
            private function loading(e:Event):void {
                if (mainXMLStatus && colorStatus) {
                    removeEventListener(Event.ENTER_FRAME, loading);
                    if (Boolean(color_dfr.background.color.length)) {
                        Tweener.addTween(bg,{_color:color_dfr.background.color, alpha:1, time:1});
                    } else {
                        bg.alpha=0;
                    monitor.alpha = 0;
                    footerMenu.alpha= 0;
                    addChild(monitor);
                    colorCgange(monitor.txt, color_dfr.mainTitle.textColor);
                    monitor.txt.text = mainTitle;
                    monitor.init();
                    monitor.addChild(footerMenu);
                    b_colorOver = uint(color_dfr.buttons.mouseOver);
                    b_colorOut = uint(color_dfr.buttons.mouseOut);
                    Tweener.addTween(monitor,{alpha:1,time:1});
                    Tweener.addTween(footerMenu,{alpha:1,time:1, delay:.7});
            function buttonRoll(e:MouseEvent):void {
                var button = e.currentTarget;
                switch (e.type) {
                    case "mouseOut" :
                        colorCgange(button.img,b_colorOut);
                        break;
                    case "mouseOver" :
                        colorCgange(button.img,b_colorOver);
                        break;
            public function errorTrace(txt:String):void {
                var err_txt:TextField= new TextField();
                err_txt.width = 300;
                err_txt.autoSize = TextFieldAutoSize.LEFT;
                err_txt.wordWrap = true;
                err_txt.htmlText = '<p align = "center"><font color="#ff0000" size="24">' + txt+ '</font></p>';
                err_txt.x = (stage.stageWidth-err_txt.width)/2;
                err_txt.y = (stage.stageHeight-err_txt.height)/2;
                addChild(err_txt);
            private function appResizeHandler(e:Event=null):void {
                if (container) {
                    bg.width = container.width;
                    bg.height = container.height;
                } else if(stage) {
                    bg.width = stage.stageWidth;
                    bg.height = stage.stageHeight;
    Monitor.as
    package as3{
        import flash.display.MovieClip;
        import flash.display.StageAlign;
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Loader;
        import flash.display.LoaderInfo;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
        import flash.events.FocusEvent;
        import flash.events.ProgressEvent;
        import flash.events.IOErrorEvent;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.net.URLVariables;
        import flash.net.URLLoaderDataFormat;
        import flash.net.URLRequestMethod;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        import flash.geom.ColorTransform;
        import caurina.transitions.Tweener;
        public class Monitor extends MovieClip {
            private var itemsPath:String;
            private var mainObj:Object;
            private var b_colorOver:uint;
            private var b_colorOut:uint;
            private var mainTitle:uint;
            private var itemTitle:uint;
            private var itemDescription:uint;
            private var xmlData:Array;
            private var container:MovieClip;
            private var mail:String;
            private var loader:URLLoader = new URLLoader();
            private var req:URLRequest = new URLRequest("contactPro.php");
            private var variables:URLVariables = new URLVariables();
            private var senderRpl:String="No";
            private var form_field_arr:Array=['txt_name', 'txt_phone','txt_email', 'txt_message'];
            private var form_def_cont_arr:Array=[];
            private var form_err_arr:Array=["Username Required","","Missing Field/Invalid E-mail", "Message Required"];
            public function Monitor() {
                b_close.visible=false;
                addEventListener(Event.ADDED_TO_STAGE, toStage);
            private function toStage(e:Event):void {
                mainObj = parent;
                container = mainObj.container;
                if (container) {
                    itemsPath = mainObj.itemsPath;
                    req = new URLRequest(itemsPath+"/contactPro.php");
                    b_close.alpha=0;
                    b_close.visible=true;
                    Tweener.addTween(b_close, {alpha:1, time:1});
                    mainObj.footerMenu.visible=false;
                xmlData = mainObj.xmlDate;
                mail = mainObj.email_for_contact_form;
                b_colorOver = uint(mainObj.color_dfr.buttons.mouseOver);
                b_colorOut = uint(mainObj.color_dfr.buttons.mouseOut);
                mainTitle = uint(mainObj.color_dfr.mainTitle.textColor);
                itemTitle= uint(mainObj.color_dfr.itemTitle.textColor);
                itemDescription= uint(mainObj.color_dfr.itemDescription.textColor);
                var contactFtextColor:uint = uint(mainObj.color_dfr.inoutTextField.textColor);
                var contactFbgColor:uint = uint(mainObj.color_dfr.inoutTextField.bgColor);
                var contactFbrColor:uint = uint(mainObj.color_dfr.inoutTextField.borderColor);
                ///mainObj.colorCgange(b_close.img, b_colorOut);
                mainObj.colorCgange(contactForm.mc_buttons.b_clear.img, b_colorOut);
                mainObj.colorCgange(contactForm.mc_buttons.b_submit.img, b_colorOut);
                b_close.buttonMode=true;
                b_close.addEventListener(MouseEvent.CLICK, fClose);
                b_close.addEventListener(MouseEvent.MOUSE_OVER,buttonRoll);
                b_close.addEventListener(MouseEvent.MOUSE_OUT,buttonRoll);
                contactForm.mc_buttons.b_clear.addEventListener(MouseEvent.MOUSE_OVER,buttonRoll);
                contactForm.mc_buttons.b_clear.addEventListener(MouseEvent.MOUSE_OUT,buttonRoll);
                contactForm.mc_buttons.b_submit.addEventListener(MouseEvent.MOUSE_OVER,buttonRoll);
                contactForm.mc_buttons.b_submit.addEventListener(MouseEvent.MOUSE_OUT,buttonRoll);
                item_1.autoSize = TextFieldAutoSize.LEFT;
                item_1.wordWrap=true;
                item_1.mouseWheelEnabled=false;
                item_2.autoSize = TextFieldAutoSize.LEFT;
                item_2.wordWrap=true;
                item_2.mouseWheelEnabled=false;
                item_3.autoSize = TextFieldAutoSize.LEFT;
                item_3.wordWrap=true;
                item_3.mouseWheelEnabled=false;
                textFieldFormat(item_1, itemDescription);
                textFieldFormat(item_2, itemDescription);
                textFieldFormat(item_3, itemDescription);
                textFieldFormat(title_1, itemTitle);
                textFieldFormat(title_2, itemTitle);
                textFieldFormat(contactForm.txError, itemTitle);
                contactForm.txt_name.borderColor = contactFbrColor;
                contactForm.txt_name.backgroundColor = contactFbgColor;
                contactForm.txt_phone.borderColor = contactFbrColor;
                contactForm.txt_phone.backgroundColor = contactFbgColor;
                contactForm.txt_email.borderColor = contactFbrColor;
                contactForm.txt_email.backgroundColor = contactFbgColor;
                contactForm.txt_message.borderColor = contactFbrColor;
                contactForm.txt_message.backgroundColor = contactFbgColor;
                textFieldFormat(contactForm.txt_name, contactFtextColor);
                textFieldFormat(contactForm.txt_phone, contactFtextColor);
                textFieldFormat(contactForm.txt_email, contactFtextColor);
                textFieldFormat(contactForm.txt_message, contactFtextColor);
                contactForm.txt_message.wordWrap=true;
                appResizeHandler();
                stage.addEventListener(Event.RESIZE, appResizeHandler);
            private function textFieldFormat(tField:TextField, color:uint):void {
                var format:TextFormat = new TextFormat();
                format.color = color;
                tField.defaultTextFormat = format;
            function buttonRoll(e:MouseEvent):void {
                var button = e.currentTarget;
                switch (e.type) {
                    case "mouseOut" :
                        if(button.name == "b_close"){
                            button.img.transform.colorTransform = new ColorTransform();
                        }else{
                            mainObj.colorCgange(button.img, b_colorOut);
                        break;
                    case "mouseOver" :
                        mainObj.colorCgange(button.img, b_colorOver);
                        break;
            private function fClose(e:MouseEvent):void {
                mainObj.closeF()
            public function init():void {
                var i:int=0;
                title_1.text = xmlData[0].title;
                title_2.text = xmlData[1].title;
                for (i=0; i<xmlData[0].cont.elements().length(); i++) {
                    this['item_'+(i+1)].htmlText = xmlData[0].cont.elements()[i];
                for (i=0; i<xmlData[1].cont.elements().length(); i++) {
                    form_def_cont_arr[i]=xmlData[1].cont.elements()[i];
                loader.dataFormat = URLLoaderDataFormat.VARIABLES;
                req.method = URLRequestMethod.POST;
                contactForm.mc_buttons.b_clear.buttonMode = true;
                contactForm.mc_buttons.b_submit.buttonMode = true;
                contactForm.mc_buttons.b_clear.addEventListener(MouseEvent.MOUSE_DOWN, text_field_clear);
                contactForm.mc_buttons.b_submit.addEventListener(MouseEvent.MOUSE_DOWN, sendForm);
                for (i=0; i<form_field_arr.length; i++) {
                    contactForm[form_field_arr[i]].tabIndex = i;
                    contactForm[form_field_arr[i]].text= form_def_cont_arr[i] ;
                    contactForm[form_field_arr[i]].addEventListener(FocusEvent.FOCUS_IN, onFocus);
                    contactForm[form_field_arr[i]].addEventListener(FocusEvent.FOCUS_OUT, outFocus);
                    contactForm[form_field_arr[i]].addEventListener(Event.CHANGE, txErrorCheck);
                appResizeHandler();
            private function txErrorCheck(event:Event):void {
                if (contactForm.txError.text.length>0) {
                    contactForm.txError.text = "";
            private function onFocus(event:FocusEvent):void {
                //trace('dd')
                for (var i:int=0; i<form_field_arr.length; i++) {
                    if (event.target.name==form_field_arr[i]) {
                        var text_field_index = i;
                if (contactForm[form_field_arr[text_field_index]].text==form_def_cont_arr[text_field_index]) {
                    contactForm[form_field_arr[text_field_index]].text='';
            private function outFocus(event:FocusEvent):void {
                for (var i:int=0; i<form_field_arr.length; i++) {
                    if (event.target.name==form_field_arr[i]) {
                        var text_field_index = i;
                if (contactForm[form_field_arr[text_field_index]].text=='') {
                    contactForm[form_field_arr[text_field_index]].text=form_def_cont_arr[text_field_index];
            private function text_field_clear(event:Event=null):void {
                for (var i:int=0; i<form_field_arr.length; i++) {
                    contactForm[form_field_arr[i]].text= form_def_cont_arr[i] ;
                    contactForm.txError.text='';
            private function sendForm(evt:MouseEvent):void {
                if (contactForm[form_field_arr[0]].text<=0 || contactForm[form_field_arr[0]].text==form_def_cont_arr[0]) {
                    contactForm.txError.text =form_err_arr[0];
                } else if (!isValidEmail(contactForm[form_field_arr[2]].text)) {
                    contactForm.txError.text = form_err_arr[2];
                } else if (contactForm[form_field_arr[3]].text<=0 || contactForm[form_field_arr[3]].text==form_def_cont_arr[3]) {
                    contactForm.txError.text =form_err_arr[3];
                } else {
                    variables.to_mail = mail;
                    variables.senderName = contactForm[form_field_arr[0]].text;
                    variables.senderPhone = contactForm[form_field_arr[1]].text;
                    variables.senderEmail = contactForm[form_field_arr[2]].text;
                    variables.senderMsg = contactForm[form_field_arr[3]].text;
                    req.data = variables;
                    loader.addEventListener(IOErrorEvent.IO_ERROR, phpError);
                    loader.addEventListener(Event.COMPLETE, receiveLoad);
                    loader.load(req);
                    contactForm.txError.text = 'Submitting form.';
            private function phpError(e:IOErrorEvent):void {
                trace(e.text);
                contactForm.txError.text = e.text;
            private function receiveLoad(evt:Event):void {
                if (evt.target.data.retval == 1) {
                    contactForm.txError.text ="Form submitted.";
                    Tweener.addTween(contactForm, {delay:2, onStart:text_field_clear});
                } else {
                    contactForm.txError.text="**  ERROR SENDING MAIL **";
            private function isValidEmail(email:String):Boolean {
                var emailExpression:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;
                return emailExpression.test(email);
            private function appResizeHandler(e:Event=null):void {
                if (stage) {
                    var oWidth:Number = stage.stageWidth;
                    var oHeight:Number = stage.stageHeight;
                    if (container) {
                        oWidth = container.width;
                        oHeight = container.height;
                    if (mainObj.monitorHeight>0) {
                        bg.height =  mainObj.monitorHeight;
                    } else {
                        bg.height = oHeight-20;
                    if (mainObj.monitorWidth>0) {
                        bg.width = mainObj.monitorWidth;
                    } else {
                        !container?bg.width = oWidth-20:bg.width = oWidth-140;
                    b_close.y=0;
                    b_close.x = bg.x+bg.width+5;
                    txt.width = bg.width - 50;
                    header_bg.width =bg.width-6;
                    this.y =Math.round((oHeight-bg.height)/2);
                    this.x =Math.round((oWidth-bg.width)/2);
                    mainObj.footerMenu.x= bg.width-13;
                    mainObj.footerMenu.y= bg.height-13;
                    title_1.width = bg.width-40;
                    item_1.width = bg.width-40;
                    item_2.width = bg.width/2-30;
                    item_3.width = item_2.width;
                    item_3.x = item_2.x+item_2.width+20;
                    title_2.width = bg.width-40;
                    contactForm.txt_name.width = item_2.width;
                    contactForm.txt_phone.width = item_2.width;
                    contactForm.txt_email.width = item_2.width;
                    contactForm.txError.width = item_2.width;
                    contactForm.txt_message.width = item_2.width;
                    contactForm.txt_message.x=contactForm.txt_name.x+contactForm.txt_name.width+20;
                    contactForm.mc_buttons.x = Math.round(contactForm.txt_message.x+contactForm.txt_message.width-contactForm.mc_buttons .width);
                    item_1.y = title_1.y+title_1.height+10;
                    item_2.y = item_1.y+item_1.height+10;
                    item_3.y = item_1.y+item_1.height+10;
                    if (item_2.y+item_2.height>item_3.y+item_3.height) {
                        title_2.y = item_2.y+item_2.height+10;
                    } else {
                        title_2.y = item_3.y+item_3.height+10;
                    contactForm.y = Math.round(title_2.y+title_2.height+10);

  • SWF File question...PLEASE HELP

    I've been asked to edit a Flash web site. The page they want
    me to edit has a form on it, but they only have the .swf file. I've
    opened it in Flash and am able to make the required changes, but
    they thing I wanted to know is will the form be affected if I then
    re export it as a .swf file or will it still work as it did before?
    Thanks for your help,
    Lucy

    Lucy4,
    > The HTML file is for a seperate form on the site.
    Okay. Sometimes people provide two versions ... a "jazzy"
    Flash version
    and a "plain vanilla" HTML version. If that form is a
    different one
    altogether, then the variables required by form-mail.pl might
    have nothing
    to do with the variables required by the script to which your
    SWF must
    submit. Until we know how form-mail.pl works, we simply don't
    know what to
    send to it.
    It *might* be the case that form-mail.pl was written to
    receive *any*
    variables. You won't know until you try. Send whatever
    variables you like
    and see what comes out at the other end (whoever it is that
    receives the
    email sent by the Perl script).
    Then again, it might be the case that form-mail.pl requires
    a certain
    set of variables. If those variables are different from the
    ones you showed
    me in that HTML form, you'll have to find out what those
    variables are.
    That only makes sense, right?
    > So does that mean then that I don't need to add any
    > additional code to the HTML page that the Flash
    > form will be on?
    An HTML page *could* have both an HTML form and a Flash
    form, by why
    would a developer do that? It would confuse people ... you
    can already hear
    them asking, "Which form should I fill out?" When a developer
    produces two
    versions, they're both completely separate. Some developers
    like to provide
    site visitors with a Flash version of the site and a
    non-Flash version of
    the site -- but they're never provided side-by-side on the
    same HTML page.
    Your Flash form has nothing to do with existing HTML on the
    page --
    other than the <object> and <embed> tags
    necessary to embed the SWF in the
    document. There shouldn't be a form on the SWF's HTML page at
    all.
    > Also I've added the following code to the submit button
    > on the Flash file, but am not sure if it will work okay:
    >
    > on (release) {
    > if (!realname.length) {
    > EmailStatus = "Please Enter your name before Sending";
    > }
    This code might work and it might not. Without know what
    it's supposed
    to do, I can't answer the question.
    First, you're checking of an
    object, realname, has a length property greater than zero.
    The way this is
    written, you're coincidentally checking of the realname
    object has a length
    property at all. My question to you is, what sort of object
    is realname?
    Is it a String? Is it an Array?
    My guess is that it's a String (after all the String class
    does define a
    String.length property), but if so, where is this string
    coming from? Does
    realname represent an input text field somewhere in your SWF?
    If so, you
    should probably be referencing that text field's
    TextField.text property.
    In other words, you presumably have an input text field in
    your movie, and
    that text field's instance name is realname. Since realname
    is an instance
    of the TextField class, you'll use the TextField.text
    property to retrieve
    the text inside that text field. And since TextField.text
    returns a string,
    you can use the expression realname.text in place of your
    string in the
    expression myString.length. Combined, that would be ...
    if (realname.text.length == 0)
    ... or ...
    if (!realname.text.length)
    Does that make sense to you? If it doesn't, that's fine, but
    it means
    you need to familiarize yourself with what it means to use
    objects in
    ActionScript.
    The next part ...
    EmailStatus = "Please Enter your name before Sending";
    ... might mean something, too. But I have no idea what
    EmailStatus is. Is
    that a variable you'll be using later? There is no
    EmailStatus entry in the
    ActionScript Language Reference, so this must be something
    you've defined or
    written somewhere. Without that description from you, I have
    no way of
    telling you what EmailStatus is for -- or, for example, if it
    can be set to
    a String, as you've done here.
    > loadVariablesNum ("snowMailPHP.php", "0", "Post");
    > EmailStatus = "Sending...";
    Now, this part may be fine. I don't know what
    snowMail.PHP.php is.
    Presumably, it's a form handler. If so, it's either a form
    handler that can
    handle exactly the variables you'll be sending or any
    variables at all.
    Your second parameter, "0", is incorrect. That needs to be a
    Number, not a
    String (see the loadVariablesNum entry of the ActionScript
    Language
    Reference for details).
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Beginner  resize from fla question

    I have constructed an animation in a flash fla file (i.e. pre
    to generating swf) which is on a 800x 600 px canvas
    For aesthetic reasons It does not work well on site at that
    size and I now want to make the final swf at 400 x 300px
    if I resize the canvas the layers and animation does not
    scale down
    is there any way to resize the whole thing - or display it
    half size on the final page
    it would be a pain to have to rebuild the whole thing again
    from scratch - resize for every layer and every key frames, yikes!
    any suggestions/ workarounds appreciated
    gav

    Hi,
    Does your SWF include any bitmaps or any content that may be
    affected with resizing? if so, you can resize your SWF from the
    HTML, just write the new size instead of the old one in the SWF
    size in the html.
    If your SWF includes content that may be affected with
    resizing such as bitmaps, then you have to go the hard way. When
    you write the new document size, you will find the content are
    fixed to the top left of your new size, so you will need to edit
    the parts in the right and bottom of your Flash. You can use Edit
    Multiple Frames (The icon in the time line bottom bar) option to
    edit more than one keyframe at once, just drag the indicators to
    include all the frames your want to edit. This will help alot and
    reduce the needed effort to editing each keyframe.
    I know how painful this problem is, but I hope this helps
    alittle

  • AS3 swf tiny question

    I have a feeling that I know the answer to this. I am not
    terribly savvy on Actionscript (basic sklls, not expert)..and not
    in 3.0 at all!!!!!!!! I have a website that is done nearly all in
    Flash with AS2.0. I recently added a video player from a video
    aggregator, but their player is AS3.0.
    All I could do was to build an html page and embed the AS 3
    player into that. I prefer the seamlessness that Flash provides. Is
    there ANY possible way to embed an AS3 swf file into an AS2
    website.
    I just cannot completely rebuild the entire website right now
    in 3.0!!!!
    Is there ANY simple solution? I cannot believe that I am the
    only person who is having issues like this...Ugh!!!!
    thanks for any help you can offer.

    you can't use an as2 file to load an as3 file and have the
    as3 file work.
    you can use getURL() to load your as3's embedding html file.
    if you want it to look seemless, you can load into the same window
    so the user will see your as2 content replaced by the as3 swf.
    in the as3 swf you can put code to load your as2's embedding
    html file (using navigateToURL()). so, you can go back and forth
    between your as2 and as3 swfs.

  • SWF "Catalogue" Question

    Hi there - I've created a beautiful SWF catalogue that I want to share with several people. 
    The people who I want to view it are essentially luddites:  unfortunately the SWF file is too large to attach in an email.  I have considered sending it via something like DropBox, Yousendit, etc., but I doubt that they would understand how to access the file.  On the other hand, I think they would be able to click a link - but I need is a site where I can post the SWF.  Does such a site exist, and if so, what is it?  Thanks!

    http://docs.google.com/ ?

  • Converting SWF/FLA to Quicktime movie help

    Hey,
    I'm having issues converting a semi-old flash file into a quicktime video. I've been moving a lot of work to .mov files lately and off of a flash based file, the conversion actually worked perfectly on a previous video but I can't seem to get it to work on this file. During the conversion it just gets hung up on recording the flash file and I'm forced to cancel. Creating a AVI yields the same result (no that I want a AVI, just saying).
    I thought of a few things that may have been making it act like this, so I deleted things like the play/replay button and what not, but no good. Can Flash not export to a Quicktime if there are Actionscripts present? I'm pretty much at a loss. I've uploaded the full file, untouched from my tampering here. http://www.iamgrafik.com/grafik_flash_002.fla Any insight or help is appreciated. Or if you can convert it out, that'd be great too (bad for me still though, since it's a problem on my end....)

    but none of you have descibed the "problem" - hard to
    troubleshoot something when we dont know what
    is wrong.
    see this (i post this article several times because this
    issue is asked almost every week):
    http://www.adobe.com/devnet/flash/articles/flash_to_video.html
    maybe your issue will be resolved after reading it...?
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    whammy_boy wrote:
    > Zooper1,
    >
    > I am having the same problem, just posted a new thread
    about it, but nobody has responded so far. Obviously very few
    people have experienced it.

Maybe you are looking for

  • IMovie crashes at startup while trying to read iPhoto library

    Hello, Like many others here, iMovie 7.1 won't start up properly for me. I'm feeling a little frustrated because I bought iLife 08 quite a while back and one of the components I paid for doesn't work AT ALL. It didn't work in Tiger for me, and when I

  • HT4641 I will no longer use pages because I can open any rtf's and that is the majority of my files.  Any ideas?

    I will no longer use Pages because I can't open any rtf's and that is the majority of my files.  For years I have saved all files as rtf to allow me to open them on windows and with any word process program. Now the new version of Pages will not open

  • Doubt - Macbook pro's screen.

    so i just found out that my new late 2011 mac's inside screen, not the one that you can touch, the one u can only see that is the screen inside the first screen, is a bit like half a mili centimetre small, like it doesnt come under the actual black p

  • Equipment is common for both the plants.How to differentiate the cost seperatly

    Hi Guys, Maintenance plants are Ex:2076 and 2023 and planning is done by 2076 for both the plants.Equipments is unique for both the plants. Suppose for example i have a equipment installed in 2023 and i will have the cost center of 2023 plant.When i

  • Cannot play videos.

    I CAN play videos using popular sites such as youtube/amazon/hulu, but whenever I try to go to any other site for video hosting it just sits at the buffer screen and will either load after fully buffering, or most likely never play at all. I have tri