Flex TextArea HTMLText issue.

Hi All,
         I am using a Flex textArea control and recently i found an interesting behaviour while using htmlText property of the TextArea.
By default the htmlText has "<P align=''left' /> tag.When i added bullets to the text it adds the "<LI>" tag to the text and get rid of the the "<P/>" tag.
The problem is that,when i add bullets and the right align the text,it displays fine on the textArea ,but since the htmlText does not have the "<P/>" tag,when i send the htmlText to the backend to generate the .jpg preview of the screen,it is not aligning the text to right.
Bottom line:"when text right aligned with bullets,htmlText does not have "<P/>" tag and only have "<LI/>" tag.
Does anyone know about this issue?
Any ideas to overcome this issue?
Thanks
Kartik B

Thanks for reply,
i am taking htmlText from another textarea..
code:
var htmltext:String = txtarea.htmlText
var textarea1:TextArea = new TextArea();
textarea1.htmlText = htmltext;
vboxName.addChildAt(textarea1,0);
while tracing value of htmltext
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000101"
LETTERSPACING="0" KERNING="0">agenda descriptyion</FONT></P></TEXTFORMAT>
<TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="11" COLOR="#000101"
LETTERSPACING="0" KERNING="0">neethu<FONT FACE="none" COLOR="#FFFFFF"></FONT></FONT></LI></TEXTFORMAT>
Regards,
Manu Lal

Similar Messages

  • Read data from a log file to flex textarea while deploying

    Hi,
    I am new to flex. I am able to read data from a log file that placed in C drive and able to write that data into flex textarea, but I am unable to read the same file while it is deployed into weblogic sever.
    Could anyone please tell me how to solve this problem.
    Thanks,
    Sri.

    Do you have it trying to read that same file on your C drive or is the file actually deployed somewhere on the server?

  • Search text & highlight it in textarea htmltext

    Hello All,
    how to search perticular word in textarea htmltext? and how to highlight those all found word in textarea htmltext?
    i have tried many way but not perfectly implemented.
    any idea please....

    Tejas S Patel wrote:
    yes i have seen this.
    But its possible for static textarea contains.
    I am fatching data from database and display in textarea and then search & highlight them.
    I am confused for using this example.
    it is perfectly possible to link that example up to dynamic data instead, it just requires of bit of reading into it and understanding their code, and then a sit down and think for a few minutes of using the functions already created for you.
    i'm somewhat skeptical about spoon feeding an answer when 95% of the work has already been done and found for you, there's nothing to learn that way.
    personally i'd suggest going away and have a play with it for a while and try to get it working, if you still can't figure it out come back with what you've tried and i'd be more then happy to help you with it then

  • TextArea.htmlText ### newline pb

    Hi
    Im using a TextArea to display HTML text.
    <mx:TextArea width="100%" height="100%"
    htmlText="{data.text}" />
    it contains :
    <![CDATA[
    something here
    <li> one </li>
    <li> two </li>
    ]]>
    it seams to insert 2 new line between each <li> or \n
    in the text !
    Can you help me ?

    I don't think it's a case of TextArea.htmlText not working so much as it's a case of there not being an htmlText property for the TextArea in AS2.  AS3 versions support it, but I believe in AS2 you need to specify the html property to be true and assign the text to the text property.
    ta.html = true;
    ta.text = "<b>your html text</b> here";

  • Spark Component TextArea Performance Issues

    The spark component TextArea cannot handle large text volumes gracefully. I am using a simple ascii file that is about 1.2 mg in size and I experience the following problems:
    1. Pasting the 1.2 mg of text in the TextArea takes a very long time (about 20-30 second). I get a message that the request timed out then the text is finally shown in the text area.
    2. Once the text is in the TextArea, paging up and down fast (that is not waiting for the previous page up and page down to complete) can cause the application to freeze. It takes a long time for it to come back.
    3. Selecting a large chunck of data and doing cut/paste/delete can also cause a freeze that may take a 20 or more seconds.
    The new spark.components.TextArea is definitely an improvement over mx.controls.TextArea but still has serious performance issues. A simple HTML text area seems to process the same volume without any issues (except some delay at the initial loading). Is there a chance these issues will be addressed before the release of FlashBuilder 4.0? is there a work around?

    Not much is needed. You can create an application that has nothing but the textarea:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
    <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/halo" 
          minWidth="800" minHeight="600">
         <s:TextArea width='100%' height='100%' horizontalScrollPolicy="auto" verticalScrollPolicy="auto"/></s:Application>
    run it, copy the text in the attached Sample.txt file and paste into the text area. It takes more than 1 minute (did not time it) and then just before the text is displayed, I get this error message:
    Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
    The text is transferred to the textarea but the textarea is very sluggish (try arrow up, arrow down, page up, page down, try typing in the text area and then finally try select all and then cut or delete).
    I hope this helps and thanks.

  • How to use the nl2br() function - or addressing textarea formatting issues

    the textarea does not pass line breaks to mysql - the result in the html output is one long string of text. I would like the user to input into the textarea using the enter key to create new paragraphs.
    I am not a php programmer and rely on the dreamweaver data tools and developer tool kit to create my dynamic content.
    Please send sample code for a form that addresses and corrects this issue. I do not know how/where to modify the code to correct this issue.
    I have searched online but nowhere have I found an example of how to actually write the code. I can do a great deal of manual modification of php code but this one has me stumped for some reason..
    thanks in advance !!!!
    here is the index.php code which contains the form:
    PHP:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO tw_responses (id, tweet, response, permalink) VALUES (%s, %s, %s, %s)",
                           GetSQLValueString($_POST['id'], "int"),
                           GetSQLValueString($_POST['tweet'], "text"),
                           GetSQLValueString($_POST['response'], "text"),
                           GetSQLValueString($_POST['permalink'], "text"));
      mysql_select_db($database_twitter, $twitter);
      $Result1 = mysql_query($insertSQL, $twitter) or die(mysql_error());
      $insertGoTo = "QA.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_twitter, $twitter);
    $query_Recordset1 = "SELECT * FROM tw_responses";
    $Recordset1 = mysql_query($query_Recordset1, $twitter) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <?php $rs = mysql_fetch_array($resultsetquery);
    $string = nl2br($rs['response']);
    echo($string); ?>
    FORM:
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
                    <table width="461" align="center" cellpadding="4" cellspacing="4">
                      <tr valign="baseline">
                        <td width="71" align="right" nowrap="nowrap">Question:</td>
                        <td width="360"><input type="text" name="tweet" value="" size="50" /></td>
                      </tr>
                      <tr valign="baseline">
                        <td nowrap="nowrap" align="right" valign="top">Answer:</td>
                        <td><textarea name="response" cols="50" rows="15"></textarea></td>
                      </tr>
                      <tr valign="baseline">
                        <td nowrap="nowrap" align="right"> </td>
                        <td><input type="submit" value="Insert record" />
                        <input type="reset" name="Reset" id="button" value="Reset" /></td>
                      </tr>
                    </table>
                    <input type="hidden" name="id" value="" />
                    <input type="hidden" name="MM_insert" value="form1" />
                  </form>
    Here is QA.php code which contains the output:
    PHP
    <?php require_once('../Connections/twitter.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    mysql_select_db($database_twitter, $twitter);
    $query_Recordset1 = "SELECT * FROM tw_responses ORDER BY id ASC";
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $twitter) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;$maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    mysql_select_db($database_twitter, $twitter);
    $query_Recordset1 = "SELECT * FROM tw_responses ORDER BY id DESC";
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $twitter) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ?>
    OUTPUT:
    <?php do { ?>
      <table width="95%" border="0" cellpadding="4" cellspacing="2">
        <tr>
          <td><a name="<?php echo $row_Recordset1['id']; ?>"></a></td>
        </tr>
        <tr>
          <td><p><strong><em>Question: </em></strong><a href="http://www.halopets.com/test/admin/QA.php#<?php echo $row_Recordset1['id']; ?>"><?php echo $row_Recordset1['tweet']; ?></a></p></td>
        </tr>
        <tr>
          <td><p><strong><em>Answer: </em></strong><?php echo $row_Recordset1['response']; ?></p></td>
        </tr>
        <tr>
          <td><hr width="95%" size="1" noshade="noshade" /><br /></td>
        </tr>
      </table>
      <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>

    twinflame wrote:
    the textarea does not pass line breaks to mysql - the result in the html output is one long string of text. I would like the user to input into the textarea using the enter key to create new paragraphs.
    I am not a php programmer and rely on the dreamweaver data tools and developer tool kit to create my dynamic content.
    Please send sample code for a form that addresses and corrects this issue. I do not know how/where to modify the code to correct this issue.
    http://tinymce.moxiecode.com/

  • Flex PHP Wizard Issues (Is Flex/PHP ready for prime time)

    I have been designing a website using Flex. I thought of using Flex form many reasons, but one was to reduce the number of languages used in the development process. I am going to be hosting at Godaddy so I thought  I would try PHP. I normally would use Java, but Flex seems to want Enterprise Beans and Java Remote Objects which cost to much and would probably not work on Godaddy. I started out with MAMP on a Apple computer and have design 60% of my application, when I started noticing as the database go larger, I started getting communication errors with the MAMP version of mysql. So I installed MySQL and and started using Apache and PHP that comes with OSX. The communication errors are increased.
    Any suggestions? I am at the point, if I can find a proven programmer, with GoDaddy/Flex/MySQL/PHP and Java experience to help answer some question, I think I can come up with contract dollars.
    First question is Flex ready? or is this an issue with PHP?

    have moved this thread from the ADDT forums to the Flex Data Services forums

  • Flex 3 to Flex 4 migration issue (Flex charting and Special char)

    Hi All,
    I have migrated Flex 3 to Flex 4 and in Flex charting axis label, I am not able to see less then sign ( < ). I tried to use &lt;  but it's not working, I have attached sample code.
    <?xml version="1.0" encoding="utf-8"?>
    <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" initialize="init()">
         <fx:Declarations>
             <s:SolidColor id="s1" color="#738994"/>
             <mx:SeriesInterpolate id="seriesInterpolate" duration="800"/>
             <mx:SeriesSlide id="seriesSlide" duration="800" direction="up"/>
             <mx:SeriesZoom id="seriesZoom"
                            duration="1000"
                            minimumElementDuration="50"
                            elementOffset="50"
                            verticalFocus="top"
                            horizontalFocus="left"
                            relativeTo="chart"/>
         </fx:Declarations>
         <fx:Script>
            <![CDATA[
                 import mx.collections.ArrayCollection;
                 [Bindable]
                 public var student:ArrayCollection = new ArrayCollection([
                     {Stream: "Management", Girls:1000, Boys:1400, TotalStudent:2400},
                     {Stream: "&lt;Computer Science", Girls:800, Boys:1200, TotalStudent:2000},
                     {Stream: "< Mechanical", Girls:200, Boys:1500, TotalStudent:1700},
                     {Stream: "> Electical", Girls:800, Boys:850, TotalStudent:1650},
                     {Stream: "Electronics", Girls:500, Boys:1000, TotalStudent:1500},
                     {Stream: "Civil", Girls:300, Boys:900, TotalStudent:1200}
                 private function update():void {
                     var str:String = catfDP.selectedItem.data;
                     if(str == "Girls"){
                         cs1.yField = str;
                         cs1.displayName = str;
                         cs1.setStyle("fill" , "738994");
                     }else if(str == "Boys"){
                         cs1.yField = str;
                         cs1.displayName = str;
                         cs1.setStyle("fill" , "999990");
                     }else{
                         cs1.yField = str;
                         cs1.displayName = str;
                         cs1.setStyle("fill" , "406374");
                 private function init():void{
                     catfDP.selectedIndex= 0;
                     effectDP.selectedIndex= 0;
             ]]>
         </fx:Script>
         <s:Panel title="Chart Effect Example" width="627" height="565">
             <s:layout>
                 <s:VerticalLayout/>
             </s:layout>
             <mx:ApplicationControlBar dock="true" width="625" height="82">
                 <mx:Form>
                     <mx:FormItem label="Category Field:">
                         <s:DropDownList id="catfDP" change="update();" prompt="--Select--" width="136"
                                         height="19">
                             <s:dataProvider>
                                 <mx:ArrayList>
                                     <fx:Object data="Girls" label="Girls" />
                                     <fx:Object data="Boys" label="Boys" />
                                     <fx:Object data="TotalStudent" label="TotalStudent" />
                                 </mx:ArrayList>
                             </s:dataProvider>
                         </s:DropDownList>
                     </mx:FormItem>
                     <mx:FormItem label="Choose Chart Effect:">
                         <s:DropDownList id="effectDP" change="update();" width="136" prompt="--Select--">
                             <s:dataProvider>
                                 <mx:ArrayList>
                                     <fx:Object label="seriesInterpolate" data="{seriesInterpolate}" />
                                     <fx:Object label="seriesSlide" data="{seriesSlide}" />
                                     <fx:Object label="seriesZoom" data="{seriesZoom}" />
                                 </mx:ArrayList>
                             </s:dataProvider>
                         </s:DropDownList>
                     </mx:FormItem>
                 </mx:Form>
             </mx:ApplicationControlBar>
             <mx:ColumnChart id="cchart"
                             dataProvider="{student}"
                             showDataTips="true"
                             width="621"
                             fontFamily="verdana" height="402">
                 <mx:verticalAxis>
                     <mx:LinearAxis title="Number of Students" />
                 </mx:verticalAxis>
                 <mx:horizontalAxis>
                     <mx:CategoryAxis dataProvider="{student}"
                                      categoryField="Stream"
                                      title="Stream"/>
                 </mx:horizontalAxis>
                 <mx:series>
                     <mx:ColumnSeries id="cs1"
                                      xField="Stream"
                                      yField="Girls"
                                      displayName="Girls"
                                      fill="{s1}"
                                      showDataEffect="{effectDP.selectedItem.data}"/>
                 </mx:series>
             </mx:ColumnChart>
             <s:HGroup>
                 <mx:Legend dataProvider="{cchart}"
                            direction="horizontal"/>
                 <s:VGroup>
                 </s:VGroup>
             </s:HGroup>
         </s:Panel>
    </s:Application>

    Thank you very much for you answer.
    I have solved this problem using Itemrenderer.
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    autoDrawBackground="true">
        <mx:Label htmlText="{data.text}"/>
    </s:ItemRenderer>
    and in chart I have used labelRenderer. in label I have used  &lt; for ( < ) sign.
    <mx:horizontalAxis>
                    <mx:CategoryAxis
                        dataProvider="{expenses}"
                        categoryField="Month"
                        title="FY 2006"
                        id="a1"
                        />
                </mx:horizontalAxis>
                <mx:horizontalAxisRenderers>
                    <mx:AxisRenderer labelRotation="45" axis="{a1}" labelRenderer="chase.BarChartLabelRenderer"/>
                </mx:horizontalAxisRenderers>
                <mx:verticalAxisRenderers>
                    <mx:AxisRenderer labelRotation="45" axis="{a1}" labelRenderer="chase.BarChartLabelRenderer"/>
                </mx:verticalAxisRenderers>

  • Flex swf cache issue in IE

    Hi,
    We are facing an important issue with the IE cache of the swf file. Could you please help us?
    For example, we built and put calendar.html & calendar.swf on server. We don't want users to download a 800 KB large swf file everytime when they access the web page, especially at a lower speed of network. However, although we coded some IE cache setting in calendar.html, like response.setHeader("Cache-Control" ...., IE still download the file from server sometimes instead of using the local one in cache.
    One of reasons is the cache size. If you set the size to 50 MB by default, it will be full very soon after you view some websites. Then IE will clean part of the cache. The cached swf file might be cleaned, or might not be. We never know. If it's cleaned and you access calendar.html, you will found out IE downloads the file again from server. To avoid this, users can enlarge the cache size, but the downloading still happen sometimes. Also, letting user enlarge the cache may not be a good and final solution.
    We want to force IE to use the local file everytime. If we updated the file, we want IE to download it in this case, and download it only once.
    So, we want to ask if you also have faced this kind of issue and how you did it? Please follow this topic or anyone is welcomed to send an email to me at [email protected]
    Thank you very much.

    Hmmm
    Not sure about this one.  However to reduce download time have you tried using Runtime Shared Libraries.  This allows the Flash Player to cache the Flex Framework.  This means the first time someone gets a flex app it will take a bit longer to load, but it will cache the framework, then next time the load is quicker.
    Its the Flash Player that caches the frameowrk also, so the browser can;t clear it.
    That might help
    Andrew

  • Flex Builder 3 Issues

    I apologize in advance for my cynicism, but since I received
    cricket sounds from Adobe Support I figured I would give this a go.
    I downloaded and installed the trial version of Flex Builder 3, but
    when trying to click on any of the links in the start page
    (tutorials, etc..) it displays the following error: Windows - No
    Disk
    Then it requires me to kill both the FlexBuilder.exe and the
    associated javaw.exe using task manager to get rid of the error. I
    found a similar issue in the knowledge base, but it was for people
    who installed from a DVD on Vista.
    I installed to the default location on XP SP2, with all the
    latest patches. I've un-installed/reinstalled like the knowledge
    base entry states as the solution, but to no avail.
    If anyone can provide insight or a solution, I would
    appreciate it!
    Thanks in advance,
    Rob

    I am not sure if this would work but worth a try.
    1. Try to launch your flex builder with -clean. (Using
    Command line)
    Go to Program Files-> Adobe->Flex Builder 3
    Run Flexbuilder.exe -clean
    Also if it doesn't work try reinstall but after uninstalling
    make sure Program Files-> Adobe->Flex Builder 3 is empty.
    Also please log a bug at
    http://bugs.adobe.com/flex
    HTH,
    Gaurav

  • Flex 15 brightness issue.

    After upgrade the latest Windows 8.1 update (End Apr), the brightness adjustment are not function any more.
    The brightness key at the keyboard and setting in the windows also not working.
    Kindly help to solve this issue. 
    Thanks

    Have you updated all your drivers after upgrading to Windows 8.1?
    You can find drivers for your model here: http://mobilesupport.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/ideapad-flex-15-note...
    Jonas
    Microsoft MVP: Windows Consumer Expert
    Yoga Tablet 2 10 || ThinkPad X1 Carbon (20A7007MPH) || ThinkPad Helix (3698-6EU) || IdeaCentre B540
    Twitter: @jonashendrickx

  • FLEX Flashpaper sizing issue

    I have down loaded the demo of Flashpaper2 and am able to
    convert pdf documents to SWF. When I convert a pdf document that is
    8.5 x 11 then load it into FLEX the initial size of the swf opened
    in FLEX is not taking up the same size every time. I tried to
    resize it with benSum.setSize(h,w) but it still does not work
    correctly.
    code example:
    <mx:VBox id="flashPaper"
    label="{ewn.planDetails.benefitSummaryTitle}" height="100%"
    width="100%" hScrollPolicy="off" vScrollPolicy="off">
    <mx:VBox width="100%">
    <mx:HBox creationComplete="loadBenSum()">
    <mx:Loader id="benSum" autoLoad="false"
    scaleContent="true"/>
    </mx:HBox>
    </mx:VBox>
    </mx:VBox>
    benSum.setSize(3000,3000);
    One of the SWF displays the correct size then the next does
    not. Is there a way to define the size of the swf?

    well i dont knoe exactly whether the size of swf's can be
    resized,,
    but definately size of flashpaper can be done..
    see the part of the code am posting below, u might get some
    logic for ur program.
    its about a issue with loading a swf in flex with the
    <mx:Loader> tag.
    Loading ColdFusion Generated Flash Paper into a Flex
    application.
    All you realy have to do is to pass the coldfusion page on
    the contentPath on the <mx:Loader> tag like this
    <mx:Loader id="myLoader1" contentPath="
    http://localhost/cfdocexample.cfm"/>
    The left hand panel is calling a cfdocument while the right
    hand panel is calling a cfreport
    One note however, you cannot use the print functionality at
    the moment.
    code part (flashpaperTest.mxml)
    <mx:Application xmlns:mx="
    http://www.macromedia.com/2003/mxml"
    xmlns="*" creationComplete="resizeFlashPapers()">
    <mx:Script>
    <![CDATA[
    function resizeFlashPapers()
    resizeFlashPaper1();
    resizeFlashPaper2();
    function resizeFlashPaper1()
    var flashPaper1 = myLoader1.content.getIFlashPaper();
    if (flashPaper1 == undefined ||
    flashPaper1.setSize("480","500") == false)
    doLater(this, "resizeFlashPaper1");
    function resizeFlashPaper2()
    var flashPaper2 = myLoader2.content.getIFlashPaper();
    if (flashPaper2 == undefined ||
    flashPaper2.setSize("480","500") == false)
    doLater(this, "resizeFlashPaper2");
    ]]>
    </mx:Script>
    <mx:HDividedBox width="100%" height="100%" >
    <mx
    anel id="panel1" title="Flash Paper through
    cfdocument" width="50%" height="100%" >
    <mx:Loader id="myLoader1" contentPath="
    http://localhost/cfdocexample.cfm"/>
    </mx
    anel>
    <mx
    anel id="panel2" title="Flash Paper through cfreport"
    width="50%" height="100%" >
    <mx:Loader id="myLoader2" contentPath="
    http://localhost/cfrepexample.cfm"/>
    </mx
    anel>
    </mx:HDividedBox>
    </mx:Application>
    --------------------

  • Flex/Spring UserDetailsService issue

    I'm fairly new to both Flex and Spring.  I can get them to communicate and have no issues there, I can even authenticate a user from lines in my database.  I've implemented my own UserDetailsService which returns my own custom UserDetails object with some extra user information in it.  This is where my problem is.
    I need to login with more information than just a username and password.  I need to also check to make sure that they also put in the proper first name and last name.  I can't seem to figure out where to validate that.  I'm doing the standard:
    ro.channelSet.login(number.text, password.text)
    but I can't pass anything else into it.
    Any suggestions?

    This can be done by using <mx:Reparent/> tag.

  • Flex file upload issue with large image files

         Hello, I have created a sample flex application to upload an image and also created java servlet to upload and save image and deployed in local tomcat server. I am testing the application in LAN. I am able to upload small as well as large image file(1Mb) from some PCs but in some other PCs I am getting IOError while uploading large image files however it is working fine for small images. Image uploading is hanging after 10%-20% and throwing IOError. *Surprizgly it is working Ok with XP systems and causeing issues with Windows7 systems*.
    Plz give me any idea to get a solution.
    In Tomcat server side it is giving following error:
    request: org.apache.catalina.connector.RequestFacade@c19694
    org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:371)
            at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.ja va:126)
            at flex.servlets.UploadImage.doPost(UploadImage.java:47)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
            at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:594)
            at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStre am.java:982)
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:8 86)
            at java.io.InputStream.read(InputStream.java:101)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:96)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:66)
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:366)
    UploadImage.java:
    package flex.servlets;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.util.regex.*;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.*;
    import sun.reflect.ReflectionFactory.GetReflectionFactoryAction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class UploadImage extends HttpServlet{
             * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
             *      response)
            protected void doGet(HttpServletRequest request,
                            HttpServletResponse response) throws ServletException, IOException {
                    // TODO Auto-generated method stub
                    doPost(request, response);
            public void doPost(HttpServletRequest request,
                            HttpServletResponse response)
            throws ServletException, IOException {
                    PrintWriter out = response.getWriter();
                    boolean isMultipart = ServletFileUpload.isMultipartContent(
                                    request);
                    System.out.println("request: "+request);
                    if (!isMultipart) {
                            System.out.println("File Not Uploaded");
                    } else {
                            FileItemFactory factory = new DiskFileItemFactory();
                            ServletFileUpload upload = new ServletFileUpload(factory);
                            List items = null;
                            try {
                                    items = upload.parseRequest(request);
                                    System.out.println("items: "+items);
                            } catch (FileUploadException e) {
                                    e.printStackTrace();
                            Iterator itr = items.iterator();
                            while (itr.hasNext()) {
                                    FileItem item = (FileItem) itr.next();
                                    if (item.isFormField()){
                                            String name = item.getFieldName();
                                            System.out.println("name: "+name);
                                            String value = item.getString();
                                            System.out.println("value: "+value);
                                    } else {
                                            try {
                                                    String itemName = item.getName();
                                                    Random generator = new Random();
                                                    int r = Math.abs(generator.nextInt());
                                                    String reg = "[.*]";
                                                    String replacingtext = "";
                                                    System.out.println("Text before replacing is:-" +
                                                                    itemName);
                                                    Pattern pattern = Pattern.compile(reg);
                                                    Matcher matcher = pattern.matcher(itemName);
                                                    StringBuffer buffer = new StringBuffer();
                                                    while (matcher.find()) {
                                                            matcher.appendReplacement(buffer, replacingtext);
                                                    int IndexOf = itemName.indexOf(".");
                                                    String domainName = itemName.substring(IndexOf);
                                                    System.out.println("domainName: "+domainName);
                                                    String finalimage = buffer.toString()+"_"+r+domainName;
                                                    System.out.println("Final Image==="+finalimage);
                                                    File savedFile = new File(getServletContext().getRealPath("assets/images/")+"/LowesFloorPlan.png");
                                                    //File savedFile = new File("D:/apache-tomcat-6.0.35/webapps/ROOT/example/"+"\\test.jpeg");
                                                    item.write(savedFile);
                                                    out.println("<html>");
                                                    out.println("<body>");
                                                    out.println("<table><tr><td>");
                                                    out.println("");
                                                    out.println("</td></tr></table>");
                                                    try {
                                                            out.println("image inserted successfully");
                                                            out.println("</body>");
                                                            out.println("</html>");  
                                                    } catch (Exception e) {
                                                            System.out.println(e.getMessage());
                                                    } finally {
                                            } catch (Exception e) {
                                                    e.printStackTrace();

    It is only coming in Windows 7 systems and the root of this problem is SSL certificate.
    Workaround for this:
    Open application in IE and click on certificate error link at address bar . Click install certificate and you are done..
    happy programming.
    Thanks
    DevSachin

  • Flex 2-14 issues

    Dear Users,
    I strongly advise you not to consider buying the Lenovo model Flex 2-14 or any Lenovo machines at all.
    I bought one recently and the screen has yellow spots in the corners and on the sides from day 1. Also the laptop rattles thanks to its flexibility I guess. The annoying rattling noise just drives one crazy.
    I thought these problems will dissapear, but I waited in vain, they are just getting worse. Well, I am covered by warranty, so I thought no problem, even though I am out of the US where I purchased it online. But calling the customer service and struggling to get the right person, who eventually refuses to fulfill the Lenovo warranty obligations on the basis of the fact the receipent's first name is different from mine (though we do have the same family name, as we are family). Then after some time, the person agrees to consider the possibility of repair. And now they ask million questions and put different conditions to delay the return for repair, and just to make us so sick and tired of them, that we don't want to call them anymore, especially given that we don't have time to waste on the telephone. So the Customer service does everything just to avoid accepting for repair the defective laptop they sold us. I am deeply dissatisfied with the quality of Lenovo products and with the attitude of their staff.
    Moderator comment: Post split out of the Knowledgebase and a new topic created. Subject edited to match. Was: Re: New forum feature: Search before posting new topics

    hi Swtess,
    Welcome to the Forums.
    Depending on the SKU, the Flex 2-14 can be powered by either an 802.11AC card and some are onlg b/n (see page 79 of the HMM for more info).
     - Link to picture
    A b/n or b/g/n wireless card will not be able to detect a 5Ghz wireless access point as these type of cards can only detect and connect to a 2.4Ghz band.
    More info:
    Wireless: Determine if Computer Has 5GHz Network Band Capability (Windows)
    Laptop wireless networking options: 1x1 vs 2x2
    As for the battery, this review shows that the battery can up to the following scenarios:
    If you're getting 2hrs during WiFi surfing, try the following:
    1. Set the power plan to Power Saver and screen brightness to minimum.
    2. If you have devices plugged-in to the USB port, temporarily unplug them and observe
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • Installing itunes then says network source is unavailable

    i downloaded itunes before and all of a sudden it stopped working so i uninstalled it and now when im trying to re install it it says the feature im trying to use is on a network resource that is unavailable and tells me to find a folder containing i

  • Project implementation with Hibernate

    All of you guys who are using hibernate for data access in JSC2 have implemented it via another framework like "spring"? Anyone using hibernate "standalone"? I'm about to start the servlet filter for the open-session-in view pattern, but I would like

  • Sequencing in iPhoto

    I'm relatively new to Snow Leopard, and iPhoto 8 (8.1.1) and I don't see what I need in the other posts. I really miss the ability I had in iPhoto in Tiger to show all photos by sorting them on their titles, without the "events" category. The program

  • The process of ouputing PAL

    I filmed a feature (145 min) on a Panasonic HVX200 HD. My project is 60 fps, to allow for max info for conversion to film. All I've been doing so far is exporting it to Compressor to burn a dvd copy. Now I'm sending a dvd to Europe for marketing and

  • Different IDOC's

    Hi,     Could any one name some IDOC's/RFC's and where they were used in the Realtime Scenarios. Full points will be awarded.