talkxe

riaxe snippets

Follow me on TwitterRSS Feeds

  • Home
  • About Us

FTPA018 and FTPS033 issues in Flashlite[Solved]

Aug 5th

Posted by Susrut Mishra in actionscript

No comments

While developing a flashlite application for a Samsung BADA phone we face a weird issue. We were not able to load an external XML file. WE got the following error :

FTPS033: A Call to loadVariables(URL) found, limitations might apply.
FTPA018: The call to loadVariables for [URL] was ignored because it was not associated with a keypress.

We were using Flash CS4 and Device Central CS4. After some research on the IDE we found that running the app on the Device Central generated these errors. We switched to Flash CS5 and it worked like a charm.

Share
actionscript, as2, cs4, cs5, flash
Firefox-Flash-plugin-crash

Flex Firefox Flash Debug Player Crash [Solved]

Jul 7th

Posted by Susrut Mishra in flash

16 comments

After updating the Firefox to the latest version, while using Flex debug I found the debug session did not last much and it crashed after a short period. This happens because firefox kills the debug session. Found a quick fix for the above issue:

1. Goto firefox config by typing about:config in the firefox address bar
2. Click on the I’ll be careful, I promise button.
3. Type dom.ipc.plugins.timeoutSecs
4. Find value and double click and change the value to -1

This changes the default timeout value from 45 secs to unlimited. This should solve the issue.

Share
10.1, crash, debug, firefox, flash player, flex
Pagination

Pagination in Flex

Jun 9th

Posted by Brajendra in actionscript

1 comment

Recently while working on a flex project, had an issue while paginating a list of data. Could find many solutions for paginating of Datagrid and lists on the web but I needed little different. So created an application to paginate a large amount of data. This isn’t using any Datagrid or List but a simple VBox. I added some effects as well to it. I used a canvas having a list of images and at the bottom the paginator is placed with the “First”(<<), ”Previous”(<), “Next”(>) and “Last”(>>) buttons for navigation. One can click on the page number to navigate to any specified page.

We need 4 properties to set on application loading complete.
1. Set selectedIndex = 0 ; // As we need to show the first page on load complete.
2. Set visiblePages = the number of pages we want to show every time. Here the visiblePages = 3.
3. Set totalItems = the total number of items
4. Set itemsPerpage = the number of items to be shown in a page.

Screenshot given below.
null

You can click here to see the example.

I think this sample could be useful for all. Do post back for any issues or suggestions.
Thanks.

Share
actionscript, AIR, as3, flash, flex, pagination, paging
http://cer.opda.cn/en/index.php?module=certificate&action=apply

How to generate .Sis certificate and key with OPDA for development

May 29th

Posted by Susrut Mishra in mobile

No comments

One can use the OPDA link http://cer.opda.cn/en/index.php?module=certificate&action=apply to apply for a Symbian Certificate. You just need to register with a few steps and you can generate .cer and .key files within sometime. Also, you need to provide the IMEI number of your mobile which you can get by typing *#06#. Here is a snapshot of the certificate generation page.

 

http://cer.opda.cn/en/index.php?module=certificate&action=apply

Share
certificate, elips, key, OPDA, openplug, s60, sis, symbian

preventDefault autoscroll issue for list based components[solved]

May 28th

Posted by binamra in actionscript

1 comment

While doing a drag-drop on a list based component(e.g. listbox,grid) we were having an issue where it used to autoscroll with mouse movement even though pointer is no where near it.

It was happening due to the event.preventDefault() called in the ondragDrop function. The dragHandler functions in the listbase class. We fixed it with a minor hack overriding the related dragdrop event handler methods.  Here’s the code -

package
{
 import mx.collections.CursorBookmark;
 import mx.controls.List;
 import mx.core.mx_internal;
 import mx.events.DragEvent;
 import mx.managers.DragManager;

 use namespace mx_internal;

 public class DroppableListItemList extends List
 {
 public function DroppableListItemList()
 {
 super();
 }

 /**
 *  Handles <code>DragEvent.DRAG_COMPLETE</code> events.  This method
 *  removes the item from the data provider.
 *
 *  @param event The DragEvent object.
 */
 override protected function dragCompleteHandler(event:DragEvent):void
 {
 isPressed = false;

 resetDragScrolling();
 if (event.isDefaultPrevented())
 return;

 if (event.action == DragManager.MOVE && dragMoveEnabled)
 {
 if (event.relatedObject != this)
 {
 var indices:Array = selectedIndices;
 indices.sort(Array.NUMERIC);
 var n:int = indices.length;
 for (var i:int = n - 1; i >= 0; i--)
 {
 collectionIterator.seek(CursorBookmark.FIRST, indices[i]);
 collectionIterator.remove();
 }
 clearSelected(false);
 }
 }

 // this can probably be removed b/c it's in dragExit and dragDrop, but leaving these two
 // lines for now
 lastDragEvent = null;
 }

 /**
 *  Handles <code>DragEvent.DRAG_DROP events</code>.  This method  hides
 *  the drop feedback by calling the <code>hideDropFeedback()</code> method.
 *
 *  <p>If the action is a <code>COPY</code>,
 *  then this method makes a deep copy of the object
 *  by calling the <code>ObjectUtil.copy()</code> method,
 *  and replaces the copy's <code>uid</code> property (if present)
 *  with a new value by calling the <code>UIDUtil.createUID()</code> method.</p>
 *
 *  @param event The DragEvent object.
 *
 *  @see mx.utils.ObjectUtil
 *  @see mx.utils.UIDUtil
 */
 override protected function dragDropHandler(event:DragEvent):void
 {
 resetDragScrolling();
 if (event.isDefaultPrevented())
 return;

 hideDropFeedback(event);
 lastDragEvent = null;

 if (enabled && event.dragSource.hasFormat("items"))
 {
 if (!dataProvider)
 // Create an empty collection to drop items into.
 dataProvider = [];

 var items:Array = event.dragSource.dataForFormat("items") as Array;
 var dropIndex:int = calculateDropIndex(event);
 if (event.action == DragManager.MOVE && dragMoveEnabled)
 {
 if (event.dragInitiator == this)
 {
 var indices:Array = selectedIndices;
 indices.sort(Array.NUMERIC);

 for (var i:int = indices.length - 1; i >= 0; i--)
 {
 collectionIterator.seek(CursorBookmark.FIRST, indices[i]);
 if (indices[i] < dropIndex)
 dropIndex--;
 collectionIterator.remove();
 }
 clearSelected(false);
 }
 }
 collectionIterator.seek(CursorBookmark.FIRST, dropIndex);

 for (i = items.length - 1; i >= 0; i--)
 {
 if (event.action == DragManager.COPY)
 {
 collectionIterator.insert(copyItemWithUID(items[i]));
 }
 else if (event.action == DragManager.MOVE)
 {
 collectionIterator.insert(items[i]);
 }
 }
 }
 lastDragEvent = null;

 }

 /**
 *  Handles <code>DragEvent.DRAG_EXIT</code> events.  This method hides
 *  the UI feeback by calling the <code>hideDropFeedback()</code> method.
 *
 *  @param event The DragEvent object.
 */
 override protected function dragExitHandler(event:DragEvent):void
 {
 resetDragScrolling();

 if (event.isDefaultPrevented())
 return;

 lastDragEvent = null;

 hideDropFeedback(event);

 DragManager.showFeedback(DragManager.NONE);
 }
 }
}
Share
actionscript, as3, components, flash, flex, list, preventDefault
«12345»
    • Popular posts
    • Archives
    • Tags
    • Categories
    • .NET (1)
    • actionscript (20)
    • AIR (2)
    • as2 (2)
    • as3 (16)
    • facebook (1)
    • flash (12)
    • flex (17)
    • JAVA (1)
    • Javascript (2)
    • mobile (1)
    • s60 (1)
    • symbian (3)
    3d actionscript AIR alivepdf arc as2 as3 button circular components corner cs4 cube doubleclick drag dynamic externalinterface fabridge flash flash builder flex gradient highlight icon iconfield jar JAVA Javascript lines matrix merapi message mouse pdf player resize rotate scale singleclick text textarea textrange text scaling tilelist transform tool
    • January 2012 (2)
    • December 2011 (1)
    • October 2011 (1)
    • August 2010 (2)
    • July 2010 (1)
    • June 2010 (1)
    • May 2010 (2)
    • April 2010 (1)
    • March 2010 (1)
    • November 2009 (1)
    • July 2009 (2)
    • April 2009 (1)
    • March 2009 (3)
    • February 2009 (1)
    • January 2009 (3)
    • AS3 Transform Tool for scaling, rotating components containing text controls in Flex (30)
    • Flex Firefox Flash Debug Player Crash [Solved] (16)
    • Simple tutorial for creating an AIR application using Merapi Bridge (13)
    • Publish into facebook wall from flex (13)
    • Alive PDF from Flash Player 10 issue (7)
    • Rotating text along a circular arc in as3 (7)
    • Adding Singleclick, Doubleclick and Drag events all at a time in as3 (5)
    • Using mouse position from Javascript into Flex (3)
    • Dynamic TextArea control that resizes with the text content (2)
    • AS3 Transform tool [Flex 4 Support] with text scaling and dynamic menu (2)
  • Twitxe

    Loading tweets...
    Follow me on Twitter!
  • Resources

    • ByteArray.org
    • Flex Examples
    • InsideRIA
    • lab.polygonal.de
    • Reflektions.com
    • ScaleNine
    • Senocular
    • The Official Flex Team Blog
Copyright © 2009 ::RIAXE:: | The solving side