//
Posted by Helmut | Filed under Flash Bits
Following the samples from the Flash Docs you will have the following:
ActionScript:
- switch (variable) {
- case 0:
- trace("Option0");
- break;
- case 1:
- trace("Option1");
- break;
- case 2:
- trace("Option2");
- break;
- }
But if you are about to test against a string variable instead of a number variable your first instict (or at least i guess it would be your first instict) would be just to place the string inside the case statement
Once you run your code this is not going to work, granted the variable you are testing might be the exact variable you are expecting but in reallity flash won't know it is a string until you put it in quote marks.
I hope this little tip helps out some of you...
Read more |
|
October 22nd, 2006
//
Posted by Helmut | Filed under Tutorials
If you are a developer and you do some sort of backend work there is a chance one of your clients might ask you to install an application in GoDaddy servers.
So if you are trying to connect to a dabase within your application what GoDaddy recommends is to use mysql.secureserver.net as your hostname. Maybe this could have worked while back but that information is not true for all servers.
If you are having problems all you have to do is login to your GoDaddy control panel and look what server has GoDaddy assigned for you, at least that is how it worked out for me.
Read more |
|
October 11th, 2006
//
Posted by Helmut | Filed under Flash Bits
Sooner or later you will face with the small quest of validating an email address for your flash application. The following script is a basic script and should not be used for websites that relay heavily on the email address is being requested (shopping carts, credit card transactions and so forth)
ActionScript:
- function isValidEmail(e) {
- if (e.indexOf("@") != -1 && ( e.indexOf(".") > e.indexOf("@") ) ){
- trace("success");
- }else{
- trace("error");
- }
- }
-
- //Test
- isValidEmail("test@test.com");
-
Read more |
|
October 6th, 2006
//
Posted by Helmut | Filed under Flash Bits
When the time comes when you have to develop the same set of animations for different sets and different sizes don’t forget to use your MovieClips as Graphics, this is a great way to save work for everyone.
Not only you will be able to deliver on time (and if you are lucky under schedule) but also you will be able to produce work faster and at the same time cut prices for the production. So in the end this is a Win-Win situation
Read more |
|
September 22nd, 2006
//
Posted by Helmut | Filed under FlashMX
So I am trying to figure out the following piece of code:
ActionScript:
-
- <pre>in Application.as
- import Log;
- class Application
- {
- private var _log:Log; // force mtasc to compile Log.as
-
- function Application(createdBy)
- {
- // Re-assigment of _root to Application instance
- createdBy.__proto__ = this.__proto__;
- createdBy.__constructor__ = Application;
- this = createdBy;
-
- setup();
- }
- public function setup()
- {
- TRACE("hello world");
- }
- public static function main(createdBy:MovieClip)
- {
- var app = new Application(createdBy);
- }
- }; // end of class</pre>
-
found here:
http://www.osflash.org/pipermail/osflash_osflash.org/2005-August/002165.html
So far I have been recommended to read the following article:
http://www.quantumwave.com/flash/inheritance.html
The article well covers the subject of inheritance in Flash 5 and MX. My only concern is that as the article points out using inheritance in this way it will be only an overload to the application.
..to be continued
Read more |
|
August 18th, 2006
//
Posted by Helmut | Filed under Software Review
After I got my computer I figured out that WinXP doesnt come with the IIS server to develop for ASP.NET. This is a major problem if you are like me who has to develop in different languages under the same platform. Well, I found this little application called ASP.NET Web Matrix Project. It is only 1.3 MB in file size and some people comment that this little application is better than Visual Studio in all aspects, but most of all its FREE!!! Gratis!!!
Link
Read more |
|
July 25th, 2006
//
Posted by Helmut | Filed under Productivity
Sometimes is difficult to integrate the GTD system into your everyday life tools, locally for us Jeffrey C. Long posted the setup he uses in Ical, as most of you know Ical is only available for MAC and there is no sight of being developed for PC. There are similar items like Mozillas Calendar that for what I understand the Mozilla's Calendar can be sincronized with Ical.
So see for yourself and check the Set up that Jeffrey posted in Google Groups:
http://groups.google.com/group/43Folders/msg/730dca681076a74d

Read more |
|
June 23rd, 2006
//
Posted by Helmut | Filed under News
Adobe makes peace with Ajax
9th March 2006
By CBR Staff Writer
Seeking to ride the Ajax wave, Adobe Systems is to announce that it wants to make friends, rather than compete with, the increasingly popular grassroots rich internet client framework.
Adobe will release FABridge, which stands for Flash-Ajax bridge. Specifically, FABridge will allow JavaScript routines to call rich graphic objects supported in the Adobe Flash player. Later this year, it will also make available a client for data services in its Flex framework to which Ajax clients can connect.
Read More
Read more |
|
April 18th, 2006
//
Posted by Helmut | Filed under News
After so long without updating the layout for this site I finally got the opportunity to do it. At first I was concerned about all the details of the site but after starting programming this monster things were a lot easier than what I remember they were.
I hope you all enjoy the new layout.
Read more |
|
April 8th, 2006
//
Posted by Helmut | Filed under PHP
..continued from The TRUTH about PHP/mySQL security Part I
So here we are on "The TRUTH about PHP/mySQL security Part deux", So after reading lots of websites/blogs and reviewing nearly 100 OS PHP/mySQL scripts I have found that everyone has a similar structure
Main Page
|- imgs
|-someimage.jpg
|-someimage.jpg
|- inc
|- dbconnection.php
|- extra_file.php
|- extra_file.php
|- extra_file.php
What we want to look for is the dbconnection.php file. So lets take a look at a simple dbconnection.php file
PHP:
- < ?
- include "../config.php";
-
- function db_connect()
- {
- $result = @mysql_pconnect($server, $db_user, $db_pass) or die ("Database CONNECT Error (db_fns line 7)");
- if (!$result)
- return false;
- if (!@mysql_select_db($database))
- return false;
-
- return $result;
- }
-
- ?>
-
But now we see there is an include config.php, lets take a look into that file
PHP:
- < ?
- $domain = "www.yourdomain.com"; // Your domain name (include www. if used BUT NOT http://)
- $server = "localhost"; // Your MySQL server address (usually 'localhost')
- $db_user = "username"; // Your MySQL database username
- $db_pass = "password"; // Your MySQL database password
- $database = "database"; // Your MySQL database name
- $currency = "UK Pounds"; // The currency that your affiliates will be paid in
- $emailinfo = "test@email.com"; // Your email address
- $yoursitename = "Your Site Name"; // Your sites name
- ?>
-
Is all this information sensitive? Of course it is! imagine some one getting a hold of your $db_user or $db_pass variable, they could easily create scripts that will log into your DB and either edit the information or destroy it. But I'm not going to go into detail about that, what I am after is to learn how secure it is to leave your php scripts out in the open and from what I have learned so far it is pretty safe do that, but I want to continue to search for what other kind of security is offered by PHP.
...to be continued
Read more |
|
March 2nd, 2006