Welcome Guest, Not a member yet? Register   Sign In
Calling a controller from an embedded Flash
#1

[eluser]doMynation[/eluser]
Good day,

I am trying to load a controller from a flash file.

This is what I have:

Code:
// Javascript

var flash = new SWFObject("someFlashFile","blahblah","403","217","7");
    
flash.addVariable("file","<?php site_url('test/test'); ?>"); // http://localhost/sdp/en/test/test
flash.addVariable("backcolor","0x000000");
flash.write("testDiv");


Is it even possible to run a php script with URL parameters from Flash ?
It works fine if I call a simple php script like so:

Code:
flash.addVariable("file","http://localhost/sdp/system/application/scripts/test.php");

Thanks
#2

[eluser]bobbybaboon[/eluser]
What you're doing will work fine, but you need to echo the site_url.

Code:
<?php echo site_url('test/test'); ?>

That should work. The .php shouldn't make a difference.
#3

[eluser]doMynation[/eluser]
is it possible that it doesn't work because of the "clean URL" (without index.php) ??

Because I did exactly what you said and it doesn't work Sad
Maybe the flash is trying to open a php file, and it can't find it because of the lack of a php file.




Theme © iAndrew 2016 - Forum software by © MyBB