Modifying Existing Flash Action Scipt Flash Site

I have an existing flash site denominated with the name StudioDesign and its a basic animated site with masks and animated texts and sounds and texts treated as buttons that animate changing colors and moving left and right.  It has the usual basic 5 buttons to go to get URls:  Home, About Us, Products, Services and Contacts buttons.  I would like to add more text buttons but to no avail.. Tried copying duplicating, making new, backwards engineering and could not make it work.  Please Help    short time left to finish.     Original Site: http://www.shoplaspampas.com/flashsite/index.swf
original flash file http://www.shoplaspampas.com/flashsite/index.fla  new revised swf: http://www.shoplaspampas.com/flashsite/pampas_01.swf and the new revised flash file http://www.shoplaspampas.com/flashsite/pampas_01.fla.
This is what I want the site to look like and go to respective url pages:  http://www.shoplaspampas.com/flashsite/pampas_01.png.

Thanks Ned, I actually already tried that and don't see anything out of the norm.
Interestlingly enough, I found the original, untouched template FLA & SWF and it does the exact same thing.
Very strange.
On an added note. The loading issue is occurring at the end of the "intro" scene, and does not continue into the "main" scene.
Thank you!

Similar Messages

  • Embeding Flash swf to existing Flash site

    I'm reletively new to Flash CS4 and I have created a Flash site that I need to add another swf file to. Can someone explain how I can insert this other swf file into my existing website which is also a swf file? Can it be done? I've been tinkering with adding another layer and the timelines but can't seem to get it to work. The site is using AS2 but this newer swf file which I created from SlideShow Pro is using AS3. Could that be a problem?

    you have a problem.
    no matter actionscript versions, if you "import" a swf file, in the authoring environment, to another fla, all actionscript in the imported swf will fail.
    if you "load" an as3 swf into an as2 swf, the as3 actionscript will fail.
    you could create a new "loader" as3 swf that will load your as2 swf.  your as2 swf will work as expected.  you can then load your slideshow as3 swf into your loader swf and the slideshow as3 swf will work as expected.

  • Requesting Help Modifying a Flash Site

    I have a Flash Web site for a small literary journal and am
    trying to switch over to my hosting service's mailing list manager
    for sending out newsletters. I see the HTML code for setting this
    up (available from my host), but do not know how to get it to work
    in my Flash site. (I did not build the site and know very little
    about Flash...I'm learning as I go in order to do updates.) It
    looks like the site currenly links to a PHP file to allow for sign
    ups to our newsletter. Can anyone tell me h how to get the HTML
    code to work on my site?
    Thanks in advance.

    Are you using AS3 code in an AS2 project?
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Need help getting Flash site running after pointed to new nameservers

    Can't get Gaia site working on a new server
    « on: Today at 03:10:35 PM »
    Quote Modify Remove
    Hi.  I recently switched from 1&1 shared hosting to a new webhost, Holistic.
    My Flash site (based on the Gaia framework) doesn't work now.
    Using the Flashplayer Debugger, I got the following error:
    from Main:  view.scaleX = 0.9041666666666667 and view.scaleY = 1.0129032258064516
    from Main:  view.x = 0 and view.y = 0
    Error: Failed to load policy file from xmlsocket://127.0.0.1:5800
    Error: Request for resource at xmlsocket://127.0.0.1:5800 by requestor from http://www.yourgods.com/bin/main.swf has failed because the server cannot be reached.
    *** Security Sandbox Violation ***
    Connection to 127.0.0.1:5800 halted - not permitted from http://www.yourgods.com/bin/main.swf
    Error: Request for resource at xmlsocket://127.0.0.1:5800 by requestor from http://www.yourgods.com/bin/main.swf has failed because the server cannot be reached.
    Also got this note even though I've set allowscriptaccess to always in my index.html:
    Warning: AllowScriptAccess='never' found in HTML.  This setting is ineffective and deprecated.  See http://www.adobe.com/go/allowscriptaccess for details.
    Warning: 'com' has no property 'onEnterFrame'
    Regarding the Security Sandbox violation, my old webhost was 1&1, and they are still the official Registrar of YourGods.com - but I now have YourGods.com pointed at the DomainNameServers for my new host, Holistic, which specializes in Drupal and has no experience with Flash - so I hope you'll bear with me and offer what guidance you can since they said I was basically on my own for troubleshooting any Flash related problems.
    Is that likely to be the source of my problem (that I'm only 'pointing' to the nameservers and have only 'parked' my domain with the new host instead of transferring it completely?
    And if so, do I just need to create a cross domain policy xml file like the one below and leave it on my Old Webhost?
    <?xml version="1.0"?> 
        <cross-domain-policy> 
        <allow-access-from domain="MyNewDedicatedIPAddressHere" /> 
        </cross-domain-policy>
    I've never dealt with this cross domain stuff before so any help would be much appreciated.

    As a test, I uploaded my Flash/Gaia site into an existing site on my old host.  And although the site actually works in this setting, when I run things in the FlashPlayerDebugger, I'm still getting Security Sandbox Violations - so (as adninjastrator suggested in earlier post), this may have nothing to do with the DNS changes - but perhaps with my setting things up wrong somewhere so that the Flashplayer is trying to access my local computer - maybe??
    Debugger logs gives me this:
    Error: Failed to load policy file from xmlsocket://127.0.0.1:5800
    Error: Request for resource at xmlsocket://127.0.0.1:5800 by requestor from http://recreationofthegods.com/bin/main.swf has failed because the server cannot be reached.
    *** Security Sandbox Violation ***
    So, I've now uploaded the identical bin (which contains all the files for my site) - but I'm getting different behaviors on the two hosts.
    On the new holistic servers, the site won't go past the first page:  www.yourgods.com
    On the 1&1 servers, I still get runtime errors in FlashPlayerDebugger - but the site runs ok - http://www.RecreationOfTheGods.com/bin/index.html
    Posting those links in hopes someone with more experience in these sandbox issues can help steer me in the right direction.

  • Flash site play all frames without stopping

    Hi all,
    I'm just getting back into flash and have forgotten most of
    what I knew. I've been handed a file and need to figure out how to
    proceed to address this issue:
    The file is a full website. It's a fairly simple design with
    a graphic and some buttons. When you click one of the buttons, the
    main graphic changes to content for that 'page'.
    The problem is when the file is published it just plays every
    layer/frame in it and loops as well. It should display the key
    'home page' elements (buttons/main graphic) and then stop and wait
    for a button to be clicked before running the code for that button.
    I think maybe it needs a stop action on the first frame, but
    in CS3 (or probably any version now, but that's what I'm using) I
    can't figure out how to check to see what actions are on a frame,
    and I apparently don't know how to add a stop action effectively to
    the first frame.
    The file has an 'actions' layer, but if I click the first
    frame of that layer (which appears to have an action attached to
    it), I don't see any action. If I add a stop action, then publish,
    the file DOES stop like it should, but then none of the buttons
    work.
    Does it sound like I need to insert a frame BERFORE the first
    frame, and then add the stop action to that? In other words, could
    it be the case that I'm putting the stop action on the first frame,
    and the button layers operate (begin) on that first frame as well
    such that when I click on a button it fires the stop action I setup
    to stop the entire site file from playing?
    Is there any other setting/issue that might cause a file
    designed as I've described (simple website with buttons) to run
    through all the content without ever stopping and waiting for
    input?
    If someone could just point me in the right direction, I
    think I'll be fine. I might need to rearrange some of the layers so
    they don't start on the first frame...so maybe that's it?
    I know this is simple and I hate asking, but I have to get
    this done quickly...
    thanks for any help,
    DB

    Thanks for the reply, r_c,
    I really appreciate your response. In an indirect way, it may
    have at least helped me figured out the 'what happened' part.
    I went back into the file and, just for the heck of it, was
    going to add stop actions to every frame on the actions bar. During
    that process I saw (for about the forth time) some comment code in
    the actions window that I had sort of assumed was just there by
    default (what was I thinking?). The comment said something like
    'actions would NOT be exported in files in the unregistered
    version'. In retrospect (and after a few slices of pizza), that
    explains why there are lots of frames with the action symbol but
    when I open the frame's action window no actions are there (just
    the comment). I think whoever tried to modify this file tried to do
    it with the trial download and then saved the file and the process
    basically wiped out all the actions in the file :/ So I have a
    flash site now with all th code missing.
    That being the case (at least I'm pretty confident it is),
    I'm going back to the guy tomorrow at work and tell him that, if he
    (or his subordinate) was dumb enough to copy over the original file
    instead of working on a copy then, at best, I MIGHT be able to
    rework the thing by Tuesday (after the long weekend) to add back
    all the necessary actions to have it functioning again.
    That (process) will be kind of good review for me and,
    besides, it might be easier essentially starting over than it would
    be to try and follow someone else's setup all the way down to the
    point where it's messed up....if that makes any sense. Plus, I can
    rename all the layers instead of looking at 90 layers named 'layer
    1', 'layer 2', etc etc...and then have the code use the descriptive
    names.
    Anyway, I do really appreciate the response. It helped me
    find enough of an answer to know how to proceed from here, which is
    the best I could have hoped for given my fairly vague description
    of the situation to begin with.
    Thanks again,
    DB

  • The three main hurdles to porting existing Flash projects to iOS with AIR

    The purpose of this discussion is to identify significant problems currently preventing AIR for iOS from being a viable solution for porting existing Flash apps.  These issues have been largely ignored by Adobe, so I hope that everyone will add to this discussion if you have also run into these roadblocks in targeting iOS with the AIR SDK.  I hope that Adobe staff will address and provide some much needed information with regard to fixing these problems.
    There are 3 main problems with targeting iOS currently, which are probably affecting anyone who is trying to port a project that is both medium to large in size and makes use of SWF loading.  Pretty much any project that has a MVC architecture is going to load SWF assets that are compiled against a view class, so this is likely affecting many people.
    1. Bug - ADT packager runs out of memory when packaging "large" numbers of SWF assets
    https://bugbase.adobe.com/index.cfm?event=bug&id=3511656
    This is a blocking bug that prevents packaging projects with a large number of SWF assets.  It is preventing me from being able to package all the needed assets for my project.  I provided Adobe with my project to package a couple months ago so this bug can be reproduced in house and fixed.  The Adobe employee who was handling this never tried to reproduce the issue and has stopped responding to email and comments in the bug.  Adobe, please have someone take charge of testing and fixing this bug.  It seems like it would be a straightforward fix once the failure is reproduced within a debugger.
    Has anyone who has encountered this problem determined the number of files or classes where it starts to fail.  I've spent some time trying to reverse engineer what the packager is doing when it runs out of memory, so think I can determine how many classes it's working with, but obviously the size of the classes will be variable and so this number will probably be more of a range where we start to get into the failure state.
    Please let me know if you can reproduce this issue with your project with many SWF assets and upvote the bug if you are already aware of this one.
    2. Bug - SWF reloading when doing a "real" (AOT) compile
    https://bugbase.adobe.com/index.cfm?event=bug&id=3636385 
    There is already a forum post that covers the history of this issue (http://forums.adobe.com/message/4920638) but that also covers some issues in older AIR builds with loading of any SWF asset (previously fixed), where this bug deals specifically with reloading of SWF assets that include compiled bytecode (ABC).
    The expectation here is that all versions of the Flash runtime should handle SWF reloading with ABC in the same way, so that a single codebase can be used to target web and iOS (or any other platform).  This is the only issue of the 3 that has a legitimate work around, in my opinion, because the assets can be cached within the app within a loading manager layer.  All the application code that makes loading calls can stay the same, and a compiler flag can be used to enable this caching for iOS builds, with subsequent requests returning a new instance of the cached asset.  This can potentially lead to a very bloated memory footprint for the running app after a period of time, though, which could make some apps perform poorly, so a bugfix is ultimately needed.
    3. Unimplemented feature (?) - The constraint that a single ApplicationDomain is used when running AIR for iOS 
    I did ask about this in the same forum post as SWF reloading but didn't get an Adobe response.  Why does this constraint exist?  My guess is that the AIR runtime for iOS simply hasn't implemented multiple ApplicationDomain support at this point, and that this was done to focus resources on other high priority features for the iOS runtime.  It's possible that there is some aspect of the iOS operating system that makes it difficult or impossible to implement this feature, which may be why it's been avoided to this point, but obviously this is all conjecture without hearing from Adobe on it.
    This is a major issue that needs to be addressed.  For us, the problem is that our SWFs for multiple instances of the same type of asset use the same name for the AS export.  For example, each item an avatar can equip is a single SWF with multiple sub assets -- the parts which comprise the item.  Each of the parts will have an AS export name based on the avatar facing and where it is equipped, like "fv_head".  This naming is consistent across all items, so we will load a lot of assets containing "fv_head" simultaneously.  This normally works fine because the default behavior for Flash has always been that each SWF is loaded into a new ApplicationDomain instance, but for iOS a single ApplicationDomain must be used, causing these names to collide.  The last SWF loaded containing a given AS export name overwrites the previous ones of that name.
    The work around for this, and I use that term loosely, is to go through and uniquely name every AS export in every asset where sets of assets with the same export name is used. For us that is hundreds of items with multiple exports.  Maintaining unique naming across all these parts is also a very error prone process, not to mention all the code that manipulates the parts needs to be modified to handle the new naming and make sure it's referring to the now uniquely named assets.
    The expectation here is that all versions of the Flash runtime should handle asset loading in the same way and place each loaded asset into its own ApplicationDomain container as the default behavior.  I'd like an Adobe employee to address my assumption that this is an unimplemented feature of AIR for iOS at this point, and let the community know if a solution for this will be implemented.
    Summary
    All three of these issues in combination are a major roadblock to porting existing Flash games to iOS with AIR.  Issues with one can make it hard to test and try to work around others.  All need to be fixed, but If I could only pick one of these to fix, it would have to be issue 3 -- that lack of proper ApplicationDomain support when loading assets.  This issue is completely inconsistent with standard Flash behavior and creates a major roadblock to ports of existing applications with no viable solution for a workaround.
    I look forward to Adobe's feedback on each of these issues and hopefully fixes that will allow those of us working with AIR for iOS to get our products to market.

    About the 3rd issue being an AoT design limitation, I'm not sure I understand why it's necessary to know during AoT packaging what the domain is that a child will be loaded into to be able to have SWF loading work as on the browser.
    Isn't the ApplicationDomain an internal construct in the AIR runtime that you guys define in order to manage namespaces of loaded SWFs?  To be clear, when I say "runtime" I know that the resulting code isn't being interpreted within the iOS app, but clearly you have a set of AIR libraries that get compiled into the IPA that provides support for all the Flash APIs.  If that's the case, then wouldn't it be possible for the iOS version of the AIR libraries to define a new ApplicationDomain on the fly when code that has been cross-compiled to iOS native code loads a packaged SWF?
    I don't have a clear picture of how ApplicationDomains are managed internal to the runtime of course, but a little more detail would be very helpful.  Thanks.

  • Opening microsoft office documents from link in flash site

    I have created a flash site, (its an internal site so nobody
    outside the network will be able to access it) and I have numerous
    documents linked in it. The documents all reside on the same server
    as the flash website. When I click on the link to open a microsoft
    office file (I have .doc, .xls, and .ppt on there) IE gives this
    error:
    Action canceled
    Internet Explorer was unable to link to the Web page you
    requested. The page might be temporarily unavailable. I have
    tried adding the domain to trusted sites under tools->options,
    but that doesn't seem to work. After I get the Action canceled
    error, if i hit enter or click the Go button next to the address
    line, it will then go on and open the file. There is some kind of
    communication error I can't figure out. The odd thing is that .pdf
    files are not affected. They opened just fine from the get-go. Only
    Office files. Is there a line of actionscript that needs to be in
    there? Or a setting in IE that I am not thinking of? PLEASE HELP!!!
    Thanks

    "cmutters" <[email protected]> wrote in
    message
    news:emh0t0$ef3$[email protected]..
    >I installed firefox and all the links worked. so its
    something in IE 6.
    > Anyone have any ideas? I have looked on microsoft.com
    and googled it and
    > can't
    > find a thing that might help! the website is listed in
    my trusted sites.
    ie has added security for activex controls... so you will
    need to look at
    the security settings for your browser and relax them...
    either in popups
    or/and in the advanced section of the tools menu...

  • How to modify a flash document

    Can someone give me any guidance on how to modify an existing
    flash document? We need to be able to change the images that are
    associated with the buttons. Also, we need to be able to add new
    buttons to the document and link images to them.
    Any help would be greatly appreciated,
    Thanks,
    Don

    undivided02 wrote:
    > Can someone give me any guidance on how to modify an
    existing flash document?
    > We need to be able to change the images that are
    associated with the buttons.
    > Also, we need to be able to add new buttons to the
    document and link images to
    > them.
    You need the source file FLA to do all the changes.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Flash site not refreshing

    Hi all,
    I have got a flash site running and have recently run into
    some browser issue with Firefox. Firefox doesn't seem to reflect
    the new swf files that I have replaced with the old on the server.
    I have already tried clearing the cache but to no avail. However it
    seem to appear fine on both IE and Safari and I didn't use to have
    this issue until recently.
    Is is just a firefox problem? Is there any way around this?
    Enlighten me
    please...

    This is probably pointless, but when you go to Tools >
    Options - Privacy
    tab - In Private Data, Settings - are you certain cache is
    checked on? I am
    running FF 2.0.0.12 and in the past couple days I've been
    modifying files on
    servers like mad and the cache clears as expected.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Help finishing up my first flash site - using navigation to display different sections of the site?

    Thanks for looking! i am making my first flash site, and im
    not sure what to do next in regards to navigating through the site.
    I have different sections, home, info, hardware, equipment, etc,
    but im not sure how to make each section appear when you click the
    corresponding navigation link. i have an idea but im not sure how
    to execute it.
    Should i make a movie clip for each section (home, info,
    hardware, contact), then place each movie clip in its own frame on
    the main time line, and on each navigation link button (each one is
    a movie clip) use action script and put a gotoAndPlay() code with
    the frame number of the corresponding section? so when you click
    it, it goes to that frame which has the movie clip that has the
    content for that part of site, say contact, or info?? if so how can
    i do this?
    that sounds really confusing and im sorry but please help out
    a beginner! Thank you and happy halloween!
    -Matt
    here is a link so you can see the.swf
    [url]http://www.filedorm.com/show.php/7839_INTOUCH.swf.html[/url]
    and also here is a link for the .fla
    [url]http://public.me.com/mattsh*t[/url]
    your going to have to copy and paste that in your browser
    since the world filter on here. just repleace the " * " with an " i
    "

    Targeting specific timelines in a flash movie can be daunting
    in the beginning. But if you start from the main timeline (_root)
    and build brom there, it becomes easier to understand.
    For eg:
    If you have 2 movieclips on your main timeline (_root).
    Navigation and Pages.
    Inside Navigation you have the buttons, and each button is a
    separate movieclip.
    Inside Pages you have each page, each a separate movieclip.
    to target a specific page number, from a button, there are 2
    ways you can go about it. The method that Ned suggested is called
    RELATIVE.
    -meaning that you target FROM WHERE YOU ARE.
    the second method is ABSOLUTE.
    -meaning you target FROM MAIN TIMELINE.
    Relative is good, but can be confusing when using dot syntax.
    Absolute is straight forward and easy to understand, and can
    be used from anywhere in the whole movie. The downside, is that it
    generally requires a bit more typing.
    In the example I stated above, it does not require more
    typing. simply say:
    _root.page.gotoAndStop(number);
    This line can be used from anywhere in your movie, at any
    timeline depth, and will work with no worries.
    You can also have ALL navigation code on the main timeline on
    the first frame. Simply designate the path to the specific button
    like so:
    navigation.home_btn.onPress = function(){
    doSomething;
    this tells Flash that the button named "home_btn" located
    inside the movieclip called "navigation" will have to doSomething
    when Pressed.
    I hope this helps you understand targeting a bit more.
    Good Luck.

  • How can i modifying my flash template using flash software?

    like changing text pictures...in an existing template ..i do
    have flash but how can i use it?

    If your template requires flash to modify, then you are going
    to need to learn some basic flash functions to modify it. There is
    no easy or fast way to modify a flash template, other than learning
    some flash itself.

  • Having problems with mailscript for my flash site :(

    I posted this on another part of this form but thought it may
    be more applicable to this portion of the site so I thank you once
    again in advance for your help!
    I want to say hello to all and thanks for letting me a part
    of this great forum. I am having some problems with my flash site
    (www.alliancedirect.net) and I am using Adobe Flash CS4 now with my
    site with ActionScript 1.0.
    I have a form already made on the site (under contact us) but
    whatever I do....I can't make it work! I use GoDaddy and their
    gdform.psp is what they provide but they don't give the code in
    flash. I downloaded some different flash mail scripts and programs
    but I don't know how to incorporate it within my own site and I
    don't know what to do! I just want the information to be submitted
    to me via email and the other forms I will make away from the flash
    portion if it is too complicated.
    Please let me know what specific information you may need
    from me and how you can hopefully help me as soon as possible as I
    need this website completely up and running. Again, I appreciatre
    the help and look forward to being a part of your community!
    -sasss

    I found this here:
    http://www.actionscript.org/resources/articles/82/3/Send-Email-via-Flash-and-PHP/Page3.htm l
    THE CODE
    stop ();
    function lineAdapt () {
    message_send = message;
    while (msg_count<length(message)) {
    msg_count = msg_count+1;
    if ((substring(message_send, msg_count, 2)) eq "
    message_send = (substring(message_send, 1, msg_count-2))
    +"
    "+(substring(message_send, msg_count+2,
    (length(message_send))-msg_count+2));
    message = message_send;
    delete msg_count;
    delete message_send;
    WHAT THE ABOVE MEANS
    Line 1 - Stops the play head.
    Line 2 - Defines a custom function lineAdapt which will
    convert the flash carriage return marker ( " ") to the PHP
    equivalent (" "). This ensures that if the user types a comment
    with paragraph breaks, these breaks will be reflected in the email,
    rather than it being one very long line of text :o)
    Line 3 - Sets variable message_send to the value of message.
    This is a storage variable: we will adapt message_send rather than
    message because message is being displayed in a text box on screen
    and adapting it may cause strange visual output.
    Line 4 - Begins a loop which will continue until the newly
    created variable msg_count is greater than or equal to the length
    of the string contained in message.
    Line 5 - Increments msg_count by 1.
    Line 6 - Conditional statement which checks if the 2
    characters within the string message_send starting at letter number
    msg_count are equal to the string " ". If you type data into a text
    box in Flash and enter carriage returns, you wills see that the
    variable which stores that text fields value is adapted with a " "
    inserted where each carriage return should be, so we are looking
    for these markers using Line 6.
    Line 7 - If Line 6 returns True, replace the " " we just
    found with " " (which is the PHP equivalent of " "). This code
    looks complicated but it isn't really. Al it does it 'copies' the
    characters before and after the " ", the pastes those before,
    enters " " and pastes those after. The result is the equivalent
    string with " " instead of " ".
    Line 8 - Sets the variable message to the finalized version
    of message_send, which contains no " " markers. We do this because
    when we post our variables PHP will look for variables with the
    same name. Remember in the PHP code we refer to the variable
    messagenot message_send so we must make sure the correct variable
    holds the correct value.
    Line 9 - Deletes the counter variable for our loop from
    memory
    Line 10 - Deletes the temporary message_sendvariable we used
    for altering the new line markers.
    SEND BUTTON CODE
    on (release) {
    if (subject eq "" or message eq "" or from eq "") {
    stop ();
    } else {
    lineAdapt();
    loadVariablesNum ("mail.php3", 0, "POST");
    gotoAndStop (2);
    WHAT THE ABOVE MEANS
    Line 1 - Says "Perform these actions when this button is
    clicked then released"
    Line 2 - Checks to see if any variable has no value. We don't
    want people sending us mail with no reply address for instance.
    Line 3 - Line 2 returns True, stop.
    Line 4 - Line 2 returns False, go on.
    Line 5 - Perform the predefined function lineAdapt () on our
    currently entered variables.
    Line 6 - Send variables, using the POST method, to our PHP
    script which will send the email off. (Note that you could also use
    LoadVars objects in place of LoadVariables if you wish to make this
    more synchornous. See the LoadVariables and LoadVars tutorial.)
    Line 7 - Go to the confirmation message and stop once the
    email is sent.

  • How Do I Insert 2 Email Forms in a Flash Site

    Let's say I wanted to have 2 email forms in a flash site. One to go to one inbox and another to go to another inbox. That's easy enough to do by editing the PHP, but not the AS3. The following code works for the first email form, but not the 2nd because of duplicate actions.  So my question is, "What do I need to edit in the following AS3 code to get it to submit a second form?"  Thanks.
    [as]
    stop(); 
    contact_name.text = contact_email.text = contact_subject.text =  contact_message.text = message_status.text = ""; send_button.addEventListener(MouseEvent.CLICK, submit);
    reset_button.addEventListener(MouseEvent.CLICK, reset); 
    var timer:Timer;
    var var_load:URLLoader = new URLLoader;
    var URL_request:URLRequest = new URLRequest( "send_email.php" );
    URL_request.method = URLRequestMethod.POST; 
    function submit(e:MouseEvent):void
        if( contact_name.text == "" || contact_email.text == "" ||
            contact_subject.text == "" || contact_message.text == "" )
            message_status.text = "Please complete all text fields.";
        else if( !validate_email(contact_email.text) )
            message_status.text = "Please enter a valid email address.";
        else
            message_status.text = "sending...";
            var email_data:String = "name=" + contact_name.text
                           + "&email=" + contact_email.text
                           + "&subject=" + contact_subject.text
                           + "&message=" + contact_message.text;
            var URL_vars:URLVariables = new URLVariables(email_data);
            URL_vars.dataFormat = URLLoaderDataFormat.TEXT;
            URL_request.data = URL_vars;
            var_load.load( URL_request );
            var_load.addEventListener(Event.COMPLETE, receive_response );
    function reset(e:MouseEvent):void
        contact_name.text = contact_email.text = contact_subject.text =
        contact_message.text = message_status.text = "";
    function validate_email(s:String):Boolean
        var p:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/;
        var r:Object = p.exec(s);
        if( r == null )
            return false;
        return true;
    function receive_response(e:Event):void
        var loader:URLLoader = URLLoader(e.target);
        var email_status = new URLVariables(loader.data).success;
        if( email_status == "yes" )
            message_status.text = "Success! Your message was sent.";
            timer = new Timer(500);
            timer.addEventListener(TimerEvent.TIMER, on_timer);
            timer.start();
        else
            message_status.text = "Failed! Your message was not sent.";
    function on_timer(te:TimerEvent):void
        if( timer.currentCount >= 10 )
            contact_name.text = contact_email.text = contact_subject.text =
            contact_message.text = message_status.text = "";
            timer.removeEventListener(TimerEvent.TIMER, on_timer);
    [/as]

    Wouldn't you just change instance names completely?

  • Flash Site Re-design...

    So, I've been given a Flash site to redesign. However, I have no peior experience with Flash or ActionScript or anything of the like. I have the entire site copied to my local hard drive and it works perfectly...all the files are present, complete with the .FLA file as well as all the associated .AS files. I am using Flash CS5 to perform the re-design. Here's my dilemma...I need to be able to rename various elements throughout the code. From within the Actions window, there are many different types of elements that need to be changed. In the example below, the values I've placed within the square brackets are what I need to be able to change...
    var [name1]:ContextMenu = new ContextMenu();
    var [name2]:ContextMenuItem = new ContextMenuItem( "This is sample text." );
    var [name3]:ContextMenuItem = new ContextMenuItem( "This is more sample text." );
    [name2].addEventListener( ContextMenuEvent.MENU_ITEM_SELECT, [name4] );
    [name3].addEventListener( ContextMenuEvent.MENU_ITEM_SELECT, [name4] );
    [name3].separatorBefore = false;
    [name1].hideBuiltInItems();
    [name1].customItems.push([name2], [name3]);
    this.contextMenu = [name3];
    function [name4](e:Event)
    var [name5]:URLRequest = new URLRequest ( "http://www.domain.com" );
    navigateToURL( [name5], "_parent" );
    Now, I can change them manually, but when I save the changes, then publish the new SWF, I see a whole lot of errors in the Compiler Errors window like this...
    Layer 'actions', Frame 1, Line 1  1120: Access of undefined property [name1].
    Layer 'actions', Frame 1, Line 2  1120: Access of undefined property [name2].
    Layer 'actions', Frame 1, Line 3  1120: Access of undefined property [name3].
    Layer 'actions', Frame 1, Line 5  1120: Access of undefined property [name2].
    Layer 'actions', Frame 1, Line 5  1120: Access of undefined property [name4].
    Layer 'actions', Frame 1, Line 6  1120: Access of undefined property [name3].
    Layer 'actions', Frame 1, Line 6  1120: Access of undefined property [name4].
    Layer 'actions', Frame 1, Line 7  1120: Access of undefined property [name3].
    Layer 'actions', Frame 1, Line 9  1120: Access of undefined property [name1].
    Layer 'actions', Frame 1, Line 10  1120: Access of undefined property [name1].
    Layer 'actions', Frame 1, Line 10  1120: Access of undefined property [name2].
    Layer 'actions', Frame 1, Line 10  1120: Access of undefined property [name3].
    Layer 'actions', Frame 1, Line 11  1120: Access of undefined property [name3].
    Layer 'actions', Frame 1, Line 13  1120: Access of undefined property [name4].
    Layer 'actions', Frame 1, Line 15  1120: Access of undefined property [name5].
    Layer 'actions', Frame 1, Line 16  1120: Access of undefined property [name5].
    In addition, Within the Actions window, in the lower-left frame, there are headers (for lack of a better term)...
    - Current Selection
    actions : Frame 31,(box out)
    - [name6] preloader
    actions : Frame 1
    - [name7]
    actions : Frame 1,(menu)
    actions : Frame 8,(in)
    actions : Frame 12,(out)
    actions : Frame 17,(box in)
    actions : Frame 24,(page)
    actions : Frame 30
    actions : Frame 31,(box out)
    And within the Library dock, to the right, there are items within the "Linkage" section...
    NAME . . . . . . . . . . . . . . LINKAGE
    1. Layout
    all pages
    back button
    back button arrow
    back button graphic
    back button label
    box . . . . . . . . . . . . . . [name8]
    content area
    So, you see, throughout the rest of the code, I can change anything I want (except for the headers in the Actions window, but it always errors out on publish, then the HTML does not work properly after that. Can someone point me in the right direction? Thanx.

    If you actually have those brackets in the code, those errors would be the least of what I'd expect.  Is that the actual code you have and errors you are getting?  THe errors you show don't seem to align with the code you show.  Since some of them involve declaring new objects, and you are getting undefined property errors, that's just wrong.

  • $$$$$ Teach Me Flash Site for $$$$$

    hi!
    i am a beginner in building a website.
    i have this one site that i am aiming for, which is:
    http://www.contents.ne.jp/recruit/newgraduate/index.html
    Text
    (this is just the opening page, please click on the
    ENTER→ button to see the site)
    on this site, there are Flash, which I don't really know how
    to use.
    splash of colorful paint action, moving cursor of mouse,
    moving tabs, etc.
    how do you make such a flash site!?
    it would be great if someone can help me out, give me a
    tutorial, or anything!
    i am willing to even pay you to teach me, or something.
    i can only pay someone with paypal.
    please help me out!
    if you're interested, please contact me!
    thanks
    -p.b.p.

    send me email via my website for help with this
    project.

Maybe you are looking for

  • Playlist order on iPod not same as iTunes

    I have a 80-ish song playlist. I will occasionally go into the list in itunes and re-shuffle it. On subsequent sync's however, the ipod will revert to the old shuffled order which does not match the itunes order. I have tried copying the playlist and

  • Install oracle database software in slient mode

    I would like to automate my Oracle database software installation. Can I execute runInstaller in sleep mode like dbca -silent -createDatabase -templateName General_Purpose.dbc \ please can I get the exact syntax.

  • NEW Zen Stone Plus does not work

    It looked like it started to charge, but then it just died and Windows does not detect the dri've. I have tried hooking it up to another computer but no go! I've tried all the troubleshooting on the page and nothing seems to work, it's just completel

  • Advantages to having Windows XP on my iMac

    I'm thinking about installing Windows XP on my intel iMac using the software program Parallels. But before I do, can anybody here tell me what the advantages are of having Windows XP on my iMac? I don't have anything against Windows, I just want to k

  • Failed to download AS 10.1.3

    I tried to down load the linux 32 version from http://www.oracle.com/technology/software/products/ias/index.html But I get this no matter how I try. [oracle@ora-bi ~]$ cpio -idcmv <as_linux_x86_101300_disk1.cpio cpio: premature end of file [oracle@or