Xml flash quiz template free
The changes are in bold below:. Keep the remaining code intact except, make sure that the XML file is the new file: quiztf. If you run the movie now, it should show this:. Now, you can still click the third and fourth answers.
That's not good, we need to make it so that:. To do 1 , we need to convert the those A, B, C, D letters on the screen to symbols, so that we can hide them when necessary. Let's do the A:. Hide the Buttons layer first. Select the A shape or text - depending on how you made the letter , then Convert to Symbol. Name it A. Furthermore, once you see the sample XML file used on this tutorial, it will be quite obvious on how this particular XML data is structured. I will also explain how to modify the data.
Here's the XML file used on this tutorial: quiz. This file can be opened using a text editor to edit and view. Note: XML file is a plain-text file. If you are using Wordpad or MSWord, you must save the file as a plain text file.
A portion of the file is shown below I only show 3 questions here, the file has about 11 questions :. You can then change the question and the answers. For example, above, the 4th answer is the correct answer. You might want to make sure that the questions and the answers are not too long, or they might not fit the Flash movie. For now, you must put 4 answers per question. Later, we will see how this can be changed.
Additionally, it's recommended to use the special notation for these symbols these are also known as Name Entities :. For example, below, I added a new question at the end; replaced the 2nd question, and changed the title.
Put a frame label called: " LoadData " on the frame 1 of Labels layer. Then, put an image or something on the frame 1 of Bgr layer. This will be the preloader screen. We will need to have Flash open the file and read the data. Here's the code that reads the file. This code needs to be put on the Actions layer, frame 1.
Flash will notify us when the file is completely loaded by calling a function called " onLoad ". At that time, we still need to parse the file or the data will not be usable.
We override the onLoad function with onQuizData. This means that when the file is loaded, the onQuizData function will be called. The stop action at the ends tells Flash to stop running because I do not want to continue until the XML file is loaded. So when does the code continues? This will happen when the XML data is "completely" loaded. So, let's assume that the data is loaded. We're now entering the onQuizData function. Let's go back and examine the structure of the XML file above again.
It will be nice if we can reproduce the structure in the Flash application. Double click the picture to open it in your default graph editor. You can adjust the color of pictures, as well as fix red-eye and crop out unwanted parts of an image. From the Gallery menu, select Properties or use "Properties" button on the toolbar. On the second tab of the Gallery Properties window you can select the thumbnail you want to use, set the Thumbnails Size,Thumbnails Quality.
On the third tab of the Gallery Properties window you can select the templates, the size and quality of your pictures,select transition effect and change the watermark. Fade effect Flash effect Fold effect Ken burns effect Push effect.
Select the publishing method: publish to folder or publish to FTP server. FTP Location Manager window will appear. Now type in a meaningful this is not the actual hostname name for your site and fill in the FTP details in the appropriate fields. You will have to type in your hostname, e. The FTP port is normally located on port 21 thus this has been prefilled for you already.
If your web site uses another port, you will have to enter it here. Type in your username and password for the connection. If you do not fill in this information, Free Flash SlideShow Maker is unable to connect to your site and thus not able to upload your slideshow to website.
If this site enables anonymous connections, just type in anonymous as the username and your e-mail address as the password. You might want to change the Directory as well if you need to have your uploaded images placed in e. Notice: Write the name of the folder where your slide show will be placed on the server. Notice that you should specify this field; otherwise your slideshow will be uploaded into the root folder of your server! The project consists of the pictures you choose to put on your slideshow and all your settings.
It's a good idea to save the project, because that will allow you to change the project in case you decide to do something different with future slideshows. So click Yes, then enter a name for your project. To select the location of your project, just click the Browse folders button and choose a different location. Then click Save. Flash SlideShow Maker generates a special code.
0コメント