Solved

flash and php

Posted on 2004-08-23
6
174 Views
Last Modified: 2010-04-03
hello,
ok i am making a flash website and it going to have a dynamic textbox that connects to php to get info from mysql. it works fine wen i put the code in main timeline but when i put it on a mc's timeline it wont work. the textbox just shows empty.
here is the code:

myData = new LoadVars();
myData.onLoad = function() {
      placeTxt();

};
myData.load("http://localhost/flash/myData.php");
placeTxt = function () {

      txtBox1.text = myData.textbDesc1;
      txtBox2.text = myData.textbLink1;

};


please help me
0
Comment
Question by:mad_man77450
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
Buffon earned 75 total points
ID: 11878661
Probably the path to text boxes txtBox1 and txtBox2 isnt right.
0
 
LVL 3

Expert Comment

by:mixart
ID: 11888634
This line of code is placing your data into mydata on the main timeline...
myData.load("http://localhost/flash/myData.php");

if this is inside a MC...
txtBox1.text = myData.textbDesc1;

then you will need to reference the mydata on the main timeline ie.
txtBox1.text = _root.myData.textbDesc1;   //or
txtBox1.text = _parent.myData.textbDesc1;
0
 
LVL 11

Expert Comment

by:Buffon
ID: 11889879
he declared myData inside mc, so the myData is not an issue. It can be only txtBox.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SCCM 2012 - Deploy Flash 16 7,132
System Center Configuration Manager 2012R2 7 100
Removing Flash from Website 6 76
Flash ActionScript 6 78
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question