Solved

flash and php

Posted on 2004-08-23
6
165 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
6 Comments
 
LVL 11

Accepted Solution

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

Expert Comment

by:mixart
Comment Utility
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
Comment Utility
he declared myData inside mc, so the myData is not an issue. It can be only txtBox.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now