Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Anyone Had Experience With Forms And Flash? Simple Problem I Think



hello friends,
i've created a flash form that im using to send four variables to a php script.. I am having some trouble sending the
variables to the script.. In fact, i cant get it to work at all.
I have created the file
http://members.optushome.com.au/panus/flash.swf
The drop down buttons are set in the movie mode which i think is correct, along with the submit button.
I looked up what action script I should use but found many different ones. I tested a couple of them out but they don't
seem to submit anything at all, the submit button isn't functioning. It's like the submit button isnt attaching itself
to the values of the drop down buttons, and then not submitting..

I tried using

On (Release)
Load Variables ("mailto:form.php", 1, vars=POST)
End On

I'm pretty new to flash and was hoping for a little help.

the flash file is located here if you want to have a look
http://members.optushome.com.au/panus/flash.fla

regards

-n



FlashKit > Flash Help > Flash General Help
Posted on: 10-21-2003, 01:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Anyone Here Have Experience Creating Forms?
I'd like to set up a form in Flash and have the data dumped to a CSV file to be imported into my contact manager. I'm very, very new to Flash and don't have the slightest idea how to make this work. Any thoughts?

Flash Forms And Simple If Else Condition
I created a Flash form for users to fill out. When the form is submitted they leave the movie. I want to return users back to a specific frame in the flash movie after the form has been submitted.

I have control over the redirect URL after the form submits and I can dynamically provide variables in an ASP file.

The variables print properly in a dynamic text box so I know the values are coming across.

I tried to solve my problem by pulling variables from an ASP file and then using those values to take the user to the thank you page or the primary content. If var0 = 1 then take them to the thank you page, else take them back to the primary content. The way I am doing it below doesn't work...

Any suggestions?


loadVariablesNum ("variables.asp", 0);
if (var0 = 1) {
gotoAndPlay (10);
stop ();
} else {
gotoAndPlay (5);
stop ();
}

Flash Forms And Simple If Else Condition
I created a Flash form for users to fill out. When the form is submitted they leave the movie. I want to return users back to a specific frame in the flash movie after the form has been submitted.

I have control over the redirect URL after the form submits and I can dynamically provide variables in an ASP file.

The variables print properly in a dynamic text box so I know the values are coming across.

I tried to solve my problem by pulling variables from an ASP file and then using those values to take the user to the thank you page or the primary content. If var0 = 1 then take them to the thank you page, else take them back to the primary content. The way I am doing it below doesn't work...

Any suggestions?


loadVariablesNum ("variables.asp", 0);
if (var0 = 1) {
gotoAndPlay (10);
stop ();
} else {
gotoAndPlay (5);
stop ();
}

Simple Forms Not Working On Flash 8?
Hello,

i'm trying to make a simple form, using the old but effective tutorials scattered around... I've developed forms successfuly in the past, but now the same procedures doesn't seem to work.. the strange thing is that the source files of the tutorials work, but my application doesn't; to be more precise, it works, but the mail i'm receiving back is blank, just the strings declared in the PHP file; tracing within flash, the loadVars object contains all the correct data, but somewhere in the road it gets lost. Does anybody knows the answer for this problem? I know almost nothing of PHP

Here's the code I've got (based upon a tutorial by CyanBlue)


ActionScript Code:
_global.sndMail = function(hasta) {
    var pqte = new LoadVars();
    for (i=1; i<=hasta; i++) {
        var nTemp = tsp["c"+i].ct.text;
        pqte[nTemp] = tsp["i"+i].text;
    }
    pqte.onLoad = function(ok) {
        if (ok) {
            trace("Email Sent!!!");
        } else {
            trace("Problem sending an Email!!!");
        }
    };
    pqte.sendAndLoad("form.php", pqte, "POST");
};

tracing unescape(pqte) yields this


PHP Code:



");

        }

    }

    else

    {

        echo("This script runs only in Flash!!!");

    }

?>

=&");

        }

        else

        {

            echo("=&result=2&<?php

    if ($_POST)

    {

        $mailTo = "berrios@instrumental.cl";

        $mailSubject = "[Contact] Website Contact from - (" . $_POST['NOMBRE'] . ")";

        

        $Header = "MIME-Version: 1.0
";

        $Header .= "Content-type: text/html; charset=iso-8859-1
";

        $Header .= "From: " . $_POST['E-MAIL'] . "
";

        

        $output = "<BR>";

        $output .= "De    : " . $_POST['NOMBRE'] . "<BR><BR>";

        $output .= "e-mail   : " . $_POST['E-MAIL'] . "<BR><BR>";

        $output .= "comentario : " . $_POST['comentario'] . "<BR><BR>";

        

        $output = nl2br($output);

        

        if (e-mail($mailTo, $mailSubject, stripslashes($output), $Header))

        {

            echo("&onLoad=[type Function]&COMENTARIO=HERE I WROTE MY COMMENT&EMPRESA=HERE I WROTE MY COMPANY NAME&E-MAIL=HERE I WROTE MY E-MAIL&NOMBRE=HERE I WROTE MY NAME
Email Sent!!!




The text is sent with all caps, so i tried to change some variables to all caps and others not for testing purposes... i didn't add the "company" field because the example php file had only three fields, wanted them to work before changing more things around...

Thanks in advance,

Sir Patroclo

Please Help... I Have Some Experience In Flash But This Is Beyond Me
Ok... here's the deal:

VERSION: FLASH 5

I've been fiddlin around in Flash for the past few days and Ive created a movie with a button at the end of the movie in a separate scene that is meant to be used to enter a website. How do I make the movie loop on that frame until a user clicks on the button?

I Want To Do This...But I Have No Flash Experience
Hi,

I got a copy of Macromedia studio MX, but I have no idea at all how to use it. I want to do something like the followiing web site

http://www.rayoflight.net/

Click on Spring, summer, fall, etc....

That is so freaking awesome.......I have been using Frontpage to design site, but this site is incredible.......I never knew doing something like that was possible.....Anyhow I want to lean how it is done........I have no experience with flash MX (even though I have a copy)........HELP

Thanks,
Mazen

Email me at:
mbasidiq@hotmail.com

No Flash Experience
Okay, I have a decent amount of HTML experience but love Flash sites. I'm looking to learn to do web design using Flash and am wondering if there are any VERY basic tutorials on starting a website. I've gone through all of the tutorials on the site and know that it would have to be a movie but I'm looking for a little more direction. Maybe someone knows of a good adjunct site that could help. My goal is to get into e-commerce web design with Flash. Also, could anyone tell me if it's possible to incorporate MS Access into Flash sites? Thanks for the help.

QT VR Experience In Flash 8
Dear List

I'm looking into possible solutions to create a quicktime VR like experience in flash 8 (tilting, panning, zooming, hotspots...).

So far my favorite seems to be this one: http://www.pano2qtvr.com.

Has anyone any experience with this? Are there any newer / better ones out there? Any extensions? Components?

Any advice or insight appreciated.

Thanks

Stephan

Restarting The Flash 5 Experience
Hey,

I took a break from FLASH 5, but now i wanna start it up again. But this time i'm gonna start to use ACTIONSCRIPT when doing almost everything. I used to tween using the motion tween option etc...but now i will try to use actionscript to move things around and enlarge etc...

Is this a good idea or not?...Is it best to use actionscript to do things like tween and enlarge or what?

Neway, my main question is 'Where can i find a maual of some sort to help me learn ACTIONSCRIPT?

Possibly dowmnloadable?

The tutorials here are good, but i wanted a whole wad to enable me to learn the things i want easily...

Thanks in advance...

Mike :|

If only...

Flash MX And Music- Does Anyone Have Experience With It?
Hi, everyone I was curious if any of you Flash MX experts use Music in your work, and if so please reply to this post with a URL where I can check out your work, as I am trying to learn all about Flash, Animation, Flash Mx and how to put it all together with Music. Therefore, I would really appreciate if any of you talented people can show me your work that you have done using Flash MX and music, Please reply with a URL of your work or sites that use music with Flash Mx, and if you have any suggestions on where I could learn more about how to incorporate Flash MX and Music- I would appreciate if you could also give me some valuable input on that topic. Thanks and Peace to all!

Jay Berlinsky

Flash & The User Experience
Would a user be turned away if they came to a website and saw the same 3-second animation every day before the info is displayed?

Are there any good articles out there that discuss flash user experience / usability?

.atom_jack.

Flash "forms" Behavior - Simple Main Frame Sim
I have a Flash object that is emulating a main frame application. I have the user tab to a particular spot, enter a value, and if the value is correct, I send the user to another frame in the object. If the value is not correct, the user is alerted and directed to correct the entered value.

The actionscript involved uses text objects which listen for values; once anything at all is entered in the target text area, the last of 4, the focus shifts to a hidden button. The button is supposed to respond to the user striking ENTER by testing the value of the text area and responding accordingly.

The problem: although the button receives the focus, it does not respond to the ENTER key. The code for the button and the text area are below (the text and the button are in the same layer).

Button code:

PHP Code:



on (release, keyPress "<Enter>") {
     // assign text entered to variable for testing
     newPathCEc = text4_CE26c_var;
     if (newPathCEc == "S") {
          //jump to next frame, frame 10 
          gotoAndStop(10);
     } else {
          loadMovieNum("../images/feedback_incorrect_daace26c.swf", 4);
     }





Code for textbox:

PHP Code:



stop();
//set focus on first text area
Selection.setFocus(text1_CE26c);
inputButton_CE26c._focusrect = false;
unloadMovieNum(4);
inputButton_CE26c._focusrect = false;

//prevent text in all but the last test region, allowing all to receive the tabbed cursor

text1_CE26c.restrict = " ^A-Z 0-9";
text2_CE26c.restrict = " ^A-Z 0-9";
text3_CE26c.restrict = " ^A-Z 0-9";
text4_CE26c.restrict = " A-Z";

text1_CE26c.tabIndex = 1;
text2_CE26c.tabIndex = 2;
text3_CE26c.tabIndex = 3;
text4_CE26c.tabIndex = 4;

//code to direct tabbing action so user moves through subsequent text areas

increment = 0;
keyListener1_CE26c = new Object();
Key.addListener(keyListener1_CE26c);
keyListener1_CE26c.onKeyDown = function() {
     a = Key.getCode();
     if (a == 40 || a == 9) {
          next = increment++;
          Selection.setFocus("text"+next+"_CE26c");
          //Selection.removeListener(textboxListener);
     }
};

// send focus to hidden button if the user types anything into the last text region
textListener4_CE26c = new Object();
text4_CE26c.addListener(textListener4_CE26c);

textListener4_CE26c.onChanged = function() {
     if (text4_CE26c.length == 1) {
          Selection.setFocus(inputButton_CE26c);
          //trace("I've changed");
          Selection.removeListener(textListener4_CE26c);
     }
}; 

Anyone With Flash Shopping Cart Experience
Has anyone created a shopping cart in flash? I'm having trouble putting together the process for assigning values to a movie clip so that when a user clicks the movie clip (contains image for product) it adds the product to the cart.

Flash Media Server - Experience?
Hello all,

I have a quick question about FMS. Does the program run transparently on the server? I'm asking because I'm wondering if I can just upload a FLV file to the server and link it straight from my Flash app using myVideo.contentPath ="URL" and have it running or do I need to configure a bunch of things?

ANY comments would be greatly appreciated! Thanks in advance!!

Anyone Have Experience With Flash Comm Server?
I'm at a loss. I've got a project that I'm trying to convert so that it works with Remote Shared Objects.

I haven't even begun testing because I can't even get the examples provided with the Flash Comm. package to function.

All the samples/tutorials provided are located in a directory of the server named "samples". In a directory named "apps" there are corresponding folders to each sample that contain the server side asc file needed to run the example.
The server side script is accessed from the client swf thru the netConnection by defining the URI property: e.g.
ActionScript Code:
nc = new NetConnection();
nc.connect("rtmp://flashcomsvr.mydomain.com/myFlashComAppName");
// interestingly enough the sample swf's define the rtmp path with as
"rtmp:/continuePathName"
When I try opening multiple instances of any of the samples provided to see if the client to server connection is made nothing occurs.

Do my client swfs need to be served from the FCS or can they live on another and reference back to the FCS?

Any assistance would be appreciated!

Thank you.

Formal Flash Training Experience
Hello Everyone... I have been searching around for suggestions/experiences on Flash Certification courses, and certification test training material suggestions. So if anyone has taken any courses or has some good training material for taking the ACP test then please share!

Thanks in advance!!

Help And Experience Needed With Flash Build
This is such a great website and I'd like to say hello to everyone with this first post.

I've been asked to help a friend out with building a full flash site I agreed since he brought me a pint but now i realise that was foolish! lol.

Basically the site, (www.potterandmoore.com/beta) needs to be done pretty much fully in flash to get the effect the client is after since they love how fluid this site is (www.tocca.com). The site currently is done with asp.net pages with flash movies in them so there is no smooth transition between pages, another issue there is are the amount of images needing to be used and they all need to remain as high quality as possible.

I just need some advise for starters on how best to go about this project since I have about a week to get it done! eek. And after reading some of the tutorials on this site i realise how little I know about flash!

This is what needs to happen...

- They wanted a flash intro where the background flowers grow out and all the gold border, logo and picture fade in etc. how is best to get smooth effect of the floral bits growing like there is on this site (www.dormoy.ca) when you click on a link or at the top and how to keep the file size to a minimum?

- once that has done it's job it needs to fade gracefully into the next page where the floral pattern needs to remain in the background (possibly could add movement to this but maybe I'm out my depth a bit as it is?) and we find the scrolling menu, in this menu is it possible to have it scroll like it does and still have the buttons on it if it was loaded externally?

and so I can go on but I guess it's pretty obvious what needs doing as it's pretty rough as it is at the moment especially in the english classics section when you select a product and the rest of them darken - any better ideas or suggestions for that please feel free.

Also how much of the site should be done in flash since I am guessing the main section needs to be done in flash so it can have smooth transition when a link is pressed... I'm assuming from the tutorials I have read so far it will be best to do this using as many external .swf's as possible so they can all take care loading themselves in but will then be a way to has a transition effect to a page from another if they are in different swf's? (don't know if that makes sense but it's pretty late so I apologise).


Hope some one can offer advise and help me out as I don't want to let my friend down and I would really like to learn flash properly as well.

TM Flash MX 2004 Editing With No Experience
Hi all, I design html/css websites and can create small flash files. I'm finding more and more of my customers no longer want these type sites, instead want flash. By no means can I do this for them as original. But I can edit to a certain exent. I can find my way through to edit text, but I can't figure out how to edit graphics such as images or make links. I've tried the Template monster step by step help, but it's useless. Does anybody know of any step by step graphical help I can download? Or a site with this info? Thanks all. Hope to be able to make my way into the flash site world :)

Simple Forms
Can anyone help? I am working my way through the simple form tutorial, and I am stuck on the section where I attach script to the send button. The last two commands, "End if" and "End on" dont appear to there to select. I am using Flash 5, has this changed in the update from 4 to 5?
If anyone could help it would be fantastic.

Thanks
Alan

Simple Forms
I am only a beginner so i dont know, but can i make a form in flash that users can type into and then send it directly to my email account with out the use of C.G.I
Obviously components would come into it somewhere.

This Should Be A Simple On (more On Forms...)
Flash MX 2004 Professional (latest update applied)

I'm sure all you gurus out there are absolutely sick of reading flash form questions ... probably just as sick as I am of reading tutorials that I just can't get to work.

I am redesigning my new site completely in Flash (with an html-based sidekick site for dialup users). On the html site, I can easily get the small form to work - not so much luck in flash. I need to be able to pass form data (just a text input and combo box along with 2 static 'variables') to a php script and I simply cannot get it to work. This is a simple domain registration form. Nothing fancy, no validation ... The required elements (per html) are:


<form method="post" action="https://domain.com/billing/order/orderwiz.php">

// -------my two static entries that need to be passed------- \
<input type="hidden" name="v" value="1">
<input type="hidden" name="submit_domain" value="register">

// -------domain name from user input (text input)------- \
<input type="text" name="domain" value="">

// -------my combo box options------- \
<select name="tld_extension">
<option value="com">.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="info">.info</option>
<option value="biz">.biz</option>
<option value="us">.us</option>
</select>

<input type="submit" name="submit" value="Go!">
</form>


I would like this to send the user and his variables to the php page. I would post what I have tried, but I would like to see a fresh start on this instead of trying to fix my poorly written code. Find the format that I have been working with below (all previous AS stripped out) (please keep reponses simple and stupid - kinda the way I feel right now ) Your help is greatly appreciated

Download layout fla here.

Looking For A Site Designer, With Good Flash Experience
Hello!
Me and my friends have a group/clan for a pc game and we are looking for a person who will edit the site, and make it. We provide the pay ment of the site, and all we want is a good site designer that will help us out. We are very greatful to any response to help us. We have been looking all over. by the way, we will give you want we want on the site. We are doing this for we are doing a last resort request.

Thank You VERY MUCH
Navid

Contact me with Msn messenger at ride2nv@hotmail.com
or my icq 153534469
or respond to this

thanks again

Looking For A Site Designer, With Good Flash Experience
hey...

im looking for a good site flash guy..

i know there are tonnes of u..so please be prompt about responding me please/...

thanks..!!

my email is n4s_@hotmail.com
i only use msn

thnaks again!!!!

Is Anyone Using Flash 2004 - What Has Been Your Experience? Mine Has Been Horrible
Is anyone using Flash 2004 - what has been your experience?

Mine has been horrible thus far! It is slower than smoke off cold poop, I am experiencing many bugs from the new locking feature on objects for width and height, to problems copying frames and objects off the stage. Not to mention the horrible bugs I am experiencing using the new Swift3d Express plugin - like all objects on the stage in _root being deleted when I save seomthing created with the plugin to a Flash movie (note: this is a different bug than that listed in the readme where everything gets deleted on the stage if you cancel from the plugin and you already have information copied to the clipboard).

I am disappointed.

Flash Work Experience Opportunity London...
I develop flash online games and have an opening for someone to work closely with me on a new exciting project. The position is very flexible but is to work on site (London).
If you have good actionscript skills and are enthusiastic please contact me.
nick@gccubed.com
Thanks.

Anyone Got Experience Of Macromedia's Flash Search Engine?
Does anyone have any views/thoughts/experience of Macromedia/Adobe's Flash search engine SDK?

Cheers.


PS I'm feeling kind of annoyed with myself for not realising that Flash websites are'nt easy for search engines to pick up.

Converting Html Forms To Flash Forms?
i'm in the middle of creating a website for a record company. i've been doing it all in flash, so when they asked me to set up a newsletter facility, i decided it would be in flash. here's my problem:

the host i'm using has a newsletter add/remove facility in html. i've tried converting this into flash but it just wont work! the html form code provided by the hoist (which does work) is below:

<form action='http://cp.cyberstation.co.uk/list.cgi' method='post'>
<input type='hidden' name='list' value='Newsletter'/>
<input type='hidden' name='redirect-success' value='http://www.mickhayglaziers.co.uk/complete.html'/>
<b>Our Mailing List</b><br/>
<input type='text' name='email'/><br/>
<input class='radio' type='radio' name='action' value='add' checked='checked'/>Subscribe
<input class='radio' type='radio' name='action' value='delete'/>Unsubscribe<br/>
<input type='submit' value='Do it Now!'/>
</form>

The actionscript i used on the submit button when converted is:

on (release) {
list="Newsletter";
action="add";
loadVariablesNum ("http://cp.cyberstation.co.uk/list.cgi", "0", "Post");

}

The button is also, along with the list and action variables, on the main timeline!

can anyone offer any insight to where i'm going wrong?

Simple Forms To Email
I am trying to create a simple web page with 2 input text fields at the bottom for users to input a company name and donation amount. I have these created in flash mx2004 version 7 but I don't know what actions to attach to them to have the information users input transferred to an email address. Any help would be appreciated.

Shannon

Looking For A Tutorial On Simple Forms
I am looking for a tutorial that will introduce me to setting up a simple feedback form in Flash MX and that hopefully covers sending the gathered user input to FormMail.

The tutorials I have seen so far, seem to concentrate on radio buttons, combo boxes, check boxes, styling, etc., as opposed to text boxes and textareas and how to send results somewhere.

Any suggestions?

A Few Questions In Regards To Forms: Simple
Stop animation repeating:

-if i want to fade my form using an alpha of 0% starting out then 10 frames later fade to 100% alpha, then how do i make it so it doesnt repeat itself? instead do it once as the form is loaded.

text component trouble:

i have text fields im using as input text fields. a tutorial that i learned from told me to start out by making a button and place the text in the up frame. this way when i drag the text button onto the frame i can fade it and do other things as its a symbol..

Problem

doing this i end up with TWO instance names, one on the button symbol and one when i drag it onto the scene. which one am i using? also in the code am i making my own variable or am i using the one i specified in the button scene

i put my questions down below

PHP Code:





function onSubmit()
{

    // Initialize form variables:
    formData = new LoadVars();    

    //ok so is this a variable i make up now or am i using the one i gave to the text box button?
    formData.name = "";



    // Get textbox info:
    //is txtname the instance name of the textbox? if so which instance name? the one on the scene or the button
    formData.name  = txtname.getValue(); 








last question:

do i put the code in the frame/scene rather than the actualy submit button?

Simple Question About Referencing Forms
I have what I hope is a simple question. Could someone please provide a primer on how to reference forms (and things contained in forms) in AS2? Specifically, I am having trouble referencing a form loaded into another form. Here is my form structure:

Application
Form1
Form2

Loaded into Form1 is an swf containing another set of forms, with this structure:

NewApplication
NewForm1
NewForm2


So, how do I reference NewForm1 from Application and vice versa?

Thanks.

-Brian

Someone With Experience? - PLeaSE HELp
Hey, whoever might be reading this i need desperate help! I basically need to have 4 (four) balls that go up and down a length of a stick when the mouse clicks on them and drags, but they have to stay in order. Kindof like an abacus. i am planning on putting it on a site. |-----O---O---O---O----| If you don't understand or you have an answer for me please write back! I'm desperate! and include all the action script everythings if they exist... or whatever else. thankyou PROFUSLY!
xxx
soph_13

@#$% First Sound Experience
Hi-
-i'm trying to place some background music on my page. I've been reading the tutorial at http://www.kennybelew.com and am having much trouble. I can get the sound to play, and that's fine. I'm tryin to make a button that turns the music off if playing=true, and back on if playing=false.
I figured i'd start with the basics and just see if i can get the music to stop just on a button press, but i cant even get that to work!!!

here's my script:
on the first frame of the sound layer:

Code:
mySound = new Sound();
mySound.attachSound("darkTunnel");
mySound.start(0,999);
playing = true;


a few frames down, i have a simple button with the following script:

Code:
on (press) {
mySound.stop();
}


and that doesnt work! I have tried just about everything i know to do and cant get the sound to stop!!

help?

FLA is available at
http://www.mykrob.com/helpFolder/mykrobDesign.zip

thanks,
-myk

CPU USAGE, Your Experience
I wanted to ask you what your general experience is with FLASH and CPU usage?

for best performance...
Do you think if you have 10 swf's. loaded into a main better
than
Having the content of the 10 swf's together in one and loading that into the main?

I have done testings but don't quite get any difference.
What is your opinion,experience?

Experience With AnimationPackage?
Hi,

have you got any experience with the SUPER COOL AnimaptionPackage?
http://www.alex-uhlmann.de/flash/animationpackage/

I have no problems with using the classes on the timeline where the classes were imported - but I just want to import them on _root and then create scripted animation from other timelines.

Anyone with input on this?

Sambo

Experience In An Rpg Game
hey,
im making an rpg and i have a problem with xp, i can make xp go up and down and stuff, but i cant get levels to work. can anyone tell me whats wrong with this script?
code:
if ((exp >= 20) (exp <= 70))
{lvl = 2};

(and no there are no mistakes with the path)



thanks

Does Anyone Have Any Experience With Slideshow Pro ?
Okay, I'm searching for a fully customizable .swf photo gallery and stumbled across slideshowpro.net. Does anyone have any experience with Slideshow Pro? To what extent is the layout / design customizable? Is the current version compatible with Flash MX 2004 ?

Any help appreciated.

Just Want To Share Some Experience
I had some problem with AMFPHP, actually all of my works, when tested on the remote servers, seem not to work on everything exept IE. And finally my last site worked only on my computer.

While checking my server logs I've found that when users tried to enter my site, their browsers hitted the strange 'mysite/crossdomain.xml' file. I've asked my help panel about 'crossdomain' and in five seconds the mysite/crossdomain.xml had been created with the following inside:

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*.mysite" />
</cross-domain-policy>

Doing this helped me. I never met the same as mine problems here, but maybe it could help someone.

Rpg Levels (and Not The Ones W/ Experience..)
as some of you may or may not know from my last couple posts, im currently making a tile-based rpg in flash. i have the map working. but after the map is drawn, the main character (which all of the following code is in) goes under neath the map. it has something to do with the depth of the tiles. but i dont know how to make the depth of the main character on top.

PHP Code:



onClipEvent (load) {
    _x = 10*32;
    _y = 10*32;
    stop();
    up.gotoAndStop(2);
    t = 1;
    map1 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2], [2, 2, 5, 5, 2, 1, 1, 1, 2, 2, 2, 2], [2, 2, 5, 5, 2, 2, 2, 1, 2, 2, 2, 2], [2, 5, 5, 5, 2, 2, 2, 1, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2], [2, 1, 1, 1, 1, 1, 6, 1, 1, 1, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
    for (drawx=0; drawx<10; drawx++) {
        for (drawy=0; drawy<10; drawy++) {
            duplicateMovieClip(_root.tile, "tile"+t, t);
            _root["tile"+t]._x = drawx*32;
            _root["tile"+t]._y = drawy*32;
            _root["tile"+t].gotoAndStop(map1[drawy][drawx]);
            t += 1;
        }
        drawy = 0;
    }
}





a little help would be appreciated. i dont think this problem is that hard...

Client Experience
Hello,
I've got my first client and have had to build an MP3 player for his web page and I'm wondering how much to charge him.

It streams in external MP3's, XML.
Because it was my first time building, debugging and testing it, the total hours worked were about 10.

I have also worked on javascript code to launch the player.

Anyone getting paid for doing flash for clients?How much should I charge?

Best,

BRb

My First Experience With Writing OOP With AS3
So Ive been reading Object Oriented Programming for AS3, and it makes sense. I wanted to try a script, as I should really apply what I have been learning. My script doesnt work, but I wanted to post it on here and see if I could get some feedback. I wanted to build a Mp3 player, very basic - one I could pull into my flash file and instantiate the class with an mp3 that loads in from the .fla. Here is my code, am I off to a good start?


Code:
package {
import.flash.media.*;
import flash.net.URLRequest;


public class SoundPlayer extends Sprite {

public var channel:SoundChannel;
public var mp3File:URLRequest;
private var snd:Sound = new Sound();

playBtn.addEventListener(MouseEvent.CLICK, SoundPlayer);

public function LoadSoundClip(mp3File) {
snd.load(new URLRequest(mp3File));
}

public function SoundPlayer() {
channel = sound.play();
}

}
}

Help-Anyone With Dreamweaver MX Experience
I'm implementing the Maccromedia Flash Detection Kit using Dreamweaver MX. It was working fine, but now when I go to Behaviors>the original "Macromedia Flash Dispatcher Behavior" is no longer there. Instead, there's a Behavior called "Macromedia Flash Detection Behavior." I reinstalled the the Behavior from the kit in Extension Manager again, but that didn't eliminate the problem. I'm using the 30 day trial v. so I can't uninstall & reinstall Dreamweaver...up a creek without a... Any suggestions??????? Thank you.

Anyone Have Experience With Precache
Does anyone have experiece with Precache(ing) files into the Cache folder. I know this may not be a Flash thing--- but in doing this Flash project I am working on-- I have encountered a great problem.

http://www.nesteggdesigns.com/Movies/kitchen.swf

If you click on the Refridgerator - the first time the "signed movie clip" loads--it is PAINFULLY slow. Once this image is in cache- it works beautifully. The video clip that Flash is importing is only 354k--- so it shouldn't be so slow--but the first time it is. Only a few of the buttons are working right now- Ref, Crackers box, Microwave---try them. And if you last til they load, go through and click them a second time and see how it should really look.

Anyone have any suggestions how I could speed up loading of the indepedant movie clips the "first" time?

Hope this makes sense??

Anyone Here Have Experience With ExternalAPI ?
I'm reading that ExternalAPI is the preferred method of communicating back & forth with javascript functions on the container page. But both of Adobe's own examples DON'T WORK. In IE 6.0 it reports a JS error, while in FireFox it just doesn't do what it should.

Any help would be appreciated.

Do You Have Experience With Time?
Hello All.

I am trying to figure out how to remove data from an XML generated Array based on the current date.

Each XML section has a begining date and an end date. I want the node to be removed if the date is outside the begining and end of the listed dates.

My thought is to use the Splice Method, but I am not quite sure how I would go about that.

Any thoughts, suggestions or tutorials will be very helpful.

Thanks! :?

Leveling And Experience Points
I'm trying to make it the way so when the character gets a specific amount of exp, he levels up, and I'm also trying to make it the way that when the character kills an enemy, he recieves a specific amount of exp, but I just can't seem to figure out how to, so if theres somebody who knows, please tell me.

Experience += 20; Doesnt Work? :S
Code:
experience += 20;


cant get it to works, also tried to combine with Number and im all out of combinations, still doesnt work, _root i have also tried, nothing seems to work..
anyone got a suggestion?

(It just adds like, 100 to 10020, not 120 like i want it to..or it just 100 to 20...)

Common Realtime Experience™
Hi all!

i have a movieclip "instant" with two frames: "frame1" and "frame2" with stopaction on each. They are on root on a "realtime.swf"

--
After i have transfered this file on my domain

i want to press a "button_btn" that tells the playhead go to "frame1" to "frame2"

This is an actions that will take place on *ALL* machines connected to this webservice instantly.

is this possible ? if so, im thankfull to hear about it

any comment appreciated !



--

3D E-commerce Shopping Experience
My company has asked me to invesitigate the possibility of building an online shopping experience using a rich media platform. Not a problem I here you say? Well, the e-ccommerce backend will be updatable using jpeg images etc, and they would like a 3D feel to it (!) so that you really feel as though are in a shop....hmmm. I said gimme two weeks and I'll see what I can find.

So, after a few days scouring the net for anything vaguely similiar, I have found nothing that hits the spot. Plenty of 3D models to look at, such as rotating mobile phones, but this is not practical as each client will have to build the 3D model themselves! What they're looking for is minimal effort for the client, using the same content they already have in their existing e-commerce system (such as images and text), then transforming this into a rich media version of the shop!

The key here is the 'virtual shopping experience' element of it.

Any thoughts or ideas? Is it worth the hassle? I have played around with 3d classes and Swift 3D but has anyone ever tried this before? Can Director do it?

Thanks in advance.

Copyright © 2005-08 www.BigResource.com, All rights reserved