Home
 
Contacts
Portfolio
Faq

Crossword

Compatible: AS 2, AS3, flash 8 or greater

The Crifano Crossword Component is an extension for Adobe Flash. You simply install the MXP file, then drag & drop the extension from the Components' panel onto the scene of your movie.
With the Control Panel you can manage all parameters very easily.

By xml you can personalize the number of columns or rows and the position of each black square.
It's includes a "swf file" to easily generate the xml of your personal crossword schema.
The zip includes also a tutorial fla file and one xml example.
Download Demo: As3
Download Demo: As2
View API

Api (As3)
The component can be used without any scripting. The code hereunder is only for advanced users that need specific actions.

XmlFile
myIstanceNameCrossword.XmlFile="xml/Crossword.xml";
This property lets you assign an xml source document by code instead to use the "properties panel".

langDir
myIstanceNameCrossword.langDir="LeftToRight";
or
myIstanceNameCrossword.langDir="RightToLeft";

This property lets you decide the direction of writing, it can use to create a arab or hebrew crossword.

reStart
myIstanceNameCrossword.reStart();
This method empty the grid and restart the crossword game.

deleteMe
myIstanceNameCrossword.deleteMe();
This method empty the grid of crossword.

ShowWord
myIstanceNameCrossword.ShowWord("on");
This method shows the correct selected word.

ShowLetter
myIstanceNameCrossword.ShowLetter("on");
This method shows the correct selected letter.

ShowSolution
myIstanceNameCrossword.ShowSolution("on");
This method shows all correct crossword.

ShowErrors
myIstanceNameCrossword.ShowErrors("on");
This method shows all the wrong letters in the correct.

removeLetter
myIstanceNameCrossword.removeLetter();
This method delete the selected letter.

ceckIfCorrect
myIstanceNameCrossword.ceckIfCorrect()
This method returns a boolean value indicating if all the answers are correct or not.

SaveGame
myIstanceNameCrossword.SaveGame()
This method returns an xml, containing the game writed in that moment.

LoadGameSaved
myIstanceNameCrossword.LoadGameSaved(xml:XML);
This method write the game using the previously saved xml.

on_xmlLoaded
myIstanceNameCrossword.addEventListener("on_xmlLoaded",onXmlLoaded);
This event is called when the xml is loaded, you can use it to fill the questions list on the side.

on_Complete
myIstanceNameCrossword.addEventListener("on_Complete",onComplete);
This event is called when all boxes are filled!

Crifano © All right reserved
FaceBook     Delicious     Digg     StumbleUpon     | ALL COMPONENTS | FAQ | CONTACT |