Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 16-Jun-2011 13:33:50

louis
Member
Registered: 4-Jun-2011
Posts: 20

flash interface

hi, i want to build a simple flash interface and use in openspace 3D.
but i am very new for flash, could you please tell me how to set to flash call and callback in AS?
i just want to create some simple interface, like "Play" "Quit" two button.  could you please give me some idea?

Offline

#2 16-Jun-2011 13:45:12

Tenshikris
Scol Language & OS3D developer
Registered: 11-Apr-2011
Posts: 20

Re: flash interface

Hi,

I think you have examples in Partition_LockedApp\demos\car_showroom\media\ directory.
The file interf.fla has example to do that.

import flash.external.ExternalInterface;

//Call function :
ExternalInterface.call("NameOfTheCallFunction");

//Callback Function :
ExternalInterface.addCallback("NameOfTheCallback", NameOfTheFunctionCalledBack);

Offline

Board footer

Powered by FluxBB