Posting from Textmate
Posted by Helmut | Filed under News
This is the main entry
//Dealing with TextMate
Posted by Helmut | Filed under Resources
So I have been doing a lot of ActionScript lately and I should say that is nice to have to use the Flash IDE only 10% of the time, and I am looking for ways to reduce that from 5% to 0% of the time, it is tricky since at work I have to use a MAC and at home I have to use a PC, but I believe I have found the best of both worlds.
In one hand we have TextMate for the MAC

I must say that it is a great editor and not only that but it allows you to tie in MTASC to compile your movies, add a little bit more of majic and you have an almost 100% Development tool where you only need to use the Flash IDE as a Guide or to build your library.
Another nice thing about this editor is that there are a lot of plugins out there as well as Bundles for you to do all the work straight into Textmate. Of course this is not recommended for everyone and not for every single case but it is nice to know that there is the ability to do it this way.
Another thing you want to check out is SWFMill, now if you tie TextMate, MTASC, SWFMill and a good tracer you are all set.. or should I say I am all set?
because I am working on it.
My first take at ROR
Posted by Helmut | Filed under ROR
I took for a spin ROR (Ruby on Rails) tonight since I had some free time, I started installing it along with a XAMPP installation that I already have running. At first they didn't want to talk to each other but in the end they both end up working just fine. I would like to write yet just another tutorial about how to have XAMPP and ROR working together but if everything runs smooth I might ditch XAMPP and have ROR by itself.
So I started to play around with installing the framework around 10:00 PM and by 1:30 AM (which is right now) I was able to write my first small application with ROR following Ruby Forge tutorial, to be honest if you are working on a PC with XP I hit some small walls but it wasn't too difficult to figure it out. But it would be really nice if the tutorial could be adjusted for XP users specially while using the command line and the installer's interface. Also there is a very small variation from using the SQL editor compared to HeidiSQL but now that I have used HeidiSQL I will continue using it, it seemed to be a little faster than having to use phpMyAdmin, but that is another subject.
So after playing around with ROR for about 1 hour and a half I could see how easy it is to create applications, of course tutorials take you only so far and now it is only left to your imagination to see what you can do with the framework but I am really impressed of how easy it is to create files, connect to databases, update databases and adjust your templates to your liking.
The only downside to this is that you either drop the cash to test in a "live" environment (live server) or you can just live with the fate that people will believe you can work with ROR without actually having a site to show them what you can do. But in the end if you try it out and you love it and you think that this could be something you can use in the future for your development it is worth to use that extra money as an investment.
//RubyOnRails Controllers
Posted by Helmut | Filed under ROR
when creating a new controller the file name of the controller has to be the same as the controller itself and it can be either xxxxx_controller or just xxxxxx
For example
mytest_controller.rb - ok
mytest.rb - ok
mytest_co.rb - not ok
also make sure you add ::BASE after the class name definition or you will get a horrifying error... well not horrifying but at least not the result you are expecting.
As always, this applies to WINXP - LAMP - ROR installation
//New launch
Posted by Helmut | Filed under News
I just finished a small website to show case some of the work I have been involved with for the past several years.
Multimedia247 - http://www.multimedia247.com
//Set a footer on your Flash Movie
Posted by Helmut | Filed under Flash Bits
- stageListener = new Object();
- stageListener.onResize = function() {
- // enter what you want to do on resize, for example:
- contentHolder_mc._y = Stage.height - contentHolder_mc._height;
- contentHolder_mc._width = Stage.width;
- }
- Stage.addListener(stageListener);
- stageListener.onResize();
Buggy Buttons converted to MovieClips in the Library
Posted by Helmut | Filed under Tutorials
So I was running in to the following problem:
**Warning** The linkage identifier 'RewindBtn' was already assigned to the symbol 'FLVPlayer_assets/Buttons/Rewind', and cannot be assigned to the symbol 'FLVPlayer_assets/Buttons/Rewind', since linkage identifiers must be unique.
But in reallity I only had 1 button called Rewind with the Link ID of RewindBtn and nothing else. I even created a blank FLA and pasted the simbol by itself in the blank FLA but I still were getting the same warning.
Well after doing a search online and trinkering with flash I figured out that originally I had created the Symbol as button and then transformed the Button to a MovieClip within the Library but never changed the Button to a MovieClip within the Properties panel in Flash.
Go figure! the warning has gone away.
//Short hand for If Statement
Posted by Helmut | Filed under Flash Bits
a = b ? true : false;
a == b ? (true1, true2) : false
//
Exporting from Illustrator to SWF “bug”
Posted by Helmut | Filed under Flash Bits
If you are exporting any artwork from Illustrator to SWF and when working in Flash and player 7(or less) you might get the following error "Enhanced stroke is not supported in this player".
One way to fix this issue is by setting "Perserve Editability Where Possible" under the Method section.
Now this might not work with all the artwork where you want to be able to do heavy edits within flash but its worth a shoot.
Error in supported CSS properties in Flash
Posted by Helmut | Filed under Flash Bits
So actually there is not an error in the way the CSS properties are handled within Flash, if you area always in the run trying to get things done you will notice that the first column in the Flash Help file for the CSS properties has (for example) text-align. You might right away try to use the properti as such but if you look closer there is a column next to the CSS properties called ActionScript property and in there you have the defenition of how the CSS property must be handled. In the case of text-align it must be textAlign.
If it is well explained in the Docs then why did I name this Post "Error in supported CSS properties in Flash"? Good question, I was about to report this as an error until I realized it was my mistake and it was not the Docs, I just scan throu the document without paying too close attention.
With that said I believe it could be a good idea to have the compiler check for small items like that, I mean really how hard would it be to check for "text-align" in your code and prompt a warning like "Hey! you are using text-align" in your code, did you mean to use textAlign?.
heh just an idea ![]()