Quantcast
Channel: Adobe Community : Popular Discussions - Flex (Read Only)
Viewing all 46188 articles
Browse latest View live

Replacing webservice with remoteobject for .NET

$
0
0

Hi there,

We have few dashboard applications running which have flex front end and .NET\MS SQL backend. Right now all applications use webservices to fetch the data from the backend. There are many issues like reponse is very slow and most of the times there is 'SOAP response error' which gets generated randomly.

 

I came across few articles which talk about using remoteobjects for .NET. Can you kindly let me know if I go ahead with remoteobjects instead of webservices? Will the response be, if not faster, at least better than webservices? And how easy or difficult will it be to replace all the webservices calls in current applications with remoteobjects? And is there any enviromental setup needed?

 

Thank you for your time,

Cheers!

Deepak


Error: Unable to resolve resource bundle "fiber" for locale "en_US".

$
0
0

Hi all,

 

Im trying to create a resources.swf file for the purpose of dynamic localization of our application. However, I keep getting this error thrown when I try to run the ant script.

Im running Flash Builder 4, the sdk is Flex 4.5.1 with AIR 3.0 and a Windows 7-64 bit machine (just mentioning as a few posts associated it with the OS).

 

After searching some of the forum posts, ( http://forums.adobe.com/thread/606383)

1> I checked the eclipse.ini file and found the following lines already in there.

     -nl

     en_US

 

2> My compiler options already has -locale en_US specified.

 

3> I tried including the swc files as suggested in the referenced thread, both as a referenced library and by manually copying the swcs to the project, but neither of them helped.

     "import 2 swc folders (Under Properties -> Flex Build Path -> Library Path):

 

     /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/libs

     and

     /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/loca le"

 

Thanks in advance for your help.

 

My build.xml file looks as follows:

 

<?xml version="1.0" encoding="utf-8"?>

<project name="appName" basedir="." default="main">

          <taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/>

 

          <!-- CHANGE TO YOUR FLEX DIRECTORY //-->

          <property name="FLEX_HOME" value="C:/Users/abc/Documents/flex_sdk_4.5.1.21328_AIR3.0"/>

 

          <property name="APP_ROOT" value="appName"/>

          <target name="main">

                    <antcall target="en_US"></antcall>

<!--                    <antcall target="de_DE"></antcall>-->

          </target>

          <target name="en_US">

                    <mxmlc>

                              <locale>en_US</locale>

                              <source-path>locale/{locale}</source-path>

 

                              <include-resource-bundles>appResource</include-resource-bundles>

                              <include-resource-bundles>SharedResources</include-resource-bundles>

                              <include-resource-bundles>collections</include-resource-bundles>

                              <include-resource-bundles>components</include-resource-bundles>

                              <include-resource-bundles>containers</include-resource-bundles>

                              <include-resource-bundles>controls</include-resource-bundles>

                              <include-resource-bundles>core</include-resource-bundles>

                              <include-resource-bundles>effects</include-resource-bundles>

                              <include-resource-bundles>formatters</include-resource-bundles>

                              <include-resource-bundles>layout</include-resource-bundles>

                              <include-resource-bundles>logging</include-resource-bundles>

                              <include-resource-bundles>messaging</include-resource-bundles>

                              <include-resource-bundles>rpc</include-resource-bundles>

                              <include-resource-bundles>skins</include-resource-bundles>

                              <include-resource-bundles>sparkEffects</include-resource-bundles>

                              <include-resource-bundles>styles</include-resource-bundles>

                              <include-resource-bundles>textLayout</include-resource-bundles>

                              <include-resource-bundles>utils</include-resource-bundles>

                              <include-resource-bundles>validators</include-resource-bundles>

                              <include-resource-bundles>fiber</include-resource-bundles>

 

                              <output>locale/en_US/appName.swf</output>

                    </mxmlc>

          </target>

 

</project>

 

 

 

Thanks & Regards,

AJ

Embeding symbols from a swf created with mxmlc

$
0
0

Hello everyone,

 

I am trying to bundle my resources in seperate swf files then use them in another flex project. I create this bundles from a wizard i wrote in AIR. AIR app calls mxmlc to compile bundle.as and i dynamicaly load bundle.swf. I can access resources from this bundled swf using ApplicationDomain.getDefinition(). No problem there

 

However i also want to use my wizard to edit prexisting bundles. Problem is i cannot embed resource from original bundle to new bundle. I mainly use Sprite and ByteArray assets in bundles.

 

To simplfy problem i prepared following test. Created a bundle application to create bundle swf in flex. The project has 4 files: 2 .as files, 1 .png file, 1 .swf file( from FLA which has a symbol linked "Fill" )

 

 

// Bundle.as
package
{            import flash.display.*;            public class Bundle extends Sprite          {                    public function Bundle()                    {                              var fla:DisplayObject = new Fla();                              addChild(fla);                                var image:DisplayObject = new Image();                              addChild(image);                        }          }  
}


// Image.as
package
{
          import flash.display.Bitmap;            [Embed(source='plus.png')]          public class Image extends Bitmap          {          }  
}  
// Fla.as
package
{          import flash.display.Sprite;            [Embed(source='fla.swf', symbol="Fill")]          public class Fla extends Sprite          {                    public function Fla()                    {                    }          }
}

Project above compiles without problem and i can see both assets on screen.
Then i create a second project which will use swf created from project above.

 

 

package
{            import flash.display.*;            public class Application extends Sprite          {                    [Embed(source='Bundle.swf', symbol='Fla')]    /// Flex cannot embed this                    private var flaClass:Class;                      [Embed(source='Bundle.swf', symbol='Image')]  /// But it can embed this                    private var imageClass:Class;                      public function Application()                    {                              var fla:DisplayObject = new flaClass();                              addChild(fla);                                var image:DisplayObject = new imageClass();                              addChild(image);                    }          }  
}

 

The second project can only see Bitmap  asset as symbol. But could not find Sprite asset.

 

We depend heavily on vector graphics from Flash, and byte array assets embeded with

 [Embed(source='x.ba', mimeType="application/octet-stream")]

 

I could write byte array assets into a temp dir and embed them again but i cannot do it with Sprites. How can i solve this problem.

Problems with running mxmlc command line on Solaris

$
0
0
When I run mxmlc -help, or any other options, I get this exception (this is Flex2 by the way):

Exception in thread "main" java.lang.UnsupportedClassVersionError: flex2/tools/Compiler (Unsupported major.minor version 48.0)

JAVA_HOME is set to JRE1.5, and the directory is valid.

What am I missing?

Thanks in advance.

all free flex ebooks download!!

$
0
0

ActionScript 3.0 Bible (download)
http://www.riabook.cn/en_book/actionscript_3_bible.htm

Object-Oriented ActionScript 3.0 (download)
http://www.riabook.cn/en_book/object_oriented_actionscript_3.htm

ActionScript 3.0 Design Patterns(download)
http://www.riabook.cn/en_book/actionscript_3_design_pattern.htm

ActionScript 3.0 Game Programming University (download)
http://www.riabook.cn/en_book/actionscript_3_game_programming_university.htm

Flash XML Applications: Use AS2 and AS3 to Create Photo Galleries(download)
http://www.riabook.cn/en_book/flash_xml_applications.htm

Programming Flex 2: The comprehensive guide to creating rich media(download)
http://www.riabook.cn/en_book/programming_flex_2.htm

Foundation Actionscript 3.0 Animation: Making Things Move (download)
http://www.riabook.cn/en_book/foundation_actionscript_3_animation_making_things_move.htm

Essential ActionScript 3.0 (download)
http://www.riabook.cn/en_book/essential_actionscript_3.htm

How to Cheat in Flash CS3: The art of design and animation in Adobe
http://www.riabook.cn/en_book/how_to_cheat_in_flash_cs3.htm

The Essential Guide to Flex 2 with ActionScript 3.0(Download)
http://www.riabook.cn/en_book/essential_guide_to_flex_2.htm

Programming Flash Communication Server(download)
http://www.riabook.cn/en_book/programming_flash_communication_server.htm

Rich Internet Applications with Adobe Flex & Java(download)
http://www.riabook.cn/en_book/Rich_Internet_Applications_with_Adobe_Flex_and_Java.htm

Advanced ActionScript 3 with Design Patterns (download)
http://www.riabook.cn/en_book/23.htm

Adobe Flex 2: Training from the Source (download)
http://www.riabook.cn/en_book/adobe_flex2_training_from_the_source.htm

AdvancED Flex Application Development: Building Rich Media X (download)
http://www.riabook.cn/en_book/building_rich_media_x.htm

Flex Solutions: Essential Techniques for Flex 2 and 3 Developers(download)
http://www.riabook.cn/en_book/Flex_Solutions_Essential_Techniques_for_Flex_2_and_3_Develop ers.htm

Foundation ActionScript 3.0 with Flash CS3 and Flex (download)
http://www.riabook.cn/en_book/foundation_actionscript3_with_flashcs3_and_flex.htm

Foundation Flex for Developers: Data-Driven Applications with PHP,ASP.NET,ColdFusion,and FDS (download)
http://www.riabook.cn/en_book/foundation_flex_for_developers.htm

JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications
http://www.riabook.cn/en_book/javafx_script.htm

Load,Edit and save XML file via Flex

$
0
0
Hi, I posted this question in the AS3 forum but I am not sure if that was the correct place;
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=587&threadid =1267500&enterthread=y

Hi I am new to Flex and AS3 but I have some experience with XML, XSLT, XPATH, VB etc..

I am having trouble just loading the XML. How do I load an external XML file so I can edit it?

This is what I have so far:

<mx:Script>
<![CDATA[
var myxml = 'xml/request.xml';
XML.ignoreWhitespace = true;
var xml:XML = new(myxml);
]]>
</mx:Script>

I recieve an error:

"TypeError: Error #1007: Instantiation attempted on a non-constructor."

Thanks in advance

Best data type in mySQL for an Image

$
0
0

What would be the preferred data type in mySQL to store an image

(jpeg or png)?

 

I would think BLOB would serve this purpose best.

 

Who is currently doing this and what data type are you using?

 

 

Regards,

 

Scott

Flex 3 :How to use trace for printing data in console

$
0
0

Hi ,

 

I heard that we can use trace to print data on to Flex Builder 3 console . But when i tries it was of no luck .

 

The below is a simple program , in which i was out of luck .


public function callMe():void
        {
            trace("AAA");

 

        }

 

<mx:Button id="Register" name="Register" label="Register" height="23" click="callMe()"/>

 

 

Here in the above porogram , after clicking the Button , i cant see 'AAA 'related  inside my Flex Builder .

Any help ??

 

Thank you .


FlashBuilder 4.0 Download

$
0
0

We're in the process of upgrading our servers and aren't yet ready to migrate to FlashBuilder 4.5.

 

We did, however, try to upgrade to FlashBuilder 4.5, however, we got an error saying that the Flex 4.0 SDK is no longer supported (which is an issue, as we're not ready to migrate to a newer SDK).

 

Where can we download the FlashBuilder 4.0 installation package?

VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

$
0
0

Hi all,

 

We upgraded our Flex app to 4.5 not too long ago.  Everything's been going along fine until today.  In today's build we've all of a sudden started getting the error above.  This event seems to only been needed on devices that use on-screen keyboards.  I'm not certain why a normal, browser-based Flex app would be trying to use it.

 

Anybody have any ideas?

 

-Hob

Using SpinnerList to use pushview?

$
0
0

I have a spinnerList in my application with four Data objects in it. What would I need to do to make it so that the user selects the one they want, then clicks a button, it changes to a different view, corresponding to the item on the spinner list that the user chooses?

Weird socket bug, 'Error #2031: Socket Error'

$
0
0
I'm putting together an application which opens a connection to a server, sends a chunk of binary data and then closes the connection. When I run the application without handing IOEventError, I get the socket error message below but the data sends. When I handle IOEventError, I get the same message passed to the handler but no data is sent. When I capture TCP data during the connection, you can that without the handler a '[PSH, ACK]' packet of length 29 (my data) is sent out. With the handler, a '[FIN]' packet is sent instead. I've pasted the errors, code and TCP traffic below.

Has anyone else encountered this socket weirdness? How do I figure out what this error message means?

Thanks for the help!

-J. Flier

Error message to the console with no handler (but data sends): "Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
at handleSendPacketClick()[src\Test.mxml:156]
at Test_Button2_click()[\src\Test.mxml:333]"

Error message to the handler (no data sends): "IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 192.168.220.128" errorID=2031"

TCP traffic with no handler:
1 0.000000 192.168.220.1 192.168.220.128 TCP timelot > cbt [SYN] Seq=0 Win=65535 Len=0 MSS=1460
2 0.000484 192.168.220.128 192.168.220.1 TCP cbt > timelot [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460
3 0.000542 192.168.220.1 192.168.220.128 TCP timelot > cbt [ACK] Seq=1 Ack=1 Win=65535 Len=0
4 0.005418 192.168.220.1 192.168.220.128 TCP timelot > cbt [PSH, ACK] Seq=1 Ack=1 Win=65535 Len=29
5 0.005615 192.168.220.128 192.168.220.1 TCP cbt > timelot [ACK] Seq=1 Ack=30 Win=5840 Len=0
6 2.410136 192.168.220.1 192.168.220.128 TCP timelot > cbt [FIN, ACK] Seq=30 Ack=1 Win=65535 Len=0
7 2.450241 192.168.220.128 192.168.220.1 TCP cbt > timelot [ACK] Seq=1 Ack=31 Win=5840 Len=0
8 2.486507 192.168.220.128 192.168.220.1 TCP cbt > timelot [FIN, ACK] Seq=1 Ack=31 Win=5840 Len=0
9 2.486563 192.168.220.1 192.168.220.128 TCP timelot > cbt [ACK] Seq=31 Ack=2 Win=65535 Len=0

TCP traffic with handler:
17 438.448287 192.168.220.1 192.168.220.128 TCP dvt-data > cbt [SYN] Seq=0 Win=65535 Len=0 MSS=1460
18 438.448629 192.168.220.128 192.168.220.1 TCP cbt > dvt-data [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460
19 438.448683 192.168.220.1 192.168.220.128 TCP dvt-data > cbt [ACK] Seq=1 Ack=1 Win=65535 Len=0
20 438.449489 192.168.220.1 192.168.220.128 TCP dvt-data > cbt [FIN, ACK] Seq=1 Ack=1 Win=65535 Len=0
21 438.451503 192.168.220.128 192.168.220.1 TCP cbt > dvt-data [ACK] Seq=1 Ack=2 Win=5840 Len=0
22 438.452759 192.168.220.128 192.168.220.1 TCP cbt > dvt-data [FIN, ACK] Seq=1 Ack=2 Win=5840 Len=0
23 438.452793 192.168.220.1 192.168.220.128 TCP dvt-data > cbt [ACK] Seq=2 Ack=2 Win=65535 Len=0

var socket:Socket=new Socket();

// First we generate our packet
msg=generateMessage();

// Then we open a connection
//socket.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
socket.connect(backendIPTextInput.text, int(textInput.text));

// Finally we send the packet
socket.writeBytes(msg);
socket.flush();
socket.close();

Could not resolve to a component implementation.

$
0
0

Hi..

Am getting an error message

Could not resolve  <fx:Declarations> to a component implementation.

and

Could not resolve  <fx:Script> to a component implementation.

 

Am trying  the following mxml code.

 

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               minWidth="955" minHeight="600"
               creationComplete="application2_creationCompleteHandler(event)">
   
    <fx:Style source="Styles.css" />
    <fx:Declarations>
       
    </fx:Declarations>
   
    <fx:Script>
        <![CDATA[
           
        ]]>
    </fx:Script>
   
   
</s:Application>

how to restrict editable datagrid columns in flex 4

$
0
0

hi friends,

 

 

      I am new to flex,i am using flex4,i have one help.

 

       I am using one data grid with 4 columns like this.

 

 

            document type                     length                   prefix                     Nextnumber

 

 

               word                                   22                        wrd                      000000000000001

 

 

               PDF                                   22                          pd                      000000000000002

 

 

 

 

my requirement is:

 

1.document type column wont be editabel

 

2.length column should have maximum char= 2 charcters only and only allow digits only not charcter and special symbols.that column will editable.how to restrict.

 

3.Prefix column should have maximum char=6 characters only and only allow charcters only not digits and special symbols.that column also editable,how to restrict.

 

4.Next number column should have maximum char=10 characters only and only allow digits not characters and special symbols.that column also editable,how to restrict.

 

 

this is my requirement.so please help me.

 

any suggession welcome.

 

 

Thanks,

 

B.venkatesan

How to find an ArrayCollection item with a specific property value in flex4

$
0
0

Hi all,

 

private var collection:ArrayCollection = new ArrayCollection([

                                        {id:"1", stuff:"whatever1"},

                                        {id:"2", stuff:"whatever2"},

                                        {id:"3", stuff:"whatever3"}

  {id:"4", stuff:"whatever4"},

  {id:"5", stuff:"whatever5"},

  {id:"6", stuff:"whatever6"}

                              ]);

 

i have id=2 of specific property value  now i need to find item


Flash 10.1.53.64 - no flashlog.txt logging

$
0
0

Configuration:

  • Windows XP SP3 x86
  • FlashDevelop IDE 3.2.1
  • Flex SDK 3.5.0.12683
  • Browsers: Firefox 3.6.4 (with Firebug and Flashbug) and IE8
  • Flash Player Debugger 10.1.53.64

 

Issue Overview:

Since upgrading from the debug player 10.0.45.2 to the latest 10.1.53.64, I've found that my trace statements are no long written to flashlog.txt from either Firefox or IE. No logs are written, which is a pretty big deal during development.

 

Consider that it does affect the players in both browsers. I do have mm.cfg configured correctly as per the KB instructions (no change was required, although I did experiment). I am indeed compiling in debug mode. It's not a Flashbug issue as flashlog.txt never gets updated.

 

Research:

I wasn't able to find much of anything in my searching. There was maybe one blog post with comments suggesting a similar issue with a 10.1RC, but didn't offer up any solutions (I hadn't been developing with the RCs). Also, I couldn't find a relevant entry in the Flash Player bug tracker.

 

Workaround?

For the time being, I am forced to revert back to 10.0.45.2 which worked immediately. Has anyone else experienced this issue?

flash.data.SQL : cannot access sqlite_master table ???

$
0
0
Normally I find I can execute this query in sqlite and gives me all the database info.

Am I missing something or being more than usually stupid ?

Not a huge issue, but I was going to build a simple explorer just to get a feel for sqlite in AIR, and lack of that info makes it rather difficult!

Also, I see a lot of help available for a database perspective in flexbuilder 3 beta. Is that a planned addition or just an unremoved aspect of the generic eclipse IDE it's built in?
It would be a very nice feature to have built in, though I'm sure I could set it up myself with some googling.

regards,

Jim.

Passing parameters to WebService

$
0
0
I'm trying to call a webservice from ActionScript using the WebService class. I have successfully loaded the WSDL, and am calling a webservce call RunScript. According to the wsdl RunScript takes 4 parameters, the first is names scriptText and is supposed to be a string, so I called the webservice using the following line:

service.RunScript("this is the text",...);

I get a fault with the message, "Error #1069: Property scriptText not found on String and there is no default value. null"

According to the documentation I thought I could just pass a string, but it seems to want an object, with a property of the name of the webservice parameter.

Any ideas what is going on here?

flashvars and AS3

$
0
0
HI!,

I've been reading the documentation and explains how to get the FLASHVARS when you are using flex, but how do you get them when you are using AS3? does they end up in the root object as it was with as2? or should we look for them somewhere else?

While we are at this :), is there a way to know if the flash's movie is been hosted on the the internet or on the users PC?

Flex remote call from http to https

$
0
0
I know this issue has popped up several times, but I have tried a multitude of things to get this fixed.

I have a flex client running on a non-secure (http) server. It is making HTTPService calls to Servlets on a secure (https) server. I have tried all types of variants in the crossdomain.xml file, but the error still persists:

Error #2048: Security sandbox violation: http://localhost:8081/MainShell.swf cannot load data from https://localhost:443/ReasonRequiredServlet

Note that this happens both locally and when deployed to a test server. Can flex make service calls from http client to an https service?

My crossdomain.xml file is in the application root (http://localhost:8081/crossdomain.xml). Is it possible that flash is not picking up the file? How can I tell if it is not?

Any help appreciated. Thanks.

Viewing all 46188 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>