Skip to main content
Participant
August 24, 2007
Question

Simple (i think...) actionscript question.

  • August 24, 2007
  • 5 replies
  • 579 views
Hi....

I'm updating my site, and i have a preloader for every section. I need the preloaders, but i only need them once, after the section is loaded there is no need to wait for the preloader effect.

So i tried to add this code at the beginning of every preloader FX:

if (framesLoaded > 859)
{
gotoAndPlay(860);
} else play();

But it's not working :-(

Can anyone help me on this?
This topic has been closed for replies.

5 replies

Damon Edwards
Inspiring
August 25, 2007
try using the Absolute URL instead of relative.
Inspiring
August 25, 2007
already tried that :-S

but, don't worry...i placed the .php file with the .swf

the most important is that it's working ;-)
thanks alot dzedward
Damon Edwards
Inspiring
August 25, 2007
yes it will.. remember, you can't test it locally.
Inspiring
August 25, 2007
but it's not working :-(

the .swf file are on the root folder, and the .php files are on the ./counter folder, and it doesn't work with that url path...
Damon Edwards
Inspiring
August 25, 2007
using LoadVars, you can receive an echo from the PHP file.
Inspiring
August 25, 2007
hi dzedward

i tryed this:

loadVariablesNum("counter/counter2.php", "Counter", "GET");
//Counter is the moviclip where the variables will be stored i think...

and know i want the variable value from the php file to be displayed in a dynamic textfield:
Counter.counterTextfield = Counter.count;
//count is the php variable

but this is not working :-(
Damon Edwards
Inspiring
August 25, 2007
with dynamic text field on stage with instance name feedback_txt
kglad
Community Expert
Community Expert
August 24, 2007
one's an invalid as2 property and the other is valid.
Participant
August 25, 2007
ok, thanks ;-)

By the way, is it possible to show values from a php file in flash?

Example, i have a php hit counter in my site and i would like to show the number of hits inside the flash content.
kglad
Community Expert
Community Expert
August 24, 2007
use:

_framesloaded

and that code may need to execute repeatedly. and you should use the goto methods, not the functions:

this.gotoAndPlay(860);
Participant
August 24, 2007
hey kglad...

thanks...

i only changed framesLoaded to _framesloaded and it's working nicely ;-)

but what's the difference between framesLoaded and _framesloaded ?