Home » Archive

Articles tagged with: ActionScript

ActionScript 3.0, Adobe, Flash AS 3 »

[25 Aug 2009 | No Comment | ]

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 »

[22 Aug 2009 | No Comment | ]

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 »

[18 Aug 2009 | 5 Comments | ]

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 »

[16 Aug 2009 | 4 Comments | ]

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 »

[15 Aug 2009 | 2 Comments | ]

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 »

[11 Aug 2009 | No Comment | ]
Build a STORE LOCATOR using FLEX GOOGLE MAP (FX3)

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 »

[10 Aug 2009 | One Comment | ]

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 »

[10 Aug 2009 | No Comment | ]

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 »

[9 Aug 2009 | One Comment | ]
Warning messages binding the ‘data’ property inside an itemRenderer (FX3)

Problem: when you bind the data property inside an itemRenderer you got the following message:
warning: unable to bind to property ‘label’ on class ‘String’ (class is not an IEventDispatcher)

Solution: populate the data Provider using a Value Objects

ActionScript 3.0, Adobe, Flex 3 »

[30 Jun 2009 | No Comment | ]

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.