okie I got my php working with all the results i need…
albumId=0&albumName=default1&albumId=1&albumName=default2
now how do i work this within flash? bascially for each pair of albumId and albumName, I want to attach a movieclip to a empty container.
I tried the tutorials and loadVars but dun quite seem to get it right… what is the standard procedure for me to get the result from the php file within flash? and how do i work with it?
Warning: main(config.php): failed to open stream: No such file or directory in /home/eudora/public_html/albums2.php on line 3
Warning: main(): Failed opening ‘config.php’ for inclusion (include_path=‘.:/usr/lib/php:/usr/local/lib/php’) in /home/eudora/public_html/albums2.php on line 3
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/eudora/public_html/albums2.php on line 6
completed=true
That means that your PHP script has problem that you need to fix BEFORE you go on and supply that data to Flash…
Well… I don’t know what you are talking about, sizzle… Does your question belong to this thread??? In other words, are you another entity of the eudora???
At any rate, post your code and somebody will try to help you… (Nobody knows which tutorial you are talking about, so it’s best to post what you have…)
myVars = new LoadVars();
**myVars._path = this;**
myVars.onLoad = function(success) {
if (success) {
trace(" variables loaded ");
i = myVars.albumCount;
with that i can get the myVars.albumCount…
am i right to say that the value of i only exists within the onLoad function?
how can i access the other objects from within this function? _root.Object1?
so for each album i will attach a button MC… i tried to add in the onRollOver etc functions to it but that don’t seems to work. I tried the same code with XMl and it worked… anyone knows why?
thanks!
i made a typo of not declaring the textFormat earlier… but after declaring still no difference… the onPress is obviously working cos i got the trace of a msg… but onRollOver and onRollOut dun seems to work…
When you say ‘this’ from that onRollOver handler block, it refers to the button’s hitArea instance and the one you need to refer to is the one that is one level above that one, hence ‘this._parent’ comes in…
Creating engaging and entertaining content for designers and developers since 1998.