[flexcoders] Need Help

2013-05-07 Thread Mohammad Usman Ashraf


Hi everyone. 

Can anyone provide me solution for this facing  problem: I am using 
dropdownlist in flash 4.6 , where I have applied custom skin. custom skin 
contained on button , label, Datagroup. So, I want to change the color of 
specific item from list, as given option is only to change 
contantBackgroundColor but not contant color. Help me please If anyone have its 
solution. 

---
Best Regard:


Muhammad Usman Ashraf.
Sr.Software Engineer
Cell# +92-312-7070895        
Skype : m.usmanashraf
pk.linkedin.com/in/usmanashrafpk


Re: [flexcoders] Need Help

2013-05-07 Thread Alex Harui
I think you are supposed to create a custom item renderer for the list where 
the item renderer knows to display differently for that one item.


On 5/7/13 8:14 AM, Mohammad Usman Ashraf m.usmanash...@yahoo.com wrote:







Hi everyone.

Can anyone provide me solution for this facing  problem: I am using 
dropdownlist in flash 4.6 , where I have applied custom skin. custom skin 
contained on button , label, Datagroup. So, I want to change the color of 
specific item from list, as given option is only to change 
contantBackgroundColor but not contant color. Help me please If anyone have its 
solution.

---
Best Regard:

Muhammad Usman Ashraf.
Sr.Software Engineer
Cell# +92-312-7070895
Skype : m.usmanashraf
pk.linkedin.com/in/usmanashrafpk http://pk.linkedin.com/in/usmanashrafpk






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Need Help

2013-05-07 Thread anas naeem
Hey Usman, Anas here  hope you are doing great I also agree to Alex's solution 
for your problem.
Thanks and Regards
Anas.Parallel-Programming Evangelist.

--- On Tue, 5/7/13, Mohammad Usman Ashraf m.usmanash...@yahoo.com wrote:

From: Mohammad Usman Ashraf m.usmanash...@yahoo.com
Subject: [flexcoders] Need Help
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Date: Tuesday, May 7, 2013, 8:14 PM
















 



  



  
  
  
Hi everyone. 
Can anyone provide me solution for this facing  problem: I am using 
dropdownlist in flash 4.6 , where I have applied custom skin. custom skin 
contained on button , label, Datagroup. So, I want to change the color of 
specific item from list, as given option is only to change 
contantBackgroundColor but not contant color. Help me please If anyone have its 
solution. 
---Best Regard:Muhammad Usman Ashraf.Sr.Software EngineerCell# +92-312-7070895  
      Skype : m.usmanashrafpk.linkedin.com/in/usmanashrafpk



 









  










Re: [flexcoders] Need Help - Loader changes the pixel value after loading as bitmap

2012-08-28 Thread Alex Harui
I’m missing what the other way of loading is and how you are getting its pixels.


On 8/27/12 3:15 AM, RAJ raaj_...@yahoo.com wrote:






Hi all ,

My aim is to load two images and compare its color information pixel by pixel. 
For this purpose i used flash.display.Loader class to load the images, and 
once load completes i'll typecast the loaded content to bitmap object 
(loaderObj.content as Bitmap). Finally i'll get the bitmapdata from the bitmap 
of both the images and compare the pixels.

Now the problem is the color information of the original image and the loaded 
bitmap is slightly different. For example the color value of pixels of the 
attached image image1.jpg is 0xDD for complete 1366x768. And for the same 
image when it is loaded as bitmap the color value of pixels are different from 
the original value (For some pixels only, not all pixels are different).

I've given the source code below.

Please can anyone help me out how to resolve this issue?

?xml version=1.0 encoding=utf-8?
s:WindowedApplication xmlns:fx=http://ns.adobe.com/mxml/2009 
http://ns.adobe.com/mxml/2009 
 
xmlns:s=library://ns.adobe.com/flex/spark
 
xmlns:mx=library://ns.adobe.com/flex/mx
   ! ;  width=1376 
height=800
 showStatusBar=false

 fx:Declarations
!-- Place non-visual elements (e.g., services, value 
objects) here --
  /fx:Declarations

 fx:Script
![CDATA[
  private function loadBtn_ClickHandler():void{
var file:File = new 
File(File.desktopDirectory.nativePath);
  nbs! p; 
file.addEventListener(Event.SELECT, onFileSelectionHandler);
file.browseForOpen(Open an image,[new 
FileFilter(Images, *.jpg;*.gif;*.png;*.jpeg)]);
  }

 private function 
onFileSelectionHandler(ev:Event):void{
var loadedFilePath:String = (ev.target 
as File).nativePath;
loadImageAsBitmap(loadedFilePath);
  ! }

 /* Load image as bitmap using Loader */
  private function 
loadImageAsBitmap(url:String):void 
http://tech.groups.yahoo.com/group/flexcoders/String):void {
var loader:Loader = new Loader();
 ! nbsp;  // load content as bitmap

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
onContentLoadComplete);

loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, 
onContentLoadFail);
  nbs! p; loader.load! (new URL 
Request(url));
  }

 private function 
onContentLoadComplete(ev:Event):void{
var loaderInfo:LoaderInfo = ev.target 
as LoaderInfo;
var bitmap:Bitmap = loaderInfo.content 
as Bitmap;
 ! ;   printPixelValue(bitmap.bitmapData);
container_ID.addChild(bitmap);
  }

 private function 
onContentLoadFail(ioe:IOErrorEvent):void{
trace(Image Load Failed);
  }

 private function 
printPixelValue(bmData:BitmapData):void{
var initPixelValue:Number = -1;
//for (var countI:int = 0; countI  
bmData.height; countI++) {
nb! sp;   var countI:int = 1;
for (var countJ:int = 0; countJ  
bmData.width; countJ++) {
  var pixelValue:Number = 
bmData.getPixel32(countJ, countI);
! ;  ! nbsp;nb sp;  if(pixelValue 
!= initPixelValue){
initPixelValue = 
pixelValue;
// Print the pixel 
value only for one row
  ! ;  trace(Pixel 
Value at  + countI + x + countJ +  is:  + pixelValue);
  }
}
nbs! p;  ! trace( Pixel Value at  + 
countI + x + countJ +  is:  + pixelValue);
//}
  

[flexcoders] Need Help - Loader changes the pixel value after loading as bitmap

2012-08-27 Thread RAJ

Hi all  [:)] ,

My aim is to load two images and compare its color information pixel by
pixel. For this purpose i used flash.display.Loader class to load the
images, and once load completes i'll typecast the loaded content to
bitmap object (loaderObj.content as Bitmap). Finally i'll get the
bitmapdata from the bitmap of both the images and compare the pixels.

Now the problem is the color information of the original image and the
loaded bitmap is slightly different. For example the color value of
pixels of the attached image image1.jpg is 0xDD for complete
1366x768. And for the same image when it is loaded as bitmap the color
value of pixels are different from the original value (For some pixels
only, not all pixels are different).

I've given the source code below.

Please can anyone help me out how to resolve this issue?

?xml version=1.0 encoding=utf-8?
s:WindowedApplication xmlns:fx=http://ns.adobe.com/mxml/2009
http://ns.adobe.com/mxml/2009 
 
xmlns:s=library://ns.adobe.com/flex/spark
 
xmlns:mx=library://ns.adobe.com/flex/mx
  width=1376
height=800
 
showStatusBar=false

   fx:Declarations
 !-- Place non-visual elements (e.g., services,
value objects) here --
   /fx:Declarations

   fx:Script
 ![CDATA[
   private function
loadBtn_ClickHandler():void{
 var file:File = new
File(File.desktopDirectory.nativePath);

file.addEventListener(Event.SELECT, onFileSelectionHandler);
 file.browseForOpen(Open an
image,[new FileFilter(Images, *.jpg;*.gif;*.png;*.jpeg)]);
   }

   private function
onFileSelectionHandler(ev:Event):void{
 var loadedFilePath:String =
(ev.target as File).nativePath;

loadImageAsBitmap(loadedFilePath);
   }

   /* Load image as bitmap using Loader */
   private function
loadImageAsBitmap(url:String):void
http://tech.groups.yahoo.com/group/flexcoders/String):void {
 var loader:Loader = new
Loader();
 // load content as bitmap

loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onContentLoadComplete);

loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
onContentLoadFail);
 loader.load(new
URLRequest(url));
   }

   private function
onContentLoadComplete(ev:Event):void{
 var loaderInfo:LoaderInfo =
ev.target as LoaderInfo;
 var bitmap:Bitmap =
loaderInfo.content as Bitmap;

printPixelValue(bitmap.bitmapData);
 container_ID.addChild(bitmap);
   }

   private function
onContentLoadFail(ioe:IOErrorEvent):void{
 trace(Image Load Failed);
   }

   private function
printPixelValue(bmData:BitmapData):void{
 var initPixelValue:Number = -1;
 //for (var countI:int = 0;
countI  bmData.height; countI++) {
 var countI:int = 1;
 for (var countJ:int = 0; countJ
 bmData.width; countJ++) {
   var pixelValue:Number
= bmData.getPixel32(countJ, countI);
   if(pixelValue !=
initPixelValue){

initPixelValue = pixelValue;
 // Print the
pixel value only for one row
 trace(Pixel
Value at  + countI + x + countJ +  is:  + pixelValue);
   }
 }
 trace(Pixel Value at  + countI
+ x + countJ +  is:  + pixelValue);
 //}
   }
 ]]
   /fx:Script

   s:Button id=loadBtn_ID label=Load!
click=loadBtn_ClickHandler()
 x=5 y=5 

[flexcoders] Need help dynamically modifying text displayed based on DB return

2012-01-30 Thread hermeszfineart

Part of the functionality in the gallery app ia am working on for my
wife is a popup window that displays information about the specific
painting or drawing.

I am trying to figure out how to do the following based on the value
returned from the DB for the imageStatus field:
1) Change the text displayed for the Price to the {imageStatus)if that
value is anything other than Available.
2) Change the color of the above text to RED if the {imageStatus) ==
Sold.



fx:Script![CDATA[

... //cut for brevity

[Bindable] public var imageTitle:String = {win.title};

[Bindable] public var imageStatus:String = {win.status};

[Bindable] public var imagePrice:String = {win.price};

[Bindable] public var displayPrice:String ;



... // cut for brevity

]] /fx:Script

s:Group

s:layout

s:VerticalLayout/

/s:layout

s:RichText id=style x=13 y=14 width=120 color=#C39F70
fontFamily=Times New Roman fontSize=18 text={imageStyle}/

s:RichText width=120 color=#C39F70 fontFamily=Times New Roman
fontSize=18 text={imageMedium}/

s:RichText id=dimensions width=112 color=#C39F70
fontFamily=Times New Roman fontSize=18 text={imageHeight} x
{imageWidth}/

s:RichText id=artPrice width=120 color=#C39F70 fontFamily=Times
New Roman fontSize=18 text={imagePrice} / !-- Currently
displaying the art's price --

/s:Group

I have tried several things with public functions, getters/setters, but
have gotten no where.

Could someone kindly point me in the right direction?

Thanks,

John



Re: [flexcoders] Need help dynamically modifying text displayed based on DB return

2012-01-30 Thread Haykel BEN JEMIA
I think the best way is to use states. Define the different states for your
component, e.g.

s:states
s:State name=available /
s:State name=sold /
s:State name=other /
/s:states

You have now to track changes to win.status and set the current state
accordingly, e.g. by listening to the property change event on win:

protected function win_propertyChangeHandler(event:PropertyChangeEvent):void
{
switch (event.property)
{
case status:
imageStatus = event.newValue;
switch (event.newValue)
{
case Available:
currentState = available;
break;
case Sold:
currentState = sold;
break;
default:
currentState = other;
break;
}
break;
}
}

and finally set the properties of the artPrice text based on the current
state:

s:RichText id=artPrice width=120 color=#00
color.sold=#C39F70 fontFamily=Times New Roman fontSize=18
text={imageStatus} text.available={imagePrice} /

I hope this helps.

Haykel Ben Jemia

Allmas
Web  Mobile Development
http://www.allmas-tn.com




On 30 January 2012 14:55, hermeszfineart hermeszfine...@comcast.net wrote:

 **


 Part of the functionality in the gallery app ia am working on for my wife
 is a popup window that displays information about the specific painting or
 drawing.

 I am trying to figure out how to do the following based on the value
 returned from the DB for the imageStatus field:
 1) Change the text displayed for the Price to the {imageStatus)if that
 value is anything other than Available.
 2) Change the color of the above text to RED if the {imageStatus) == Sold.



 fx:Script
 ![CDATA[

 ... //cut for brevity

 [*Bindable*] *public* *var* imageTitle:String = *{win.title}*;

 [*Bindable*] *public* *var* imageStatus:String = *{win.status}*;

 [*Bindable*] *public* *var* imagePrice:String = *{win.price}*;

 [
 *Bindable*] *public* *var* displayPrice:String ;



 ... // cut for brevity

 ]]
 /fx:Script

 s:Group

 s:layout

 s:VerticalLayout/

 /s:layout

 s:RichText id=style x=13 y=14 width=120 color=#C39F70
 fontFamily=Times New Roman fontSize=18 text={imageStyle}/

 s:RichText width=120 color=#C39F70 fontFamily=Times New Roman
 fontSize=18 text={imageMedium}/

 s:RichText id=dimensions width=112 color=#C39F70 fontFamily=Times
 New Roman fontSize=18 text={imageHeight} x {imageWidth}/

 s:RichText id=artPrice width=120 color=#C39F70 fontFamily=Times
 New Roman fontSize=18 text={imagePrice} / !-- Currently displaying
 the art's price --

 /s:Group

 I have tried several things with public functions, getters/setters, but
 have gotten no where.

 Could someone kindly point me in the right direction?

 Thanks,

 John
  



[flexcoders] Need help and Request Adobe To update Flash Builder Extensibility Documentation

2011-08-29 Thread dineshkumar_tm01
Hello All,
Looks the documentation on Adobe Flash Builder Extensibility API Reference has 
not been updated:( ..i can give many examples …. Here is the DesignModelPlugin 
Class and getEditableModelForFile method in flex uilder 3 
http://www.adobe.com/livedocs/flex/3/extensibility/DesignModel/com/adobe/flexbuilder/designmodel/DesignModelPlugin.html

This method is removed in flashbuilder 4 but the documentation is not 
updated.Flashbuilder Builder doc link 
http://help.adobe.com/en_US/flashbuilder/extensibility/DesignModel/com/adobe/flexbuilder/designmodel/DesignModelPlugin.html

Without the updated document i am not able to proceed my development. Actually 
i was migrating my plugins from flex builder to flash builder since some 
methods are removed i am not able to find alternate way to fix them for 
flashbuilder.Hope through this group i will get ideas,links to proceed my 
development as well as this will reach adobe to update with proper 
documentation .Guess every one can understand developers pain working in an 
organisation.

Thanks in Advance dinesh



[flexcoders] Need help making a Flex chart with an interactive legend

2010-08-30 Thread s_grollins
Hello,

I currently need help with making a chart in Flex with multiple series and a 
chart legend which is an interactive legend where upon selecting an item in the 
legend (which corresponds with a series in the chart) that specific series in 
the chart will slideDown or Up depending on whether it was just de-selected 
from the legend or re-selected.

Any help is greatly appreciated, thanks in advance.




[flexcoders] need help

2010-05-14 Thread Dante DMC
hi, i built a web using flex 3. but in some browser my web can't be
loaded unless i directly load the swf file (www.mydomain.com/index.swf
instead of www.mydomain.com). anyone ever had this problem? tks.


  

Re: [flexcoders] need help

2010-05-14 Thread Tom Chiverton
On Friday 14 May 2010 04:53:24 you wrote:
 hi, i built a web using flex 3. but in some browser 

Which ?

 my web can't be
 loaded unless i directly load the swf file (www.mydomain.com/index.swf
 instead of www.mydomain.com).

How are you embeding the SWF ?

-- 
Tom Chiverton
Helping to confidentially maximize CEOs as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] need help

2010-05-14 Thread Dante DMC
sorry, i wasn't accurate before. i meant i could access my web from home but 
not from the office unless i directly access my index.swf file.

i set my default page to be browsed as index.html. this file calls my 
javascript which in turn calls my index.swf. so it seems that there is a 
problem when accessing my javascript. supposedly my office net blocks 
javascript, but if it is true, how do i modify it since
it is being built automatically everytime i compile my app?

tks.

--- On Fri, 5/14/10, Tom Chiverton tom.chiver...@halliwells.com wrote:

From: Tom Chiverton tom.chiver...@halliwells.com
Subject: Re: [flexcoders] need help
To: flexcoders@yahoogroups.com
Date: Friday, May 14, 2010, 4:42 AM







 



  



  
  
  
On Friday 14 May 2010 04:53:24 you wrote:

 hi, i built a web using flex 3. but in some browser 



Which ?



 my web can't be

 loaded unless i directly load the swf file (www.mydomain. com/index. swf

 instead of www.mydomain. com). 



How are you embeding the SWF ?



-- 

Tom Chiverton

Helping to confidentially maximize CEOs as part of the IT team of the year 

2010, '09 and '08



  * * * * 

  

  This email is sent for and on behalf of Halliwells LLP.

  

  Halliwells LLP is a limited liability partnership registered 
in England and Wales under registered number OC307980 whose registered office 
address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 
3EB. A list of members is available for inspection at the registered office 
together with a list of those non members who are referred to as partners. We 
use the word ?partner? to refer to a member of the LLP, or an employee or 
consultant with equivalent standing and qualifications. Regulated by the 
Solicitors Regulation Authority.

  

  CONFIDENTIALITY

  

  This email is intended only for the use of the addressee 
named above and may be confidential or legally privileged. If you are not the 
addressee you must not read it and must not use any information contained in 
nor copy it nor inform any person other than Halliwells LLP or the addressee of 
its existence or contents. If you have received this email in error please 
delete it and notify Halliwells LLP IT Department on 0870 365 2500.

  

  For more information about Halliwells LLP visit 
www.Halliwells. com.







 





 



  






  

Re: [flexcoders] need help

2010-05-14 Thread Tom Chiverton
On Friday 14 May 2010 09:53:40 you wrote:
 i set my default page to be browsed as index.html. this file calls my
  javascript which in turn calls my index.swf. so it seems that there is a
  problem when accessing my javascript. supposedly my office net blocks
  javascript, but if it is true, how do i modify it since it is being built
  automatically everytime i compile my app?

You should probably look at the source and/or what files are transferred - how 
does your office 'block' JavaScript ? Is it a browser setting or at the 
firewall ?
What if you use a static embedding technique (object tags etc.) ?

-- 
Tom Chiverton
Helping to continually promote materials as part of the IT team of the year 
2010, '09 and '08/object



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Need Help Getting A Value Into My App Via Flex And Php

2010-04-24 Thread Haykel BEN JEMIA
Probably this has to do with the fact that you are setting the data type to
xml but not outputting valid xml. Try with something like:

echo responsenextIncrement$next_increment/nextIncrement/response;

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Fri, Apr 23, 2010 at 10:49 PM, James garymoorcroft_...@yahoo.co.ukwrote:



 I know this may not be the place to ask about php but I thought people may
 have came across a similar problem. Basically the data for my app is stored
 in a mysql database table and what I need to do is get the auto increment
 value of this table into my app via a http request. I'm trying to make a php
 file which gets this value and outputs this value as xml but I am awful at
 creating php to do such things and just get constant errors. Can anyone take
 a look at this and help me out to tweak it so it does what I want please?
 The table in question is called links and the field/row/column in the table
 I'm after is called linkid. It's the next autoincrement value of that row
 outputted as xml is what I want. Here's the php so far:-

 ?php

 header(Content-type: text/xml);

 $host = ;
 $user = ;
 $pass = ;
 $database = ;

 $linkID = mysql_connect($host, $user, $pass) or die(Could not connect to
 host.);
 mysql_select_db($database, $linkID) or die(Could not find database.);

 $tablename = links;
 $next_increment = 0;
 $qShowStatus = SHOW TABLE STATUS LIKE '$tablename';
 $qShowStatusResult = mysql_query($qShowStatus) or die ( Query failed:  .
 mysql_error() . br/ . $qShowStatus );

 $row = mysql_fetch_assoc($qShowStatusResult);
 $next_increment = $row['Auto_increment'];

 echo next increment number: [$next_increment];

 ?

  



[flexcoders] Need Help Getting A Value Into My App Via Flex And Php

2010-04-23 Thread James
I know this may not be the place to ask about php but I thought people may have 
came across a similar problem. Basically the data for my app is stored in a 
mysql database table and what I need to do is get the auto increment value of 
this table into my app via a http request. I'm trying to make a php file which 
gets this value and outputs this value as xml but I am awful at creating php to 
do such things and just get constant errors. Can anyone take a look at this and 
help me out to tweak it so it does what I want please? The table in question is 
called links and the field/row/column in the table I'm after is called linkid. 
It's the next autoincrement value of that row outputted as xml is what I want. 
Here's the php so far:-

?php 

header(Content-type: text/xml); 

$host = ; 
$user = ; 
$pass = ; 
$database = ; 

$linkID = mysql_connect($host, $user, $pass) or die(Could not connect to 
host.); 
mysql_select_db($database, $linkID) or die(Could not find database.); 

$tablename  = links;
$next_increment = 0;
$qShowStatus= SHOW TABLE STATUS LIKE '$tablename';
$qShowStatusResult  = mysql_query($qShowStatus) or die ( Query failed:  . 
mysql_error() . br/ . $qShowStatus );

$row = mysql_fetch_assoc($qShowStatusResult);
$next_increment = $row['Auto_increment'];

echo next increment number: [$next_increment]; 

? 



[flexcoders] Need Help With an App Which Produces Live Images

2010-02-13 Thread James
At the moment I have an application which is meant to produce live thumbnail 
images of websites. Currently how it does this is a html component (myhtml) 
loads websites via it's location property changing from website to website and 
upon fully loading of each site a snapshot is taken of the html component and 
saved as a bitmap and applied as the source of an image corresponding to that 
particular site (abcnewsimage and bbcnewsimage). However I now need to insert 
these snapshots within the 'icon' properties of 2 array collections 
(myTilelistAArrayCollection and myTilelistBArrayCollection) which act as 
dataproviders to populate 2 tilelists (mtTilelistA and myTilelistB).

Basically I need the same images to appear automatically within the tilelists 
the way they do in the 2 images as the snapshots are taken by applying the same 
bitmaps into the currently empty 'icon' properties of the 2 tilelists i.e. the 
icon of the ABC News Item of both array collections must be the same as the 
abcnewsimage and appear as it appears and the same for the BBC News Item icon 
being the same as the bbcnewsimage picture as that appears.

It should look like the images aare appearing in the tilelist at the same time 
as they are appearing in the regular images. What will I need to ut into the 
icon properties to do this?

I hope this makes sense and if anyone can help me out it would be much 
appreciated. :-)

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute verticalAlign=middle backgroundColor=white width=1024 
height=768

mx:Script
![CDATA[
import mx.graphics.ImageSnapshot;
import mx.collections.*;

private function takeSnapshot(event:Event) :void
{
var imageBitmapData:BitmapData = 
ImageSnapshot.captureBitmapData(myhtml) ;
switch(myhtml.location)
{
case http://abcnews.go.com/:
abcnewsimage.source = new Bitmap(imageBitmapData);
myhtml.location = http://news.bbc.co.uk/;;
break;
case http://news.bbc.co.uk/:
bbcnewsimage.source = new Bitmap(imageBitmapData);
break;
}
}

  private var myTilelistAArrayCollection:ArrayCollection = new 
ArrayCollection([
{id:ABC New Item, label:ABCNews, icon:},
{id:BBC News Item, label:BBC News, icon:}
 ]);
 
  private var myTilelistBArrayCollection:ArrayCollection = new 
ArrayCollection([
{id:ABC News Item, label:ABCNews, icon:},
{id:BBC News Item, label:BBC News, icon:}
 ]); 

]]
/mx:Script

mx:HBox x=10 y=10
mx:Image id=abcnewsimage width=100 height=100 
scaleContent=true/
mx:Image id=bbcnewsimage width=100 height=100 
scaleContent=true/
/mx:HBox

mx:HTML id=myhtml location=http://abcnews.com/; 
complete=takeSnapshot(event) width=250 height=250 
horizontalScrollPolicy=off verticalScrollPolicy=off  x=10 y=118/
 
mx:TileList x=268 y=118 width=294 height=250 id=myTilelistA 
dataProvider={myTilelistAArrayCollection} rowHeight=100 columnWidth=100/
 
mx:TileList x=570 y=118 width=294 height=250 id=myTilelistB 
dataProvider={myTilelistBArrayCollection} rowHeight=100 columnWidth=100/

/mx:WindowedApplication



[flexcoders] Need help refreshing datagrid - doesn't update in time if I use keyboard listner

2009-12-15 Thread luvfotography
Hi, I've got an eventListener listening for keyboard events and a  checkbox in 
a datagrid column, and after I select a checkbox and immediately hit a key, 
then the item selected is not picked up.
If I select a checkbox in the datagrid, then click outside the datagrid, then 
hit a key, then the item selected is recorded properly.
How Can I fix this?  

here is the code, to run the example, click on the two checkboxes, then 
immediatly press a key, only the first name is reported.

example here: http://elizabethcoda.com/datagridCheckbox.swf

code:
?xml version=1.0?
!-- itemRenderers\inline\CBInlineCellEditor.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
applicationComplete=init()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;

[Bindable]
private var myDP:ArrayCollection = new ArrayCollection([
{label1:Order #2314, contact:Marge, 
quant:3, solddate:new Date(2005, 0, 1), Sent:false},
{label1:Order #2315, contact:Bart, 
quant:3, solddate:new Date(2005, 0, 5), Sent:false}
]);
private function init():void {
addEventListener(KeyboardEvent.KEY_UP,showSelected);
}
private function sent(e:Event):void {
sent_ta.text = '';
for(var i:int = 0; i  myDP.length;i ++ ) {
if(myDP[i].Sent) {
sent_ta.text +=  sent to  + myDP[i].contact + 
'\n';
}
}
}
private function showSelected(event:KeyboardEvent):void {  
 sent_ta.text = '';
 for (var i:int=0; i  myDP.length; i++) {
if (myDP[i].Sent) { 
sent_ta.text +=  sent to  + 
myDP[i].contact + '\n';
}
}
   } 
]]
/mx:Script

mx:DataGrid id=myDG 
dataProvider={myDP} 
variableRowHeight=true 
width=500 height=250 
editable=true
mx:columns
mx:DataGridColumn dataField=label1 
headerText=Order # 
editable=false/
mx:DataGridColumn dataField=quant 
headerText=Quantity 
itemEditor=mx.controls.NumericStepper  
editorDataField=value/
mx:DataGridColumn dataField=solddate 
headerText=Date  
itemRenderer=mx.controls.DateField 
rendererIsEditor=true 
editorDataField=selectedDate/
mx:DataGridColumn dataField=contact /
mx:DataGridColumn dataField=Sent 
itemRenderer=mx.controls.CheckBox 
rendererIsEditor=true 
editorDataField=selected/
/mx:columns 
/mx:DataGrid  
mx:Button label=What's sent? click=sent(event)/
mx:TextArea id=sent_ta height=70/
/mx:Application



RE: [flexcoders] Need help refreshing datagrid - doesn't update in time if I use keyboard listner

2009-12-15 Thread Alex Harui
DG editing is session-based, Tab or focus out commits the data.  I'd probably 
commit the data on a change event from the CheckBox

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of luvfotography
Sent: Tuesday, December 15, 2009 1:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help refreshing datagrid - doesn't update in time if 
I use keyboard listner



Hi, I've got an eventListener listening for keyboard events and a checkbox in a 
datagrid column, and after I select a checkbox and immediately hit a key, then 
the item selected is not picked up.
If I select a checkbox in the datagrid, then click outside the datagrid, then 
hit a key, then the item selected is recorded properly.
How Can I fix this?

here is the code, to run the example, click on the two checkboxes, then 
immediatly press a key, only the first name is reported.

example here: http://elizabethcoda.com/datagridCheckbox.swf

code:
?xml version=1.0?
!-- itemRenderers\inline\CBInlineCellEditor.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
applicationComplete=init()

mx:Script
![CDATA[
import mx.collections.ArrayCollection;

[Bindable]
private var myDP:ArrayCollection = new ArrayCollection([
{label1:Order #2314, contact:Marge,
quant:3, solddate:new Date(2005, 0, 1), Sent:false},
{label1:Order #2315, contact:Bart,
quant:3, solddate:new Date(2005, 0, 5), Sent:false}
]);
private function init():void {
addEventListener(KeyboardEvent.KEY_UP,showSelected);
}
private function sent(e:Event):void {
sent_ta.text = '';
for(var i:int = 0; i  myDP.length;i ++ ) {
if(myDP[i].Sent) {
sent_ta.text +=  sent to  + myDP[i].contact + '\n';
}
}
}
private function showSelected(event:KeyboardEvent):void {
sent_ta.text = '';
for (var i:int=0; i  myDP.length; i++) {
if (myDP[i].Sent) {
sent_ta.text +=  sent to  + myDP[i].contact + '\n';
}
}
}
]]
/mx:Script

mx:DataGrid id=myDG
dataProvider={myDP}
variableRowHeight=true
width=500 height=250
editable=true
mx:columns
mx:DataGridColumn dataField=label1
headerText=Order #
editable=false/
mx:DataGridColumn dataField=quant
headerText=Quantity
itemEditor=mx.controls.NumericStepper
editorDataField=value/
mx:DataGridColumn dataField=solddate
headerText=Date
itemRenderer=mx.controls.DateField
rendererIsEditor=true
editorDataField=selectedDate/
mx:DataGridColumn dataField=contact /
mx:DataGridColumn dataField=Sent
itemRenderer=mx.controls.CheckBox
rendererIsEditor=true
editorDataField=selected/
/mx:columns 
/mx:DataGrid
mx:Button label=What's sent? click=sent(event)/
mx:TextArea id=sent_ta height=70/
/mx:Application



[flexcoders] Need Help in chart

2009-11-12 Thread heman babu
Hi,
    I am developing web based flex application, in which i need to plot a graph 
like Current VS speed, Voltage Vs Speed, Torque Vs speed in a single graph.The 
Current Vs Speed may have values like ( 1,20 rpm), ( 1.5,30 rpm),(5.5, 40 
rpm)..etc.. and the Voltage Vs Speed may have ( 10,30 rpm), ( 15,35 rpm),(25, 
50 rpm)..etc.. and the Torque Vs Speed may have ( 100,15 rpm), ( 150,25 
rpm),(180, 55 rpm)..etc..How can i plot this line chart.How can i do 
this?.Please suggest me some good ideas. Regards
Heman.


  

RE: [flexcoders] need help making a UITextInput update its numLines property

2009-10-25 Thread Alex Harui
Make sure UITextField's .width is set to some proportion of the UIComponent's 
explicitWidth.

However, I think numLines may not get updated until after render so you may 
need to use callLater to go back and truncate.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of DustinB
Sent: Saturday, October 24, 2009 12:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help making a UITextInput update its numLines 
property



hello Flexcoders!

I am stumped with a problem in my DataGrids itemRenderer.
I am using a regular DataGrid and my column has a renderer that extends 
UIComponent and not DataGridItemRenderer.

In my renderer is a UITextField that has wrapping turned on. The user can 
expand and reduce the width of the column, and as they do I have a function 
that truncates the text if there is not enough room in the column to display it 
in 4 lines or less within the visible space of the resized cell. I use the 
UITextField.numLines property as my indicator.

This works great when I expand the width of the column.

I doesn't work when I reduce the width of the column by making the text go 
from, say 2 lines, to 5 lines.

When I roll over the row, the UITextField updates its numLines property.

Any ideas about an event I can listen for on the DataGrid or ItemRenderer, or a 
method to call on the UITextInput to make it update the numLines property?

thanks!
Dustin



[flexcoders] need help making a UITextInput update its numLines property

2009-10-24 Thread DustinB
hello Flexcoders!

I am stumped with a problem in my DataGrids itemRenderer.
I am using a regular DataGrid and my column has a renderer that extends 
UIComponent and not DataGridItemRenderer.

In my renderer is a UITextField that has wrapping turned on. The user can 
expand and reduce the width of the column, and as they do I have a function 
that truncates the text if there is not enough room in the column to display it 
in 4 lines or less within the visible space of the resized cell. I use the 
UITextField.numLines property as my indicator.

This works great when I expand the width of the column.

I doesn't work when I reduce the width of the column by making the text go 
from, say 2 lines, to 5 lines.

When I roll over the row, the UITextField updates its numLines property. 

Any ideas about an event I can listen for on the DataGrid or ItemRenderer, or a 
method to call on the UITextInput to make it update the numLines property?

thanks!
Dustin



Re: [flexcoders] need help to print text file available on server

2009-08-03 Thread Steve Mercer
I would look at Merapi (http://www.merapiproject.net/) and/or Alchemy (http://labs.adobe.com/technologies/alchemy/ 
)


If the LAN printer has code available to print, Alchemy may be your  
best bet.



HTH


Steve


On Aug 2, 2009, at 3:40 AM, raja_s_patil wrote:


Hi,

If a text file is created on server through PHP
Can Flex application print it directly on client's
LAN printer ? If yes HOW ?

Can it print that in Fast DMP mode i.e. raw text printing to
dot matrix printers ? if not what alternative can be used ?
I am able to download it from server and save locally or
show it in another browser window/tab.

The user wants it to be printed directly from flex application
in fast DMP mode rather than using DOS commands
like copy filename.txt lpt1: cr
or any other local GUI program which can put raw output to windows
print queue but that is not acceptable.

Thanks and best regards.

Raja






[flexcoders] need help to print text file available on server

2009-08-02 Thread raja_s_patil
Hi,

If a text file is created on server through PHP
Can Flex application print it directly on client's
LAN printer ? If yes HOW ?

Can it print that in Fast DMP mode i.e. raw text printing to
dot matrix printers ? if not what alternative can be used ?
I am able to download it from server and save locally or
show it in another browser window/tab.

The user wants it to be printed directly from flex application
in fast DMP mode rather than using DOS commands 
like copy filename.txt lpt1: cr
or any other local GUI program which can put raw output to windows
print queue but that is not acceptable.

Thanks and best regards.

Raja




RE: [flexcoders] Need help Combobox label property

2009-07-29 Thread Tracy Spratt
Use labelFunction, but an alternative to a switch statement would be to use
an associative array (Object).

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mark Lapasa
Sent: Tuesday, July 28, 2009 3:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need help Combobox label property

 

  

look at combo boxes labelfunction
the function will then inspect the countrycode and you'll have a nasty 
switch statement that will output the correct country name

-mL

gan_sun2006 wrote:
 

 Hi,

 I am using combobox for which the bound data is coming from an 
 arraycollection. My arraycollection has two properties called 
 countryname(labelField) and countrycode. When i submit my page, the 
 countrycode from my combo is saved to the DB. During retrieval I am 
 given only countrycode and not countryname.

 How can I show the equivalent countryname as selectedItem in my 
 combobox? Presently I am looping through the arraycollection and 
 showing the equivalent countyname. Is there any other way to do it?

 Any help is highly appreciated...

 Regards,
 Ganesh Sundar R.

 

Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the
individual or entity named above and may be confidential. Should the reader
of this message not be the intended recipient, you are hereby notified that
any unauthorized dissemination, distribution or reproduction of this message
is strictly prohibited. If you have received this message in error, please
advise the sender immediately and destroy the e-mail.





[flexcoders] Need help fast: Mouse and ketboard event

2009-07-28 Thread vladakg85
Hi,

I have a list of buttons in my VBox (1,2,3,4,5,6...) and I can click with mouse 
on each of them. Now I need to make numeric keyboard to register click on some 
of this buttons. If I press 5 on numpad button on the screen must flash a 
little (like it is pressed for real with mouse). But I can't figure out how to 
do this, help please?

Thanks



[flexcoders] Need help Combobox label property

2009-07-28 Thread gan_sun2006
Hi,

I am using combobox for which the bound data is coming from an arraycollection. 
My arraycollection has two properties called countryname(labelField) and 
countrycode. When i submit my page, the countrycode from my combo is saved to 
the DB. During retrieval I am given only countrycode and not countryname.

How can I show the equivalent countryname as selectedItem in my combobox? 
Presently I am looping through the arraycollection and showing the equivalent 
countyname. Is there any other way to do it?

Any help is highly appreciated...

Regards,
Ganesh Sundar R.



Re: [flexcoders] Need help Combobox label property

2009-07-28 Thread Jeffry Houser


 If I understand correctly, you have a ComboBox with a dataProvider, 
and want to set the selectedIndex / selectedItem of that dataProvider 
knowing only piece of data (the CountryCode).  Is that correct?


Unfortunately, your approach is the way to do it using the built in 
Flex ComboBox. 

Our Flextras AutoCompleteComboBox implemented a selectedValue property, 
which allows you to do just that, though


http://www.flextras.com/?event=ProductHomeproductID=10

Does this answer the question? 



gan_sun2006 wrote:
 


Hi,

I am using combobox for which the bound data is coming from an 
arraycollection. My arraycollection has two properties called 
countryname(labelField) and countrycode. When i submit my page, the 
countrycode from my combo is saved to the DB. During retrieval I am 
given only countrycode and not countryname.


How can I show the equivalent countryname as selectedItem in my 
combobox? Presently I am looping through the arraycollection and 
showing the equivalent countyname. Is there any other way to do it?


Any help is highly appreciated...

Regards,
Ganesh Sundar R.




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Need help Combobox label property

2009-07-28 Thread Mark Lapasa
look at combo boxes labelfunction
the function will then inspect the countrycode and you'll have a nasty 
switch statement that will output the correct country name

-mL

gan_sun2006 wrote:
  

 Hi,

 I am using combobox for which the bound data is coming from an 
 arraycollection. My arraycollection has two properties called 
 countryname(labelField) and countrycode. When i submit my page, the 
 countrycode from my combo is saved to the DB. During retrieval I am 
 given only countrycode and not countryname.

 How can I show the equivalent countryname as selectedItem in my 
 combobox? Presently I am looping through the arraycollection and 
 showing the equivalent countyname. Is there any other way to do it?

 Any help is highly appreciated...

 Regards,
 Ganesh Sundar R.

 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



Re: [flexcoders] Need help Combobox label property

2009-07-28 Thread Jeffry Houser


I started to give him a similar answer, but then realized he may be 
talking about setting the selectedItem on the ComboBox.  He mentioned he 
already had a labelField which seems to be exactly what he needs for 
display purposes without a complicated switch statement. 


Ganesh, if neither answer helps you, could you elaborate on the problem?

Mark Lapasa wrote:
 


look at combo boxes labelfunction
the function will then inspect the countrycode and you'll have a nasty
switch statement that will output the correct country name

-mL

gan_sun2006 wrote:


 Hi,

 I am using combobox for which the bound data is coming from an
 arraycollection. My arraycollection has two properties called
 countryname(labelField) and countrycode. When i submit my page, the
 countrycode from my combo is saved to the DB. During retrieval I am
 given only countrycode and not countryname.

 How can I show the equivalent countryname as selectedItem in my
 combobox? Presently I am looping through the arraycollection and
 showing the equivalent countyname. Is there any other way to do it?

 Any help is highly appreciated...

 Regards,
 Ganesh Sundar R.



Notice of confidentiality:
The information contained in this e-mail is intended only for the use 
of the individual or entity named above and may be confidential. 
Should the reader of this message not be the intended recipient, you 
are hereby notified that any unauthorized dissemination, distribution 
or reproduction of this message is strictly prohibited. If you have 
received this message in error, please advise the sender immediately 
and destroy the e-mail.





--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Need help tranforming some XML

2009-06-22 Thread Ian Thomas
Oh *sigh* - mind the line breaks.

Ian

On Mon, Jun 22, 2009 at 6:25 PM, Ian Thomasi...@eirias.net wrote:
 Hi Jason,
  Stepping through it, it works when you break that long line of E4X
 into separate components.

 (For some reason people seem to want to write really long E4X
 statements - I'm not quite sure why...)

 Like this, your loop works.

 for each (var contentRowItem:XML in _contentXML..row)
 {
   var moduleName:String = contentRowItem.Module;
   var topicXML:XML = new XML(topic /);
   topicx...@title = contentRowItem.LinkTitle;
   // This e4x creates an XMLList, so pull off the first entry
   var module:XML=finalXML.module.(@title == moduleName)[0];
   // Likewise
   var 
 topics:XML=module..subsection.(@title==contentRowItem.Subsection).topics[0];
   topics.appendChild(topicXML);
 }

 However - I'd include a bit of error checking for those XMLLists...

 for each (var contentRowItem:XML in _contentXML..row)
 {
   var moduleName:String = contentRowItem.Module;
   var topicXML:XML = new XML(topic /);
   topicx...@title = contentRowItem.LinkTitle;
   var modulesList:XMLList=finalXML.module.(@title == moduleName);
   if (modulesList.length()!=1)
     throw new Error(Can't find single module with title:+moduleName);

   var topicsList:XMLList=
 modulesList[0]..subsection.(@title==contentRowItem.Subsection).topics;
   if (topicsList.length()!=1)
     throw new Error(Can't find single subsection with
 title:+contentRowItem.Subsection);

   topicsList[0].appendChild(topicXML);
 }

 My general approach to this type of stuff is: break it down. Store and
 trace out each part of your e4x statement in a separate variable, bit
 by bit. That'll show you where it's going wrong.

 HTH,
   Ian

 On Mon, Jun 22, 2009 at 5:54 PM, Merrill,
 Jasonjason.merr...@bankofamerica.com wrote:


 Been wrestling with a script that transforms some XML from one schema to
 another for a while, and have most of the transformation working, but having
 a hard time wrapping my head around the last little bit.  Probably easy for
 some E4X XML gurus out there.  The original XML (built automatically by the
 sever-side app) is fairly flat and looks like this:

 (_contentXML)

 xml

   rows



     row

   ID1/ID

 ModuleiBuild/Module

 SubsectionAssumptions/Subsection

   TopicStarting iRequire/Topic

   OverviewTo start iRequire, you will first need to do a few things,
 like create a user name and password./Overview

   AuthorSanders, Larry/Author

   …etc.

     /row



     row

   ID2/ID

 ModuleiDeliver/Module

 SubsectionTechnical Constraints/Subsection

     …etc.

 What I need to do, is take it from that “flat” form, and based on the values
 of some of the nodes (Module,Subsection, and Topic values), make new
 more hierarchical XML that is based on the Module, Subsection, and Topic
 values in the XML, so that it looks like this:

 xml

 modules

         module title=iPlan orderID=5

         subsections

                 subsection title=Assumptions

                     topics

                         topic title=”Starting
 iRequire”

                             overview

                                 To start
 iRequire, you will first need to do a…

                             /overview

 authorSanders, Larry/author

                     /topics

             subsection title=Project Information/

             /subsections

         /module

         module title=”iDeliver” orderID=”6”

             subsections

                 subsection title=Assumptions/

             ..etc.

 I have it assembled this far, where the module nodes are created just fine,
 and the subsections are appearing under the right module with the right
 title attribute:

 (finalXML)

 xml

 modules

         module title=iPlan orderID=5

         subsections

                 subsection title=Assumptions

                     topics /

 /subsection

             subsection title=Project Information

                     topics /

 /subsection

             /subsections

         /module

         module title=”iDeliver” orderID=”6”

             subsections

                 subsection title=Assumptions

 topics /

 /subsection

             subsection title=Technical Constraints

                     topics /

 /subsection

 subsection title=Design Phase Documents

                     topics /

 /subsection

 subsection title=Implementation Phase Documents

 topics /

 /subsection

             /subsections

         /module

         …etc.

 

Re: [flexcoders] Need help tranforming some XML

2009-06-22 Thread Ian Thomas
Hi Jason,
  Stepping through it, it works when you break that long line of E4X
into separate components.

(For some reason people seem to want to write really long E4X
statements - I'm not quite sure why...)

Like this, your loop works.

for each (var contentRowItem:XML in _contentXML..row)
{
   var moduleName:String = contentRowItem.Module;
   var topicXML:XML = new XML(topic /);
   topicx...@title = contentRowItem.LinkTitle;
   // This e4x creates an XMLList, so pull off the first entry
   var module:XML=finalXML.module.(@title == moduleName)[0];
   // Likewise
   var 
topics:XML=module..subsection.(@title==contentRowItem.Subsection).topics[0];
   topics.appendChild(topicXML);
}

However - I'd include a bit of error checking for those XMLLists...

for each (var contentRowItem:XML in _contentXML..row)
{
   var moduleName:String = contentRowItem.Module;
   var topicXML:XML = new XML(topic /);
   topicx...@title = contentRowItem.LinkTitle;
   var modulesList:XMLList=finalXML.module.(@title == moduleName);
   if (modulesList.length()!=1)
 throw new Error(Can't find single module with title:+moduleName);

   var topicsList:XMLList=
modulesList[0]..subsection.(@title==contentRowItem.Subsection).topics;
   if (topicsList.length()!=1)
 throw new Error(Can't find single subsection with
title:+contentRowItem.Subsection);

   topicsList[0].appendChild(topicXML);
}

My general approach to this type of stuff is: break it down. Store and
trace out each part of your e4x statement in a separate variable, bit
by bit. That'll show you where it's going wrong.

HTH,
   Ian

On Mon, Jun 22, 2009 at 5:54 PM, Merrill,
Jasonjason.merr...@bankofamerica.com wrote:


 Been wrestling with a script that transforms some XML from one schema to
 another for a while, and have most of the transformation working, but having
 a hard time wrapping my head around the last little bit.  Probably easy for
 some E4X XML gurus out there.  The original XML (built automatically by the
 sever-side app) is fairly flat and looks like this:

 (_contentXML)

 xml

   rows



     row

   ID1/ID

 ModuleiBuild/Module

 SubsectionAssumptions/Subsection

   TopicStarting iRequire/Topic

   OverviewTo start iRequire, you will first need to do a few things,
 like create a user name and password./Overview

   AuthorSanders, Larry/Author

   …etc.

     /row



     row

   ID2/ID

 ModuleiDeliver/Module

 SubsectionTechnical Constraints/Subsection

     …etc.

 What I need to do, is take it from that “flat” form, and based on the values
 of some of the nodes (Module,Subsection, and Topic values), make new
 more hierarchical XML that is based on the Module, Subsection, and Topic
 values in the XML, so that it looks like this:

 xml

 modules

         module title=iPlan orderID=5

         subsections

                 subsection title=Assumptions

                     topics

                         topic title=”Starting
 iRequire”

                             overview

                                 To start
 iRequire, you will first need to do a…

                             /overview

 authorSanders, Larry/author

                     /topics

             subsection title=Project Information/

             /subsections

         /module

         module title=”iDeliver” orderID=”6”

             subsections

                 subsection title=Assumptions/

             ..etc.

 I have it assembled this far, where the module nodes are created just fine,
 and the subsections are appearing under the right module with the right
 title attribute:

 (finalXML)

 xml

 modules

         module title=iPlan orderID=5

         subsections

                 subsection title=Assumptions

                     topics /

 /subsection

             subsection title=Project Information

                     topics /

 /subsection

             /subsections

         /module

         module title=”iDeliver” orderID=”6”

             subsections

                 subsection title=Assumptions

 topics /

 /subsection

             subsection title=Technical Constraints

                     topics /

 /subsection

 subsection title=Design Phase Documents

                     topics /

 /subsection

 subsection title=Implementation Phase Documents

 topics /

 /subsection

             /subsections

         /module

         …etc.

 But what I can’t seem to get is that last part of how to insert the right
 topic data under each topics node (Overview, ID, 

RE: [flexcoders] Need help tranforming some XML

2009-06-22 Thread Tracy Spratt
... break that long line of E4X into separate components...
I am with you here.  Do it one step at a time and check each step with a
trace(xml.toXMLString()).  If you really like concise, hard to read code,
you can squash it back together once you get it working.  

Tracy Spratt,
Lariat Services, development services available

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ian Thomas
Sent: Monday, June 22, 2009 1:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need help tranforming some XML

Hi Jason,
  Stepping through it, it works when you break that long line of E4X
into separate components.

(For some reason people seem to want to write really long E4X
statements - I'm not quite sure why...)

Like this, your loop works.

for each (var contentRowItem:XML in _contentXML..row)
{
   var moduleName:String = contentRowItem.Module;
   var topicXML:XML = new XML(topic /);
   topicx...@title = contentRowItem.LinkTitle;
   // This e4x creates an XMLList, so pull off the first entry
   var module:XML=finalXML.module.(@title == moduleName)[0];
   // Likewise
   var
topics:XML=module..subsection.(@title==contentRowItem.Subsection).topics[0];
   topics.appendChild(topicXML);
}

However - I'd include a bit of error checking for those XMLLists...

for each (var contentRowItem:XML in _contentXML..row)
{
   var moduleName:String = contentRowItem.Module;
   var topicXML:XML = new XML(topic /);
   topicx...@title = contentRowItem.LinkTitle;
   var modulesList:XMLList=finalXML.module.(@title == moduleName);
   if (modulesList.length()!=1)
 throw new Error(Can't find single module with title:+moduleName);

   var topicsList:XMLList=
modulesList[0]..subsection.(@title==contentRowItem.Subsection).topics;
   if (topicsList.length()!=1)
 throw new Error(Can't find single subsection with
title:+contentRowItem.Subsection);

   topicsList[0].appendChild(topicXML);
}

My general approach to this type of stuff is: break it down. Store and
trace out each part of your e4x statement in a separate variable, bit
by bit. That'll show you where it's going wrong.

HTH,
   Ian

On Mon, Jun 22, 2009 at 5:54 PM, Merrill,
Jasonjason.merr...@bankofamerica.com wrote:


 Been wrestling with a script that transforms some XML from one schema to
 another for a while, and have most of the transformation working, but
having
 a hard time wrapping my head around the last little bit.  Probably easy
for
 some E4X XML gurus out there.  The original XML (built automatically by
the
 sever-side app) is fairly flat and looks like this:

 (_contentXML)

 xml

   rows



     row

   ID1/ID

 ModuleiBuild/Module

 SubsectionAssumptions/Subsection

   TopicStarting iRequire/Topic

   OverviewTo start iRequire, you will first need to do a few things,
 like create a user name and password./Overview

   AuthorSanders, Larry/Author

   …etc.

     /row



     row

   ID2/ID

 ModuleiDeliver/Module

 SubsectionTechnical Constraints/Subsection

     …etc.

 What I need to do, is take it from that “flat” form, and based on the
values
 of some of the nodes (Module,Subsection, and Topic values), make new
 more hierarchical XML that is based on the Module, Subsection, and Topic
 values in the XML, so that it looks like this:

 xml

 modules

         module title=iPlan orderID=5

         subsections

                 subsection title=Assumptions

                     topics

                         topic title=”Starting
 iRequire”

                             overview

                                 To start
 iRequire, you will first need to do a…

                             /overview

 authorSanders, Larry/author

                     /topics

             subsection title=Project Information/

             /subsections

         /module

         module title=”iDeliver” orderID=”6”

             subsections

                 subsection title=Assumptions/

             ..etc.

 I have it assembled this far, where the module nodes are created just
fine,
 and the subsections are appearing under the right module with the right
 title attribute:

 (finalXML)

 xml

 modules

         module title=iPlan orderID=5

         subsections

                 subsection title=Assumptions

                     topics /

 /subsection

             subsection title=Project Information

                     topics /

 /subsection

             /subsections

         /module

         module title=”iDeliver” orderID=”6”

             subsections

[flexcoders] Need help writing alorithm

2009-05-29 Thread fumeng5
Hi,

I'm looking for help writing an algorithm in a filter function I am using. 
Here's the situation: Based on a page number and a number of records per page, 
I want to return all indexes that fall within a certain range. There are 4 
records per page. 

For example;

- page 1 will return indexes 0-4
- page 2 will return indexes 5 - 9
- page 3 will return indexes 10 - 14
etc, etc...

So, here are the vars:

var index:int = myCollection.getItemIndex( item );
var recordsPerPage:int = 4;

It's embarrassing, but this is what I have so far

if( page = index  (page * page + recordsPerPage) )
return true

Can anyone offer some helpful insight, please? 

Thank you for any help. 


   



RE: [flexcoders] Need help writing alorithm

2009-05-29 Thread Kenneth Sutherland
Not sure I'm getting 100% what you're doing but hopefully this will help
you.

For page X you would do:

Min index = ( X - 1 ) * number of records per page

Max index = Min + (number of records per page - 1)

So page 1 gives you:

Min index is -(1 - 1) * 4 = 0;

Max index is - 0 + (4 - 1 ) = 3;

 

Page 4 gives you:

Min index is -(4 - 1) * 4 = 12;

Max index is - 12 + (4 - 1 ) = 15;

 

To get a page number from an index do this:

Math.floor(Index / number of index per page) + 1;

So index 3 gives you Math.floor(3 / 4) + 1 = 1;

 

So index 14 gives you Math.floor(14 / 4) + 1 = 4;

 

(your example below had 5 records per page not 4 as you had typed)

 

HTH Kenneth.

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of fumeng5
Sent: 29 May 2009 15:59
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help writing alorithm

 






Hi,

I'm looking for help writing an algorithm in a filter function I am
using. Here's the situation: Based on a page number and a number of
records per page, I want to return all indexes that fall within a
certain range. There are 4 records per page. 

For example;

- page 1 will return indexes 0-4
- page 2 will return indexes 5 - 9
- page 3 will return indexes 10 - 14
etc, etc...

So, here are the vars:

var index:int = myCollection.getItemIndex( item );
var recordsPerPage:int = 4;

It's embarrassing, but this is what I have so far

if( page = index  (page * page + recordsPerPage) )
return true

Can anyone offer some helpful insight, please? 

Thank you for any help. 






Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

Re: [flexcoders] Need help writing alorithm

2009-05-29 Thread Rick Winscot
In order for a filter function to eliminate unwanted items ­ everything in
your data provider will have to pass through that function... which probably
won¹t perform well as the number of records increase. If you aren¹t dealing
with large amounts of data it probably isn¹t a concern (just a thought).

On the flip-side you could use a paged ArrayCollection. There is a good
example on Adobe Developer Connection written by Peter Molgaard if you¹re
interested.

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspro
ductId=2postId=11083


Cheers,

Rick Winscot




On 5/29/09 10:59 AM, fumeng5 fume...@yahoo.com wrote:

  
   
 
   
 
 Hi,
 
 I'm looking for help writing an algorithm in a filter function I am using.
 Here's the situation: Based on a page number and a number of records per page,
 I want to return all indexes that fall within a certain range. There are 4
 records per page.
 
 For example;
 
 - page 1 will return indexes 0-4
 - page 2 will return indexes 5 - 9
 - page 3 will return indexes 10 - 14
 etc, etc...
 
 So, here are the vars:
 
 var index:int = myCollection.getItemIndex( item );
 var recordsPerPage:int = 4;
 
 It's embarrassing, but this is what I have so far
 
 if( page = index  (page * page + recordsPerPage) )
 return true
 
 Can anyone offer some helpful insight, please?
 
 Thank you for any help.
 

 
   
 
 
 



[flexcoders] Need help for ApplicationUpdaterUI library in AIR

2009-05-18 Thread ashish vyas
Hi there,

 I am using ApplicationUpdaterUI lib for
updating my application whenever a newer version is released.  It is
working fine,  but I want to customize it, to be specific, it`s look n
feel and the message text is what I am looking at.  Could you please
help me out in doing so.

Thank you !
Ashish Vyas


  Own a website.Get an unlimited package.Pay next to nothing.*Go to 
http://in.business.yahoo.com/

Re: [flexcoders] Need Help

2009-04-18 Thread riacoding

Hi Heman

I not sure if you are already generating the CSV file from the datagrid? if
not this should help
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php

regards
Lee
riaCoding


heman babu wrote:
 
 
  i need the excel file generated from the datagrid to be attached as an
 attachment in the email?.Please suggest me some good ideas and examples.
 RegardsHeman
 
 
 
   
 

-- 
View this message in context: 
http://www.nabble.com/Need-Help-tp23097399p23100598.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Need Help

2009-04-17 Thread heman babu

Hello friends,
I am developing web based flex application , which contains a menubar and few 
textinput controls.In the menu bar i have edit menu which includes 
cut,copy,paste,find,replace.The keyboard shortcut and context menu item for 
cut,copy,paste of the textinput are working fine.But i need to implement this 
funtionalties(cut,copy, paste,find,replace)in my custom menubar.How can i do 
this?. Also hw to send email with attachment in flex. i need the excel file 
generated from the datagrid to be attached as an attachment in the 
email?.Please suggest me some good ideas and examples.
RegardsHeman



  

[flexcoders] Need help- cannot insert multiple statements in one SQL transaction.

2009-04-17 Thread icodeflex
Air and Flex experts-

I am having a heck of a time getting multiple insert and update statements to 
run within one transaction against my Air applications SQLite db. Only the 
first INSERT, UPDATE, or DELETE makes it in. I am not seeing errors, but it 
seems like it is failing. If I run the same SQL in another SQL editor, my SQL 
works fine.

Example code is:

Var myInsert: String = Insert into EMPLOYEES ( NAME ) VALUES (Bob); ;
myInsert += Insert into EMPLOYEES ( NAME ) VALUES (John); ;
myInsert +=  Insert into EMPLOYEES ( NAME ) VALUES (Fred); ;


   var localConnection : SQLConnection = new SQLConnection();
  localConnection.open(myDatabase);
  localConnection.begin();

var statement: SQLStatement = new SQLStatement();
   statement.sqlConnection = localConnection;
  statement.text = myInsert;
 statement.execute();

localConnection.commit();
 
I have tried in synchronous and async mode with the same results.

Please tell me what I am doing wrong! :)

Thanks!
Dustin




[flexcoders] Need help processing XML into Flex app

2009-04-08 Thread Jim
I'm using a webservice to bring some data into Flex and display it in a 
datagrid.  For non-repeating items (e.g. Name) it works fine.  But if there are 
several instances of something (e.g. Role), I cannot figure out how to get at 
them.  Does anyone know how I could put them in a list or combobox or 
something?  

Here is an example of what the incoming XML might look like (with a space after 
the  so the input to the forum doesn't get processed!).  
If I use a datagrid with a datagridcolumn where datafield=UserID, 
UserDescription, or PrimaryPermissionList, it works great. But I get an 
error that RoleName doesn't exist no matter what I do.  I tried an Itemrenderer 
to no avail; could be me.

Thanks.
Jim

 ?xml version=1.0?
 SOAP-ENV:Get__CompIntfc__USER_PROFILEResponse 
xmlns:SOAP-ENV=http://xmlns.oracle.com/Enterprise/Tools/schemas/M405276.V1;
   SOAP-ENV:UserIDaxa2131/SOAP-ENV:UserID
   SOAP-ENV:UserDescriptionAnthony Adams/SOAP-ENV:UserDescription
   SOAP-ENV:PrimaryPermissionListEMPTY/SOAP-ENV:PrimaryPermissionList
  ...
   SOAP-ENV:Roles
 SOAP-ENV:RoleNamePROPERTY_ADMIN/SOAP-ENV:RoleName
   /SOAP-ENV:Roles
   SOAP-ENV:Roles
 SOAP-ENV:RoleNameLOGON_FIN/SOAP-ENV:RoleName
   /SOAP-ENV:Roles
   SOAP-ENV:Roles
 SOAP-ENV:RoleNamePORTAL_USER/SOAP-ENV:RoleName
   /SOAP-ENV:Roles
...



RE: [flexcoders] Need help processing XML into Flex app

2009-04-08 Thread Tracy Spratt
You need to use a labelFunction().  dataField can only take a string, not an
expression, and so it can only find first level properties of any object.

 

UserId, .Roles are all first level child nodes of the parent, but RoleName
is a child of Roles, thus not directly accessible via dataField.

 

A labelFunction gets a reference to the entire item (in your case a
Get__CompIntfc__USER_PROFILEResponse node,  I thnk) and a reference to the
dataGrid column, and must return a string, which will be displayed.

 

In that function, you might need to do:

return item.Roles.RoleName.text();

 

Now, that format looks like there might be more than one RoleName per role.
Yo will need to figure out what that would mean to your UI.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim
Sent: Wednesday, April 08, 2009 3:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help processing XML into Flex app

 

I'm using a webservice to bring some data into Flex and display it in a
datagrid. For non-repeating items (e.g. Name) it works fine. But if there
are several instances of something (e.g. Role), I cannot figure out how to
get at them. Does anyone know how I could put them in a list or combobox or
something? 

Here is an example of what the incoming XML might look like (with a space
after the  so the input to the forum doesn't get processed!). 
If I use a datagrid with a datagridcolumn where datafield=UserID,
UserDescription, or PrimaryPermissionList, it works great. But I get an
error that RoleName doesn't exist no matter what I do. I tried an
Itemrenderer to no avail; could be me.

Thanks.
Jim

 ?xml version=1.0?
 SOAP-ENV:Get__CompIntfc__USER_PROFILEResponse
xmlns:SOAP-ENV=http://xmlns.
http://xmlns.oracle.com/Enterprise/Tools/schemas/M405276.V1
oracle.com/Enterprise/Tools/schemas/M405276.V1
 SOAP-ENV:UserIDaxa2131/SOAP-ENV:UserID
 SOAP-ENV:UserDescriptionAnthony Adams/SOAP-ENV:UserDescription
 SOAP-ENV:PrimaryPermissionListEMPTY/SOAP-ENV:PrimaryPermissionList
...
 SOAP-ENV:Roles
 SOAP-ENV:RoleNamePROPERTY_ADMIN/SOAP-ENV:RoleName
 /SOAP-ENV:Roles
 SOAP-ENV:Roles
 SOAP-ENV:RoleNameLOGON_FIN/SOAP-ENV:RoleName
 /SOAP-ENV:Roles
 SOAP-ENV:Roles
 SOAP-ENV:RoleNamePORTAL_USER/SOAP-ENV:RoleName
 /SOAP-ENV:Roles
...





[flexcoders] Need Help For Designing Modular Application

2009-04-03 Thread R. S. Patil
Hello Friends,

We are in process of evaluating Flex for a Multi-Form database application.
The Target application will have almost 100+ forms for data-entry, query,
report generation.
it is migration of a delphi-firebird lan based client-server desktop
application to web.
The typical interface is on left side there will a menu in form of tree-view
and on right side
there will be a MDICanvas will have multiple MDIpanels. Each MDIpanel will
be a independent
form containing data-base connection and controls reprenting data-fields.

As per studies till date we arrived at conclusion that having all the forms
in a single swf will make
initial loading of application will be much longer so we would like know how
we can break up
a single swf in smaller swfs which will be loaded on demand but main
application and each
form need to share some common data may be passed as parameters to function
creating and
displaying the MDIPanel such as URL to database, company name etc. etc.

Can somebody give us some idea whether this is possible in flex and if
possible how.
one can give URLs of reading material or example application. We plan to
prepare a small
pilot application by 15th of April to demonstrate to our prospective client.

We are team of software professional with about 10/15 years experience in
developing and
implementing Lan based Client-server desktop applications using front end
delphi and
back ends like firebird oracle mssql server. We design application where
main application exe
contains main form with menu and other forms are grouped in  to 5/6 dlls of
size 2 to 3 MB and
are created on demand and destryed when closed. We need similar
functionality with flex too
so that load times and memory is used optimistically.

Thanks for reading this long mail and hope u respond to help us out

best regards.

Raja Patil


RE: [flexcoders] Need Help For Designing Modular Application

2009-04-03 Thread Gregor Kiddie
You want to read up on the following articles

http://livedocs.adobe.com/flex/3/html/help.html?content=modular_2.html

http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_1.htm
l

http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.htm
l

http://weblogs.macromedia.com/pent/archives/2007/01/building_module.html

 

Also, the common mistakes usually end up surrounding application domains
so read up on

http://blogs.adobe.com/rgonzalez/2006/06/applicationdomain.html

http://blogs.adobe.com/aharui/

when you run into problems.

 

HTH,

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of R. S. Patil
Sent: 03 April 2009 08:41
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need Help For Designing Modular Application

 

Hello Friends,

We are in process of evaluating Flex for a Multi-Form database
application.
The Target application will have almost 100+ forms for data-entry,
query, report generation.
it is migration of a delphi-firebird lan based client-server desktop
application to web.
The typical interface is on left side there will a menu in form of
tree-view and on right side
there will be a MDICanvas will have multiple MDIpanels. Each MDIpanel
will be a independent
form containing data-base connection and controls reprenting
data-fields.

As per studies till date we arrived at conclusion that having all the
forms in a single swf will make
initial loading of application will be much longer so we would like know
how we can break up
a single swf in smaller swfs which will be loaded on demand but main
application and each
form need to share some common data may be passed as parameters to
function creating and
displaying the MDIPanel such as URL to database, company name etc. etc. 

Can somebody give us some idea whether this is possible in flex and if
possible how.
one can give URLs of reading material or example application. We plan to
prepare a small
pilot application by 15th of April to demonstrate to our prospective
client.

We are team of software professional with about 10/15 years experience
in developing and 
implementing Lan based Client-server desktop applications using front
end delphi and 
back ends like firebird oracle mssql server. We design application where
main application exe 
contains main form with menu and other forms are grouped in  to 5/6 dlls
of size 2 to 3 MB and
are created on demand and destryed when closed. We need similar
functionality with flex too
so that load times and memory is used optimistically.

Thanks for reading this long mail and hope u respond to help us out

best regards.

Raja Patil





Re: [flexcoders] Need Help For Designing Modular Application

2009-04-03 Thread R. S. Patil
Thanks Gregor Kiddie,


   You want to read up on the following articles

 http://livedocs.adobe.com/flex/3/html/help.html?content=modular_2.html

 http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_1.html

 http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.html

 http://weblogs.macromedia.com/pent/archives/2007/01/building_module.html



 Also, the common mistakes usually end up surrounding application domains so
 read up on

 http://blogs.adobe.com/rgonzalez/2006/06/applicationdomain.html

 http://blogs.adobe.com/aharui/

 when you run into problems.



 HTH,
 

Certainly this will help us, Lot of reading material it may take some time,
I will give feed back and ask further if necessary,

Thanks once again and best regards

Raja Patil


[flexcoders] Need help gettig weborb and my flex project working after compuer reimage...

2009-03-06 Thread timgerr
Hello all, I need some help. I am pulling my hair out.  I have been working 
on a flex project for about a year now and I had some problems with my 
computer.  I put in a new hard drive (Got all the data off the old one) and set 
xampp, weborb up all the same.  When I debug my project my Flex app runs, and 
on start A weborb request is done and fails with this error in Flex coming from 
the FaultEvent.  The error is Server reported an error - Send failed.  My 
debug path is C:\xampp\htdocs\weborb\pjhome-debug.  Here is the return error 
from Charles:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; lang=en xml:lang=en
head
title
Object not found!
/title
link rev=made href=mailto:ad...@localhost; /
style type=text/css
!--/*--
![CDATA[/*!--*/ body { color: #00; background-color: #FF; } a:link { 
color: #CC; } p, address {margin-left: 3em;} span {font-size: smaller;} 
/*]]*/--gt;
/style
/head
body
h1
Object not found!
/h1
p
The requested URL was not found on this server. The link on the
a href=http://localhost/weborb/pjhome/pjhome.swf;
referring page
/a
seems to be wrong or outdated. Please inform the author of
a href=http://localhost/weborb/pjhome/pjhome.swf;
that page
/a
about the error. 
/p
p
If you think this is a server error, please contact the
a href=mailto:ad...@localhost;
webmaster
/a
.
/p
h2
Error 404
/h2
address
a href=/
localhost
/a
br /
span
03/07/09 00:21:40
br /
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color 
PHP/5.2.8
/span
/address
/body
/html

Since my build path is C:\xampp\htdocs\weborb\pjhome-debug, and the page comes 
up.  Why is weborb sending a response request to 
http://localhost/weborb/pjhome/pjhome.swf ??

I am pulling my hair out on this one,  Please help.

Thanks for the read,
timgerr




[flexcoders] Need Help for LCDS installation for web sphere 6.1!!

2009-02-08 Thread markflex2007
Hi,

I try to install LCDS on websphere.

I follow the steps in the URL

http://help.adobe.com/en_US/livecycle/es/lcds_installation.html#websph

I confuse the step 5 and step 6

5 From the WebSphere Administrator, define a WorkManager for use by
your application. From the admin, choose Resources  Asynchronous
Beans  Work managers. By default, the DefaultWorkManager is available
at the wm/default jndi-name. Also, you can add a separate WorkManager
for your application.
6 Deploy the WAR file. During deployment, map the WorkManager
resource-ref to an actual JNDI name for your WorkManager. For the
DefaultWorkManager, wm/MessagingWorkManager (name used by your
web.xml) maps to wm/default (the JNDI name of the actual server
resource). 

Would you please give me a more detail steps about how to do this in
administrative console?

I need a more details to follow and set up the LCDS.

Thanks for help


Mark





[flexcoders] Need help on Nested AdvancedDataGrid as renderer on AdvancedDataGrid.

2009-01-28 Thread Monali Gandhi
Hi,

Need help on Nested AdvancedDataGrid as renderer on AdvancedDataGrid.

Nested AdvancedDataGrid  also have its own renderer as nested AdvancedDataGrid.

with scroll on all AdvancedDataGrid working on renderer too.


Kindly help,

Best Regards,
Monali



  

Re: [flexcoders]Need help creating a Singleton with MXML

2009-01-11 Thread Paul Andrews
- Original Message - 
  From: dorkie dork from dorktown 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, January 11, 2009 5:05 AM
  Subject: Re: [flexcoders]Need help creating a Singleton with MXML


  Yay! That's the class I needed! :)

  To answer your question why. First I like to use MXML. Any tool can parse 
XML. Plus, with this class, I plan to drop it into all my future project and 
set properties on it. If I had more than one instance it would screw up the 
application. Other classes use some of its functionality so I am providing a 
getInstance(). The problem has been that the other classes may be declared 
before the MXML instance. So I updated my code to always call the getInstance() 
method and both problems have been solved!!!

Eventually for functionality like that you will end up using actionscript 
classes, so it would be better to go there now that put off that day. If you 
are determined to use MXML in this way, there's nothing stopping you 
implementing the singleton as an actionscript class then having that class 
instantiate the MXML class and return a reference to it. There's no need to 
have a situation where you want to use the MXML class but it doesn't exist.

Until I saw this thread I had never imagined that anyone would use MXML for 
creating singletons.

Paul



  On Sat, Jan 10, 2009 at 12:38 AM, Haykel BEN JEMIA hayke...@gmail.com wrote:


You should probably implement the IMXMLObject interface. Override the 
initialized method where you can set the class instance (to 'this').

The getInstance() method can create a default class instance if it's null 
and return it.

Don't save references to the class instance in the classes that need to use 
it. Instead always call getInstance(). This way, until the MXML singleton is 
initialized, a 'default' singleton will be used. Afterwards, the MXML instance 
will be used.

This said, why do you need the singleton to be MXML?

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com






On Sat, Jan 10, 2009 at 5:47 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

  I'm stumped. I'm trying to create a singleton class that is also an MXML 
class. 

  managers:SingletonClass / creates one instance obviously. But another 
class needs to reference this class. So class 2 calls 
SingletonClass.getInstance(). It's possible that class 2 will be created before 
the MXML SingletonClass instance. 

  It's ok for me if there is a ghost instance as long as everything works 
like it should. As long as the instance that is in the main MXML file is the 
one thats in effect.

  Also, when debugging this, the id is always an empty string. I'm 
extending EventDispatcher. 

  dorkie dork from singleton-town place





   

Re: [flexcoders]Need help creating a Singleton with MXML

2009-01-10 Thread dorkie dork from dorktown
Yay! That's the class I needed! :)

To answer your question why. First I like to use MXML. Any tool can parse
XML. Plus, with this class, I plan to drop it into all my future project and
set properties on it. If I had more than one instance it would screw up the
application. Other classes use some of its functionality so I am providing a
getInstance(). The problem has been that the other classes may be declared
before the MXML instance. So I updated my code to always call the
getInstance() method and both problems have been solved!!!

On Sat, Jan 10, 2009 at 12:38 AM, Haykel BEN JEMIA hayke...@gmail.comwrote:

   You should probably implement the IMXMLObject interface. Override the
 initialized method where you can set the class instance (to 'this').

 The getInstance() method can create a default class instance if it's null
 and return it.

 Don't save references to the class instance in the classes that need to use
 it. Instead always call getInstance(). This way, until the MXML singleton is
 initialized, a 'default' singleton will be used. Afterwards, the MXML
 instance will be used.

 This said, why do you need the singleton to be MXML?

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com





 On Sat, Jan 10, 2009 at 5:47 AM, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:

   I'm stumped. I'm trying to create a singleton class that is also an
 MXML class.

 managers:SingletonClass / creates one instance obviously. But another
 class needs to reference this class. So class 2 calls
 SingletonClass.getInstance(). It's possible that class 2 will be created
 before the MXML SingletonClass instance.

 It's ok for me if there is a ghost instance as long as everything works
 like it should. As long as the instance that is in the main MXML file is the
 one thats in effect.

 Also, when debugging this, the id is always an empty string. I'm extending
 EventDispatcher.

 dorkie dork from singleton-town place


  



[flexcoders]Need help creating a Singleton with MXML

2009-01-09 Thread dorkie dork from dorktown
I'm stumped. I'm trying to create a singleton class that is also an MXML
class.

managers:SingletonClass / creates one instance obviously. But another
class needs to reference this class. So class 2 calls
SingletonClass.getInstance(). It's possible that class 2 will be created
before the MXML SingletonClass instance.

It's ok for me if there is a ghost instance as long as everything works like
it should. As long as the instance that is in the main MXML file is the one
thats in effect.

Also, when debugging this, the id is always an empty string. I'm extending
EventDispatcher.

dorkie dork from singleton-town place


Re: [flexcoders]Need help creating a Singleton with MXML

2009-01-09 Thread Haykel BEN JEMIA
You should probably implement the IMXMLObject interface. Override the
initialized method where you can set the class instance (to 'this').

The getInstance() method can create a default class instance if it's null
and return it.

Don't save references to the class instance in the classes that need to use
it. Instead always call getInstance(). This way, until the MXML singleton is
initialized, a 'default' singleton will be used. Afterwards, the MXML
instance will be used.

This said, why do you need the singleton to be MXML?

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Sat, Jan 10, 2009 at 5:47 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

   I'm stumped. I'm trying to create a singleton class that is also an MXML
 class.

 managers:SingletonClass / creates one instance obviously. But another
 class needs to reference this class. So class 2 calls
 SingletonClass.getInstance(). It's possible that class 2 will be created
 before the MXML SingletonClass instance.

 It's ok for me if there is a ghost instance as long as everything works
 like it should. As long as the instance that is in the main MXML file is the
 one thats in effect.

 Also, when debugging this, the id is always an empty string. I'm extending
 EventDispatcher.

 dorkie dork from singleton-town place
  



[flexcoders] need help in BlazeDS

2008-11-17 Thread moonrchand
Hi All,
   i am finding difficult to create and run a blazeds application.
i am trying to use Flex Builder 3 and blazeds.war and pre-installed
tomact 5.5.

i wrote a simple chat example and when ever consumer tries to
subcribe, i am getting following example

Error :
  There was an unhandled failure on the server.
java.lang.NullPointerException

please help me, what is this error and how i can overcome this.
and also please mention the steps i need to follow to create a BlazeDS
enabled application with FlexBuilder3 and pre-installed Tomcat.

Thanks in Advance
Chandra



[flexcoders] Need help for mx:MenuBar?

2008-10-16 Thread markflex2007
Hi,

I want to use use mx:MenuBar and I need see the submenu when I mouse
over top menu .but now I can see the submenu when I click topmenu.
I want to use change() event to do some function so I need monse over
to see sub menu.

Thanks

MK


mx:MenuBar id=myMenuBar labelField=@label  fillAlphas=[1.0,
1.0] fillColors=[#FFFDFD, #FFFDFD]
 mx:XMLList
 menuitem label=MenuItem A 
  menuitem label=SubMenuItem A-1 enabled=False/
  menuitem label=SubMenuItem A-2/
 /menuitem
 menuitem label=MenuItem B type=check selected=true/
 menuitem label=MenuItem C type=check selected=false/
 menuitem label=MenuItem D 
 menuitem label=SubMenuItem D-1 type=radio
groupName=one/
 menuitem label=SubMenuItem D-2 type=radio
groupName=one
 selected=true/
 menuitem label=SubMenuItem D-3 type=radio
groupName=one/
 /menuitem
 /mx:XMLList
   /mx:MenuBar



[flexcoders] Need help in BlazeDS(Custom Adapters)

2008-09-29 Thread scjpkhalid
Hello ,

I am  new to  Flex world and to this group also.

While going through the BlazeDS Developer Guide (custom adapters). 
I cam across the following snipet.

link : 
http://livedocs.adobe.com/blazeds/1/blazeds_devguide 
/help.html?content=messaging_7.html

package customclasspackage; 
{

import flex.messaging.services.messaging.adapters.MessagingAdapter;
import flex.messaging.services.MessageService;
import flex.messaging.messages.Message;
import flex.messaging.Destination;

public class SimpleCustomAdapter extends MessagingAdapter {

public Object invoke(Message message) {
MessageService msgService = (MessageService)service;
msgService.pushMessageToClients(message, true);
msgService.sendPushMessageFromPeer(message, true);
return null;
}
}
}

I am not getting what is   service   in the following line of code:

   MessageService msgService = (MessageService)service;

Awaiting for your reply

Thanks and Regards
 Khalid Chaudhary
 



Re: [flexcoders] Need help in BlazeDS(Custom Adapters)

2008-09-29 Thread Igor Costa
Khaild

Is the sufix of object you're trigger to send to the client,but the code in
doc's are wrong

Here's my sample for adapter in java side


package com.adobe.adapter;

import flex.messaging.messages.AsyncMessage;
import flex.messaging.messages.Message;
import flex.messaging.services.MessageService;
import flex.messaging.services.ServiceAdapter;

public class CustomMessagingAdapter extends ServiceAdapter {

@Override
public Object invoke(Message message) {
AsyncMessage newMessage = (AsyncMessage)message;
newMessage.setBody(Client  + message.getBody() + is ready!);
MessageService msgService =
(MessageService)getDestination().getService();
msgService.pushMessageToClients(newMessage, true);
return null;
}

}


Regards
Igor Costa

On Mon, Sep 29, 2008 at 10:48 AM, scjpkhalid [EMAIL PROTECTED] wrote:

   Hello ,

 I am new to Flex world and to this group also.

 While going through the BlazeDS Developer Guide (custom adapters).
 I cam across the following snipet.

 link :
 http://livedocs.adobe.com/blazeds/1/blazeds_devguide
 /help.html?content=messaging_7.html

 package customclasspackage;
 {

 import flex.messaging.services.messaging.adapters.MessagingAdapter;
 import flex.messaging.services.MessageService;
 import flex.messaging.messages.Message;
 import flex.messaging.Destination;

 public class SimpleCustomAdapter extends MessagingAdapter {

 public Object invoke(Message message) {
 MessageService msgService = (MessageService)service;
 msgService.pushMessageToClients(message, true);
 msgService.sendPushMessageFromPeer(message, true);
 return null;
 }
 }
 }

 I am not getting what is  service  in the following line of code:

 MessageService msgService = (MessageService)service;

 Awaiting for your reply

 Thanks and Regards
 Khalid Chaudhary


  




-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


[flexcoders] Need help !!!!!!!!

2008-09-19 Thread sreekumar4
 how to pass date via  value object in flex using blazeds ??

Please help



RE: [flexcoders] Need help !!!!!!!!

2008-09-19 Thread Gregor Kiddie
Before someone else jumps up and down on you...

A more descriptive subject is more likely to get an answer. A lot of
(knowledgeable) people on this list don't have time to read every post,
so the best way to get an answer is to key them in early.

 

To move onto your question, what are you actually trying to do? How have
you got everything set up? Normally BlazeDS (de)serializes AMF dates no
problem.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sreekumar4
Sent: 19 September 2008 12:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help 

 

how to pass date via value object in flex using blazeds ??

Please help

 



[flexcoders] Need help with Logout and then Logging back into Flex App

2008-09-05 Thread scottyale2008
After each of the different forms have been opened (via the button
toolbar), the forms have been initialized and created.   I recently
added a logout button which just takes you back to the login form.  If
you login as a different user, some of the charts and forms don't
update because they were created via  creationComplete() 

At the main section of the Flex app (where the login page is), is
there a way to reset all creationComplete's so the app will recreate
the pages when they are re-selected?
I tried invalidating all the properties and displaylists.

If there isn't a quick and easy way I could do one of the following:

-   The logout page takes them to a screen that says Press the Browser
Refresh Button to log back in.
-   The logout link does the Browser Refresh automatically.   Is this
an option, and if so what is the command to reload the flex app within
flex?

What's is best practices and/or best approach?




Re: [flexcoders] Need help with Logout and then Logging back into Flex App

2008-09-05 Thread Douglas Knudsen
You could just reload your app, 'tis the short sweet easy way...go ahead
mash that Easy Button!
Flex can load a new URL in the browser, so just load itself.

DK

On Fri, Sep 5, 2008 at 2:06 PM, scottyale2008 [EMAIL PROTECTED]wrote:

   After each of the different forms have been opened (via the button
 toolbar), the forms have been initialized and created. I recently
 added a logout button which just takes you back to the login form. If
 you login as a different user, some of the charts and forms don't
 update because they were created via creationComplete()

 At the main section of the Flex app (where the login page is), is
 there a way to reset all creationComplete's so the app will recreate
 the pages when they are re-selected?
 I tried invalidating all the properties and displaylists.

 If there isn't a quick and easy way I could do one of the following:

 - The logout page takes them to a screen that says Press the Browser
 Refresh Button to log back in.
 - The logout link does the Browser Refresh automatically. Is this
 an option, and if so what is the command to reload the flex app within
 flex?

 What's is best practices and/or best approach?

  




-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread anuj sharma
Hi Guys
So is there anyone in the list that can help me in achieving this? This
problem is burning me out now and I need a good head start to achieve this.
This is my first project of this kind. Earlier i developed simple prototypes
using basic event programming. I need you genius guys's guidance to get me
started and need that layout for my images. If there is any custom
componenet available in the market then i am ready to buy that too. It is
taking me little long to figure out this layout. I have reached at the last
level of this project.
Sorry for being pain but please help me out in generating this layout. Any
guidance and any kind of help in this direction will be highyl appreciated.
Thanks in advance guys
Anuj

On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Dough
 I forgot to mention that i am not sure if i can force the components into
 either rows or columns because I am allowing free flow of the image within
 the container too which means that the user should be able to resize the
 image and should be able to drag and drop the image too whereever he wants
 within the container. i used drag manager for that. i thought should made it
 clear.
 Thanks for your time
 Anuj

 On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote:

   Oh wow, that's actually a really flexible layout requirement that I
 don't think you can achieve with any of the components out there right now
 (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think
 you may have to lose of of the desired functionality and allow the content
 to be binned into distinct rows or columns more tightly. The first image in
 your attachement is doable in the FlowBox I believe, but the second
 screenshot is much harder. Notice how box C extends down into a second row,
 and also how box E extends across multiple columns. That use of dual column
 and row spanning makes it difficult. If you allow the components to be
 forced into either rows or columns then it will be much easier.

 Doug


 On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

   Hi All Attached is the rough sketch i am about the UI i have to
 implement. Right now they are just empty pictures, but the user can drag
 them on the stage and can resize the images placed on the main screen. My
 requirement if user drops a new image on the screen all the other images
 adjust themselves to accommodate the new image. Also if user enlarge or
 shrink one image (like in the sketch user is trying to shrink image B), all
 the other images adjust themselves on the main stage . Please let em know if
 you have any questions.
 Thanks a lot for your help
 Anuj



 On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick
 I will try to sketch my requirement and send it to you soon. That might
 help to find what i am looking for.
 Thanks for your suggestion.
 Anuj


 On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote:

The seconds link was to a flow layout that would set you in the
 right direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle 
 that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj












  





RE: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread Alex Harui
Can everything be a mini-window using FlexMDI?

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj 
sharma
Sent: Wednesday, September 03, 2008 1:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately

Hi Guys
So is there anyone in the list that can help me in achieving this? This problem 
is burning me out now and I need a good head start to achieve this. This is my 
first project of this kind. Earlier i developed simple prototypes using basic 
event programming. I need you genius guys's guidance to get me started and need 
that layout for my images. If there is any custom componenet available in the 
market then i am ready to buy that too. It is taking me little long to figure 
out this layout. I have reached at the last level of this project.
Sorry for being pain but please help me out in generating this layout. Any 
guidance and any kind of help in this direction will be highyl appreciated.
Thanks in advance guys
Anuj
On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:
Dough
I forgot to mention that i am not sure if i can force the components into 
either rows or columns because I am allowing free flow of the image within the 
container too which means that the user should be able to resize the image and 
should be able to drag and drop the image too whereever he wants within the 
container. i used drag manager for that. i thought should made it clear.
Thanks for your time
Anuj
On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:
Oh wow, that's actually a really flexible layout requirement that I don't think 
you can achieve with any of the components out there right now (ie TileList, 
Tile, combination of HBox and VBox, or even FlowBox). I think you may have to 
lose of of the desired functionality and allow the content to be binned into 
distinct rows or columns more tightly. The first image in your attachement is 
doable in the FlowBox I believe, but the second screenshot is much harder. 
Notice how box C extends down into a second row, and also how box E extends 
across multiple columns. That use of dual column and row spanning makes it 
difficult. If you allow the components to be forced into either rows or columns 
then it will be much easier.

Doug

On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:
Hi All Attached is the rough sketch i am about the UI i have to implement. 
Right now they are just empty pictures, but the user can drag them on the stage 
and can resize the images placed on the main screen. My requirement if user 
drops a new image on the screen all the other images adjust themselves to 
accommodate the new image. Also if user enlarge or shrink one image (like in 
the sketch user is trying to shrink image B), all the other images adjust 
themselves on the main stage . Please let em know if you have any questions.
Thanks a lot for your help
Anuj


On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:
Hi Rick
I will try to sketch my requirement and send it to you soon. That might help to 
find what i am looking for.
Thanks for your suggestion.
Anuj

On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

The seconds link was to a flow layout that would set you in the right 
direction... The other option was the first link which uses static positioning. 
Really, it depends on what you want the user experience to be like. If you 
could sketch out the solution - we could throw some code around.

Rick Winscot



On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:



Hi Rick
Thanks for the reply. Are there any recommendations about which layout 
component or container should i use or do i need to create my custom component 
for achieving this target. I am not sure which way to handle that layout. 
Please help me out
Again Thanks a lot.
Anuj

On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:



Hi
I am using HBOX container to load images letting user drag image from
one HBOX and dropping them in another (2nd)HBOX. I need to calculate
the real estate of the HBOX in which the image has been dropped (i-e
2nd HBOX). The reason is that because I need the dropped image to get
placed in an empty space within the 2nd HBOX.
Is there any way I can calculate which space is empty in the HBOX and
let my objects (images) to be placed only in the empty spaces within
the HBOX (not the sapce already occupied by the placed images).Once
the HBOX is full then I need to code in a way that images starts
shrinking(upto some level) to accommodate more images.
Please help me out in figuring out this problem. Any type of
help/documentation/links in this direction will be highly appreciated.
Thanks
Anuj















Re: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread anuj sharma
Hi Alex
I am not sure i understand that. Basically I am dragging images from one
container which is HBOX( because i need scroller facility too) and dropping
them in another container which is Tile.
The user should be able to resize the dropped images as shown in the layout
and the rest of the images have to adjust in terms of size as well as
location to let resized image to get accommodated. I have seen some examples
of FlowBox and one as shown in the following link:
http://demo.quietlyscheming.com/DragTile/DragDrop.html
but my problem coems becasue user should be able to resize the images in the
container. As I have mentioned this is the first project of this kind for me
I am not sure which way to go. Anyway coming to your question (mini-window
using FlexMDI) it can be the any way as long as it is solving the purpose of
my requirement. Any detail and suggestions, please let me know
Thanks
Anuj


On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote:

Can everything be a mini-window using FlexMDI?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *anuj sharma
 *Sent:* Wednesday, September 03, 2008 1:46 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 Hi Guys

 So is there anyone in the list that can help me in achieving this? This
 problem is burning me out now and I need a good head start to achieve this.
 This is my first project of this kind. Earlier i developed simple prototypes
 using basic event programming. I need you genius guys's guidance to get me
 started and need that layout for my images. If there is any custom
 componenet available in the market then i am ready to buy that too. It is
 taking me little long to figure out this layout. I have reached at the last
 level of this project.
 Sorry for being pain but please help me out in generating this layout. Any
 guidance and any kind of help in this direction will be highyl appreciated.
 Thanks in advance guys
 Anuj

 On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Dough
 I forgot to mention that i am not sure if i can force the components into
 either rows or columns because I am allowing free flow of the image within
 the container too which means that the user should be able to resize the
 image and should be able to drag and drop the image too whereever he wants
 within the container. i used drag manager for that. i thought should made it
 clear.
 Thanks for your time
 Anuj

 On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote:

Oh wow, that's actually a really flexible layout requirement that I
 don't think you can achieve with any of the components out there right now
 (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think
 you may have to lose of of the desired functionality and allow the content
 to be binned into distinct rows or columns more tightly. The first image in
 your attachement is doable in the FlowBox I believe, but the second
 screenshot is much harder. Notice how box C extends down into a second row,
 and also how box E extends across multiple columns. That use of dual column
 and row spanning makes it difficult. If you allow the components to be
 forced into either rows or columns then it will be much easier.

 Doug



 On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi All Attached is the rough sketch i am about the UI i have to implement.
 Right now they are just empty pictures, but the user can drag them on the
 stage and can resize the images placed on the main screen. My requirement if
 user drops a new image on the screen all the other images adjust themselves
 to accommodate the new image. Also if user enlarge or shrink one image (like
 in the sketch user is trying to shrink image B), all the other images adjust
 themselves on the main stage . Please let em know if you have any questions.
 Thanks a lot for your help
 Anuj



  On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick
 I will try to sketch my requirement and send it to you soon. That might
 help to find what i am looking for.
 Thanks for your suggestion.
 Anuj



 On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]
 wrote:

 The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot




 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL

RE: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread Alex Harui
OK, FlexMDI, probably won't do it for you.  You want some organization of the 
images.  Why didn't FlowBox work for you?

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj 
sharma
Sent: Wednesday, September 03, 2008 2:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately

Hi Alex
I am not sure i understand that. Basically I am dragging images from one 
container which is HBOX( because i need scroller facility too) and dropping 
them in another container which is Tile.
The user should be able to resize the dropped images as shown in the layout and 
the rest of the images have to adjust in terms of size as well as location to 
let resized image to get accommodated. I have seen some examples of FlowBox and 
one as shown in the following link:
http://demo.quietlyscheming.com/DragTile/DragDrop.html
but my problem coems becasue user should be able to resize the images in the 
container. As I have mentioned this is the first project of this kind for me I 
am not sure which way to go. Anyway coming to your question (mini-window using 
FlexMDI) it can be the any way as long as it is solving the purpose of my 
requirement. Any detail and suggestions, please let me know
Thanks
Anuj

On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Can everything be a mini-window using FlexMDI?



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of anuj sharma
Sent: Wednesday, September 03, 2008 1:46 PM

To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately



Hi Guys

So is there anyone in the list that can help me in achieving this? This problem 
is burning me out now and I need a good head start to achieve this. This is my 
first project of this kind. Earlier i developed simple prototypes using basic 
event programming. I need you genius guys's guidance to get me started and need 
that layout for my images. If there is any custom componenet available in the 
market then i am ready to buy that too. It is taking me little long to figure 
out this layout. I have reached at the last level of this project.
Sorry for being pain but please help me out in generating this layout. Any 
guidance and any kind of help in this direction will be highyl appreciated.
Thanks in advance guys
Anuj

On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Dough
I forgot to mention that i am not sure if i can force the components into 
either rows or columns because I am allowing free flow of the image within the 
container too which means that the user should be able to resize the image and 
should be able to drag and drop the image too whereever he wants within the 
container. i used drag manager for that. i thought should made it clear.
Thanks for your time
Anuj

On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Oh wow, that's actually a really flexible layout requirement that I don't think 
you can achieve with any of the components out there right now (ie TileList, 
Tile, combination of HBox and VBox, or even FlowBox). I think you may have to 
lose of of the desired functionality and allow the content to be binned into 
distinct rows or columns more tightly. The first image in your attachement is 
doable in the FlowBox I believe, but the second screenshot is much harder. 
Notice how box C extends down into a second row, and also how box E extends 
across multiple columns. That use of dual column and row spanning makes it 
difficult. If you allow the components to be forced into either rows or columns 
then it will be much easier.

Doug



On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Hi All Attached is the rough sketch i am about the UI i have to implement. 
Right now they are just empty pictures, but the user can drag them on the stage 
and can resize the images placed on the main screen. My requirement if user 
drops a new image on the screen all the other images adjust themselves to 
accommodate the new image. Also if user enlarge or shrink one image (like in 
the sketch user is trying to shrink image B), all the other images adjust 
themselves on the main stage . Please let em know if you have any questions.
Thanks a lot for your help
Anuj



On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Hi Rick
I will try to sketch my requirement and send it to you soon. That might help to 
find what i am looking for.
Thanks for your suggestion.
Anuj



On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

The seconds link was to a flow layout that would set you in the right 
direction... The other option was the first link which uses static positioning

Re: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread anuj sharma
Can I put my resizeable images in the FlowBox and upon resizing will the
rest of the images be arranged of its own. I was not sure if FlowBox can
take care of resizing the images.If that's the case i will try that. I will
definitely keep you posted about that.
Thanks
Anuj

On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED] wrote:

OK, FlexMDI, probably won't do it for you.  You want some organization
 of the images.  Why didn't FlowBox work for you?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *anuj sharma
 *Sent:* Wednesday, September 03, 2008 2:31 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 Hi Alex
 I am not sure i understand that. Basically I am dragging images from one
 container which is HBOX( because i need scroller facility too) and dropping
 them in another container which is Tile.
 The user should be able to resize the dropped images as shown in the layout
 and the rest of the images have to adjust in terms of size as well as
 location to let resized image to get accommodated. I have seen some examples
 of FlowBox and one as shown in the following link:
 http://demo.quietlyscheming.com/DragTile/DragDrop.html
 but my problem coems becasue user should be able to resize the images in
 the container. As I have mentioned this is the first project of this kind
 for me I am not sure which way to go. Anyway coming to your question 
 (mini-window
 using FlexMDI) it can be the any way as long as it is solving the purpose
 of my requirement. Any detail and suggestions, please let me know
 Thanks
 Anuj

  On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Can everything be a mini-window using FlexMDI?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *anuj sharma
 *Sent:* Wednesday, September 03, 2008 1:46 PM


 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 Hi Guys


 So is there anyone in the list that can help me in achieving this? This
 problem is burning me out now and I need a good head start to achieve this.
 This is my first project of this kind. Earlier i developed simple prototypes
 using basic event programming. I need you genius guys's guidance to get me
 started and need that layout for my images. If there is any custom
 componenet available in the market then i am ready to buy that too. It is
 taking me little long to figure out this layout. I have reached at the last
 level of this project.
 Sorry for being pain but please help me out in generating this layout. Any
 guidance and any kind of help in this direction will be highyl appreciated.
 Thanks in advance guys
 Anuj

 On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Dough
 I forgot to mention that i am not sure if i can force the components into
 either rows or columns because I am allowing free flow of the image within
 the container too which means that the user should be able to resize the
 image and should be able to drag and drop the image too whereever he wants
 within the container. i used drag manager for that. i thought should made it
 clear.
 Thanks for your time
 Anuj

 On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote:

Oh wow, that's actually a really flexible layout requirement that I
 don't think you can achieve with any of the components out there right now
 (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think
 you may have to lose of of the desired functionality and allow the content
 to be binned into distinct rows or columns more tightly. The first image in
 your attachement is doable in the FlowBox I believe, but the second
 screenshot is much harder. Notice how box C extends down into a second row,
 and also how box E extends across multiple columns. That use of dual column
 and row spanning makes it difficult. If you allow the components to be
 forced into either rows or columns then it will be much easier.

 Doug



 On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi All Attached is the rough sketch i am about the UI i have to implement.
 Right now they are just empty pictures, but the user can drag them on the
 stage and can resize the images placed on the main screen. My requirement if
 user drops a new image on the screen all the other images adjust themselves
 to accommodate the new image. Also if user enlarge or shrink one image (like
 in the sketch user is trying to shrink image B), all the other images adjust
 themselves on the main stage . Please let em know if you have any questions.
 Thanks a lot for your help
 Anuj



 On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick
 I will try to sketch my requirement and send it to you soon. That might
 help to find what i am looking for.
 Thanks for your suggestion.
 Anuj



 On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED

Re: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread Doug McCune
His layout is really difficult. Basically he wants images to be smart enough
to size any which way to fit around each other. If you take a look at the
word doc he attached the second mockup shows the problem. Basically he
doesn't want to restrict to rows or columns, and wants items to be able to
span both, which is hard to do.

I honestly don't have an answer for how to do that layout. If you can change
the requirement to let you use either columns or rows then you're fine.

Doug

On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED] wrote:

OK, FlexMDI, probably won't do it for you.  You want some organization
 of the images.  Why didn't FlowBox work for you?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *anuj sharma
 *Sent:* Wednesday, September 03, 2008 2:31 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 Hi Alex
 I am not sure i understand that. Basically I am dragging images from one
 container which is HBOX( because i need scroller facility too) and dropping
 them in another container which is Tile.
 The user should be able to resize the dropped images as shown in the layout
 and the rest of the images have to adjust in terms of size as well as
 location to let resized image to get accommodated. I have seen some examples
 of FlowBox and one as shown in the following link:
 http://demo.quietlyscheming.com/DragTile/DragDrop.html
 but my problem coems becasue user should be able to resize the images in
 the container. As I have mentioned this is the first project of this kind
 for me I am not sure which way to go. Anyway coming to your question 
 (mini-window
 using FlexMDI) it can be the any way as long as it is solving the purpose
 of my requirement. Any detail and suggestions, please let me know
 Thanks
 Anuj

  On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Can everything be a mini-window using FlexMDI?



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *anuj sharma
 *Sent:* Wednesday, September 03, 2008 1:46 PM


 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 Hi Guys


 So is there anyone in the list that can help me in achieving this? This
 problem is burning me out now and I need a good head start to achieve this.
 This is my first project of this kind. Earlier i developed simple prototypes
 using basic event programming. I need you genius guys's guidance to get me
 started and need that layout for my images. If there is any custom
 componenet available in the market then i am ready to buy that too. It is
 taking me little long to figure out this layout. I have reached at the last
 level of this project.
 Sorry for being pain but please help me out in generating this layout. Any
 guidance and any kind of help in this direction will be highyl appreciated.
 Thanks in advance guys
 Anuj

 On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Dough
 I forgot to mention that i am not sure if i can force the components into
 either rows or columns because I am allowing free flow of the image within
 the container too which means that the user should be able to resize the
 image and should be able to drag and drop the image too whereever he wants
 within the container. i used drag manager for that. i thought should made it
 clear.
 Thanks for your time
 Anuj

 On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote:

Oh wow, that's actually a really flexible layout requirement that I
 don't think you can achieve with any of the components out there right now
 (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think
 you may have to lose of of the desired functionality and allow the content
 to be binned into distinct rows or columns more tightly. The first image in
 your attachement is doable in the FlowBox I believe, but the second
 screenshot is much harder. Notice how box C extends down into a second row,
 and also how box E extends across multiple columns. That use of dual column
 and row spanning makes it difficult. If you allow the components to be
 forced into either rows or columns then it will be much easier.

 Doug



 On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi All Attached is the rough sketch i am about the UI i have to implement.
 Right now they are just empty pictures, but the user can drag them on the
 stage and can resize the images placed on the main screen. My requirement if
 user drops a new image on the screen all the other images adjust themselves
 to accommodate the new image. Also if user enlarge or shrink one image (like
 in the sketch user is trying to shrink image B), all the other images adjust
 themselves on the main stage . Please let em know if you have any questions.
 Thanks a lot for your help
 Anuj



 On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick

RE: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread Alex Harui
I've never used it, but in searching for it I saw discussions of how to get it 
to re-layout

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj 
sharma
Sent: Wednesday, September 03, 2008 2:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately

Can I put my resizeable images in the FlowBox and upon resizing will the rest 
of the images be arranged of its own. I was not sure if FlowBox can take care 
of resizing the images.If that's the case i will try that. I will definitely 
keep you posted about that.
Thanks
Anuj
On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

OK, FlexMDI, probably won't do it for you.  You want some organization of the 
images.  Why didn't FlowBox work for you?



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of anuj sharma
Sent: Wednesday, September 03, 2008 2:31 PM

To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately



Hi Alex
I am not sure i understand that. Basically I am dragging images from one 
container which is HBOX( because i need scroller facility too) and dropping 
them in another container which is Tile.
The user should be able to resize the dropped images as shown in the layout and 
the rest of the images have to adjust in terms of size as well as location to 
let resized image to get accommodated. I have seen some examples of FlowBox and 
one as shown in the following link:
http://demo.quietlyscheming.com/DragTile/DragDrop.html
but my problem coems becasue user should be able to resize the images in the 
container. As I have mentioned this is the first project of this kind for me I 
am not sure which way to go. Anyway coming to your question (mini-window using 
FlexMDI) it can be the any way as long as it is solving the purpose of my 
requirement. Any detail and suggestions, please let me know
Thanks
Anuj

On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Can everything be a mini-window using FlexMDI?



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of anuj sharma
Sent: Wednesday, September 03, 2008 1:46 PM

To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately



Hi Guys

So is there anyone in the list that can help me in achieving this? This problem 
is burning me out now and I need a good head start to achieve this. This is my 
first project of this kind. Earlier i developed simple prototypes using basic 
event programming. I need you genius guys's guidance to get me started and need 
that layout for my images. If there is any custom componenet available in the 
market then i am ready to buy that too. It is taking me little long to figure 
out this layout. I have reached at the last level of this project.
Sorry for being pain but please help me out in generating this layout. Any 
guidance and any kind of help in this direction will be highyl appreciated.
Thanks in advance guys
Anuj

On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Dough
I forgot to mention that i am not sure if i can force the components into 
either rows or columns because I am allowing free flow of the image within the 
container too which means that the user should be able to resize the image and 
should be able to drag and drop the image too whereever he wants within the 
container. i used drag manager for that. i thought should made it clear.
Thanks for your time
Anuj

On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Oh wow, that's actually a really flexible layout requirement that I don't think 
you can achieve with any of the components out there right now (ie TileList, 
Tile, combination of HBox and VBox, or even FlowBox). I think you may have to 
lose of of the desired functionality and allow the content to be binned into 
distinct rows or columns more tightly. The first image in your attachement is 
doable in the FlowBox I believe, but the second screenshot is much harder. 
Notice how box C extends down into a second row, and also how box E extends 
across multiple columns. That use of dual column and row spanning makes it 
difficult. If you allow the components to be forced into either rows or columns 
then it will be much easier.

Doug



On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Hi All Attached is the rough sketch i am about the UI i have to implement. 
Right now they are just empty pictures, but the user can drag them on the stage 
and can resize the images placed on the main screen. My requirement if user 
drops a new image on the screen all

RE: [flexcoders] Need Help and Guidance desperately

2008-09-03 Thread Alex Harui
OK, I haven't really been following closely.  If he's desperate, maybe he'll be 
more restrictive so he can get Flow to work.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug 
McCune
Sent: Wednesday, September 03, 2008 2:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately

His layout is really difficult. Basically he wants images to be smart enough to 
size any which way to fit around each other. If you take a look at the word doc 
he attached the second mockup shows the problem. Basically he doesn't want to 
restrict to rows or columns, and wants items to be able to span both, which is 
hard to do.

I honestly don't have an answer for how to do that layout. If you can change 
the requirement to let you use either columns or rows then you're fine.

Doug
On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

OK, FlexMDI, probably won't do it for you.  You want some organization of the 
images.  Why didn't FlowBox work for you?



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of anuj sharma
Sent: Wednesday, September 03, 2008 2:31 PM

To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately



Hi Alex
I am not sure i understand that. Basically I am dragging images from one 
container which is HBOX( because i need scroller facility too) and dropping 
them in another container which is Tile.
The user should be able to resize the dropped images as shown in the layout and 
the rest of the images have to adjust in terms of size as well as location to 
let resized image to get accommodated. I have seen some examples of FlowBox and 
one as shown in the following link:
http://demo.quietlyscheming.com/DragTile/DragDrop.html
but my problem coems becasue user should be able to resize the images in the 
container. As I have mentioned this is the first project of this kind for me I 
am not sure which way to go. Anyway coming to your question (mini-window using 
FlexMDI) it can be the any way as long as it is solving the purpose of my 
requirement. Any detail and suggestions, please let me know
Thanks
Anuj

On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Can everything be a mini-window using FlexMDI?



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of anuj sharma
Sent: Wednesday, September 03, 2008 1:46 PM

To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately



Hi Guys

So is there anyone in the list that can help me in achieving this? This problem 
is burning me out now and I need a good head start to achieve this. This is my 
first project of this kind. Earlier i developed simple prototypes using basic 
event programming. I need you genius guys's guidance to get me started and need 
that layout for my images. If there is any custom componenet available in the 
market then i am ready to buy that too. It is taking me little long to figure 
out this layout. I have reached at the last level of this project.
Sorry for being pain but please help me out in generating this layout. Any 
guidance and any kind of help in this direction will be highyl appreciated.
Thanks in advance guys
Anuj

On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Dough
I forgot to mention that i am not sure if i can force the components into 
either rows or columns because I am allowing free flow of the image within the 
container too which means that the user should be able to resize the image and 
should be able to drag and drop the image too whereever he wants within the 
container. i used drag manager for that. i thought should made it clear.
Thanks for your time
Anuj

On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Oh wow, that's actually a really flexible layout requirement that I don't think 
you can achieve with any of the components out there right now (ie TileList, 
Tile, combination of HBox and VBox, or even FlowBox). I think you may have to 
lose of of the desired functionality and allow the content to be binned into 
distinct rows or columns more tightly. The first image in your attachement is 
doable in the FlowBox I believe, but the second screenshot is much harder. 
Notice how box C extends down into a second row, and also how box E extends 
across multiple columns. That use of dual column and row spanning makes it 
difficult. If you allow the components to be forced into either rows or columns 
then it will be much easier.

Doug



On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

Hi All Attached

[flexcoders] Need Help !!! Security box error loading SWF Animation due to new Flash Security

2008-09-02 Thread helihobby
Please anyone...

I am pulling my hair our for 3 days and REALLY could use some help ...

We have a flex application which loads Flash CS3 animation.

We can load the animation and view the animation problem.
However if we try to talk to the loaded swf ( loader.content ) which 
is by the way is downloading from a different domain than our main 
application, we get the famous Security Box error.

We have tried putting the crossdomain files in both locations ( where 
our main swf is download as well as where we are downloading the 
animation swf from ) ... with no help ...

I have read the new security updates at:

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm
l

My question is this..

In order for us to talk to a loaded swf ( Flash CS3 swf ) that 
downloaded from a different domain than our application, do we need 
to use a XML Socket Server ( the new server the link is talking 
about ) or loading the crossdomains.xml should be enough ( which is 
not working for the life of me ) ?

Thanks for the time,

Sean.







[flexcoders] need help in IFrame

2008-08-29 Thread moonrchand
Hi All,
   i am trying to use IFrame as a HTML Component to show 'html' in 
Flex. if html doesnt have any frames, then it is showing properly,

if it contains any frames, it is not showing those frames. 

how can i show whole html as it is including frames.

Thank in Advance,
Chandra



Re: [flexcoders] Need Help and Guidance desperately

2008-08-27 Thread Doug McCune
Oh wow, that's actually a really flexible layout requirement that I don't
think you can achieve with any of the components out there right now (ie
TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you
may have to lose of of the desired functionality and allow the content to be
binned into distinct rows or columns more tightly. The first image in your
attachement is doable in the FlowBox I believe, but the second screenshot is
much harder. Notice how box C extends down into a second row, and also how
box E extends across multiple columns. That use of dual column and row
spanning makes it difficult. If you allow the components to be forced into
either rows or columns then it will be much easier.

Doug

On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

   Hi All Attached is the rough sketch i am about the UI i have to
 implement. Right now they are just empty pictures, but the user can drag
 them on the stage and can resize the images placed on the main screen. My
 requirement if user drops a new image on the screen all the other images
 adjust themselves to accommodate the new image. Also if user enlarge or
 shrink one image (like in the sketch user is trying to shrink image B), all
 the other images adjust themselves on the main stage . Please let em know if
 you have any questions.
 Thanks a lot for your help
 Anuj



 On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick
 I will try to sketch my requirement and send it to you soon. That might
 help to find what i am looking for.
 Thanks for your suggestion.
 Anuj


 On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote:

The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj











  



Re: [flexcoders] Need Help and Guidance desperately

2008-08-27 Thread anuj sharma
Doug
Thanks for the reply. if you find any resources that might help me, please
e-mail it to me.
I would appreciate any kind of help in achieving this target
Anuj

On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote:

   Oh wow, that's actually a really flexible layout requirement that I
 don't think you can achieve with any of the components out there right now
 (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think
 you may have to lose of of the desired functionality and allow the content
 to be binned into distinct rows or columns more tightly. The first image in
 your attachement is doable in the FlowBox I believe, but the second
 screenshot is much harder. Notice how box C extends down into a second row,
 and also how box E extends across multiple columns. That use of dual column
 and row spanning makes it difficult. If you allow the components to be
 forced into either rows or columns then it will be much easier.

 Doug


 On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

   Hi All Attached is the rough sketch i am about the UI i have to
 implement. Right now they are just empty pictures, but the user can drag
 them on the stage and can resize the images placed on the main screen. My
 requirement if user drops a new image on the screen all the other images
 adjust themselves to accommodate the new image. Also if user enlarge or
 shrink one image (like in the sketch user is trying to shrink image B), all
 the other images adjust themselves on the main stage . Please let em know if
 you have any questions.
 Thanks a lot for your help
 Anuj



 On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick
 I will try to sketch my requirement and send it to you soon. That might
 help to find what i am looking for.
 Thanks for your suggestion.
 Anuj


 On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote:

The seconds link was to a flow layout that would set you in the
 right direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj












  



Re: [flexcoders] Need Help and Guidance desperately

2008-08-27 Thread anuj sharma
Dough
I forgot to mention that i am not sure if i can force the components into
either rows or columns because I am allowing free flow of the image within
the container too which means that the user should be able to resize the
image and should be able to drag and drop the image too whereever he wants
within the container. i used drag manager for that. i thought should made it
clear.
Thanks for your time
Anuj

On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote:

   Oh wow, that's actually a really flexible layout requirement that I
 don't think you can achieve with any of the components out there right now
 (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think
 you may have to lose of of the desired functionality and allow the content
 to be binned into distinct rows or columns more tightly. The first image in
 your attachement is doable in the FlowBox I believe, but the second
 screenshot is much harder. Notice how box C extends down into a second row,
 and also how box E extends across multiple columns. That use of dual column
 and row spanning makes it difficult. If you allow the components to be
 forced into either rows or columns then it will be much easier.

 Doug


 On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote:

   Hi All Attached is the rough sketch i am about the UI i have to
 implement. Right now they are just empty pictures, but the user can drag
 them on the stage and can resize the images placed on the main screen. My
 requirement if user drops a new image on the screen all the other images
 adjust themselves to accommodate the new image. Also if user enlarge or
 shrink one image (like in the sketch user is trying to shrink image B), all
 the other images adjust themselves on the main stage . Please let em know if
 you have any questions.
 Thanks a lot for your help
 Anuj



 On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi Rick
 I will try to sketch my requirement and send it to you soon. That might
 help to find what i am looking for.
 Thanks for your suggestion.
 Anuj


 On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote:

The seconds link was to a flow layout that would set you in the
 right direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj












  



[flexcoders] Need help about generating swf from template flash file

2008-08-27 Thread yk96290
I have a template flash file (.fla) that contains image, text and 
links. In the flex application, at run time, a swf file will be 
generated from this template. All place holders will be replaced by the 
real data. Any suggestions?

Young   



RE: [flexcoders] Need help about generating swf from template flash file

2008-08-27 Thread Alex Harui
You're going to generate a SWF file from within a running Flex app?
That's a lot of work.  Why not use the SWF from the FLA as a library of
assets and dynamically use them in your Flex UI?

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yk96290
Sent: Wednesday, August 27, 2008 8:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help about generating swf from template flash
file

 

I have a template flash file (.fla) that contains image, text and 
links. In the flex application, at run time, a swf file will be 
generated from this template. All place holders will be replaced by the 
real data. Any suggestions?

Young 

 



Re: [flexcoders] Need Help and Guidance desperately

2008-08-26 Thread anuj sharma
Hi Doug
How would i embed that open source (FloxBox) container in my project.I could
not find the source code for that container.
Please let me know
Thanks
Anuj

On Mon, Aug 25, 2008 at 10:04 PM, Doug McCune [EMAIL PROTECTED] wrote:

   I think you might be asking the wrong question. You asked how to know if
 the area that the user dropped an item was the empty space or the space
 taken up by other items in the container. But then you want all the items in
 the container to resize to become smaller to accomodate more items in the
 container if the user drops too many. Why not just let the user drop items
 anywhere in the container and just add them to the container? Then all you
 have to do is create a container that scales the children to make sure that
 they always fit within the bounds.

 If you force the children to always be the same width then this should be
 really easy to figure out what scaling you should apply to the children. If
 not then you'll have to do more complex measurement. I'd suggest starting
 with teh flowbox container in FlexLib (flexlib.net), and if that doesn't
 suit your needs then either extend that or try using the Tile container. It
 doesn't sound like you want to use a list control (ie TileList) because you
 always want all the children visible, so you never want the list to scroll,
 and therefore you don't benefit from itemrenderers, so using a list will
 just complicate things unneccesarily.

 Doug


 On Mon, Aug 25, 2008 at 9:42 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   I agree, I'd use a couple of TileLists and a simple inline
 itemrenderer. Shouldn't be too difficult really.

 -Josh


 On Tue, Aug 26, 2008 at 2:31 PM, Alex Harui [EMAIL PROTECTED] wrote:

  TileList?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Rick Winscot
 *Sent:* Monday, August 25, 2008 7:47 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj













 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]


  



Re: [flexcoders] Need Help and Guidance desperately

2008-08-26 Thread anuj sharma
Hi Rick
I will try to sketch my requirement and send it to you soon. That might help
to find what i am looking for.
Thanks for your suggestion.
Anuj

On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote:

The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj









   



[flexcoders] Need Help and Guidance desperately

2008-08-25 Thread anuj181
Hi
I am using HBOX container to load images letting user drag image from
one HBOX and dropping them in another (2nd)HBOX. I need to calculate
the real estate of the HBOX in which the image has been dropped (i-e
2nd HBOX). The reason is that because I need the dropped image to get
placed in an empty space within the 2nd HBOX.
Is there any way I can calculate which space is empty in the HBOX and
let my objects (images) to be placed only in the empty spaces within
the HBOX (not the sapce already occupied by the placed images).Once
the HBOX is full then I need to code in a way that images starts
shrinking(upto some level) to accommodate more images.
Please help me out in figuring out this problem. Any type of
help/documentation/links in this direction will be highly appreciated.
Thanks
Anuj



Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Rick Winscot
Problem is... There is no such thing as Œempty.¹ If an Hbox has 5 items in
it ­ it has 5 items in it. If an Hbox has 2 items in it ­ it has 2 items in
it. Also, the default behavior of the Hbox is to accommodate and resize as
needed. It sounds to me like what you need to do is either make the illusion
of empty spaces or use a layout that facilitates your drag drop operation.

http://www.quilix.com/node/3
http://www.darronschall.com/weblog/archives/000263.cfm

Rick Winscot


On 8/25/08 8:18 PM, anuj181 [EMAIL PROTECTED] wrote:

  
  
 
 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj
 
  
 




Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread anuj sharma
Hi Rick
Thanks for the reply. Are there any recommendations about which layout
component or container should i use or do i need to create my custom
component for achieving this target. I am not sure which way to handle that
layout. Please help me out
Again Thanks a lot.
Anuj

On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:

   Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj

  



Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Rick Winscot
The seconds link was to a flow layout that would set you in the right
direction... The other option was the first link which uses static
positioning. Really, it depends on what you want the user experience to be
like. If you could sketch out the solution ­ we could throw some code
around.

Rick Winscot


On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:

  
  
 
 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom component
 for achieving this target. I am not sure which way to handle that layout.
 Please help me out
 Again Thanks a lot.
 Anuj
 
 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:
  
  
 
 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj
 
  
 
 
  
 




RE: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Alex Harui
TileList?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Winscot
Sent: Monday, August 25, 2008 7:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need Help and Guidance desperately

 

The seconds link was to a flow layout that would set you in the right
direction... The other option was the first link which uses static
positioning. Really, it depends on what you want the user experience to
be like. If you could sketch out the solution - we could throw some code
around.

Rick Winscot


On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:


 

Hi Rick
Thanks for the reply. Are there any recommendations about which
layout component or container should i use or do i need to create my
custom component for achieving this target. I am not sure which way to
handle that layout. Please help me out
Again Thanks a lot.
Anuj

On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED]
wrote:


 

Hi
I am using HBOX container to load images letting user drag image
from
one HBOX and dropping them in another (2nd)HBOX. I need to
calculate
the real estate of the HBOX in which the image has been dropped
(i-e
2nd HBOX). The reason is that because I need the dropped image
to get
placed in an empty space within the 2nd HBOX.
Is there any way I can calculate which space is empty in the
HBOX and
let my objects (images) to be placed only in the empty spaces
within
the HBOX (not the sapce already occupied by the placed
images).Once
the HBOX is full then I need to code in a way that images starts
shrinking(upto some level) to accommodate more images.
Please help me out in figuring out this problem. Any type of
help/documentation/links in this direction will be highly
appreciated.
Thanks
Anuj

 



 


 

 



Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Josh McDonald
I agree, I'd use a couple of TileLists and a simple inline itemrenderer.
Shouldn't be too difficult really.

-Josh

On Tue, Aug 26, 2008 at 2:31 PM, Alex Harui [EMAIL PROTECTED] wrote:

  TileList?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Rick Winscot
 *Sent:* Monday, August 25, 2008 7:47 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj










 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Doug McCune
I think you might be asking the wrong question. You asked how to know if the
area that the user dropped an item was the empty space or the space taken up
by other items in the container. But then you want all the items in the
container to resize to become smaller to accomodate more items in the
container if the user drops too many. Why not just let the user drop items
anywhere in the container and just add them to the container? Then all you
have to do is create a container that scales the children to make sure that
they always fit within the bounds.

If you force the children to always be the same width then this should be
really easy to figure out what scaling you should apply to the children. If
not then you'll have to do more complex measurement. I'd suggest starting
with teh flowbox container in FlexLib (flexlib.net), and if that doesn't
suit your needs then either extend that or try using the Tile container. It
doesn't sound like you want to use a list control (ie TileList) because you
always want all the children visible, so you never want the list to scroll,
and therefore you don't benefit from itemrenderers, so using a list will
just complicate things unneccesarily.

Doug

On Mon, Aug 25, 2008 at 9:42 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   I agree, I'd use a couple of TileLists and a simple inline itemrenderer.
 Shouldn't be too difficult really.

 -Josh


 On Tue, Aug 26, 2008 at 2:31 PM, Alex Harui [EMAIL PROTECTED] wrote:

  TileList?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Rick Winscot
 *Sent:* Monday, August 25, 2008 7:47 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj













 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
  



Re: [flexcoders] Need Help and Guidance desperately

2008-08-25 Thread Josh McDonald
Well it does let you use the data API and a pair of Collections, even if
you're not using scrolling.

-Josh

On Tue, Aug 26, 2008 at 3:04 PM, Doug McCune [EMAIL PROTECTED] wrote:

  I think you might be asking the wrong question. You asked how to know if
 the area that the user dropped an item was the empty space or the space
 taken up by other items in the container. But then you want all the items in
 the container to resize to become smaller to accomodate more items in the
 container if the user drops too many. Why not just let the user drop items
 anywhere in the container and just add them to the container? Then all you
 have to do is create a container that scales the children to make sure that
 they always fit within the bounds.

 If you force the children to always be the same width then this should be
 really easy to figure out what scaling you should apply to the children. If
 not then you'll have to do more complex measurement. I'd suggest starting
 with teh flowbox container in FlexLib (flexlib.net), and if that doesn't
 suit your needs then either extend that or try using the Tile container. It
 doesn't sound like you want to use a list control (ie TileList) because you
 always want all the children visible, so you never want the list to scroll,
 and therefore you don't benefit from itemrenderers, so using a list will
 just complicate things unneccesarily.

 Doug

 On Mon, Aug 25, 2008 at 9:42 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   I agree, I'd use a couple of TileLists and a simple inline
 itemrenderer. Shouldn't be too difficult really.

 -Josh


 On Tue, Aug 26, 2008 at 2:31 PM, Alex Harui [EMAIL PROTECTED] wrote:

  TileList?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Rick Winscot
 *Sent:* Monday, August 25, 2008 7:47 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Need Help and Guidance desperately



 The seconds link was to a flow layout that would set you in the right
 direction... The other option was the first link which uses static
 positioning. Really, it depends on what you want the user experience to be
 like. If you could sketch out the solution – we could throw some code
 around.

 Rick Winscot


 On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote:




 Hi Rick
 Thanks for the reply. Are there any recommendations about which layout
 component or container should i use or do i need to create my custom
 component for achieving this target. I am not sure which way to handle that
 layout. Please help me out
 Again Thanks a lot.
 Anuj

 On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote:




 Hi
 I am using HBOX container to load images letting user drag image from
 one HBOX and dropping them in another (2nd)HBOX. I need to calculate
 the real estate of the HBOX in which the image has been dropped (i-e
 2nd HBOX). The reason is that because I need the dropped image to get
 placed in an empty space within the 2nd HBOX.
 Is there any way I can calculate which space is empty in the HBOX and
 let my objects (images) to be placed only in the empty spaces within
 the HBOX (not the sapce already occupied by the placed images).Once
 the HBOX is full then I need to code in a way that images starts
 shrinking(upto some level) to accommodate more images.
 Please help me out in figuring out this problem. Any type of
 help/documentation/links in this direction will be highly appreciated.
 Thanks
 Anuj













 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]


 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Need help with AdvancedDataGrid ItemRenders

2008-08-14 Thread xxmessiah2xx
I need to set the color of a cell (not the entire row or column) 
depending on the the data value of the current cell, and the column 
that i'm in.  

so If I have a ADG like this:

...| x | y | z |
---|---|---|---|
abc| 5 | 6 | 7 |
def| 1 | 7 | 8 |

if the column is X, I need to color any cell where the value is less 
than 4
if the column is Y, I need to color any cell where the value is less 
than 7
if the column is Z, I need to color any cell where the value is less 
than 8

I can't hard-code the values, because they will change based on a 
configuration (I essentially have an array that gets populated 
elsewhere that I can reference).

Since my source data is XML, I get the entire XML row when I look at 
the data:Object in my renderer, which does me no good because I can't 
tell which column I'm in to look up a compare value.

If I use a style function in my column, I can't set the background 
color, since by default, the ADG doesn't have a background color.  
Furthermore, I can't get a reference to that cell's renderer, only 
the entire datagrid's or column's renderer.

At this point, I'm just lost.  Any help is greatly appreciated.

Thanks in advance!



[flexcoders] Need help urgently regarding the uploading component in flex

2008-08-07 Thread santoshgadagoju
I strucked at a point in designing uploading component in flex.
Below is the code of my uploading component. Please find the red marked
content in the below code.
My requirement is to alert the URL of the file selected in the list box
when i click a file item in the listbox.
Please help me ...


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
creationComplete=initApp()

 mx:Style
 Text{
 font-weight:normal;
 }
 Label{
 font-weight:bold;
 }

 /mx:Style

 mx:Script
 ![CDATA[

 import mx.states.*;
 import mx.controls.*;
 import mx.managers.*;
 import mx.events.*;
 import mx.events.ListEvent;
 import flash.events.*;
 import flash.net.*;

 private var _arrUploadFiles:Array;
 private var _numCurrentUpload:Number = 0;
 private var _refAddFiles:FileReferenceList;
 private var _refUploadFile:FileReference;
 private var _strUploadUrl:String;



 private function initApp():void {
 Security.allowDomain(*);
 _arrUploadFiles = new Array();
 }

 // Set uploadUrl
 public function set uploadUrl(strUploadUrl:String):void {
 _strUploadUrl = strUploadUrl;
 }

 private function addFiles():void {
 _refAddFiles = new FileReferenceList();
 _refAddFiles.addEventListener(Event.SELECT,
onSelectFile);
 _refAddFiles.browse();
 }

 // Called to remove selected file(s) for upload
 private function removeFiles():void {
 var arrSelected:Array = listFiles.selectedIndices;
 for (var i:Number = 0; i  arrSelected.length; i++) {
 _arrUploadFiles[Number(arrSelected[i])] = null;
 }
 for (var j:Number = 0; j  _arrUploadFiles.length; j++)
{
 if (_arrUploadFiles[j] == null) {
 _arrUploadFiles.splice(j, 1);
 j--;
 }
 }
 listFiles.dataProvider = _arrUploadFiles;
 listFiles.selectedIndex = 0;

 }

 private function onSelectFile(event:Event):void {
 var arrFoundList:Array = new Array();
 // Get list of files from fileList, make list of files
already on upload list
 for (var i:Number = 0; i  _arrUploadFiles.length; i++)
{
 for (var j:Number = 0; j 
_refAddFiles.fileList.length; j++) {
 if (_arrUploadFiles[i].label ==
_refAddFiles.fileList[j].name) {

arrFoundList.push(_refAddFiles.fileList[j].name);
 _refAddFiles.fileList.splice(j, 1);
 j--;
 }
 }
 }
 if (_refAddFiles.fileList.length = 1) {
 for (var k:Number = 0; k 
_refAddFiles.fileList.length; k++) {

_arrUploadFiles.push({label:_refAddFiles.fileList[k].name,
data:_refAddFiles.fileList[k]});
 }
 listFiles.dataProvider = _arrUploadFiles;
 listFiles.selectedIndex = _arrUploadFiles.length -
1;
 }
 if (arrFoundList.length = 1) {
 Alert.show(The file(s): \n\n•  +
arrFoundList.join(\n• ) + \n\n...are already on the upload list.
Please change the filename(s) or pick a different file., File(s)
already on list);
 }

 }

 private function changeHandler(event:ListEvent):void{

 Alert.show(event.itemRenderer.data.label);

 // Here i want to alert the URL of the file clicked,
 // i.e, URL of the file from where the file is
uploaded.
 }


 ]]
 /mx:Script

 mx:List id=listFiles x=393 y=229 width=258
itemClick=changeHandler(event)/
 mx:Button x=659 y=239 label=Add click=addFiles() /
 mx:Button x=659 y=269 label=Del click=removeFiles()/


/mx:Application


[flexcoders] Need Help with Modules

2008-08-06 Thread s20678
I have read couple of posts/presentations regarding Modules..But 
still I am not able to figure out the issue. I really appreciate if 
anyone can help me out here.  

I am getting ReferenceError: Error #1069: Property child not found on 
MyApp and there is no default value.
at HomePageView/loadChildView()
[E:\projects\web\intranet\intranet\flex\src\retail\dsd\src\HomePageVie
w.mxml:7]
at HomePageView/___HomePageView_Button1_click()
[E:\projects\web\intranet\intranet\flex\src\retail\dsd\src\HomePageVie
w.mxml:12]

Here is the code: [When I click 'childView' button in HomePageView 
module, I want ChildPageView to be loaded.]

MyApp.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
creationComplete=initApp()
mx:Script
![CDATA[
private function initApp():void {
module1.applicationDomain = 
ApplicationDomain.currentDomain;
module1.url=Module1.swf;
}
]]
/mx:Script
   mx:ViewStack id=myAppViewStack  width=100% height=100%  
 mx:ModuleLoader id=module1  width=100% height=100% /
 mx:ModuleLoader id=module2  width=100% height=100% /
  mx:ModuleLoader id=module3   width=100% 
height=100% /
  /mx:ViewStack
 /mx:Application

Module1.mxml

mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute width=100% height=100%  xmlns=* 
creationComplete=initApp()
 mx:ViewStack id=module1ViewStack borderStyle=solid 
width=100% height=100% 
 mx:ModuleLoader id=home  width=100% height=100% /
 mx:ModuleLoader id=child  width=100% height=100% /
 /mx:ViewStack
mx:Script
![CDATA[
   private function initApp():void {
home.applicationDomain = 
ApplicationDomain.currentDomain;
home.url=HomePageView.swf;
}
]]
/mx:Script
/mx:Module

HomePageView.mxml

?xml version=1.0 encoding=utf-8? 
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; width=100% 
height=100%
mx:Script
![CDATA[ 
import mx.core.Application;
private function loadChildView(){

Application.application.child.applicationDomain = 
ApplicationDomain.currentDomain;

Application.application.child.url=ChildPageView.swf;
}   
]]
/mx:Script
mx:Button label=Child View click=loadChildView() /
/mx:Module


Am I doing something wrong? I heard about having shared variables in 
Application..what are these. Can you please explain me how to resolve 
the error.



RE: [flexcoders] Need Help with Modules

2008-08-06 Thread Alex Harui
Modules are not applications.
 
Application.application is the application in MyApp.mxml



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of s20678
Sent: Wednesday, August 06, 2008 9:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need Help with Modules



I have read couple of posts/presentations regarding Modules..But 
still I am not able to figure out the issue. I really appreciate if 
anyone can help me out here. 

I am getting ReferenceError: Error #1069: Property child not found on 
MyApp and there is no default value.
at HomePageView/loadChildView()
[E:\projects\web\intranet\intranet\flex\src\retail\dsd\src\HomePageVie
w.mxml:7]
at HomePageView/___HomePageView_Button1_click()
[E:\projects\web\intranet\intranet\flex\src\retail\dsd\src\HomePageVie
w.mxml:12]

Here is the code: [When I click 'childView' button in HomePageView 
module, I want ChildPageView to be loaded.]

MyApp.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  xmlns=* 
creationComplete=initApp()
mx:Script
![CDATA[
private function initApp():void {
module1.applicationDomain = 
ApplicationDomain.currentDomain;
module1.url=Module1.swf;
}
]]
/mx:Script
mx:ViewStack id=myAppViewStack width=100% height=100% 
mx:ModuleLoader id=module1 width=100% height=100% /
mx:ModuleLoader id=module2 width=100% height=100% /
mx:ModuleLoader id=module3 width=100% 
height=100% /
/mx:ViewStack
/mx:Application

Module1.mxml

mx:Module xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=absolute width=100% height=100% xmlns=* 
creationComplete=initApp()
mx:ViewStack id=module1ViewStack borderStyle=solid 
width=100% height=100% 
mx:ModuleLoader id=home width=100% height=100% /
mx:ModuleLoader id=child width=100% height=100% /
/mx:ViewStack
mx:Script
![CDATA[
private function initApp():void {
home.applicationDomain = 
ApplicationDomain.currentDomain;
home.url=HomePageView.swf;
}
]]
/mx:Script
/mx:Module

HomePageView.mxml

?xml version=1.0 encoding=utf-8? 
mx:Module xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100% 
height=100%
mx:Script
![CDATA[ 
import mx.core.Application;
private function loadChildView(){

Application.application.child.applicationDomain = 
ApplicationDomain.currentDomain;

Application.application.child.url=ChildPageView.swf;
} 
]]
/mx:Script
mx:Button label=Child View click=loadChildView() /
/mx:Module

Am I doing something wrong? I heard about having shared variables in 
Application..what are these. Can you please explain me how to resolve 
the error.



 


[flexcoders] Need help: Build with remoteObject support

2008-07-29 Thread olol97124
Hello

I am having problems to build the project with LCDS (remoteObject).
The RemoteObject is handled by a Java thread on server. The service is
in .jar which I put under WEB-INF/lib. The system works fine in
non-built release (which I copied those files to server directly, let
server built .swf). After building in Flex builder 3.0, the .swf can't
start and find the service. My question is how to setup project to
include 'messaging channel' support.
  
thanks in advance!



[flexcoders] need help with a custom item renderer

2008-07-23 Thread ndele_sutton
i am developing using flex 3.0 and was trying to expand on some of 
the item renderer examples that i saw at alex's flex closet, but i 
ran into some trouble. i am trying to create a renderer that has a 
clickable image and a text component. i decided to subclass TextInput 
and add a preceding image but it just doesn't render properly. when 
first displayed, the image is positioned at x=-8, y=-8 despite 
explicitly setting the x and y coordinates. when the mouseover forces 
a redraw, the image is properly positioned. also, there appears to be 
a thin border at the bottom of the cell that i cannot get rid of. any 
help would be appreciated.  the code is listed below.  i am new to 
flex, so alternatives to this approach are welcome.

thanks


ublic class ParameterRenderer extends TextInput
{
private var image:Image;

public function ParameterRenderer()
{
super();
setStyle(borderStyle, none);
setStyle(paddingBottom, 0);
}

override public function validateNow():void
{
// see BackgroundColorRenderer
}

override protected function updateDisplayList(w:Number, 
h:Number):void {
super.updateDisplayList(w, h);

// lifted from CenteredImage
if (image.content) {
var contentHolder:Loader = image.content.parent as Loader;
contentHolder.width = contentHolder.contentLoaderInfo.width;
contentHolder.height = contentHolder.contentLoaderInfo.height;
contentHolder.x = textField.x;
contentHolder.y = (h - contentHolder.contentLoaderInfo.height) / 2;
}
}

override protected function createChildren():void {
super.createChildren();

textField.selectable = false;

if (!image) {
image = new Image();
// attempt to get image to position properly
image.width = 16;
image.height = 16;
image.source = ../img/delete2.gif;
addChild(DisplayObject(image));
image.addEventListener(MouseEvent.CLICK, delete_onClick);
invalidateDisplayList();
image.move(2,0);
}
}

override protected function createBorder():void {
// thought this might get rid of bottom border
}

public function delete_onClick(event:MouseEvent):void {
// do something
} 



RE: [flexcoders] need help with a custom item renderer

2008-07-23 Thread Alex Harui
I'd start with mx.controls.listClasses.ListItemRenderer.  It can already
display an icon and text.  Copy the source and modify as needed.
Putting stuff at negative coordinates is generally not recommended.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ndele_sutton
Sent: Wednesday, July 23, 2008 7:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help with a custom item renderer

 

i am developing using flex 3.0 and was trying to expand on some of 
the item renderer examples that i saw at alex's flex closet, but i 
ran into some trouble. i am trying to create a renderer that has a 
clickable image and a text component. i decided to subclass TextInput 
and add a preceding image but it just doesn't render properly. when 
first displayed, the image is positioned at x=-8, y=-8 despite 
explicitly setting the x and y coordinates. when the mouseover forces 
a redraw, the image is properly positioned. also, there appears to be 
a thin border at the bottom of the cell that i cannot get rid of. any 
help would be appreciated. the code is listed below. i am new to 
flex, so alternatives to this approach are welcome.

thanks

ublic class ParameterRenderer extends TextInput
{
private var image:Image;

public function ParameterRenderer()
{
super();
setStyle(borderStyle, none);
setStyle(paddingBottom, 0);
}

override public function validateNow():void
{
// see BackgroundColorRenderer
}

override protected function updateDisplayList(w:Number, 
h:Number):void {
super.updateDisplayList(w, h);

// lifted from CenteredImage
if (image.content) {
var contentHolder:Loader = image.content.parent as Loader;
contentHolder.width = contentHolder.contentLoaderInfo.width;
contentHolder.height = contentHolder.contentLoaderInfo.height;
contentHolder.x = textField.x;
contentHolder.y = (h - contentHolder.contentLoaderInfo.height) / 2;
}
}

override protected function createChildren():void {
super.createChildren();

textField.selectable = false;

if (!image) {
image = new Image();
// attempt to get image to position properly
image.width = 16;
image.height = 16;
image.source = ../img/delete2.gif;
addChild(DisplayObject(image));
image.addEventListener(MouseEvent.CLICK, delete_onClick);
invalidateDisplayList();
image.move(2,0);
}
}

override protected function createBorder():void {
// thought this might get rid of bottom border
}

public function delete_onClick(event:MouseEvent):void {
// do something
} 

 



RE: [flexcoders] need help urgent - multiple images printing

2008-07-20 Thread Alex Harui
Probably not possible with current versions.  Your print job will
probably take more than 60 seconds on some machines and timeout.
Someday, I hope the Flash Player will fix the bug that will allow
printing in the background.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sondang paruliant
Sent: Saturday, July 19, 2008 5:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help urgent - multiple images printing

 

Dear all  need help

how to printing multiple images (1000 images)  

 I try using images loader to printing but cannot shown in printing
result.
when Using Reperter to call multiple images Good work but to heavy  and
make long time loading.
I try Using mx:list and itemRenderer to Get images data source and how
to accessing itemRenderer component Object from application

This my printing function source :


public function PrintAllbyGroups(): void {

CursorManager.setBusyCursor();


var i:int;
var DataRows:ArrayCollection = globalArrayData;


var myPrintJob:FlexPrintJob = new FlexPrintJob();

myPrintJob.printAsBitmap = false;
var pageLimit: int = 3; // limit data tiap halaman
var counterData: int = 0; // counter data tiap halaman
var counterPage: int = 0; // counter halaman tiap
dokumen
var lastGroupName: String = DataRows.getItemAt(0).Kelas;

var printState:Boolean = false;

if(myPrintJob.start())
{
for( i = 0; i  DataRows.length; i++)
{
// bila terjadi perubahan groupName
if(lastGroupName !==
DataRows.getItemAt(i).Kelas)
{
// tambahkan ke halaman pencetakan
 
myPrintJob.addObject(mySheet,FlexPrintJobScaleType.NONE);

// tambahkan counter halaman
counterPage++;
// kembalikan counterData ke normal
counterData= 0;
// ubah nama grup terakhir

lastGroupName = DataRows.getItemAt(i).Kelas;
}
// iterasi
counterData++;
// normalkan system
if(counterData === 1)
{
printRow1.visible = false;
printRow2.visible = false;
printRow3.visible = false;
}

printGroupName.text = Grup  + lastGroupName;

if(counterData === 1)
{
printRow1.visible = true;
printName1.text =
DataRows.getItemAt(i).Name;

printClass1.text =
DataRows.getItemAt(i).Class;

printAuthorityCode1.text =
DataRows.getItemAt(i).AuthorityCode;
 
if(StringUtil.trim(DataRows.getItemAt(i).AreaCode)==0){
printKliringArea1.text = Kantor Pusat;
 n! bsp;  }else{
printKliringArea1.text = Wilayah  +
DataRows.getItemAt(i).AreaCode + ,  +
DataRows.getItemAt(i).KliringArea;
}
printSpecimen1.width = imageWidth;
printSpecimen1.height = imageHeight;


printSpecimen1.source =  this place how
to get object in mx:list itemRendere component
}

if(counterData === 2)
{
printRow2.visible = true;
printName2.text =
DataRows.getItemAt(i).Name;
printClass2.text =
DataRows.getItemAt(i).Class;
printAuthorityCode2.text =
DataRows.getItemAt(i).AuthorityCode;
 
if(StringUtil.trim(DataRows.getItemAt(i).AreaCode)==0){
  nbs! p; printKliringArea2.text = Kantor
Pusat;
}else{
printKliringArea2.text = Wilayah  +
DataRows.getItemAt(i).AreaCode + ,  +
DataRows.getItemAt(i).KliringArea;
}
printSpecimen2.width = imageWidth;
printSpecimen2.height = imageHeight;
//printSpecimen2.source = newRepeat

[flexcoders] need help urgent - multiple images printing

2008-07-19 Thread sondang paruliant
Dear all  need help

how to printing multiple images (1000 images)  

 I try using images loader to printing but cannot shown in printing result.
when Using Reperter to call multiple images Good work but to heavy  and make 
long time loading.
I try Using mx:list and itemRenderer to Get images data source and how to 
accessing itemRenderer component Object from application

This my printing function source :


public function PrintAllbyGroups(): void {

CursorManager.setBusyCursor();


var i:int;
var DataRows:ArrayCollection = globalArrayData;

var myPrintJob:FlexPrintJob = new FlexPrintJob();

myPrintJob.printAsBitmap = false;
var pageLimit: int = 3; // limit data tiap halaman
var counterData: int = 0; // counter data tiap halaman
var counterPage: int = 0; // counter halaman tiap dokumen   
 
var lastGroupName: String = DataRows.getItemAt(0).Kelas;

var printState:Boolean = false;

if(myPrintJob.start())
{
for( i = 0; i  DataRows.length; i++)
{
// bila terjadi perubahan groupName
if(lastGroupName !== DataRows.getItemAt(i).Kelas)
{
// tambahkan ke halaman pencetakan

myPrintJob.addObject(mySheet,FlexPrintJobScaleType.NONE);   
 
// tambahkan counter halaman
counterPage++;
// kembalikan counterData ke normal
counterData= 0;
// ubah nama grup terakhir  
  
lastGroupName = DataRows.getItemAt(i).Kelas;
}
// iterasi
counterData++;
// normalkan system
if(counterData === 1)
{
printRow1.visible = false;
printRow2.visible = false;
printRow3.visible = false;
}

printGroupName.text = Grup  + lastGroupName;

if(counterData === 1)
{
printRow1.visible = true;
printName1.text = DataRows.getItemAt(i).Name;

printClass1.text = DataRows.getItemAt(i).Class;

printAuthorityCode1.text = 
DataRows.getItemAt(i).AuthorityCode;

if(StringUtil.trim(DataRows.getItemAt(i).AreaCode)==0){
printKliringArea1.text = Kantor Pusat;
}else{
printKliringArea1.text = Wilayah  + 
DataRows.getItemAt(i).AreaCode + ,  + DataRows.getItemAt(i).KliringArea;
}
printSpecimen1.width = imageWidth;
printSpecimen1.height = imageHeight;


printSpecimen1.source =  this place how to get 
object in mx:list itemRendere component
}

if(counterData === 2)
{
printRow2.visible = true;
printName2.text = DataRows.getItemAt(i).Name;
printClass2.text = DataRows.getItemAt(i).Class;
printAuthorityCode2.text = 
DataRows.getItemAt(i).AuthorityCode;

if(StringUtil.trim(DataRows.getItemAt(i).AreaCode)==0){
printKliringArea2.text = Kantor Pusat;
}else{
printKliringArea2.text = Wilayah  + 
DataRows.getItemAt(i).AreaCode + ,  + DataRows.getItemAt(i).KliringArea;
}
printSpecimen2.width = imageWidth;
printSpecimen2.height = imageHeight;
//printSpecimen2.source = newRepeat
}

if(counterData === 3)
{
printRow3.visible = true;
printName3.text = DataRows.getItemAt(i).Name;
printClass3.text = DataRows.getItemAt(i).Class;

[flexcoders] NEED HELP URGENT MULTIPLE IMAGES PRINTING MORE THAN 1000 IMAGES

2008-07-19 Thread sondang paruliant
Dear all  need help

how to printing multiple images (1000 images)  

 I try using images loader to printing but cannot shown in printing result.
when Using Reperter to call multiple images Good work but to heavy  and make 
long time loading.
I
try Using mx:list and itemRenderer to Get images data source and how to
accessing itemRenderer component Object from application

This my printing function source :


public function PrintAllbyGroups( ): void {

CursorManager. setBusyCursor( );


var i:int;
var DataRows:ArrayColle ction = globalArrayData;

var myPrintJob:FlexPrin tJob = new FlexPrintJob( );

myPrintJob.printAsB itmap = false;
var pageLimit: int = 3; // limit data tiap halaman
var counterData: int = 0; // counter data tiap halaman
var counterPage: int = 0; // counter halaman tiap dokumen   
 
var lastGroupName: String = DataRows.getItemAt( 0).Kelas;

var printState:Boolean = false;

if(myPrintJob. start())
{
for( i = 0; i  DataRows.length; i++)
{
// bila terjadi perubahan groupName
if(lastGroupName !== DataRows.getItemAt( i).Kelas)
{
// tambahkan ke halaman pencetakan
myPrintJob.addObjec t(mySheet, FlexPrintJobScal 
eType.NONE) ;
// tambahkan counter halaman
counterPage+ +;
// kembalikan counterData ke normal
counterData= 0;
// ubah nama grup terakhir  
  
lastGroupName = DataRows.getItemAt( i).Kelas;
}
// iterasi
counterData+ +;
// normalkan system
if(counterData === 1)
{
printRow1.visible = false;
printRow2.visible = false;
printRow3.visible = false;
}

printGroupName. text = Grup  + lastGroupName;

if(counterData === 1)
{
printRow1.visible = true;
printName1.text = DataRows.getItemAt( i).Name;

printClass1. text = DataRows.getItemAt( i).Class;

printAuthorityCode1 .text = DataRows.getItemAt( 
i).AuthorityCode ;
if(StringUtil. trim(DataRows. getItemAt( 
i).AreaCode) ==0){
printKliringArea1. text = Kantor Pusat;
}else{
   
printKliringArea1. text = Wilayah  +
DataRows.getItemAt( i).AreaCode + ,  + DataRows.getItemAt(
i).KliringArea;
}
printSpecimen1. width = imageWidth;
printSpecimen1. height = imageHeight;


printSpecimen1. source =  this place how to get 
mx:Image object in mx:list itemRenderer component
}

if(counterData === 2)
{
printRow2.visible = true;
printName2.text = DataRows.getItemAt( i).Name;
printClass2. text = DataRows.getItemAt( i).Class;
printAuthorityCode2 .text = DataRows.getItemAt( 
i).AuthorityCode ;
if(StringUtil. trim(DataRows. getItemAt( 
i).AreaCode) ==0){
printKliringArea2. text = Kantor Pusat;
}else{
   
printKliringArea2. text = Wilayah  +
DataRows.getItemAt( i).AreaCode + ,  + DataRows.getItemAt(
i).KliringArea;
}
printSpecimen2. width = imageWidth;
printSpecimen2. height = imageHeight;
//printSpecimen2. source = newRepeat
}

if(counterData === 3)
{
printRow3.visible = true;
printName3.text = DataRows.getItemAt( i).Name;
 

[flexcoders] NEED HELP URGENT MULTIPLE IMAGES PRINTING MORE THAN 1000 IMAGES

2008-07-19 Thread sondang paruliant
Dear all  need help

how to printing multiple images (1000 images)  

 I try using images loader to printing but cannot shown in printing result.
when Using Reperter to call multiple images Good work but to heavy  and make 
long time loading.
I
try Using mx:list and itemRenderer to Get images data source and how to
accessing itemRenderer component Object from application

This my printing function source :


public function PrintAllbyGroups( ): void {

CursorManager. setBusyCursor( );


var i:int;
var DataRows:ArrayColle ction = globalArrayData;

var myPrintJob:FlexPrin tJob = new FlexPrintJob( );

myPrintJob.printAsB itmap = false;
var pageLimit: int = 3; // limit data tiap halaman
var counterData: int = 0; // counter data tiap halaman
var counterPage: int = 0; // counter halaman tiap dokumen   
 
var lastGroupName: String = DataRows.getItemAt( 0).Kelas;

var printState:Boolean = false;

if(myPrintJob. start())
{
for( i = 0; i  DataRows.length; i++)
{
// bila terjadi perubahan groupName
if(lastGroupName !== DataRows.getItemAt( i).Kelas)
{
// tambahkan ke halaman pencetakan
myPrintJob.addObjec t(mySheet, FlexPrintJobScal 
eType.NONE) ;
// tambahkan counter halaman
counterPage+ +;
// kembalikan counterData ke normal
counterData= 0;
// ubah nama grup terakhir  
  
lastGroupName = DataRows.getItemAt( i).Kelas;
}
// iterasi
counterData+ +;
// normalkan system
if(counterData === 1)
{
printRow1.visible = false;
printRow2.visible = false;
printRow3.visible = false;
}

printGroupName. text = Grup  + lastGroupName;

if(counterData === 1)
{
printRow1.visible = true;
printName1.text = DataRows.getItemAt( i).Name;

printClass1. text = DataRows.getItemAt( i).Class;

printAuthorityCode1 .text = DataRows.getItemAt( 
i).AuthorityCode ;
if(StringUtil. trim(DataRows. getItemAt( 
i).AreaCode) ==0){
printKliringArea1. text = Kantor Pusat;
}else{
   
printKliringArea1. text = Wilayah  +
DataRows.getItemAt( i).AreaCode + ,  + DataRows.getItemAt(
i).KliringArea;
}
printSpecimen1. width = imageWidth;
printSpecimen1. height = imageHeight;


printSpecimen1. source =  this place how to get 
mx:Image object in mx:list itemRenderer component
}

if(counterData === 2)
{
printRow2.visible = true;
printName2.text = DataRows.getItemAt( i).Name;
printClass2. text = DataRows.getItemAt( i).Class;
printAuthorityCode2 .text = DataRows.getItemAt( 
i).AuthorityCode ;
if(StringUtil. trim(DataRows. getItemAt( 
i).AreaCode) ==0){
printKliringArea2. text = Kantor Pusat;
}else{
   
printKliringArea2. text = Wilayah  +
DataRows.getItemAt( i).AreaCode + ,  + DataRows.getItemAt(
i).KliringArea;
}
printSpecimen2. width = imageWidth;
printSpecimen2. height = imageHeight;
//printSpecimen2. source = newRepeat
}

if(counterData === 3)
{
printRow3.visible = true;
printName3.text = DataRows.getItemAt( i).Name;
 

[flexcoders] NEED HELP PLEASE with actionscript based elements not appearing all the time

2008-06-12 Thread Body Works Studio
Hello all,

I am having an issue with the component I am using for my itemRender
on  a list. The itemRenderer is canvas based, and I have the main
layout done in mxml. in the layout I have a VBox with and id of
metadataList.

on load I run a function that pulls together content from an
arraycollection and an object (hashMap). in the function I dynamically
build and add children to the metadataList. Most of the children are
labels, but I also use the flowContainer with button children to do a
tag cloud type listing. Most of the time this works correctly.

Here is the Problem. Every so often the row will render but the action
script spawned children do not display in the metadataList on load. if
I scroll down the page and back the row will show with the children
rendered properly. Also if you hold the mouse on the scroll and go
fast up and down the list, random rows will loose the children of
meadataList.

Here is the code for metadataList:

mx:VBox id=metadataList width=100% height=100% verticalGap=0/

Here is the function that populates metadatalist:


protected function addMetaData( stop:int = -1 ):int
{
var metadataHeight:int = 0;
var items:ArrayCollection = Reference( data ).metaData.items;
var len:int = stop == -1 ? items.length : stop;
var matches:Object = Reference( data ).metaData.matches;
var tagMax:Number = 0;
var tagMin:Number = 100;

// Clear the children since we're changing data
metadataList.removeAllChildren();

for( var idx:int = 0; idx  len; idx++ )
{
var item:MetadataItem = items.getItemAt(idx) as MetadataItem;
var tagCloud:FlowContainer = new FlowContainer();
var label:Text = new Text();
var metadataText:String;
var word:String;
var tagScore:Number;
switch (item.name)
{
case Constants.KNOWLEDGE_MODEL:
if(Constants.IS_LOCAL){
}else{
var kmLength:int = item.name.length + item.value.length;
var textHeight:int = (kmLength/40 + 1) * 16;
metadataHeight += textHeight;
// building tagCloud.
tagCloud.width = metadataList.width;
// Add tagCloud to the metadataList VBox
metadataList.addChild( tagCloud );
var last:int = items.length - 1;
var words:Array = item.value.split(; );
for(var idx2:int = 0; idx2  words.length; idx2++)
{
word = words[idx2];
tagScore = matches[word];
tagMax = Math.max(tagScore, tagMax);
tagMin = Math.min(tagScore, tagMin);
}
for(var idx3:int = 0; idx3  words.length; idx3++)
{
word = words[idx3];
tagScore = matches[word];
var tagLabel:Button = new Button();
tagLabel.label = word;
tagLabel.alpha = 0.0;
tagLabel.toolTip = Constants.RELEVANCE + :  + tagScore.toFixed(2) + %

var tagDiff:Number = (tagMax + tagMin) / 2;

if (tagScore == tagMin)
tagLabel.styleName = tagCloudSmall;
else if (tagScore  tagMin  tagScore  tagDiff)
tagLabel.styleName = tagCloudMedium;
else if (tagScore  tagMax  tagScore  tagDiff)
tagLabel.styleName = tagCloudLarge;
else if (tagScore == tagMax)
tagLabel.styleName = tagCloudLarger;
else
tagLabel.styleName = tagCloudMedium;

tagCloud.addChild( tagLabel );
}
// Add HRule to the metadataList VBox under Tag Cloud
var tagCloudHR:HRule = new HRule();
tagCloudHR.styleName = tagCloudHR;
tagCloudHR.width = metadataList.width;
metadataList.addChild( tagCloudHR );
}
break;
default:
metadataText = item.name + :  + item.value;
textHeight = (metadataText.length/40 + 1) * 14;
metadataHeight += textHeight;
label.text = metadataText;
label.width=metadataList.width;
if ( item.name.toLowerCase() ==
ModelLocator.getInstance().searchResultSortBy.toLowerCase() )
{
label.styleName = selectedMetaDataLabel;
}
else
{
label.styleName = metaDataLabel;
}
metadataList.addChild( label );
break;
}
}

metadataHeight += 15; // for the less button height
return metadataHeight;
}

any suggestions on what wold be the cause or any suggestions to
optimize this?

thanks for your time

Jeff






Re: [flexcoders] NEED HELP PLEASE with actionscript based elements not appearing all the time

2008-06-12 Thread Josh McDonald
Sounds like you've got a problem with timing of events, and you're not
calling an invalidateSomething() that you should be, but you're getting the
desired results anyway just through blind luck. Or perhaps your creating the
components later than you should be (or on the wrong event) as well.

-Josh

On Fri, Jun 13, 2008 at 1:10 PM, Body Works Studio [EMAIL PROTECTED]
wrote:

   Hello all,

 I am having an issue with the component I am using for my itemRender
 on a list. The itemRenderer is canvas based, and I have the main
 layout done in mxml. in the layout I have a VBox with and id of
 metadataList.

 on load I run a function that pulls together content from an
 arraycollection and an object (hashMap). in the function I dynamically
 build and add children to the metadataList. Most of the children are
 labels, but I also use the flowContainer with button children to do a
 tag cloud type listing. Most of the time this works correctly.

 Here is the Problem. Every so often the row will render but the action
 script spawned children do not display in the metadataList on load. if
 I scroll down the page and back the row will show with the children
 rendered properly. Also if you hold the mouse on the scroll and go
 fast up and down the list, random rows will loose the children of
 meadataList.

 Here is the code for metadataList:

 mx:VBox id=metadataList width=100% height=100% verticalGap=0/

 Here is the function that populates metadatalist:

 protected function addMetaData( stop:int = -1 ):int
 {
 var metadataHeight:int = 0;
 var items:ArrayCollection = Reference( data ).metaData.items;
 var len:int = stop == -1 ? items.length : stop;
 var matches:Object = Reference( data ).metaData.matches;
 var tagMax:Number = 0;
 var tagMin:Number = 100;

 // Clear the children since we're changing data
 metadataList.removeAllChildren();

 for( var idx:int = 0; idx  len; idx++ )
 {
 var item:MetadataItem = items.getItemAt(idx) as MetadataItem;
 var tagCloud:FlowContainer = new FlowContainer();
 var label:Text = new Text();
 var metadataText:String;
 var word:String;
 var tagScore:Number;
 switch (item.name)
 {
 case Constants.KNOWLEDGE_MODEL:
 if(Constants.IS_LOCAL){
 }else{
 var kmLength:int = item.name.length + item.value.length;
 var textHeight:int = (kmLength/40 + 1) * 16;
 metadataHeight += textHeight;
 // building tagCloud.
 tagCloud.width = metadataList.width;
 // Add tagCloud to the metadataList VBox
 metadataList.addChild( tagCloud );
 var last:int = items.length - 1;
 var words:Array = item.value.split(; );
 for(var idx2:int = 0; idx2  words.length; idx2++)
 {
 word = words[idx2];
 tagScore = matches[word];
 tagMax = Math.max(tagScore, tagMax);
 tagMin = Math.min(tagScore, tagMin);
 }
 for(var idx3:int = 0; idx3  words.length; idx3++)
 {
 word = words[idx3];
 tagScore = matches[word];
 var tagLabel:Button = new Button();
 tagLabel.label = word;
 tagLabel.alpha = 0.0;
 tagLabel.toolTip = Constants.RELEVANCE + :  + tagScore.toFixed(2) + %

 var tagDiff:Number = (tagMax + tagMin) / 2;

 if (tagScore == tagMin)
 tagLabel.styleName = tagCloudSmall;
 else if (tagScore  tagMin  tagScore  tagDiff)
 tagLabel.styleName = tagCloudMedium;
 else if (tagScore  tagMax  tagScore  tagDiff)
 tagLabel.styleName = tagCloudLarge;
 else if (tagScore == tagMax)
 tagLabel.styleName = tagCloudLarger;
 else
 tagLabel.styleName = tagCloudMedium;

 tagCloud.addChild( tagLabel );
 }
 // Add HRule to the metadataList VBox under Tag Cloud
 var tagCloudHR:HRule = new HRule();
 tagCloudHR.styleName = tagCloudHR;
 tagCloudHR.width = metadataList.width;
 metadataList.addChild( tagCloudHR );
 }
 break;
 default:
 metadataText = item.name + :  + item.value;
 textHeight = (metadataText.length/40 + 1) * 14;
 metadataHeight += textHeight;
 label.text = metadataText;
 label.width=metadataList.width;
 if ( item.name.toLowerCase() ==
 ModelLocator.getInstance().searchResultSortBy.toLowerCase() )
 {
 label.styleName = selectedMetaDataLabel;
 }
 else
 {
 label.styleName = metaDataLabel;
 }
 metadataList.addChild( label );
 break;
 }
 }

 metadataHeight += 15; // for the less button height
 return metadataHeight;
 }

 any suggestions on what wold be the cause or any suggestions to
 optimize this?

 thanks for your time

 Jeff

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Need help in a column chart thats reads from a xml file

2008-06-09 Thread hdias_esparga
Can someone plz indicate me a good tutorial to make a Column Chart
that reads data from a XML file?

I'm driving nuts to put this working...

a simple XML file would be like this... ( i need to show the
'Pontuacoes' Tag in the chart)

Relatorios
Relatorio
Pontuacoes
Acolhimento
Pontuacao17/Pontuacao
/Acolhimento
Produto
Pontuacao14/Pontuacao
/Produto
Ensaio
Pontuacao16/Pontuacao
/Ensaio
Negociacao
Pontuacao13/Pontuacao
/Negociacao
/Pontuacoes
/Relatorio
Relatorio
Pontuacoes
Acolhimento
Pontuacao12/Pontuacao
/Acolhimento
Produto
Pontuacao19/Pontuacao
/Produto
Ensaio
Pontuacao17/Pontuacao
/Ensaio
Negociacao
Pontuacao14/Pontuacao
/Negociacao
/Pontuacoes
/Relatorio
/Relatorios 



RE: [flexcoders] Need help please on getting min max numbers

2008-06-08 Thread Alex Harui
For/in or for each, along with Math.max and Math.min

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Body Works Studio
Sent: Saturday, June 07, 2008 5:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help please on getting min max numbers

 

hello all,

I need some quick help. I have an object which is a hash map of
percentages that line up with names in a seperate array. The index is
the name from the other array, and the value is a number. What is the
simpliest way to get the min and max of the object?

thanks for your time.

Jeff

 



[flexcoders] Need help please on getting min max numbers

2008-06-07 Thread Body Works Studio
hello all,

I need some quick help. I have an object which is a hash map of
percentages that line up with names in a seperate array. The index is
the name from the other array, and the value is a number. What is the
simpliest way to get the min and max of the object?

thanks for your time.

Jeff



  1   2   3   >