AS3 Dock Menu: A x-y Approach

Recently, I ‘ve been searching the web to find information on how to create a dock (mac, tsunami, fish-eye, these are some terms that refer to the same type of menu) menu. What I found interesting, was that almost everyone that worked on a menu like that, tried to think in circles (polar – coordinates, PI radians etc.). The first thing I thought was to calculate the distance between the mouse cursor and the items, and check if this distance is less than a specified radius. I also try to keep a fixed distance between those items, by continuously updating the items’ position according to the mouse movement (see the example below).

Well, the result is quite good if you consider the fact that it took 30 minutes approximately for me to create it. It’s a little buggy on the edges, and it doesn’t respond well on fast mouse movements. But I think it’s a good start? What do you think . You can always make suggestions.

Dowload .fla

Πάμε Στοίχημα Air Application: Bet24

Κατόπιν απαίτησης του αδερφού μου, δημιούργησα μια απλή Air εφαρμογή η οποία φορτώνει το κουπόνι της ημέρας (ΟΠΑΠ) και υπολογίζει το κόστος συστημάτων (Απλό, 3/4, 3,4/4, 3/5, 4/5, 3,4,5/5). Επίσης δίνει την δυνατότητα στον χρήστη να δει ποια είναι τα πιθανά κέρδη των γεγονότων που επέλεξε, καθώς επίσης και τα ακριβή κέρδη με βάση επιτυχημένα γεγονότα (βλέπε την παρακάτω εικόνα). Η εφαρμογή έχει μερικά bugs ακομά, αλλά μόλις τα διορθώσω σκοπεύω να την διαθέσω δωρεάν μέσα από το blog. Οποιοδήποτε σχόλιο, ή πρόταση για προσθήκη feature στην εφαρμογή, ευπρόσδεκτα.

Bet24

Καλό Ξεκίνημα…

ΠΑΟΚ - ΑΕΚ

Πάει καιρός από τότε που δημοσίευσα κάτι σ’ αυτό το blog. Μεσολάβησαν διακοπές, εξεταστικές και πολλά άλλα. Ξεκίνησε και το πρωτάθλημα της Super League και σκέφτηκα να διατυπώσω μια δυο σκέψεις που με βασανίζουν τις τελευταίες μέρες μετά και το ΠΑΟΚ – ΑΕΚ 1-1.

Έχω την αίσθηση ότι ο περισσότερος κόσμος που βρέθηκε στην Τούμπα το βράδυ της Κυριακής γύρισε απογοητευμένος στο σπίτι του, όχι τόσο για το τελικό αποτέλεσμα, αλλά κυρίως για το τρόπο με τον οποίο η ομάδα διαχειρίστηκε το παιχνίδι.

Θεωρώ ότι ο ΠΑΟΚ, ναι μεν θα μπορούσε να είχε κερδίσει το συγκεκριμένο παιχνίδι ωστόσο 4 βαθμοί στα πρώτα δύο παιχνίδια είναι μια εξαιρετική συγκομιδή βαθμών και δε θυμάμαι να έχει γίνει κάτι ανάλογο τα τελευταία δέκα χρόνια.

Μπορεί μέσα από τέτοια παιχνίδια να κερδίζονται πρωταθλήματα, όμως στόχος της ομάδας είναι άλλος – η έξοδος στο κύπελο UEFA (ή UEFA European leage όπως ακούγεται ότι θα ονομαστεί από την καινούρια χρονιά).

Το να διώξεις καμιά δεκαριά ποδοσφαιριστές, να φέρεις άλλους τόσους καινούριους και να κάνεις ομάδα για να πάρεις πρωτάθλημα την ίδια χρονιά, δεν έχει γίνει ποτέ και ούτε πρόκειται να γίνει. Ο ΠΑΟΚ βήμα – βήμα πρέπει να ξαναγίνει μεγάλος. Θα χρειαστεί καιρός αλλά θα γίνει.

Σκοπός φέτος του ΠΑΟΚ, είναι να κερδίζει τις θεωρητικά μικρότερες ομάδες και να παλεύει τα ντέρμπι. Αυτή η λογική αυτόματα καθιστά το επόμενο παιχνίδι με τον Πανθρακικό, σημαντικότερο απ’ αυτό με την ΑΕΚ. Και είναι σημαντικότερο για έναν ακόμη λόγο. Με δεδομένο ότι η διοίκηση του Πανθρακικού δεν προτίθεται να διαθέσει εισητήρια στους οπαδούς του ΠΑΟΚ, το συγκεκριμένο παιχνίδι θα είναι το πρώτο εκτός έδρας…

TextShortcuts Example

I was searching the other day to find some examples demonstrating the use of the TextShortcuts classes of the AS3 Tweener API. The truth is that I didn’t find something specific, so I thought to myself why don’t you try using the Tweener the normal way. So I did, I created a textField with some initial text value and I tried to animate the content of the textField. Surprisingly, the textField disappeared after testing and I was a bit confused about what happened. The code that I initially used was this single actionscript line:


Tweener.addTween(_myTextField, {_text: "RandomText", time: 1, transition:"easeOutQuad"});

As I said, this didn’t seem to work so after a lot of expreriments and tests, I found out that I had to come up with a way to update the textFormat of the textField continuously to actually see the animation. So I added an onUpdate method to achieve that.


Tweener.addTween(_myTextField, {_text:"Random Text", time: 1, transition: "easeOutQuad", onUpdate: updateTextFromat});

private function updateTextFormat():void {
   _textFormat.setTextFormat(_myFormat);
}

That did the work, although I didn’ t like the animation at all! Anyway, I thought that was useful for some of you.

iMenu AS3 Platinum Edition

It’s been a month and a half since I last wrote something on my blog so you would probably thought that I was too busy. Well, I really was. That was a tough period for me that included exams (that didn’t go well) and a keynote presentation for my diploma homework (that did go well). So I guess now I have some time to rest till August when I shall start studying again my final three lessons. I was thinking to start developing some AS3 flashden items on July so I uploaded the iMenu AS3 Platinum Edition which I already had developed since May but I didn’t have the time to upload it. iMenu AS3 Platinum Edition is basically the AS3 version of iMenuPro. It’s a dynamic accordion photo menu that now supports both horizontal and vertical implementations. It also provides a plethora of rollover effects such as Saturation, Brightness and Blur.

Now I am working on a youTube – like video player which will be able to load videos from youTube. It will also support all the well-known features such as fullScreen mode, scrubber and volume slider. The initial idea was to embed videos on the iMenu layout, so I thought I should start creating a video player class. But during the development procedure I was thinking why don’t we add this feature or that feature so the class became too complex and too large (1000 actionscript lines for a video player, are too many, however nobody cares if it works properly). Anyway, till my next post have a nice summer!

iPlat.

« Older entries

Follow

Get every new post delivered to your Inbox.