Bläddra text
Postat den 22 June, 2010, i Svensson Flash.
Bläddra text
Följ kliver nedanfört att skapa en bläddra text i ditt pråliga dokument.
1. Öppna ett pråligt dokument och förlägga en text boxas genom att använda Texten bearbetar på arrangera.
2. Välj parametrarna för texten boxas efter dig satte precis in.
Text: Dynamiskt
Välj Multiline
Skriva kodifiera i Var-texten boxas efter.
_root.text1
3. Skapa knäppas som används för att bläddra Up and down.
4. Skapa en film fäster ihop känt den scrollUp.
5. Skapa 3 KeyFrames i det första lagrar.
6. På 1st inrama klickar, rätt - klicka –> handlingar, väljer +Globalen fungerar –> timelinen kontrollerar –> stopp;
7. På understödja inrama, skriva handlingen skrivar efter:
_root.text1.scroll–;
8. I 3rd inrama, skriva handlingen kodifierar efter:
gotoAndPlay (2);
9. Kopiera scrollUpfilmen fäster ihop och namnger den scrollDN. Klicka theinstancefliken, och typscrollDN i anföra som exempeltexten boxas.
10. Redigera understödja inramar scrollDN och skrivar efter actionscripten:
_root.text1.scroll++;
11. Gå till den huvudsakliga tiden fodrar, släpar tillbaka båda som filmen fäster ihop youcreated. Namnge både filmen fäster ihop anföra som exempel som scrollUp och scrollDNrespectively.
12. Skapa 3 lagrar i den huvudsakliga Time fodrar och namnger dem:
Text
Pil
Cirkla
13. Sätt in knäppas, och dubbelt klicka den för att beskåda det redigerande funktionsläget.
14. Välj handlingarna för det ÖVRE knäppas och skrivar efter actioncoden:
på (press) {
tellTarget (_root.scrollDN) {
lek ();
}
}
på (frigörare) {
tellTarget (_root.scrollDN) {
stopp ();
}
}
15. Välj handlingarna för besegra knäppas och skrivar followingactionen skrivar:
på (press) {
tellTarget (_root.scrollDN) {
lek ();
}
}
på (frigörare) {
tellTarget (_root.scrollDN) {
stopp ();
}
}
16. Räddningen ditt arbete och testar film.
Step 1
Create a new flash document, take the Line Tool (N) and draw a "star" like it is shown on the picture below.
Step 2
Press Ctrl+A and after that F8 on the keyboard, to convert your "star" into a Movie Clip.
 Step 3
While your new made Movie Clip ("star") is still selected, open the Properties Panel (Ctrl+F3), and under
Step 4
Click on Window > Components to open the Components Panel.
Step 5
After that from Components Panel choose Button and using drag "n" drop technique move it on the stage. See the picture below!
Step 6
While your button is still selected, from the Properties Panel under
Step 7
Select the button and press Ctrl+D on the keyboard to duplicate it.
Step 8
With the new copy of the Button instance selected, rename the instance to ButtonIncrease.
Step 9
Insert a new layer and name it Action.
Step 10
Click on the first frame of layer Action, open the Action Script Panel (F9), and paste this script:
ButtonIncrease.onRelease = function():Void{
with (star){
_xscale += 7;
_yscale += 7;
}
};
ButtonDecrease.onRelease = function():Void{
with (star){
_xscale -= 7;
_yscale -= 7;
}
};
Download source file (.fla)
As the web develops, Flash programming continues to be a dominate force for finding creative solutions for modern needs. Web 2.0, and demands for interactive social media marketing are becoming formidable in the internet world, and these needs require a savvy, visually stimulating form of media to communicate with users. Enter Flash and Action Script - the engine behind many of the most successful interactive websites on the internet. Most notably, Flash has served the online gaming community by providing players with the ability to play live casino games online without the need to download software. This innovation is a testament to the genius of flash: Strong Random number generation programming, catchy graphics, gaming algorithms, and realistic casino style play are successfully captured in a single flash movie file. Flash's benefits also cater to the sports betting side of the game as well. Many odds-making websites use Flash media to display interactive, up to the minute betting odds during the Fall football season for those who love NFL betting. This important time of year is big for online casinos as well: players placing bets on sports patronize casinos while waiting for the results of NFL betting contests to come in. Similarly, in the Winter and Spring, where basketball betting and online blackjack rage as customers flock to various gaming sites, Flash facilitates a wide variety of user interfaces that provide for realistic experiences, quick transactions, and superior visual stimulus. The future looks bright for flash applications in the online casinos world - lines, odds, and important action-script driven interfaces will be required to meet the needs of the gaming world.





