PDA

View Full Version : Launch commands through AutoPlay


John Fletcher
08-12-2007, 02:04 PM
Hello All,

I have been successfull in bringing in a Quiz created in Flash and embedding that Flash via the Web Option in AutoPlay and saving the file in an EXE format..... Does anyone know how to pass on the commands from within the Exe established by the Flash file within it?

The User takes the test, and when finished, there is a button that says Print results... For some reason AutoPLay will not allow the Print function to pass from the Flash program through Autoplay to be initialized.... Is there something I am missing? :huh

Please advise!

Best Regads,

John

longedge
08-12-2007, 04:12 PM
Try inserting the flash file directly. You don't need to do it via a web object.

I just built a quick swf to print a picture and tried it (in AMS5) - it works perfectly for me.

John Fletcher
08-12-2007, 04:29 PM
Longedge

Thanks for your reply,

The Quiz was created with Articulate Quizmaker 2.1 - the file is a self contained file of which the Shockwave is launched via a Web page - thus the need for the application to be imported via the Autoplay Web feature -

The Articulate Quiz has a Print the results feature - I was wondering if in AutoPlay there needs to be a setting made available for the print veriables to be passed through AutoPlay to the users printer...


Best Regards,

John

longedge
08-13-2007, 11:38 AM
Presumably an application built with 'Director' then but the underlying files are sometimes .swf's IIRC.

Just for interest, I tried putting the .swf that I made into an html page and then inserted that via a web object into my AMS5 project and the print button still works as I meant it to i.e. it opens the system print dialogue window.

I take it that if you open your application in your normal web browser without using AMS, the print button works OK? If so then I'm stumped :)

For interaction between flash objects and AMS there is a 'two way' system using "fscommand" although I've only ever used it to pass commands from flash to AMS. If you are interested then a search on fscommand will turn up lots of info.

John Fletcher
08-13-2007, 03:13 PM
Longedge,

When the Flash project (Articulate Quiz - embedded into HTML Page via Flasjh and XML) is performed outside of AMS then the print functions fine - interesting to say the least - will look into the fscommand issue you mentioned

There must be a way to pass the commands from embedded objects within AMs without any special coding!

Thanks,

Best Regards,

John Fletcher

longedge
08-13-2007, 03:40 PM
From my understanding of what you've said, there is no need for your embedded application to communicate with AMS at all because it (the app) is doing the work(printing) not AMS.

From this (http://www.indigorose.com/forums/showthread.php?t=11152&highlight=articulate) thread I note that Articulate has a 'starting point' of a file called playershell.swf. Putting that into a flash object may well be the best/simplest approach for you.

Just put the whole set of files and any subdirectories into the Flash folder of your project and then put a flash object on the page pointing at playershell.swf. It is very important to maintain the directory structure within the flash folder as the links within the flash files will all be relative to the initial file.

usernameCasper
08-14-2007, 01:42 PM
Hey John,

I'm learning actionscript for flash as part of a new project for my job.
As far as I know, it looks like longedge got the best solution for your problem.
Passing flashcommands trough objects within your application seems the best way I think. I'm still a learner, correct me if i'm wrong please :)

Sincerely,
-Casper