Archive

Archive for the ‘Config’ Category

Patch old AIR 1.0 apps to work with AIR 1.5

May 13th, 2009 Bryan Clover No comments

air

AIR applications built for version 1.0 point to an older namespace.  Thus, they will not compile and run in Flex Builder if you are using AIR 1.5.

To fix this, (let’s assume we have an AIR app called SampleAIR),  find the SampleAIR-app.xml file in the bin-debug folder of your AIR project.

Open this file in a text editor, and find the following line:

<application xmlns=”http://ns.adobe.com/air/application/1.0″>

To make your application work with AIR 1.5 you have to change this line to be:

<application xmlns=”http://ns.adobe.com/air/application/1.5″>

Now, save your file and try running / debugging it and it should compile and run fine.  Hope that helps!

Categories: AIR, Config, Flex Tags:

Configure phpMyAdmin to work with existing MySQL installation

April 15th, 2009 Bryan Clover No comments

I’ve recently begun working on a website that will require a mixture of technologies:

  1. PHP
  2. Flash
  3. Flash Media Server

In order to get started, I needed to set up a local environment that mirrors my client’s production server.  Instead of trying to manually download, install, and configure all the various technologies needed to get PHP running on my laptop, I opted to try out some ‘packaged’ solutions.  Here are the two options I explored:

I originally tried WAMP, but after a few days the Apache server wouldn’t start.  I don’t know if I did something to break it.  Unfortunately, I ended up having to uninstall it.  I tried re-installing but still had no luck.  Thus, I decided to try out XAMPP.  I’m pleased to announce that XAMPP has been great!

NOTE: Because I already had MYSQL installed on my machine I had to edit the ‘config.inc.php’ file to make sure phpMyAdmin would be able to connect to MySQL.  The file you need to edit is located here:

<XAMPPInstallationDirectory>\phpmyadmin\config.inc.php

Once you open this file find the following settings: (should be lines 20 & 21)

$cfg['Servers'][$i]['user'] = ‘root’;
$cfg['Servers'][$i]['password'] = ‘password’;

You can replace the values ‘root’ and ‘password’ to reflect the existing username and password you want to use to connect to MySQL.

Categories: Config, MySQL, PHP Tags:

Configure Flex to Use ColdFusion Mappings

February 24th, 2009 Bryan Clover No comments

If you want to store your CFCs outside of your ColdFusion web root , you can do this by mapping a directory in ColdFusion.  This is all well and good, except by default, Flex isn’t configured to work with mappings.  Here’s the remedy:

  1. Navigate to ‘C:\ColdFusion8\wwwroot\WEB-INF\flex\’
  2. Open the ‘remoting-config.xml’ file in your favorite text editor.
  3. Locate the <use-mappings>false</use-mappings> tag.  (Around line 24 )
  4. Change the value to true. <use-mappings>true</use-mappings>

That’s it!  Now you should be able to point your remote objects to the mapped directory you set up for your CFCs using the ColdFusion Administrator.

Categories: ColdFusion, Config, Flex Tags: