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








Passing Values To Webserver


Hi

In my actionscript code I am opeining an image in the webpage and when the user clicks it gets the coordinates of the point. How can I send this value to the webserver.

Thanks




Adobe > ActionScript 1 and 2
Posted on: 06/03/2007 01:15:40 AM


View Complete Forum Thread with Replies

Sponsored Links:

How To Pass Values To Webserver
Hi
My actionscript takes the coordinates of the point I click on the browser. I want to send this value to the webserver. How can I take these values from the actionscript code and send it back to webserver.

Thanks

View Replies !    View Related
Passing Values From ASP To Change Alpha Values Etc
Is this possible? I currently have a log in system, logging each page a user visits, these visits amount to a value and have this value passed to flash to control alpha values, tints etc to reflect look and feel. is this possible?

View Replies !    View Related
Passing Values From ASP To Change Alpha Values Etc
I have posted this before, but wondering if anyone can help?

Is there anyway of having external values controlling alpha values, tints etc of a movieclip?

View Replies !    View Related
Passing Property Values And Passing Them Back
Hi,

I am trying to pass property values from one function to another function, let it do it's work then pass it back to original function when called.

Example:


Code:
function displayText()
{
nameCurrentMap.curMapName.text = flashServ.map;
nameCurrentMap.curMapName.embedFonts = true;
nameCurrentMap.curMapName._alpha = 0;
fadeInCurrentMap = setInterval(fadeIn, 50);
}

function fadeIn()
{
if(nameCurrentMap.curMapName._alpha < 100){
nameCurrentMap.curMapName._alpha += 5;
}else{
clearInterval(fadeIn);
}
}
As of right now this code works perfectly. However, I have to hard code my property value. I wish to make it more dynamic so I can use the function "fadIn()" more universally.

The colored (red) text shows on what I wish to make it more dynamic.

I basically want to take the property and be able to use any instance name in place and pass it back.

I hope someone out there understands on what I am trying to explain.

Any Help would be appreciated.

Thanks in advance,

- Alex

View Replies !    View Related
Passing Values
Hi

In my actionscript code I am opeining an image in the webpage and when the user clicks it gets the coordinates of the point. How can I send this value to the webserver.

Thanks

View Replies !    View Related
Passing Values?
Hello people ...

am new to falsh development ...
i managed to make an flv payer " with a help of a great turorial"
but the issuew now .. i don't want to set the flv name from inside the swf file ... i mean i don't want it to play only one flv file .. i want it to play anything ...i'll pass the movie url and it iwll play it ... how shall i do sth liek that ...?????
i saw sth that does sth like that but i didn't like its interface so i built my own .... now i need to pass some values to it ..

thanx in advance

View Replies !    View Related
Passing XML Values From One Swf To Another ?
hi,

i'm pretty new to xml and actionscripting, so i'm dealing with the following problem :

i'm creating a flash database where students in architecture will be able to click in a row/column matrix to define a theme. following to that action, the right data needs to be loaded from an xml file into a new swf, that loads over the base swf with a LoadMovieNum function.

i've put all the data in one xml, and the first base swf needs to examine what part of that xml to load into the second swf.

how do i pass the values (according to the right theme) from the base swf to the 2nd swf that i'm loading, so that tha last one can show the right text values?

a preview can be found here : http://members.chello.be/cr26275/iFr...te_matrix.html

(n.b. that in this preview only the first two cells in the left above corner are activated.)

View Replies !    View Related
Passing Values And Displaying
I'm trying to loadvariables (or however it's done) from a TXT file and simply display the value of that variable in Flash. Any help in detail would be greatly appreciated.

View Replies !    View Related
Passing Rotation Values
May be a dumb question - but !!

I need to know how to bring a value in from a .txt file

EX. a = 120 and pass it to a line so that it will rotate to that value. I read the value in OK but it will not pass to the _rotation property of the line. It will even print to screen if put into a dynamic textbox - I can do math on it and it is correct but it will not pass to the object.

I have searched on many sites and all I find is mouse followers. I need it to be dynamic from the .txt file.


Any Help


Thank you..........

View Replies !    View Related
Passing Values From Swf To Popup
I need to open a popup from my movie and have it display the value corresponding to the movie in the simplest way - just typed plain text. Is there any way I could pass that value from the swf to a new popup?

View Replies !    View Related
Passing Variable Values
I'm trying to figure out a way to pass data from an input text in one mc to a dynamic text field in another mc. Can anyone help me? Pleeeeeaassseee?

View Replies !    View Related
Passing Values From MX To Html
Yes, I need help on how to pass values from username and password text fields in MX to a form on an external html page. What i want is to allow the user to login from flash and be able to check their email out on a mail server. This should open an external html page in a new browser window. Thanks in advance for your help.

View Replies !    View Related
Passing Values From MX To Html
Yes, I need help on how to pass values from username and password text fields in MX to a form on an external html page. What i want is to allow the user to login from flash and be able to check their email out on a mail server. This should open an external html page in a new browser window. Thanks in advance for your help.

View Replies !    View Related
Passing Values To Flash
I am trying to pass some variable to flash and have them display in a dynamic text field.
the javascript im using to pass the values is; JavaScript:GetNumberOfProps()
How do I then call this into flash??
Do I use 'geturl' or ....???
regards.

View Replies !    View Related
Passing Values To A Movie
Is it possible to pass values to a movie clip as it loads.

I want to pass some text in to the movie and do some text effects on it.

Using flash 5

Thanks

View Replies !    View Related
Passing Values To Flash
Hi,
How do I send default variables to a flash movie from html?

I've tried adding this param to the embedded flash movie ...


Code:
<param name="rId" value="5">
... and accessing it from flash with ...


Code:
_root.testText.text = _root.rId;
... but this does not seem to work.

Please help!

Thanks,
nanda :)

View Replies !    View Related
Passing Values To GotoAndPlay
I am trying to pass a value located in a variable to the gotoAndPlay, but no matter what I do I cant seem to get it to work.

code:
_root.hslider.onRelease = function()
{
_root.hslider.stopDrag();
_root.dragingSlider = 0;
var curr:Number=_root.mc._currentframe;
_root.mc.gotoAndPlay(curr);
};


Is there a way of doing it? I cant seem to find anything in the Flash help language reference.

View Replies !    View Related
Passing Combo Box Values To Php
I'm a PHP coder working with a Flash coder to set up a mailing form. Everything is working with the exception of the combo boxes which are not passing their values to PHP. Can anyone tell me how/where to set a variable value on a combo box like I do with text boxes?

Thanks,
Ba66e77

View Replies !    View Related
Passing Input Values
Im trying to take an X and Y value from the user and then use those values as points I take the values in like so..

userinput1x = function (answer1x) {
point1x = p1x;
return point1x;
};
userinput1y = function (answer1y) {
point1y = p1y;
return point1y;
};

but1.onRelease = function() {
point1x = userinput1x(answer1x);
point1y = userinput1y(answer1y);

trace(point1x);
trace(point1y);

};
and then I try to pass the value as a co-ordinate to my Point2D like this
p1 = new Point2D(point1x,point1y);

but Im not getting the correct results.... help is needed
thanks in advance

View Replies !    View Related
Passing Radiobutton Values To PHP
Hi there, fairly simple I hope, I have a movie clip called form with 3 input boxes in it, I then pass these variables to a PHP page that emails them out to a specific email address, all well and good and this works fine.

However, I need to add a yes/no query to the form using radiobuttons, what I can't figure out is how to actually grab the variable for the radiobutton in the PHP, I had originally believed that the variable would just be the groupname of the radiobuttons however this doesn't work.

I suspect the radiobuttons variable isn't actually being passed to the script at all - can anyone help?

For the record I'm using MX2004, AS2.0 and the submitting code on my submit button is:

on (release) {
form.loadVariables("/testarea51/email.php", "POST");
}

View Replies !    View Related
FlashVars - Passing Values More Than Once
I am using fscommand to pass values out of Flash to javascript, which then returns results from an LMS query back to Flash. At the moment I am using setVariable to do this - but this does not seem very stable as sometimes it works perfectly and at other times it doesn't.

FlashVars seems to be a more stable method of doing this. If I am using 3-4 fscommands to access information from an LMS, can I use flashVars to send the results back into flash?

I hope this is clear.

Regards

T.

View Replies !    View Related
Passing Values To A Backend ...
I have a created a little form in flash. I need to get the values into a backend. What I have is a variable called sQuery, like so:

sQuery = questionnaire.asp?firstname=James%&lastname=Delane y&jobtitle=Web%20Dev&email=asdf@asdf.com&company=T he%20Factory&phone=34563456&customer=true&q1=70000 &q2=39

Now originally, I was simply using the following getURL:

getURL(sQuery)

Which would send them to the .asp page (which did it's backend thing) and they would be shown a thankyou page. BUT now, I need to send the values to the backend, but show the user a thankyou page in the flash app. Therefore I don't think I can use getURL. Can anyone advise on what I should be using now, do I need to use a LoadVars object or such ??? I need to 'fork' off the values to the database but stay on the page with the flash movie.

Thanks in advance.

View Replies !    View Related
Passing Values To An Object
I am new to AS3 (as if it didn't show!), though I'm pretty good at AS2, so forgive me if I bore you.

I have been stuck on this one for days.

I am trying to do a very simple class (my first!) called Thing that will just show an image whose bitmap I want to pass to it as a variable.

So, in the .fla timeline I do:

Code:
var imagen:Bitmap = imagenes[0]

th:Thing = new Thing();

th.mostrar(imagen)

stop()
(I know imagen is OK because when I do addChild(imagen) it shows well).

The Thing.as file (which is in the same directory as the .fla file looks like this:

Code:
package
{
import flash.display.*

public class Thing extends MovieClip
{

public function Thing():void
{
trace("17")
}
public function mostrar(ima:Bitmap):void {
this.addChild(ima)
}
}
}
when I run this, it traces 17 (meaning Thing is well instantiated?) and then a totally blank stage: no image......

PLEASE, what am I doing wrong?

Mariana

View Replies !    View Related
Passing Values To Mp3 Player
Hi,

Ok I'm not programming savvy. What I'm trying to do is I have mutiple drop down boxes in HTML on a page that has 1 value in it which is the song to play. I created a simple mp3 player in flash which has play, stop, ff, rew functions. I want when you click on the sound in the drop down box it plays in the embedded flash player on the site. Can anyone help me with this please.

Misslilbit02

View Replies !    View Related
Passing Variable Values Between MCs
Hello,
I'm new to the forum and would kindly ask you for a help with this.

On the stage, I have a MC ( mc1 ) containing a variable y, for example. On the same stage, there is also a second MC with variable x. What I would like to do, is pass the value of the variable y to variable x. On the first frame of the second MC, I was trying something like this: ( var x = _root.mc1.y; ), but that doesn't work. I hope someone has a solution.

Thank you!

View Replies !    View Related
AS2 To AS3, A Few Basics On Passing Values...
I've been doing AS2 for years now and my code has always been proceedural rather than OOP, so going from AS2 to OOP AS3 is a massive leap for me. I'm getting my head around using classes, and having separate AS files for each object, including the main class but I still have some problems with some of the more basic attributes that were so useful in AS2 and seem to be a lot more complex in AS3. Could anybody explain these to me....

1.) Say I wanted an object (MovieClip) on the stage to get a vlaue from the main timeline. In AS2 I used to set a variable _root.n = 10; Then from within the MovieClip (which I'll call 'mov1') I could call "trace _root.n" and this would give me the value. I could also add something to that _root variable from either inside mov1 itself (i.e. _root.n+=10) or from the main timeline using some variable in mov1 (i.e. n+= _root.mov1.p). This was the perfect way to share and pass variables. IN AS3 however the rules have changed and I find myself completely lost. For example I have created a root class with a variable n, created a new MovieClip 'mov1' with an attached .as file with a class structure for that Mc and want to access and change the root class's n variable. How would I go about doing that?

2.) I want to create 5 instances of a movieclip, and call them mov1->mov5. In AS2 I simply did a for loop...

for (i=0;i<=5;i++){
_root.attachMovieClip("movtemplate","mov"+i,i++);
}

..Using a similar technique I could then pass details to each of these Mcs at a later date, for example...

for (i=0;i<=5;i++){
_root[mov"+i].n = 10;
}

...with AS3 this sort of thing seems incredibly difficult. I read that you can attach a name variable to each MovieClip that you add to the stage but I dont know whether that is the right way to do it, or how to then send values to a particular MovieClip.

I understand why AS3 can be seen as much easier and better to use, but some things just seem so much more complicated in AS3 than AS2. For example the project I am working on at the moment would take 45 minutes to make in AS2. So far it has taken me 5 days in AS3.

Any help really appreciated.

View Replies !    View Related
Passing Values From A VB .Net Application To AS3
Hi guys, i have been trying to find the solution to this problem:

How can i pass a value stored in a variable in Visual Basic .Net to variable (for example the text of a Dynamic Text object) inside a movie that is embebbed in the main form of the application?
In AS2 it could be donne using the method 'SetVariable', but now in AS3 it seems not to be too simple.

So i can for example in a Visual Basic .Net application (which is the container of the flash movie) take data from an USB device, storing this data in a string variable, and then pass the data inside this string variable to be displayed in a Dynamic Text object inside de flash movie.

Thank you!

View Replies !    View Related
GetURL - Passing Values
Hi all!

This is the scneario. I am calling my swf from a html. This html generates a session ID that identifies the person that request the page. I need to obtain this session ID from my swf, so I can then send it back to the server with other additional information.

Is getURL a good choice?... I don't want to open a page, I only want to catch the value of the variable.

Any suggestion?

nitz

View Replies !    View Related
Passing Values To SWF Files
Hi all,

I have looked into tutorial that shows passing by parameters and it works fine until, the values passed is not ordinary string.
For example flash_file.swf?tit=%DF which url encoded for ß. In the flash file when I called _root.tit it shows empty string.

If I can get the string "%DF" I can use
System.useCodePage = true; string titEn = unescape(tit)

But I still not able to get that string.

Any ideas?

Riady

View Replies !    View Related
Passing Values To A Function
Ok I have a gallery.. All the images and the Title of each pic is in a DB, I get the data through xml and create an array object to hold all the image info , eg Title, Filename, Width, Height etc....

I have an onRollOver Function (Thanks Kirupa) that produces hover text

each image in the gallery is added to the mc in a loop,

eg image=myMC.createEmptyMovieClip("img"+i...... etc

and I set the onRollOver Function as shown here....

image.Box.onRollOver = function() {
_root.x = 1;

_root.HT.txt.text = array[counter].strTitle;

this.fader._alpha = 100;

};

How Do I pass the value of array[counter].strTitle into the function...

NB.. image.Box is another MC that creates a little fade effect over the image...
I hope I have explained this properly.

thanks guys

John

View Replies !    View Related
Passing Radiobutton Values To PHP
Hi there, fairly simple I hope, I have a movie clip called form with 3 input boxes in it, I then pass these variables to a PHP page that emails them out to a specific email address, all well and good and this works fine.

However, I need to add a yes/no query to the form using radiobuttons, what I can't figure out is how to actually grab the variable for the radiobutton in the PHP, I had originally believed that the variable would just be the groupname of the radiobuttons however this doesn't work.

I suspect the radiobuttons variable isn't actually being passed to the script at all - can anyone help?

For the record I'm using MX2004, AS2.0 and the submitting code on my submit button is:

on (release) {
form.loadVariables("/testarea51/email.php", "POST");
}

View Replies !    View Related
Passing Values To SWF On Runtime...
(Do I have to mention that I feel stupid for asking this because I *know* I saw something about this subject at some point but can't seem to find the entry anymore?)

Hello! A quick rundown:

Setup:
2 iframes (one has a php-generated list, the other my swf)

So this is what I want to do:
Clicking on an item in the list has to pass info to the SWF file without reloading it.
I think I heard / read that this is possible with JavaScript.

Thing is, it needs to be quick... hence the "JavaScript / no reload" approach. Otherwise I was thinking to just have the PHP-iframe reload itself when clicked and create something like a server-side cookie (a tiny text file with the choice) and have the SWF check for that file.

That would mean I could avoid using JavaScript (simply for security / compatiblity reasons) but it would be slower responding sind I wouldn't want to let the SWF check more often than once every 10 seconds or so (server load, etc).

Any idea or pointers on how to approach this problem? Just in general- but if you want I could also post code... only that I am in a pre-coding phase, still

Thank you, everyone!

View Replies !    View Related
Passing Values From URL To Flash
I'm making a Flash invitation to a party, and I want to send it via e-mail.
So I want to pass a variable to Flash in the URL like this:
www.mydomain.com/index.html?nameID=23

Flash contains a list of people invited to the party.
So when Flash reads nameID = 23 it shows the name linked to # 23.
E.g. "Dear Thomas, please come to my party bla bla bla..."

This way I only have to change the nameID in the e-mails I send.

I've found some sites on the web, that suggests to replace this line in the index.html:

HTML Code:
<param name="movie" value="invitation.swf" />
With this:

HTML Code:
<param name="movie" value="invitation.swf?nameID=23" />
But it is hard coded and I don't know any javascript.
Could anyone make a script, that takes the nameID from the URL and puts it behind the "invitation.swf" in the index.html file?

(index.html attached as index.txt)

View Replies !    View Related
Passing Values From HTML
Hey,
I want to use a flash move as a sound player. I need to have about 5 to 10 instances of the movie per page and want to know if there is any way to specify what sound clip that a specific instance of this flash movie will play in the HTML?

View Replies !    View Related
Passing Values To Flash
Is it possible to pass php variable values to a flash movie ?

View Replies !    View Related
Passing Values To GotoAndPlay
What is the correct syntax to pass a value stored in a var to gotoAndPlay?

I have a var called curr that gets assigned a value, now I want that value to be passed on to gotoAndPlay.

So far I have tried the following

gotoAndPlay(curr);

gotoAndPlay("curr");

gotoAndPlay('curr');

None of them work !

View Replies !    View Related
Passing Values To A Backend ...
I have a created a little form in flash. I need to get the values into a backend. What I have is a variable called sQuery, like so:

sQuery = questionnaire.asp?firstname=James&lastname=Delaney&jobtitle=Web%20Dev&email=asdf@asdf.com&company=The%20Factory&phone=34563456&customer=true&q1=70000& q2=39

Now originally, I was simply using the following getURL:

getURL(sQuery)

Which would send them to the .asp page (which did it's backend thing) and they would be shown a thankyou page. BUT now, I need to send the values to the backend, but show the user a thankyou page in the flash app. Therefore I don't think I can use getURL. Can anyone advise on what I should be using now, do I need to use a LoadVars object or such ??? I need to 'fork' off the values to the database but stay on the page with the flash movie.

Thanks in advance.

View Replies !    View Related
[mx][array][help] Passing By Values
hi guys I have an old problem and have forgotten the solution

I need to duplicate an array so that i can edit it but I know I cannot do
ActionScript Code:
pete= [12,11,12,445,67,88]
jo=pete

as it passes the info by reference not by value, there is a trick to break the reference but I cannot remember how to do it.


any help greatly recieved

Zen

View Replies !    View Related
Passing Values To Array
I'm having number of MCs. I need to create a Array where the elements of the array will be inserted from the MCs on a click event. I create the array onClipEvent(load) and try to pass the values using splice or push method but it returns saying undefined.. how can i pass values to an Array from other movie clips. I'm kinda newbie to Action scripts. I would really appreciate if some1 could help me out..

tnx

View Replies !    View Related
Passing Values Into A Function
Last edited by flashspeed : 2003-10-28 at 15:23.
























Hi Guys, I want to pass a value into a function via a button click.
The trouble is, i'm using the function as an onClipEvent(enterFrame) the code I have attempted to use is as follows :


on (release) {
_parent.movePix(180); //this will pass the value of 180 into the function.

_parent.collage.CollPix.onEnterFrame = _parent.movePix;
}

On the Parent M/C this is the function :

function movePix(x) {
this._x += (x-this._x)/20;
if (this._x<=x) {
delete this.onEnterFrame;
mc.onEnterFrame = moveMc;
}
}
When I do a trace(x) inside this function, the value is 180 once, then it is undefined for the rest of the ClipEvent.
Can anyone please help?
Thanx in advance
Speedo

PS :: I'm using MX ::

View Replies !    View Related
Passing Values In Flash To An Asp File
I apologize for the ignorance of this question in advance.
I have put together a very simple feedback form in Flash with the intention of replacing my existing ASP version. I currently use the following to handle the actual sending of the mail.

function SendMail( zFrom, zTo, zSubject, zBody )
{
pMail = Server.CreateObject( "CDONTS.NewMail" );
pMail.Send( zFrom, zTo, zSubject, zBody ); pMail = null;
}
************

strComments=Request.Form("feedback").Item;
strUsername=Request.Form("firstname") + ' ' + Request.Form("lastname"); strUserEmail=Request.Form("email");

And So On…

.My question is this: What / how do I call the variables form the flash movie to this ASP page to send the mail. Previously I was able to use a Request.Form ( as you can see ) but how do you do that in flash. On the Submit portion of the Flash Form I have

on (release) {
subject = "Feed Back Form";
recipient = "test@test.com";
loadVariablesNum ("sendmail.asp", 0, "GET");
gotoAndPlay (2);
}

Much thanks in advance for your help.

View Replies !    View Related
Passing Checkbox Values In Forms
Hi All: Sorry if this is newbie, but I'm having trouble getting the Checkbox to work in a form. I don't understand whether or not the checkbox "_name" attribute is passed with a Boolean variable or whether I have to assign its value to a new variable.

If I want to use loadVariablesNum on an "onrelease" event, and I have a checkbox (let's say I've checked it) called "myCheckbox", will a variable called "myCheckbox" automagically be passed to the processing page with a Boolean value of "true" assigned to it?

Or do I have to "getState" on the checkbox and, if true, create a variable and pass it to the page using loadVariablesNum?

TIA, Andrew

View Replies !    View Related
Passing Values From Flash To Servlet
i made a flash login

-> ID field
-> Password field
-> a Submit Button

how do i send the variables to the login servlet??

in html...i can....

<FORM METHOD="POST" ACTION=http://localhost:8080/Login/servlet/Login>

</FORM>

...in flash? what should i do?

loadVariables("http://localhost:8080/Login/servlet/Login","POST)

???????????

View Replies !    View Related
Passing Values To Check Box Component
I have a flash movie where someone can type into an input text field and click a button called "Search" and a list of what they searched for is returned into 6 text fields which are named with variable names. The results are brought to my flash movie using a PHP script. That is working fine. Once someone searches and the variables are given values and displayed in the text fields, how can I associate 6 check box components to the 6 values that are returned? The catch is, I only want the check boxes to be equal to the values if the check box is checked by the person. Thanks for any help you can give!

View Replies !    View Related
Passing Component Values To Variables
i'm trying to pass the value of a component (datechooser) to a variable - so i can use it in a PHP script.

i'm able to send my dynamic text variables to php quite easily but i can't seem to assign my components to variables.

i'm quite a newby to as.

thanks

View Replies !    View Related
Passing Values To Hidden Fields?
I'm trying to figure out how to pass a value of a button in one frame, to a hidden field so that I can submit this information through with a form.

More or less, I have created a questionare within a small banner. Each question has 2 answers to choose from. When you select your answer, it goes on to the next question in a later frame. These answers need to be sent to a hidden field where my submit form area can grab it and send it off.

CAN SOMEONE PLEASE help me and if possible attach an FLA of a really simple example.

THANKS SO MUCH!!!!

View Replies !    View Related
Passing Values To Hidden Fields?
I'm trying to figure out how to pass a value of a button in one frame, to a hidden field so that I can submit this information through with a form.

More or less, I have created a questionare within a small banner. Each question has 2 answers to choose from. When you select your answer, it goes on to the next question in a later frame. These answers need to be sent to a hidden field where my submit form area can grab it and send it off.

CAN SOMEONE PLEASE help me and if possible attach an FLA of a really simple example.

THANKS SO MUCH!!!!

View Replies !    View Related
Passing Values To Seperate Swfs
I am looking to send a url value from one movie, to a completely seperate movie (two movies arranged in a table).

Movie A has a button, when that button is pressed, I want movie A to tell movie B to get to replace itself with Movie C which will then load a html page.

Movie A is for navigation, each button passes a different url value to B and C.

Movie B is the default movie. Is located in an Iframe (iframe1)

Movie C is the transistion movie between B and the page. (iframe1)

The diagram might explain it better.

** I could avoid this whole situation if someone could tell me how to make flash pass a variable to a php session **

View Replies !    View Related
Passing Values From Flash To HTML
Hi,

I'm trying to pass the contents of three text input boxes from a Flash File to three text input boxes on an html page.

Below is the .swf:

the .swf

I plan to add a submit button on the bottom,

and here is the html i'm trying to pass it to:

<input type="hidden" name="ProductID" value="' ...child product code... '"> <input type="hidden" name="ParentProductID" value="' ...parent product
code... '">
<input type="hidden" name="ProductGroupID" value="' ...product group
id... can be set to 1... '">
<input type="hidden" name="Quantity" value="1">
<input type="hidden" name="basket" value="add">

<input type="hidden" name="item_names[]" value="Line 1">
<input type="text" name="item_values[]" maxlength="18" value="">

<input type="hidden" name="item_names[]" value="Line 2">
<input type="text" name="item_values[]" maxlength="18" value="">

<input type="hidden" name="item_names[]" value="Line 3">
<input type="text" name="item_values[]" maxlength="18" value="">

Any ideas?

Thanks in anticipation,

Adrian

ps.here is the .fla if it helps:
.fla

View Replies !    View Related
Passing Values With Asfunction From One Textfield To Another
I`m using XML and I wanna have a certain text inside a textfield with a link at the end that will pass the value of another variable to another texfield.

This is the code I have and as you might have guessed it doesn`t work!

var c = new XML();
c.load("index.php");
c.ignoreWhite = true;
c.onLoad = loadXML;

function loadXML(loaded) {
if (loaded) {

function passing_value(info){
tekst2.text = info;
}
var titl = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
var info = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
tekst.htmlText = titl + "<a href="asfunctionassing_value,"+info+""> click </a>";

tekst2.text ="";
} else {
trace("file not loaded!");
}
}

View Replies !    View Related
Passing Values In Input Text
I'm making SUDOKU game. I want to pass numbers in 81 cells(input text) of 9*9 grid, with following certain rules. I traced my code and it's showing correct results. but the numbers are not being shown in the input texts.

My code is:

code: play();//at timeline 1

ival = new Array();//array for initial numbers
ibox = new Array();//array for var name of input text cells of the grid

ival = [[1,2,3,4,5,6,7,8,9],[7,8,9,1,2,3,4,5,6],[4,5,6,7,8,9,1,2,3],[9,1,2,3,4,5,6,7,8],[3,4,5,6,7,8,9,1,2],[6,7,8,9,1,2,3,4,5],[8,9,1,2,3,4,5,6,7],[2,3,4,5,6,7,8,9,1],[5,6,7,8,9,1,2,3,4]];
ibox = [["a1","a2","a3","a4","a5","a6","a7","a8","a9"],["b1","b2","b3","b4","b5","b6","b7","b8","b9"],["c1","c2","c3","c4","c5","c6","c7","c8","c9"],["d1","d2","d3","d4","d5","d6","d7","d8","d9"],["e1","e2","e3","e4","e5","e6","e7","e8","e9"],["f1","f2","f3","f4","f5","f6","f7","f8","f9"],["g1","g2","g3","g4","g5","g6","g7","g8","g9"],["h1","h2","h3","h4","h5","h6","h7","h8","h9"],["i1","i2","i3","i4","i5","i6","i7","i8","i9"]];


var count:Number = 0;// count for displaying each time new values in cells
var x:Number = 0;
var y:Number = 0;
var z:String;
var xx:Number = 0;
var zz:Number = 0;
for(x=0;x<9;x++) {
for(y=0;y<9;y++) {
z = ibox[x][y];
zz = ival[x][y];
for (xx = 0; xx<count; xx++) { // for displaying values
zz = Number(zz); // first time
zz = (zz+4)%9; //these lines are
zz = zz+1; //not
} //required
_root.z = zz;
}
}
count++;

I need the solution asap. Thanks in advance.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved