Tag Archives: solution

Auto format-comment plug-in for Flex

Today, I’ve  found an awesome plug-in called “flex formatter” for Flex.  It allows you to reformat or add commentouts into your Flex project just as in Flash. For a long time, I were looking for such a feature for Flex. You can find how to install Flex Formatter into Flex.

  1. Start up FlexBuilder / FlashBuilder.
  2. From the Help menu, select ‘Software Updates > Find and Install…’
  3. Select ‘Search for new features to install’ and click ‘Next >’
  4. Click ‘New Remote Site…’
  5. Use name: ‘Flex Formatter’ and url: ‘http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite/’
  6. Click OK
  7. Make sure only ‘Flex Formatter’ is selected in the ‘Sites to search’ list, and click ‘Finish’
  8. Follow the prompts to install Flex Formatter, and restart the IDE

Note: This content was taken from gSkinner‘s web-site.

Mulltiple Image Loading in as3

I’ve been working on a Flash web site for a week. It has nearly finished. However, there some loading time problems at the gallery sections.At first, I tried to load thumbnails one by one, then I changed my mind. Because, there are only 8 thumbs at one time that will be loaded. So, it’s better to load these 8 images at one time and make a single loader. I encountered with Arthur Debert’s awesome as3 class which is called Bulk Loader. Bulk Loader is totally designed for multiple loading purpose. By the way, thanks to  him for his class. I want to share this wonderfull class with you. I have no time for a tutorial. At this point, I can recommend you to check Nick Handerman’s post about this multiple loading issue. Thanks to Nick for his tutorial and source files.

DeepLinking alternatives for Flash

The main problem for Flash designers and web-site are deep-linking problems. However, there are many solutions to get rid of the reference problem. The most known action script class is ASUAL’s SWFADRESS. It works fine for many designers and web sites. But, not for me!. Somehow, I got troubles with SWF ADRESS. So, I searched for new solutions and found Flurl deeplinking class. It’s a tiny little Java script file. Flurl gets parameters from Java and combine them with Action Script’s “ExternalInterface” parameter. I used Flurl for Murat Germen’s web-site for the main categories. For now it is working as I expected…I don’t update the web-site, it needs some performance and stability tests. You can check Flurl Java class from here.

And there are other resources which useful for deeplinking issue.

Pixel Acres

Bir Öğrenci Klasiği (This page is in Turkish. Çok güzel bir Türkçe kaynak)

Flash works

I will post a tutorial about this issue. There are thousands of tutorial around the web. However, all of them tells same stuff. My tutorial is going to be more clear and useful. trust me 🙂

UPDATE: Flurl was working perfect on localy. But, when I moved files to the server, it stopped to work! I tried many thing to figure out the problem. But, I couldn’t handle it. So, I returned back to SWFAdress. For now everything is OK with SWFAdress.

How to create a folder and make its permission 0777 with PHP

Last day, I were testing my CMS interaface on several web browsers. It was working as I expected, except on Internet Explorer. Somehow, although I got “folder is created-file is uploaded” message, I couldn’t find the files and folder on server. This weird problem only occured on Internet Explorer. First, I thought that it can be a Mac OSX problem. So, I tried uplaoding stuff with a PC with Windows XP and Vista. But nothing was change!

Secondly, I checked my PHP files. I am requesting PHP files from Flash interface, and PHP tells to server what to do…etc… My problem was related with PHP file. My php code’s related section is as follows;

mkdir($folder, 0777);

I have no idea about that. When I changed it as follows, It started to work on Internet Explorer. Anyway. Hope it helps someone.

mkdir($folder);

chmod($folder, 0777);

How To Generate and Save a XML file from PHP on Serverside

http://www.tonymarston.net/php-mysql/dom.html

Above article saved huge amount of time for me. I have been using PHP and MYSQL in order to record data to server. I achieved to write data to database. However, a loading time problem occured. When Flash tries to connect database to harvest data from database, It takes to much. When I try to get data with an XML file, it gathers data faster PHP file. So, I wrote a new PHP file which connets to database and writes an XML file and saves it under my server. Although I haven’t gor enough information about PHP coding, I can handle it with some kind of good tutorial. Sorry, I don’t have name of the owner of this article. Thanks to him or her!!

AS3 TextEvent and Hyperlink issues

there are two tutorial about textevents that I’ve found on web. Both of them are works good for me. I coded a content management interface. The user can easily edit or type desired text, hotlinks, etc… and the content is saved as htmlText for Flash side. My aim was to put undeline hyperlink words when the mouse is over. Both of the examples show how you can do it;

Flash: TextField actionscript hyperlink in AS3.0

asfunction (TextEvent.LINK) Tutorial for AS3 | Flash HTML Link to call actionscript function | Tutorial