[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

flash and php

Posted on 2004-08-23
6
Medium Priority
?
178 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
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Buffon earned 300 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

834 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