Hi Ricardo
Those are very good suggestions, but I already have the server architecture
in place.
I have one web service where I will keep the page flipped events
I want to have one client (student) flash which will receive page events
from the server
And one control client (teacher) flash which will send the web service flip
events.
I have everything in place, I just need the flash to javascript to flash
part.
That's why I did not mention the rest. And it seems you figured it all out.
I will share this as an opensource solution when finished so people can get
an idea.
Now important things:
Is it possible to use the ExternalInterface class from .sc ?
All I need to do is to expose the javascript functions with a viewer.
I tried several viewers written in actionscript 3 and they all gave me the
same error.
For example when I try building this Main class in Flex Builder (after
fixing the ; error)
http://lists.gnu.org/archive/html/swftools-common/2009-02/msg00141.html
and then try to put my swf into its viewport control
swfcombine -f Main.swf viewport=LowLatencyData.swf -o test.swf
I get the
WARNING Didn't find anything named viewport in file. No substitutions will
occur.
I can't find one working example of making my own viewer in actionscript,
and I don't know how to do externalinterface in sc.
Help would be greatly appreciated.
On Jun 21, 2009 3:46am, Ricardo Pedroso <[email protected]> wrote:
On Sat, Jun 20, 2009 at 2:28 PM, Onur [email protected]> wrote:
> Hi everyone
> I'm building a simple virtual class for remote education, and I want the
> teacher to control student slides using javascript.
If I were you I would go with a tool like those:
http://code.google.com/p/openmeetings/
or
http://www.dimdim.com/
The dimdim folks have a centos vmware image with their conference
tool ready to use.
> Is it possible to easily create javascript events (eg. for page
flipping)
> for the generated swf? Does the default_viewer.swf support these
events? If
> so, what are the function names?
I suppose it's not possible only with javascript because javascript
only run on client side.
You need a "central server" to control what page to show, please
someone correct me if I'm wrong.
What you could do is something like this, and I think this will be
possible:
1. For the teacher:
- Create a viewer with some actionscript/javascript that will
request a server side script(php, python, perl, ...)
every time the teacher change a page
- This server side script will record the actual page on a DB or in
a flat file.
2. For students:
- Create a viewer with some actionscript/javascript that will
request, every second or so, another server side script.
- This script will return the actual page from the DB or flat file
Regards,
Ricardo