I think we can probably help you o ut better if we had a better idea of what
you were trying to accomplish.  As prviously stated, actionscript is always
going to execute inside, when you are dealing with the flash player.
Sockets can be one way of dealing with the issue, but it may be
overkill...for instance, do you need to fire this function just once as the
page initially loads, or at any random time?



On 9/18/06, Jordan Snyder <[EMAIL PROTECTED]> wrote:

Anything executed within Flash is client-side.  If you're talking about
avoiding calling a Flash function via JavaScript, then there are ways to
do
so, but yes, you would need something that is constantly connected to the
Flash client, such as FMS or an XMLSocket server.  That is the only way
that
I know of to achieve server "push," which is what you apparently want.
Something you might consider is having Flash hit a PHP url every n seconds
and check for an updated variable that would be set when the AJAX call
hits
the server.  If the variable has changed, PHP can notify Flash and Flash
can
update itself accordingly.

HTH


On 9/18/06, Andrew Lechner <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm a PHP/Perl developer who's not terribly familiar with Flash or
> Actionscript.  A Flash developer friend of mine suggested I try asking a
> question here.
>
> I find myself in a position where I need to call an Actionscript
function
> from PHP.  This PHP page is not viewed by the user, it's just called via
> AJAX from another page.  The server is running FreeBSD with PHP 4.  Is
> there
> any way to accomplish this?
>
> I would rather avoid having this function called on the client-side due
to
> security concerns.
>
> If the above is impossible or financially prohibitive (via FMS), is
there
> a
> good Actionscript to PHP converter anyone can recommend?
>
> Thank you very much for your time,
> Andrew
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to