Adobe... who's stupid idea was it to force users to "upgrade" to Beta 2?
If you've been getting this error trying to load a style SWF:
VerifyError: Error #1014: Class mx.modules::ModuleBase could not be found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:574]
at mx.core::FlexModuleFactory/update()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:402]
at mx.core::FlexModuleFactory/moduleCompleteHandler()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:652]
1] right click the project that contains the CSS file your compiling
2] goto Flex Build Path
3] Change framework linkage to merged
4] Click on the Flex 4.0.0 build path and Remove it
5] Click Add Flex SDK to readd it
6] Click ok to exit and re-clean your project
Hopefully this will fix your compiler bug.
Showing posts with label flash. Show all posts
Showing posts with label flash. Show all posts
Wednesday, October 21, 2009
Monday, August 25, 2008
Remote Debugging Flash or Flex Apps using Flex IDE
Theres a lot of information about this already, just mentioning it one more time won't hurt:
1] Make sure your Flash app is compiled permitting debugging. If using Flex make sure its not the release compilation. Lets pretend the compiled program is uploaded to http://blah.com/flashapp/flashapp.html.
2] Create a new Flex project, you can name it anything.
3] Right click on the new project, goto Properties then Run/Debug Settings. Make a new configuration with the Debug/Profile/Run path pointing to the application you want to debug, in our case: http://blah.com/flashapp/flashapp.html.
4] Click Debug project. It will pop up the application you want to debug.
5] When the window pops up, right click the program. If you have Flash Debug Player installed, there will be a context menu item called Debugger. Click this.
6] Tell it you want to connect the debugger to localhost (which your Flex IDE started).
7] Done, you should be able to see trace statements :)
1] Make sure your Flash app is compiled permitting debugging. If using Flex make sure its not the release compilation. Lets pretend the compiled program is uploaded to http://blah.com/flashapp/flashapp.html.
2] Create a new Flex project, you can name it anything.
3] Right click on the new project, goto Properties then Run/Debug Settings. Make a new configuration with the Debug/Profile/Run path pointing to the application you want to debug, in our case: http://blah.com/flashapp/flashapp.html.
4] Click Debug project. It will pop up the application you want to debug.
5] When the window pops up, right click the program. If you have Flash Debug Player installed, there will be a context menu item called Debugger. Click this.
6] Tell it you want to connect the debugger to localhost (which your Flex IDE started).
7] Done, you should be able to see trace statements :)
Monday, August 4, 2008
Getting CakeAMFPHP w/ CakePHP 1.1 centralized database sessions working
CakePHP makes it a snap to create centralized database sessions.
However, If you wanted to use Flash and CakeAMFPHP with CakePHP's sessions, you'll find that it might not be working. Here are some fixes+workarounds to get it running.
Step 1] open /app/vendors/vendors/cakeamfphp/amf-core/app/Gateway.php
comment out line 93
The auth filter was breaking the sessions for some reason.
Step 2] Open /app/config/core.php
change the CAKE_SESSION_SAVE to:
change CAKE_SESSION_COOKIE to your php cookie sessions name(look in phpinfo()):
for example mine is:
change CAKE_SECURITY to low:
Step 3] create the sessions table in your $default(in database.php) database by importing the file at: /app/config/sql/sessions.sql
Step 4] open /cake/libs/session.php and comment out:
on line 132:
on line 311:
on line 541:
the useragent works with the browser but we are connecting using flash to amf to for some reason this was breaking.
You are done, try playing around with the Session methods to see if your
sessions are being stored and retrieved from the database. For a tutorial on CakePHP sessions take a look here.
---edit----
still having problems? Try turning off cookies in your cake gateway.
Open /app/webroot/cake_gateway.php:
insert this at the top:
open /cake/libs/session.php:
find all occurences of ini_set('session.use_trans_sid', 0);
and change them to
in your delegate when you call the gateway it must pass in a PHPSESSID example:
However, If you wanted to use Flash and CakeAMFPHP with CakePHP's sessions, you'll find that it might not be working. Here are some fixes+workarounds to get it running.
Step 1] open /app/vendors/vendors/cakeamfphp/amf-core/app/Gateway.php
comment out line 93
//$this->filters['auth'] = 'authenticationFilter';
The auth filter was breaking the sessions for some reason.
Step 2] Open /app/config/core.php
change the CAKE_SESSION_SAVE to:
define('CAKE_SESSION_SAVE', 'database');
change CAKE_SESSION_COOKIE to your php cookie sessions name(look in phpinfo()):
for example mine is:
define('CAKE_SESSION_COOKIE', 'PHPSESSID');
change CAKE_SECURITY to low:
define('CAKE_SECURITY', 'low');
Step 3] create the sessions table in your $default(in database.php) database by importing the file at: /app/config/sql/sessions.sql
Step 4] open /cake/libs/session.php and comment out:
on line 132:
/*if (Configure::read('Session.checkAgent') === true) {
if (env('HTTP_USER_AGENT') != null) {
$this->_userAgent = md5(env('HTTP_USER_AGENT') . CAKE_SESSION_STRING);
}
}*/
on line 311:
if (/*Configure::read('Session.checkAgent') === false || $this->_userAgent == $this->read("Config.userAgent") && */$this->time <= $this->read("Config.time")) {
on line 541:
if (/*Configure::read('Session.checkAgent') === false || $this->_userAgent == $this->read("Config.userAgent") && */$this->time <= $this->read("Config.time")) {
the useragent works with the browser but we are connecting using flash to amf to for some reason this was breaking.
You are done, try playing around with the Session methods to see if your
sessions are being stored and retrieved from the database. For a tutorial on CakePHP sessions take a look here.
---edit----
still having problems? Try turning off cookies in your cake gateway.
Open /app/webroot/cake_gateway.php:
insert this at the top:
ini_set('session.use_trans_sid', 1); //make it so we can use cookie-less sessions
ini_set('session.use_cookies', 0);
open /cake/libs/session.php:
find all occurences of ini_set('session.use_trans_sid', 0);
and change them to
ini_set('session.use_trans_sid', 1);
in your delegate when you call the gateway it must pass in a PHPSESSID example:
//cookieless sessions
if (session_id != null) {
appendurl = '?PHPSESSID='+session_id;
}
var gateway:String="http://cakeamfphp/cake_gateway.php"+appendurl;
Labels:
1.1,
cakeamfphp,
cakephp,
centralized,
cookieless,
database,
flash,
Flex,
php,
session.use_trans_sid,
sessions
Subscribe to:
Posts (Atom)