Articles tagged with: ActionScript
ActionScript 3.0, Adobe, Flash AS 3 »
In this post I’ll provide you just a quick way to change a TextField font family at runtime using ActionScript 3.0 and Flash Cs3/4 getting your embedded fonts from the Library .
ActionScript 3.0, Adobe, Flash AS 3 »
When Actionscript 3.0 was a dream and all Flash developers worked with AS2 the _global property was a smart and fast way to share variables between swf files.
A classic scenario is the following:
1) In the main swf file there is the language selection and users can make their choice selecting the site language
2) This swf probably will have a menu to load different pages, each one with their content and galleries to load.
3) Every loaded page will need to know the selected language value to load the right content (for example …
ActionScript 3.0, Adobe, Flash AS 3 »
Two of the most popular questions when loading SWF files in Flash CSx / AS3 are:
how to call a method in the loaded swf from the Main document class
how to reference at the main document class to call a method from the the loaded swf.
In this post I’ll provide you a quick and easy sample to cover both situations.
This is not the best way to accomplish this task but it’s very easy to understand and use.
So what we’ll do?
1) We’ll load the file Page.swf inside Main.swf clicking on …
ActionScript 3.0, Adobe, Flash AS 3 »
In our community forum many people asked us info about the fullscreen feature, so following a quick sample to use it in Flash CS 3/4 and ActionScript 3.0.
To enabled / disable it you just need too:
1) Modify the displayState property to StageDisplayState.FULL_SCREEN costant to enable it, and to StageDisplayState.NORMAL to come back to “normal” modality
2) Enable the ‘allowfullscreen’ attribute in your html code
Click on the button below to try it:
This movie requires Flash Player 10
swfobject.embedSWF(”http://www.fabiobiondi.com/blog/wp-content/uploads/2009/08/fullscreenflcs4.swf”, “swf84021″, “400″, “120″, “10.0.0″, “”, {}, {wmode: “window”, menu: “false”, quality: “high”, bgcolor: “#FFFFFF”, allowFullScreen: “true”}, {});
Read …
3d parts libraries, ActionScript 3.0, Adobe, Flash AS 3 »
In the market are existing a lot of Tween libraries to help Flash/Flex developers to build cool actionscript animation making their life easier, like TweenLite/ TweenMax or Caurina Tweener.
These libraries included cool stuff not provided from the default AS3 tween class like colors animation, animated drop, blur, shadow effect and much more.
So, in this post, i want to show you another tween engine, Tweensy, that provide a lot of cool bitmap and particle effects like smoke, fire and other “magical” stuff
3d parts libraries, Adobe, Flex 3, _Featured »
I was playing with the Flex Google Map API and I think one of the coolest stuff is the Direction feature.
In few words, you can do a query like this: “from Milano to Torino” and you’ll get:
1) Distance
2) Trip duration
3) The complete travel displayed on Google Map
4) Many other usefull info (check GoogleMap website to get the API reference and other samples)
In this script I simulate a Store Locator, where user digits its city in a TextInput and at the same time he can selects a store from a List.
Each time user will …
ActionScript 3.0, Adobe, Flex 3 »
Problem: customize the HSlider / VSlider skin and add the handcursor to the track icon
Solution: create two skin actionscript classes to customize the trackSkin and a thumbSkin styles
Final SWF Output:
This movie requires Flash Player 10
swfobject.embedSWF(”http://www.fabiobiondi.com/blog/wp-content/uploads/2009/08/slidersample.swf”, “swf84022″, “450″, “170″, “10.0.0″, “”, {}, {wmode: “window”, menu: “false”, quality: “high”, bgcolor: “#FFFFFF”, allowFullScreen: “true”}, {});
ActionScript 3.0, Flex 3 »
Problem: Using the TileList component (or other List Base components) a light blue color appears when you rollover an item and a dark blue when you select it.
You want remove them to implement your own graphic effects.
Solution: Extend TileList Component and override drawSelectionIndicator() and drawHighlightIndicator methods() methods
Following an image to recognize the issue:
ActionScript 3.0, Adobe, Flex 3, _Featured »
ActionScript 3.0, Adobe, Flex 3 »
Tutti i componenti Flex sono essenzialmente formati da due sezioni: la classica area di layout, in cui e’ possibile inserire agevolmente elementi visuali tramite tag MXML o attraverso il classico metodo addChild(), e un’area definita Chrome rappresentata da tutti gli altri spazi, come barra del titolo, scrollbars, margini, footer e cosi via’ in cui solitamente e’ impossibile scrivervi.
Estenderemo quindi la classe Panel ridefinendo i suoi metodi createChildren() e updateDisplayList() (esponendo quindi il concetto di override di un metodo) e utilizzeremo la proprieta’ rawChildren per scrivere nella titleBar.


