Archive | July, 2008

Flex 4(Gumbo) using the includeIn Property and States

Thu, Jul 24, 2008

Comments

Here is Example of how you can use the includeIn property in the Flex 4 to hide and show anything. All you need is just put the includeIn property and the state name. Click Here for Source . You need Flash Player 10 to view this, If it works in Flash Player 9 let me know so I dont have to include the “Need Flash Player 10″. I’ll include pics so if it doesnt work in 9 and you just want to see it.
(more…)

Continue reading...

Flex 4 (Gumbo) VSlider, HSlider, Panel Skinny Example

Wed, Jul 23, 2008

Comments

Here is a very simple example of how to skin the VSlider, HSlider, and the Panel in Flex 4. Most of these Components are still a work in progress so you still can’t skin them to have the same feel and look as the components in Flex 3 (I know I couldn’t) or fully yet.  Click Here is The Source. Need FLASH PLAYER 10 to view it
(more…)

Continue reading...

If you are Trying to Compile Gumbo (Flex 4) and getting a Verify Error

Thu, Jul 17, 2008

Comments

The Error is : VerifyError: Error #1014: Class flash.text.engine::TextElement could not be found. Make sure that you select your project then go to Project–>Properties–>Flex Compiler. By default the HTML Wrapper is still 9.0.28, Change that to 10.0.0. Click Apply and you should be set.

Continue reading...

Color Illusion Component in Flex

Thu, Jul 17, 2008

Comments

I have seen this in many videos, Basically all you do is you stare at the negative image for 15 seconds then I show you the black and white image. Instead of seeing the black and white image your eyes/brain will make you see the color image for around 10 seconds. I never actually show you the color image. You can hit Replay to start over when the button shows up.
(more…)

Continue reading...

Stopping and Starting ColdFusion 8 Services in Windows Via a Batch File

Wed, Jul 16, 2008

Comments

For me Jrun takes almost 500K memory when it is fully loaded, which is a waste of memory since I am not always programming ColdFusion so I decided to write 2 Batch Files to Start and Stop all ColdFusion 8 Services. Here is the Code

@echo off
echo Starting ColdFusion 8
echo ======================================================
net start "ColdFusion 8 Application Server"
net start "ColdFusion 8 ODBC Agent"
net start "ColdFusion 8 ODBC Server"
net start "ColdFusion 8 Search Server"
echo ======================================================
echo ColdFusion 8 Started


@echo off
echo Stopping ColdFusion 8
echo ======================================================
net stop "ColdFusion 8 Application Server"
net stop "ColdFusion 8 ODBC Agent"
net stop "ColdFusion 8 ODBC Server"
net stop "ColdFusion 8 Search Server"
echo ======================================================
echo ColdFusion 8 Stopped

The Files If you do not want to create them Click Here

Continue reading...

Compiling Flex 4 (Gumbo)

Tue, Jul 15, 2008

Comments

I have not read this anywhere and it took me a while so here it is. Make sure that you are pointing your playerglobal.swc file to Flash Player 10, rather than 9 otherwise you will get these errors when you try and compile the application.Also, you will also need to have flash player 10 installed since some classes use the new text engine.

1046: Type was not found or was not a compile-time constant: ElementFormat.

1046: Type was not found or was not a compile-time constant: TextBlock.

Here is the Link to guide you.

Continue reading...

SharedObject Example In Flex

Mon, Jul 14, 2008

Comments

Here is a quick example of how to use the SharedObject Class in Flex. Enter Some Text, Click Save then Refresh the Page and whatever you wrote should still be there.

SourceView

Continue reading...

Using CFPOP to Access GMAIL and Populating a DataGrid In Flex with the new messages

Thu, Jul 10, 2008

Comments

Here is a very simple example using ColdFusion and Flex to access your gmail account and populating the new messages in Gmail into a Flex DataGrid. For UserName the format needs to be youEmail@gmail.com, Password:yourpassword and PopServer: pop.gmail.com.

You can try other pop servers, I have only tried gmail but it should work if that POP Server support SSL. Make Sure to also have POP enabled in GMail, Also make sure that you have some new unread messages to see the results.  For Example: send yourself a dummy email message before accessing it on Here.

Give it around 8 Seconds before you see results and make sure your credentials are right, I did not check for any error messages and you wont get any feedback if it is wrong. Source Code is Enabled.If you want to set this up on your serve make sure you set up a GateWay Instance called EmailServer and point it to the CFC inside exhd–>CFC. Here is it:  http://sherifabdou.com/cfusion/CFPopEmail/CFPopEmail.swf

Continue reading...

WordPress in PHP via FastCGI- Error Handling, Permalinks Structure

Thu, Jul 10, 2008

Comments

If You are Installing PHP using FastCGI and Your WordPress gives you a 500 Error- Internal Server Error, Make sure that you have already established a server connection to mysql or mssql. Open I.E and then go to Tool–>Internet Options–>Click on Advanced Tab and then Un-check Show Friendly Error HTTP Messages. Click Apply. Now Refresh your page to see what is actually going on.

Also IIS does not support mod_rewrite so your permalink structure will look weired, here is the an example “/index.php/%year%/%monthnum%/%day%/%postname%/”. Inorder to have it such as the need for index.php is not required and it looks as if you were running it on Apache. Create a PHP file called permalinkhandler.php, save it in the root folder and include this code

 
<?php
$_SERVER['REQUEST_URI'] = substr($_SERVER['QUERY_STRING'], strpos($_SERVER['QUERY_STRING'], ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>

Navigate to your site on the Server Manager on Windows and go to Error Pages, find Status Code 404 and point to that php file. Make sure you put it under the Execute URL on this site. Now go back to wordpress and chose the permalink structure you would like.

Continue reading...

BlogStats Component Example Using Flex, ColdFusion, and LCDS

Wed, Jul 9, 2008

Comments

This component is similar to the WordPress Blog stats that shows you how many users visit your site a day. View Source is Enabled, only problem with it is it uses Application.cfc thus if I restart my server then all data is lost. If You want you can tie in a database end and have it work. If your download it then make sure to set the Gateway Instances. Gateway ID: BlogStats , Type:DataServicesMessaging and just navigate to the CFC file that is under exhd/cfc/BlogStats.cfc. Here is the example, to see it work in real time open two tabs, go into one tab and refresh say twice then navigate to the other tab and there should be a delay of around 8 seconds before it updates the count. http://sherifabdou.com/cfusion/BlogStatsExample/BlogStats.cfm

Continue reading...

Page 1 of 212»