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.
Posted in Tutorials.
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");
-
Posted in ActionScript, Programming.
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
Posted in ActionScript, Programming.
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
Posted in FlashMX.
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
Posted in Software Review.
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

Posted in Productivity.
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
Posted in 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.
Posted in News.
..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
Posted in PHP.
So I am here struggling for hours (at least it looked like it was hours!) trying to figure out why my combo box wasnt working.
The Basic scenario is that I created a CB in a child movie for later being loaded to a parent movie.
->Parent
-->Child < -with Combo Box
Well, when you load the Child movie into the Parent movie you expect it to work whitout a problem right?... WRONG! some kind of bug or problem or whatever for some reason the Combo Box wont work, why? who knows.
Doing a light search I found out that in order for the Combo box to work on the Parent Movie you need to have a copy of the Combo Box component in the Parent movie even though you are not going to use it directly within the parent.
That's a lie! you might think (or at least that is what I thought) but in reallity it works.. now this is my set up:
-> Parent < -copy of Combo Box Component not being used
--> Child < with Combo Box used
Weird.. but it works, just in case someone is looking for the answer 
Posted in FlashMX.
Recent Comments