473,769 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Struggling Send variable from scroll Pane

1 New Member
Hello

Please help me any one.

i am trying to send variable from scroll pane in Flash 8 to PHP
But i am not getting the value "undefined" :

the code as follows:

// create an xml object to hold the gigs
var shows_xml:XML = new XML();
// ignore whitespaces involved with the xml file
shows_xml.ignor eWhite = true;
// event handler for the XML object this function gets called
// when the xml object either gets the xml or fails
shows_xml.onLoa d = function(succes s) {
// if the file loades successfully
if (success) {
// call the parse function
// this is not necessary I just do it for clarity... makes it all easier to read
parseShows(show s_xml);
}
};
// load the shows.xml file
shows_xml.load( "shows.xml" );
// parse the shows_xml
function parseShows(_xml :XML):Void {
// hold an array of all the gigs.. this is an array of xml nodes..
var gigs:Array = _xml.firstChild .childNodes;
var big:Array = new Array();
// if there is actually data in the array continue
if (gigs.length>0) {
// for every gig do the following
for (var i = 0; i<gigs.length; i++) {
//this.row.t1.one .text+=gigs[i].attributes.pri ce;
//this.row.t1.one .text+="\n"+gig s[i].attributes.loc ation;
//this.row.t1.one .text+="\n"+gig s[i].attributes.dat e;
//this.row.t1.one .text+="\n"+gig s[i].attributes.tim e;
//this.row.t1.one .text+="\n"+gig s[i].attributes.ima ge+"\n";
//_root.row.pic.l oadMovie(gigs[i].attributes.ima ge);
this.t1.one.col or=black;
this.t1.duplica teMovieClip("t1 "+i, i);
this["t1"+i]._y = i*100;
//_root["t1"+i]._x=i*200;
this["t1"+i].one.text += "\n"+gigs[i].attributes.id;
this["t1"+i].one1.text += "\n"+gigs[i].attributes.pri ce;
this["t1"+i].one2.text += "\n"+gigs[i].attributes.loc ation;
this["t1"+i].one3.text += "\n"+gigs[i].attributes.dat e;
this["t1"+i].one4.text += "\n"+gigs[i].attributes.tim e;

this["t1"+i].onRelease = function() {
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.gotoAnd Stop(20);
var xx2 = this.one.text;
var x1 =xx2;
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.ww = xx2;
loadVariablesNu m("big.php?dd=" + x1 + "&var2=" + x1, "2", "POST");
trace(xx2);
};
this.t1.row.pic .duplicateMovie Clip("pic"+i, i);
this.t1.row["pic"+i]._y = i*100;
this.t1.row["pic"+i].loadMovie(gigs[i].attributes.ima ge);
this.t1.row["pic"+i].width = 75;
this.t1.row["pic"+i].height = 75;
}
}
}





here:

this["t1"+i].onRelease = function() {
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.gotoAnd Stop(20);
var xx2 = this.one.text;
var x1 =xx2;
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.ww = xx2;
loadVariablesNu m("big.php?dd=" + x1 + "&var2=" + x1, "2", "POST");
trace(xx2);
};

when i am going to send the variable "dd" to big.php
but in the big.php shows the value "undefined"

so please help me
thank you

sekhar
Aug 25 '07 #1
1 1737
Kelicula
176 Recognized Expert New Member
For one I'm not sure why all the variable swithching ie:

Expand|Select|Wrap|Line Numbers
  1. var xx2 = this.one.text;
  2. var x1 =xx2;
  3. _root.ttlscn2.bar2.homeb2.hoo.buy_con.ww = xx2;
  4.  
in only 3 lines xx2 has been given three assignments. With no operations to justify.

But I'm sure you have your reasons.
I notice one thing:

Expand|Select|Wrap|Line Numbers
  1. loadVariablesNum("big.php?dd="+ x1 + "&var2=" + x1, "2", "POST");
  2.  
after adding x1 the second time there is no + symbol after it. Unterminated string constant.
?? maybe.


Should be:
Expand|Select|Wrap|Line Numbers
  1. loadVariablesNum("big.php?dd="+ x1 + "&var2=" + x1+", '2', 'POST'");
Hope it helps.
Aug 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
8546
by: Matt Rapoport | last post by:
If you open a new spreadsheet in Excel and click on cell B1 and then go to Windows -> Freeze Panes it will create something similar to 4 frames. There will be a horizontal pane that contains 2 parts and a vertical pane that contains 2 parts. I've labelled the "frames" below ... 1 2 3 4 Here's the tricky part - if you scroll to the right, frames 1 and 3
4
5934
by: 2D Rick | last post by:
In Access2003 and XP. My forms detail section hides behind the header when I scroll down to see controls off screen. This is similar to freezing a pane in Excel. I'd rather this did not happen but can't find the property that controls this. When the form first opens some of the controls are behind the header and scrolling is required to see them. Help, thanks, RICK
3
1936
by: Ben | last post by:
I Have a datagrid that i have placed inside a <div> section so that it becomes scrollable, but now i have a new problem. I would like the <div> to auto start at the bottom of the scroll (newest entries are at the bottom). Can this be done? I dont know any javascripting and everythign i have found says place the following code as javascript in the html var objDiv = document.getElementById("divExample");
6
5672
by: ApexData | last post by:
I have created a Search Form that is basically a Popup ContinuousForm that consists of 15 fields(columns). When the user clicks on a record(row) the form closes and the selected record displays on my MainForm. Because there are 15 fields, they will not all fit on the screen so the Horizontal Scroll bar is used. the problem is that the first field ITEMNAME scrolls off the screen and the user loses track of the record they were focused...
3
4002
by: ApexData | last post by:
I have created a SearchForm which is basically a PopUp Continuous Form that displays 15 Fields. Each field is displayed as a column and when the user clicks on any record or row, the form closes and that complete record is displayed in the MainForm. At the bottom of the SearchForm is the Horizontal Scroll Bar. This lets the user view all the fields, since they do not all fit on the screen. The first field is the ITEMNAME. The...
0
4188
by: hokeyplyr48 | last post by:
This is my first flash project and i've been doing it all of tutorials. working in Flash CS3 windows xp pro actionscript 2.0 the website can be found here: http://balfourwest.50webs.com/balfour%20west.html and i want to be able to scroll the entire page with the mouse. i can scroll the page until i actually click within it. (make sense?) like if i click file or something then scroll it will scroll but if i click one of the tabs it...
2
1325
by: Bubbs | last post by:
Hi, I have a JTabbed pane and on tab 1, I have a panel that covers the size of the whole tab. At the bottom of the panel I have a scroll pane and on the pane a horizontal scroll bar. The problem is that when I scroll, the screen doesnt change. What do I have to add to the adjustmentValueChanged() ? Btw, Ive done this in NetBeans 6.0.1. Thanks
7
1114
by: dark | last post by:
Hi, I'm having a problem with scroll bars. I'm looking for a method of replacing the default browser scrollbars with custom ones, on <divtags on pages INSIDE <iframetags. This page shows an example of the problem: http://www.darkaudio.co.uk/v2/scroll_test/index.html
1
2904
by: NehaDas | last post by:
Hello Everyone ! Iam relatively new to .NET C# and m still in the process of exploring various options. Any help with regard to this query will be highly appreciated ... Iam working on an application that somewhat is similar to outlook . It will have a list of messages received on top and a reading pane below displaying the message selected by user. The problem is as follows : The screen is structured in the form of 3 taskcards : 1)New...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.