[flexcoders] Re: SWC generates server error

2005-04-27 Thread eerkmans


great, thanks a lot ! the error is fixed now.

Not many people work with SWC components it seems, so if you don't 
mind I'm asking you this other question that I havedo you happen 
to know why my SWC's screw up my flex interface? I've posted this 
problem as well:

When I place my SWC file in a custom folder instead of right next to 
my index.mxml, somehow all kinds of flex properties get overwritten 
by the SWC. (also the case with the flex button that generated 
the 'name' error)

For example, I can't use the property 'backgroundcolor' anywhere in 
my entire flex app anymore, and borders around containers aren't 
shown anymore.

Also, comboboxes get rendered with strange squares around their round
corners.



--- In flexcoders@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] 
wrote:
  
  WARNING exporter: cannot export name for init actions
  __anonymous.0.c:\program 
  files\\user_components\TfeResetButton .swc
 
 Wow, that's a pretty obscure problem.  I wrote the code, and even 
I had
 to go dig through the code to see what its doing!
 
 This only gets triggered if the exporter sees an unnamed sprite 
with
 init actions (are you using #initclip?)
 
 It temporarily gives the sprite an export name (code dependencies 
are
 tracked based on names, so we give the unnamed sprite a unique 
handle),
 and then on export it warns you that its stripping out that name.  
The
 problem with unnamed sprites is that they don't work with the 
normal SWC
 versioning system - if you exported two copies of that SWC and 
copied
 them both to your libpath, it wouldn't be able to determine which 
was
 the newer version of your symbol, so it would end up including 
both.
 
 Coming up with a coherent message to print given that the thing its
 complaining about is an unnamed critter deep in the bowels of a big
 opaque file format is hard, so you got the confusing message that 
you
 saw.  However, it is only a warning, it shouldn't affect the 
behavior of
 your app.
 
 Note that importing code from Flash that uses #initclip is quite
 dangerous in Flex if the code has any class dependencies.  We only 
track
 class-to-class deps, not codesnippet-to-class deps.
 
 If you want to make the warning go away, make sure that you give 
your
 symbols export names.  Let me know if you need more details.
 
 -Roger
 
 Roger Gonzalez
 mailto:[EMAIL PROTECTED]





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] custom skins for flex button

2005-04-27 Thread eerkmans


Hi,

I've got a problem with using custom skins in a flex button. I'm 
using the code below to export a flex button as an SWC component.

This works fine, but when you give the button a width of, say 100 
pixels, the corners get stretched out because it's just a single 
graphic symbol that is used as the skin for the button.

Flex itself uses three separate movieclips, the left side, the 
middle and the right side, so that the corners are always nice and 
round no matter what the size of the button is.

So how can I access my custom skin symbols in my flex button SWC ???

I'm strongly getting the idea that Flex is primarily aimed at people 
who don't want to customize anything because making a simple custom 
button can take you all day!

class TfeResetButton extends mx.controls.Button {

var falseUpSkin:String = falseUp;
var falseOverSkin:String = falseOver;
var falseDownSkin:String = falseDown;

static var symbolName:String = TfeResetButton;
static var symbolOwner:Object = TfeResetButton;
var className:String = TfeResetButton;

function TfeResetButton(){
}

function init() {
setStyle(fontWeight,normal);
super.init();
invalidate();

}

static var clipParameters:Object = {resetSkin:1};

function constructObject2(o:Object):Void {
super.constructObject2(o);
applyProperties(o, TfeResetButton.clipParameters);

}


}







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] menubar event handling

2005-04-27 Thread nithya karthik



hai
 i have a menubar which contains a list of categories.. I want a tile of images to be displayed beneath the menubar on click of a particular menuitem.. the images have their source in an external XML file.. how should i do this? I am new to flex so kindly help me with this 

regards,
nithya  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] URL/URI of my mxml page

2005-04-27 Thread Dzafer










Hi there,



How can I retrieve the URL (or URI) string of my opened mxml
page?



Best regards,

Dzafer











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] URL/URI of my mxml page

2005-04-27 Thread Abdul Qabiz





You can use _url property of 
mx.core.Application.application to find the complete url of current mxml/swf 
file.

In http://myserver/test.mxml 
mx.core.Application._url would return http://myserver/test.mxml.swf


-abdul


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 
2:01 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
URL/URI of my mxml page


Hi 
there,

How can I retrieve the URL (or URI) 
string of my opened mxml page?

Best 
regards,
Dzafer







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] menubar event handling

2005-04-27 Thread Abdul Qabiz

Hi Nithya,
 
You can handle the change event of MenuBar. In change event, you can load
xml file and show the images in TileList or some other components.
 
 
##MenuBarChangeEventExample.mxml##

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
backgroundColor=#FF 

  mx:Script
![CDATA[
function handleMenuChangeEvent(event)
{
alert( eventobj.menuItem.attributes.label + '
clicked');


}
]]
  /mx:Script

  mx:XML id=myMenuData
 menuitem label=MenuItem A
 menuitem label=SubMenuItem 1-A /
 menuitem label=SubMenuItem 2-A /
 /menuitem
 /mx:XML

 mx:Panel id=panel title=Menu Bar Panel height=35% width=30%  
 mx:MenuBar id=menubar dataProvider={myMenuData}
change=handleMenuChangeEvent(event);/ 
 /mx:Panel

/mx:Application
 


 
Look at MenuBar ASDoc or help, to know about it. Try it and if you still
have problems, let us know..
 
-abdul
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 1:47 PM
To: flexcoders
Subject: [flexcoders] menubar event handling


hai
i have a menubar which contains a list of categories.. I want a tile of
images to be displayed beneath the menubar on click of a particular
menuitem.. the images have their source in an external XML file.. how should
i do this? I am new to flex so kindly help me with this 
 
regards,
nithya



Yahoo! Messenger
http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m  - Communicate instantly...Ping your friends today! Download Messenger
Now
http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m/download/index.html  



Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] how to add multi-language feature in flex page?

2005-04-27 Thread Abdul Qabiz

Hi,

You can use ResourceBundle written by Benoit Hediards
(http://groups.yahoo.com/group/flexcoders/message/8730)

Also look at some of the possible ways, which Manish has put together on his
blog (http://www.mannu.info/blog/2005/04/resource-bundles-in-flex.html) 


-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to add multi-language feature in flex page?



who has such experiences?

is like using in struts frame?

thanks!

   





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Vertical Text- is it possible?

2005-04-27 Thread nithya karthik



Hai!
 I want the text to be aligned vertically like:
S
H
O
P
P
I
N
G

Is it possible with flex? If yes, how?

regards,
nithya  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Data Model

2005-04-27 Thread Abdul Qabiz
Model is compile time object, which means you can only mention source on
compile time. If you want to load different XML on runtime, you should use
HTTPService instead. What I understand from your code is, you are loading an
xml into a Model and binding Model to MenuBar's dataProvider.
 
Following is a quick example, that allows to load two different xml data for
MenuBar. You can see, how HTTPService is able to load xml files on runtime
and result is bound to MenuBar dataProvider.

You can find the attached file, place in flex application directory and run
the HTTPServiceExample.mxml.
 

 
1) ##HTTPServiceExample.mxml##
 
?xml version=1.0 encoding=iso-8859-1?
mx:Application width=800 height=600
xmlns:mx=http://www.macromedia.com/2003/mxml;  
 
mx:Script
![CDATA[
 
function loadMenudata1() 
{
service.url = menudata1.xml;
service.send();

}

function loadMenudata2()
{
service.url = menudata2.xml;
service.send();
}
 
]]
/mx:Script

mx:HTTPService id=service resultFormat=object url=
useProxy=false/mx:HTTPService
mx:MenuBar dataProvider={service.result}/mx:MenuBar

mx:Button label=load menudata1 click=loadMenudata1()/
mx:Button label=load menudata2 click=loadMenudata2()/
 
/mx:Application

 
 
2) ##menudata1.xml##
 
menuitem label=MenuItem A
 menuitem label=SubMenuItem 1-A /
 menuitem label=SubMenuItem 2-A /
/menuitem 
 
 
3) ##menudata2.xml##
 
menuitem label=MenuItem B
 menuitem label=SubMenuItem 1-B /
 menuitem label=SubMenuItem 2-B /
/menuitem
 
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 11:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Data Model


hai!
 I dont get ur solution.. I am already using a remote object as a data
service.. How should i use a http service in this case? cn u help me with
some code... I am very new to flex thats y i keep buging u a lot.. sorry for
this..
regards,
nithya

Matt Chotin [EMAIL PROTECTED] wrote:

Sorry for not answering sooner.  You should look into using the
HTTPService instead of a Model in this case.  HTTPService can decode XML
into an object structure but does it dynamically instead of statically like
the Model does.

 

Matt

 



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 21, 2005 10:57 PM
To: flexcoders
Subject: [flexcoders] Data Model

 

 

Hai,

   I have a problem with the data model source. I have a model
which provides data for a menubar.. the source i of the model hard coded..
But i want it to change dynamically during run time.. how can i do this? can
i give something like 

 mx:Model id=theXML
source=../WEB-INF/Classes/com/jp/amway/shopping/Products/{subcatList.curren
tItem.name}.xml/

 

please help me with the code..

 

right now the code i am using is:

 

?xml version=1.0 encoding=utf-8?

mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml;
width=100% height=500


  mx:Script

   ![CDATA[
 var dataObject : Object;
   ]]
   
function labelFunc(item) : String
 {
 return item.getProperty(Name);   
 }
  /mx:Script

  mx:Model id=theXML
source=../WEB-INF/Classes/com/jp/amway/shopping/Products/cat_Artistry.xml/


 mx:MenuBar id=menu1 width=100% dataProvider={theXML}
labelFunction=labelFunc  mouseDown=event.menuItem.attributes.label/

 /mx:Panel



Yahoo! Messenger
http://uk.rd.yahoo.com/mail/tagline_messenger/*http:/uk.messenger.yahoo.com
  - Communicate instantly...Ping your friends today! Download Messenger
Now
http://uk.rd.yahoo.com/mail/tagline_messenger/*http:/uk.messenger.yahoo.com
/download/index.html  



Yahoo! Messenger
http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m  - Communicate instantly...Ping your friends today! Download Messenger
Now
http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m/download/index.html  



Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 






 
Yahoo! Groups Links

* To visit your group on the web, go to:

RE: [flexcoders] binding error - from Flex?

2005-04-27 Thread Tom Fitzpatrick

Tracy - thanks for the suggestion. My problem is that I'm not really 
changing anything, just making a copy of the whole app folder, renaming it, 
and trying to compile it again from the new folder - so I don't really know 
where to put the extra code.

I'm ready to try the file deletion suggestion, but need more info. I'm 
running Flex locally using Tomcat, so I have generated files in my local 
project folder and in my local server folder. Which ones do I delete? Both? 
Do I leave the libs folders alone? And - most important - is there any 
danger in doing this or any precautions I should take?

- Tom

At 09:47 PM 4/25/2005, you wrote:
Ignore the message, add some code, and run the app again.  I have also
hit a situation where this did not work until I had deleted the files
out of the ...web-inf\flex\generated folder, then compiled it again.
But usually, 10-15 more lines of code gets me over the hump.

If you believe you app is as refactored as is reasonable, give this a
try.






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Using Remoting with Flex and ColdFusion CFCs - Part 1

2005-04-27 Thread Dirk Eismann

Hi all,

I just finished the first part of a series of articles that show how to use 
RemoteObjects with Flex and ColdFusion CFCs.

The first part deals with the basic setup and how to use CFCs as unnamed and 
named RemoteObjects:
http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D1978CF1B0

Dirk.


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Bounce effect-toggle effect

2005-04-27 Thread nithya karthik



hai!
 just try running the following code.. Actually it should make a vbox bounce from right to left on click and then bounce back to right.. but it doesnot.. It doesnot bounce back it only keeps moving left on evry click.. can u find where i have gone wrong?

regrds,
nithya

?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" hScrollPolicy="off"
mx:Scriptvar price:Number;public function setPrice( price:Number ) : Void{this.price = price ;var priceDown = new mx.effects.Move( this.basketTotal );priceDown.yBy = 20;priceDown.duration = 100;var priceUp = new mx.effects.Move( this.basketTotal );priceUp.yBy = -20;priceUp.duration = 100;var soundEffect = new CashSoundEffect();var priceRegister = new mx.effects.Sequence();priceRegister.addChild( priceDown );priceRegister.addChild( priceUp );priceRegister.addChild( soundEffect );priceRegister.playEffect();}![CDATA[function toggleBasketEffect(){var currentEffect =
 basketPanel["mouseDownEffect"];if ( currentEffect == "basketMoveLeft" ){basketPanel["mouseDownEffect"] = "basketMoveRight";}else{basketPanel["mouseDownEffect"] = "basketMoveLeft";}}function bounce(t, b, c, d){if ((t /= d)  (1 / 2.75)){return c * (7.5625 * t * t) + b;}else if (t  (2 / 2.75)){return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;}else if (t  (2.5 / 2.75)){return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;}else{return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;}};]]
/mx:Scriptmx:Panel height="100%" width="700" hScrollPolicy="off"!--mx:Number id="edgeDistance"/mx:Number id="panelWidth" /mx:Number id="panelHeight" /--mx:Effectmx:Move name="basketMoveLeft" xBy="295" easing="bounce" duration="1000"/mx:Move name="basketMoveRight" xBy="-295" easing="bounce" duration="1000"//mx:Effect mx:Canvas width="700" height="100%" hScrollPolicy="off"mx:HBox borderStyle="solid"mouseDownEffect="basketMoveRight"mouseDown="toggleBasketEffect()"width="47%"height="100%"id="basketPanel" x="670" hScrollPolicy="off"!-- The “grab bar”
 --mx:VBox width="25" height="100%"borderStyle="solid" backgroundColor="#66CCFF" verticalGap="-1" mx:Text text="S" fontSize="10" width="15" fontWeight="bold"//mx:VBoxmx:Effectmx:Sequence name="productHoverIn"mx:Fade alphaFrom="100" alphaTo="50" duration="250" /mx:Pause duration="1000" /mx:Resize widthTo="150" heightTo="150" duration="1000"//mx:Sequence/mx:Effectmx:Effectmx:Parallel name="productHoverOut"mx:Fade alphaFrom="50" alphaTo="100" duration="500"
 /mx:Resize widthTo="100" heightTo="100" duration="500" //mx:Parallel/mx:Effectmx:Loader contentPath="product.jpg" width="100" height="100"mouseOverEffect="productHoverIn"mouseOutEffect="productHoverOut"mouseDown="setPrice(39.99)"id="product" /!-- The Shopping Basket --mx:VBox verticalAlign="bottom"mx:Label styleName="title" text="Shopping Basket"/mx:Spacer width="1"/mx:Label text="Basket Empty" /mx:Spacer height="1"/mx:VBox id="basketTotal"mx:TextArea editable="false"borderStyle="none"styleName="price"
 text="{price}"//mx:VBox/mx:VBox/mx:HBox/mx:Canvas/mx:Panel/mx:Application  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] problems with dropShadow

2005-04-27 Thread Duccio Del Ministro

Hi,
i have a problem with dropShadow inside a component.
In my class contructor i added an event listener:

addEventListener( mouseDown,
Delegate.create(this,myMouseDownHandler) );

My event listener (located in the same class) looks
like this:

public function myMouseDownHandler(event) : Void
{   
setStyle(borderColor,0xff);   
setStyle(backgroundColor,0xff);   
setStyle(borderThickness,3);  
setStyle(shadowDistance,0);
setStyle(dropShadow,false);   
setStyle(borderSides,left top right bottom);
}
Well, when the mouseDown event is fired i see the
borderSides appear but no changes made by borderColor,
backgroundColor, dropShadow, shadowDistance
properties. Why?
Best Regards
Duccio Del Ministro




___ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, 
Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.it


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] pop up window

2005-04-27 Thread nithya karthik



hai!
 I have a tile with images which on mouseover displays a vbox beneath.. I want a panel or a title window to pop up on click of the image.. the window must popup right over the image.. How should i do this? pls help me with some code..

?xml version="1.0" encoding="utf-8"?
mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF"
!--mx:Script function show(index) { var e = new mx.effects.Resize(cart[index]); // e.heightTo=50; e.show=true; e.duration = 300; e.playEffect(); }  function hide(index){ var f = new mx.effects.Resize(cart[index]); // f.heightTo=0; f.show=false; f.duration = 300; f.playEffect();} /mx:Script-- mx:Effect mx:WipeDown name="showCart" show="true"
 duration="300"/ mx:WipeUp name="hideCart" show="false" duration="300"/ /mx:Effect
 mx:Model id="catalog" source="../catalog.xml"/
 mx:Canvas
 mx:Tile width="480" horizontalGap="20" mx:Repeater id="list" dataProvider="{catalog.product}" count="6" mx:VBox height="200" vScrollPolicy="off" hScrollPolicy="off" verticalGap="-5"  mx:Image id="img" width="120" height="120" cornerRadius="6" mouseOver="cart[event.target.repeaterIndices[0]].visible=true" mouseOut="cart[event.target.repeaterIndices[0]].visible=false"  source="{list.currentItem.image}" borderStyle="solid" borderColor="#C5B4DC"
 borderThickness="3"/ mx:VBox id="cart" backgroundColor="#A296CF" borderStyle="solid" marginTop="8" marginLeft="8" marginBottom="8" marginRight="8" visible="false" hScrollPolicy="off" vScrollPolicy="off" cornerRadius="2" showEffect="showCart" hideEffect="hideCart" mx:VBox id="detailContent" height="40" width="102" hScrollPolicy="off" vScrollPolicy="off"mx:Label color="#FF" text="{list.currentItem.name}" fontWeight="bold" width="300"/mx:Label color="#FF" text="${list.currentItem.price}" fontWeight="bold" /
 /mx:VBox/mx:VBox /mx:VBox /mx:Repeater /mx:Tile /mx:Canvas
/mx:Application  
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Newby: How to use Manage Sites

2005-04-27 Thread Libby Chantel

I'm new to Flex and keep having trouble with the
Manage Sites thing in flexbuilder, so I was hoping
someone could explain how MM intended for it to be
used. I am doing flex tutorials and  for each new
tutorial, I am forced to create a new site. Then fb
doesn't seem to remember it the next time I open the
tutorial. I am running flex and java on my local pc as
well as saving/running my flex files on a remote java
server.

I was expecting that I could create a site on each
machine, then choose which one to use for each new
mxml file I create. Or, switch back and forth between
sites wile testing the same files. How is it really
supposed to be used?

Thanks,
Libby



__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] DataGrid Cell Validation

2005-04-27 Thread viraf_bankwalla


Hi,

I have a datagrid with a cellrenderer.  It does validation, however we 
would like prevent the user from moving to a new cell unless the 
validation has passed.  How could I do so.

Thanks.

- viraf





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Setting icons in Buttons

2005-04-27 Thread rockmoyosa


I'm creating an array with Buttons, then a set the label and icon.
When i display them, I only see the label and not the icon!! 

I tried:


var buttonArray = new Array(ar_documents.length);
for(var i=0;ibuttonArray.length;i++){
buttonArray[i] = Button(owner.createClassObject( Button,
button+i, 2+i, owner));
buttonArray[i].label = ar_documents[i].title;
buttonArray[i].styleName = (readmore);

[Embed(source=news2.jpg)]
var newsIcon:String;

Button(buttonArray[i]).icon = newsIcon;
Tracer.trace(buttonArray[i].icon:  + newsIcon);

buttonArray[i].labelPlacement = left;
buttonArray[i]._x = 0 + i*85; 
buttonArray[i]._y = 65; 
}

but also:

Button(buttonArray[i]).icon = @Embed('news2.jpg');





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Event Listeners; Flex internal question for flex gurus

2005-04-27 Thread AC


Hello

I have a control which dynamically changes a given control (TextInput
to ComboBox and visa versa) depending on the user selection. This
happens numerous times within the life time applications lifetime. 

The dynamically created control gets event-listeners attached to it. 
When this control is destroyed what happens to the event object that
was attached to it? Should removeEventListener(...) be used to
remove the event before the object is destroyed?

If so, can someone tell me is it possible and how can I inspect an
object to see what eventListeners have been added to it? 

Thanks in Advance
AC






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] DataGrid Cell Validation

2005-04-27 Thread Jim Laing

The only way I think this would be possible is to use a subclassed
DataGrid: You would override setFocusedCell() to check validation and
stay if not valid.Otherwise, call super.setFocusedCell()

Jim

On 4/27/05, viraf_bankwalla [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 I have a datagrid with a cellrenderer.  It does validation, however we
 would like prevent the user from moving to a new cell unless the
 validation has passed.  How could I do so.
 
 Thanks.
 
 - viraf
 
 
 Yahoo! Groups Links
 
 
 
 



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Vertical Text- is it possible?

2005-04-27 Thread Matthew Shirey



I'd like to know if there's a simple way to rotate a label placed on a canvas?

M.On 4/27/05, Abdul Qabiz [EMAIL PROTECTED] wrote:
Hi Nithya,It's not there by default, but you can do it by keeping one character perline in a Label or TextArea or TextInput. You can write a simpleVerticalLabel component that would do it for you. For example:
Look code below or find attached files.Hope that helps-abdul1) ##VerticalTextTest.mxmL##?xml version=1.0 encoding=iso-8859-1?mx:Application width=800 height=600
xmlns:mx=http://www.macromedia.com/2003/mxml xmlns:local=*local:VerticalLabel fontSize=15 text=Hey/
/mx:Application2) ##VerticalLabel.mxml##mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxmlmx:Script
![CDATA[import mx.controls.Label;import mx.controls.TextInput;import mx.controls.Text;var text:String;var textField;
function createChildren():Void{var n = text.length;textField
= createChild(Label,textField);textField.styleName = this;for(var i=0;in;i++){textField.text+=
text.charAt(i) + \r;}}]]/mx:Script/mx:VBoxFrom: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]Sent: Wednesday, April 27, 2005 2:34 PMTo: flexcodersSubject: [flexcoders] Vertical Text- is it possible?
Hai!I want the text to be aligned vertically like:SHOPPINGIs it possible with flex? If yes, how?regards,nithya
Yahoo! Messengerhttp://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.com- Communicate instantly...Ping your friends today! Download Messenger
Nowhttp://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.com/download/index.html
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
?subject=Unsubscribe* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Servicehttp://docs.yahoo.com/info/terms/ .Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: DataGrid Column updates

2005-04-27 Thread viraf_bankwalla


I ended off calling setValue on the column headerCell to update the 
header, and am triggering a modelChanged updateAll to get the grid 
to redraw.

I will try setting the headerText and the invalidate() again in case 
I made an error.  

- viraf


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 I think you should still set headerText and it will call setValue 
for you
 and force the redraw.  I don't know if calling setValue yourself 
will work.
 
  
 
 Not sure why invalidate() isn't working.  This is undocumented but 
you could
 try calling updateControl() on the DG.
 
  
 
 Matt
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 26, 2005 6:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid Column updates
 
  
 
 
 The invalidate did not result in the view to be updated until some 
 action such as scrolling took place.  How can I have the grid 
redraw 
 itself.  I tried redraw(true) but that did not seem to work either.
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com, viraf_bankwalla 
 [EMAIL PROTECTED] wrote:
  
  Thanks - 
  
  1.  As I have a headerRenderer does this mean that I should 
 directly 
  call setValue ?
  
  2. Calling invalidate will result in a redraw of the entire 
grid.  
  Is there a way to just redraw the column's cells.  When should 
one 
  call invalidate() vs dispatching a modelChanged updateAll on the 
  dataProvider ?
  
  Thanks
  
  - viraf
  
  
  
  --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
 wrote:
   1.  You can simply set the headerText on the DataGridColumn
   2.  Call invalidate() on the DataGrid
   3.  same as 2 (though you might need to reset the 
headerText on 
  the
   column for the header to redraw).  Jim's suggestion while it 
may 
  work is
   completely undocumented and thus unsupported.
   

   
   Matt
   

   
 _  
   
   From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] 
   Sent: Tuesday, April 26, 2005 10:22 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: DataGrid Column updates
   

   
   
   Any suggestions ?
   
   --- In flexcoders@yahoogroups.com, viraf_bankwalla 
   [EMAIL PROTECTED] wrote:

Hi,

1.  What is the best way to have a column's headerRenderer 
  update 
   its 
value (i.e. call setValue).  

2.  Have a column update its conthent - i.e. each of the 
 column 
  rows 
update themselves - i.e. call setValue.  

3.  Have the column header and cells update themselves.

Thanks.
   
   
   
   
   
   
 _  
   
   Yahoo! Groups Links
   
   *  To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/  
 
   *  To unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 
 
   *  Your use of Yahoo! Groups is subject to the Yahoo!
   http://docs.yahoo.com/info/terms/ 
http://docs.yahoo.com/info/terms/ 
 Terms of Service.
 
 
 
 
 
 
   _  
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/ 
   
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
   
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of Service.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Bounce effect-toggle effect

2005-04-27 Thread Jason Szeto










Nithya,



 All
effect triggers, like mouseDownEffect are styles. You need to access them using
getStyle and setStyle. 



Instead of 



basketPanel[mouseDownEffect] = basketMoveRight;



Use 



basketPanel.setStyle(mouseDownEffect, basketMoveRight);



Jason











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Wednesday, April 27, 2005
3:43 AM
To: flexcoders
Subject: [flexcoders] Bounce
effect-toggle effect







hai!





 just try running the following code..
Actually it should make a vbox bounce from right to left on click and then
bounce back to right.. but it doesnot.. It doesnot bounce back it only keeps
moving left on evry click.. can u find where i have gone wrong?











regrds,





nithya











?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
backgroundColor=#FF hScrollPolicy=off





mx:Script
var price:Number;
public function setPrice( price:Number ) : Void
{
this.price = price ;
var priceDown = new mx.effects.Move( this.basketTotal );
priceDown.yBy = 20;
priceDown.duration = 100;
var priceUp = new mx.effects.Move( this.basketTotal );
priceUp.yBy = -20;
priceUp.duration = 100;
var soundEffect = new CashSoundEffect();
var priceRegister = new mx.effects.Sequence();
priceRegister.addChild( priceDown );
priceRegister.addChild( priceUp );
priceRegister.addChild( soundEffect );
priceRegister.playEffect();

}

![CDATA[
function toggleBasketEffect()
{
var currentEffect = basketPanel[mouseDownEffect];
if ( currentEffect == basketMoveLeft )
{
basketPanel[mouseDownEffect] =
basketMoveRight;
}
else
{
basketPanel[mouseDownEffect] =
basketMoveLeft;
}
}
function bounce(t, b, c, d)
{
if ((t /= d)  (1 / 2.75))
{
return c * (7.5625 * t * t) + b;
}
else if (t  (2 / 2.75))
{
return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
}
else if (t  (2.5 / 2.75))
{
return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
}
else
{
return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
}
};
]]





/mx:Script
mx:Panel height=100% width=700
hScrollPolicy=off
!--mx:Number id=edgeDistance/
mx:Number id=panelWidth /
mx:Number id=panelHeight /--
mx:Effect
mx:Move name=basketMoveLeft
xBy=295 easing=bounce duration=1000/
mx:Move name=basketMoveRight
xBy=-295 easing=bounce duration=1000/
/mx:Effect
 mx:Canvas width=700 height=100%
hScrollPolicy=off
mx:HBox borderStyle=solid
mouseDownEffect=basketMoveRight
mouseDown=toggleBasketEffect()
width=47%
height=100%
id=basketPanel x=670
hScrollPolicy=off
!-- The grab bar --
mx:VBox width=25 height=100%
borderStyle=solid backgroundColor=#66CCFF
verticalGap=-1
 mx:Text text=S fontSize=10
width=15 fontWeight=bold/



/mx:VBox
mx:Effect
mx:Sequence name=productHoverIn
mx:Fade alphaFrom=100 alphaTo=50
duration=250 /
mx:Pause duration=1000 /
mx:Resize widthTo=150
heightTo=150 duration=1000/
/mx:Sequence
/mx:Effect
mx:Effect
mx:Parallel name=productHoverOut
mx:Fade alphaFrom=50 alphaTo=100
duration=500 /
mx:Resize widthTo=100
heightTo=100 duration=500 /
/mx:Parallel
/mx:Effect
mx:Loader contentPath=product.jpg
width=100 height=100
mouseOverEffect=productHoverIn
mouseOutEffect=productHoverOut
mouseDown=setPrice(39.99)
id=product /
!-- The Shopping Basket --
mx:VBox verticalAlign=bottom
mx:Label styleName=title text=Shopping
Basket/
mx:Spacer width=1/
mx:Label text=Basket Empty /
mx:Spacer height=1/
mx:VBox id=basketTotal
mx:TextArea editable=false
borderStyle=none
styleName=price text={price}/
/mx:VBox
/mx:VBox
/mx:HBox
/mx:Canvas
/mx:Panel

/mx:Application









Yahoo! Messenger - Communicate
instantly...Ping your friends
today! Download Messenger Now











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] binding error - from Flex?

2005-04-27 Thread Tracy Spratt

The generated files I am talking about are under 
..[flex-root]\WEB-INF\flex\generated| folder in the Flex server. There
are several folders with generated names. It is safe to delete them.

If you get the 32k error on one server but not another, that really
sounds like a boundary condition.  Try running the one with the error
using the ?debug=true request parameter.  This causes debug code to get
generated into the app and has, in the past allowed us to continue.

Tracy



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, April 27, 2005 6:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] binding error - from Flex?


Tracy - thanks for the suggestion. My problem is that I'm not really 
changing anything, just making a copy of the whole app folder, renaming
it, 
and trying to compile it again from the new folder - so I don't really
know 
where to put the extra code.

I'm ready to try the file deletion suggestion, but need more info. I'm 
running Flex locally using Tomcat, so I have generated files in my local

project folder and in my local server folder. Which ones do I delete?
Both? 
Do I leave the libs folders alone? And - most important - is there any 
danger in doing this or any precautions I should take?

- Tom

At 09:47 PM 4/25/2005, you wrote:
Ignore the message, add some code, and run the app again.  I have also
hit a situation where this did not work until I had deleted the files
out of the ...web-inf\flex\generated folder, then compiled it again.
But usually, 10-15 more lines of code gets me over the hump.

If you believe you app is as refactored as is reasonable, give this a
try.






 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Newby: How to use Manage Sites

2005-04-27 Thread Tracy Spratt

Below is an explanation of sites from an MM authority.  The upshot is
you want to have one site that corresponds to your Flex server.  I have
no experience with remote server setups.

***
If you have nested sites, then sometimes Flex Builder will have trouble
figuring out which site a particular file corresponds to. We need this
information to make sure we use the correct url prefix and testing
server location when previewing or debugging the file. Each site should
correspond to one context root on your server. The default installation
of Flex has one context root which is just /. So even if you have
separate applications under that context root (one in the flex folder,
one in the samples folder, etc.) you should still only have one FB site
set up that points to the root of the context root. You would have to
just work on each sub-application by opening it from its subfolder in
the one site you have set up. 

If you have multiple context roots defined, for example if you had flex/
as a context root and samples/ as a separate context root, then you
should have one site for each of these because they will have separate
URL prefixes. In this case, even if they both live in the same folder
you do not need a site set up for their parent folder. 

I hope this clears things up a bit. To answer your questions about why
it sometimes puts files in the wrong location because of how your sites
are set up, it's probably because you have a different current site
set in your Files panel than the site which your open document belongs
to. 

Let me know if you have any more questions... 

-Heidi

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby Chantel
Sent: Wednesday, April 27, 2005 8:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newby: How to use Manage Sites


I'm new to Flex and keep having trouble with the
Manage Sites thing in flexbuilder, so I was hoping
someone could explain how MM intended for it to be
used. I am doing flex tutorials and  for each new
tutorial, I am forced to create a new site. Then fb
doesn't seem to remember it the next time I open the
tutorial. I am running flex and java on my local pc as
well as saving/running my flex files on a remote java
server.

I was expecting that I could create a site on each
machine, then choose which one to use for each new
mxml file I create. Or, switch back and forth between
sites wile testing the same files. How is it really
supposed to be used?

Thanks,
Libby



__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250


 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: DataGrid Column updates

2005-04-27 Thread Matt Chotin










If it works stick with it J











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Wednesday, April 27, 2005
8:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid
Column updates






I ended off calling setValue on the column
headerCell to update the 
header, and am triggering a modelChanged updateAll
to get the grid 
to redraw.

I will try setting the headerText and the
invalidate() again in case 
I made an error. 

- viraf


--- In flexcoders@yahoogroups.com,
Matt Chotin [EMAIL PROTECTED] wrote:
 I think you should still set headerText and
it will call setValue 
for you
 and force the redraw. I don't know if
calling setValue yourself 
will work.
 
 
 
 Not sure why invalidate() isn't
working. This is undocumented but 
you could
 try calling updateControl() on the DG.
 
 
 
 Matt
 
 
 
 _ 
 
 From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com]

 Sent: Tuesday, April 26, 2005 6:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid Column
updates
 
 
 
 
 The invalidate did not result in the view to
be updated until some 
 action such as scrolling took place.
How can I have the grid 
redraw 
 itself. I tried redraw(true) but that
did not seem to work either.
 
 Thanks.
 
 --- In flexcoders@yahoogroups.com,
viraf_bankwalla 
 [EMAIL PROTECTED] wrote:
  
  Thanks - 
  
  1. As I have a headerRenderer does
this mean that I should 
 directly 
  call setValue ?
  
  2. Calling invalidate will result in a
redraw of the entire 
grid. 
  Is there a way to just redraw the
column's cells. When should 
one 
  call invalidate() vs dispatching a
modelChanged updateAll on the 
  dataProvider ?
  
  Thanks
  
  - viraf
  
  
  
  --- In flexcoders@yahoogroups.com,
Matt Chotin [EMAIL PROTECTED] 
 wrote:
   1.
You can simply set the headerText on the DataGridColumn
   2.
Call invalidate() on the DataGrid
   3.
same as 2 (though you might need to reset the 
headerText on 
  the
   column for the header to
redraw). Jim's suggestion while it 
may 
  work is
   completely undocumented and thus
unsupported.
   
   
   
   Matt
   
   
   
   _ 
   
   From: flexcoders@yahoogroups.com

  [mailto:flexcoders@yahoogroups.com]

   Sent: Tuesday, April 26, 2005 10:22
AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: DataGrid
Column updates
   
   
   
   
   Any suggestions ?
   
   --- In flexcoders@yahoogroups.com,
viraf_bankwalla 
   [EMAIL PROTECTED] wrote:

Hi,

1. What is the best way
to have a column's headerRenderer 
  update 
   its 
value (i.e. call
setValue). 

2. Have a column update
its conthent - i.e. each of the 
 column 
  rows 
update themselves - i.e. call
setValue. 

3. Have the column
header and cells update themselves.

Thanks.
   
   
   
   
   
   
   _ 
   
   Yahoo! Groups Links
   
   * To
visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

   http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/
 
   
   * To
unsubscribe from this group, send an email to:
   [EMAIL PROTECTED]
  
mailto:[EMAIL PROTECTED]
  subject=Unsubscribe 
   
   *
Your use of Yahoo! Groups is subject to the Yahoo!
   http://docs.yahoo.com/info/terms/ 
http://docs.yahoo.com/info/terms/

 Terms of Service.
 
 
 
 
 
 
 _ 
 
 Yahoo! Groups Links
 
 * To visit your
group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

 
 * To
unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
subject=Unsubscribe 
 
 * Your use of
Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/
Terms of Service.















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Vertical Text- is it possible?

2005-04-27 Thread Abdul Qabiz

Yeah,
 
you can use Label's  _rotation property. But you would need to embed the
font if you want to rotate a Label,TextInput or TextArea..
 
For example:
 
##RotateLabel.mxml##

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; width=425
height=400
   mx:Style
  @font-face { fontFamily:myfont;
src:url(file:///c:/windows/fonts/Georgia.TTF); } 
 
   /mx:Style
   
mx:Canvas
   mx:Label fontFamily=myfont fontSize=16 id=out _rotation=45
text=This is a label alpha=20/ 
/mx:Canvas
/mx:Application

 
 
 
-abdul



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 8:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Vertical Text- is it possible?


I'd like to know if there's a simple way to rotate a label placed on a
canvas?

M.


On 4/27/05, Abdul Qabiz [EMAIL PROTECTED] wrote: 

Hi Nithya,

It's not there by default, but you can do it by keeping one
character per
line in a Label or TextArea or TextInput. You can write a simple
VerticalLabel component that would do it for you. For example: 

Look code below or find attached files.

Hope that helps

-abdul

1) ##VerticalTextTest.mxmL##

?xml version=1.0 encoding=iso-8859-1?
mx:Application width=800 height=600 
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:local=*
local:VerticalLabel fontSize=15 text=Hey/ 
/mx:Application

2) ##VerticalLabel.mxml##

mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Script 
![CDATA[

import mx.controls.Label;
import mx.controls.TextInput;
import mx.controls.Text;

var text:String;
var textField;

function createChildren():Void
{
var n = text.length;
textField = createChild(Label,textField);
textField.styleName = this;

for(var i=0;in;i++)
{
textField.text+= text.charAt(i) + \r;
}

}

]]
/mx:Script
/mx:VBox



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 2:34 PM
To: flexcoders
Subject: [flexcoders] Vertical Text- is it possible? 


Hai!
  I want the text to be aligned vertically like:
S
H
O
P
P
I
N
G

Is it possible with flex? If yes, how?

regards,
nithya

 

Yahoo! Messenger

http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m  - Communicate instantly...Ping your friends today! Download
Messenger 
Now

http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m/download/index.html

 

Yahoo! Groups Links

*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

*   To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ?subject=Unsubscribe

*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
http://docs.yahoo.com/info/terms/ .


Yahoo! Groups Links 



http://docs.yahoo.com/info/terms/ 








Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Setting icons in Buttons

2005-04-27 Thread Abdul Qabiz

Hi,

Try defining newsIcon variable in application scope instead of inside a
loopThat's is something I doubt...

Compiler embeds the asset in the swf and assigns the symbol name(linkageID)
to the variable. Since this variable is a local variable, it might not be
working...


Like:


[Embed(source=news2.jpg)]
var newsIcon:String;

var buttonArray = new Array(ar_documents.length);
for(var i=0;ibuttonArray.length;i++){
buttonArray[i] = Button(owner.createClassObject(
Button, button+i, 2+i, owner));
buttonArray[i].label = ar_documents[i].title;
buttonArray[i].styleName = (readmore);

Button(buttonArray[i]).icon = newsIcon;
Tracer.trace(buttonArray[i].icon:  + newsIcon);

buttonArray[i].labelPlacement = left;
buttonArray[i]._x = 0 + i*85; 
buttonArray[i]._y = 65; 
}







-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 8:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting icons in Buttons



I'm creating an array with Buttons, then a set the label and icon.
When i display them, I only see the label and not the icon!! 

I tried:


var buttonArray = new Array(ar_documents.length);
for(var i=0;ibuttonArray.length;i++){
buttonArray[i] = Button(owner.createClassObject(
Button,
button+i, 2+i, owner));
buttonArray[i].label = ar_documents[i].title;
buttonArray[i].styleName = (readmore);

[Embed(source=news2.jpg)]
var newsIcon:String;

Button(buttonArray[i]).icon = newsIcon;
Tracer.trace(buttonArray[i].icon:  + newsIcon);

buttonArray[i].labelPlacement = left;
buttonArray[i]._x = 0 + i*85; 
buttonArray[i]._y = 65; 
}

but also:

Button(buttonArray[i]).icon = @Embed('news2.jpg');





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Vertical Text- is it possible?

2005-04-27 Thread Matthew Shirey



Thanks, thats just what I needed!

M.On 4/27/05, Abdul Qabiz [EMAIL PROTECTED] wrote:
Yeah,you can use Label's_rotation property. But you would need to embed thefont if you want to rotate a Label,TextInput or TextArea..For example:##RotateLabel.mxml##mx:Application xmlns:mx=
http://www.macromedia.com/2003/mxml width=425height=400 mx:Style@font-face { fontFamily:myfont;src:url(
file:///c:/windows/fonts/Georgia.TTF); } /mx:Stylemx:Canvas mx:Label fontFamily=myfont fontSize=16 id=out _rotation=45
text=This is a label alpha=20//mx:Canvas/mx:Application-abdulFrom: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]Sent: Wednesday, April 27, 2005 8:52 PMTo: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Vertical Text- is it possible?I'd like to know if there's a simple way to rotate a label placed on acanvas?M.On 4/27/05, Abdul Qabiz 
[EMAIL PROTECTED] wrote:Hi Nithya,It's not there by default, but you can do it by keeping onecharacter perline in a Label or TextArea or TextInput. You can write a simple
VerticalLabel component that would do it for you. For example:Look code below or find attached files.Hope that helps-abdul1) ##VerticalTextTest.mxmL##
?xml version=1.0 encoding=iso-8859-1?mx:Application width=800 height=600xmlns:mx=
http://www.macromedia.com/2003/mxml xmlns:local=*local:VerticalLabel fontSize=15 text=Hey//mx:Application2) ##VerticalLabel.mxml##
mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxmlmx:Script![CDATA[import
mx.controls.Label;import
mx.controls.TextInput;import
mx.controls.Text;var
text:String;var
textField;function
createChildren():Void{var
n = text.length;textField
= createChild(Label,textField);textField.styleName
= this;for(var
i=0;in;i++){textField.text+=
text.charAt(i) + \r;}}]]/mx:Script/mx:VBox
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]Sent: Wednesday, April 27, 2005 2:34 PM
To: flexcodersSubject: [flexcoders] Vertical Text- is it possible?Hai!I
want the text to be aligned vertically like:SHOPPINGIs it possible with flex? If yes, how?regards,
nithyaYahoo! Messengerhttp://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m- Communicate instantly...Ping your friends today! DownloadMessengerNowhttp://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co
m/download/index.htmlYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/*
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]mailto:
[EMAIL PROTECTED] ?subject=Unsubscribe*
Your use of Yahoo! Groups is subject to the Yahoo! Terms ofServicehttp://docs.yahoo.com/info/terms/ .Yahoo! Groups Links
http://docs.yahoo.com/info/terms/Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]?subject=Unsubscribe* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ .Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Re: SWC generates server error

2005-04-27 Thread Roger Gonzalez

I think someone else already posted the answer.  The Flash version of
the framework classes are different than the Flex version.  You need to
register the Flex version of the classes into Flash (this is
complicated, but see the docs, they're pretty extensive on this).

All SWCs in your libpath (which includes your app directory, by default)
are merged together and resolved by versioning.  (If you unzip the SWC
and look at the catalog.xml file, you can see the version numbers on
each definition).  If there is a Flash class with a higher version than
the Flex class with the same name, you will get the behavior you
describe.

Best practices is actually to not build the components in Flash, but
rather to just build the assets in Flash and export them in a SWC.
Then, build the components in Flex and attach the assets to your Flex
components using Embed.

Cheers,

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]
 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of eerkmans
 Sent: Wednesday, April 27, 2005 12:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: SWC generates server error
 
 
 
 great, thanks a lot ! the error is fixed now.
 
 Not many people work with SWC components it seems, so if you don't 
 mind I'm asking you this other question that I havedo you happen 
 to know why my SWC's screw up my flex interface? I've posted this 
 problem as well:
 
 When I place my SWC file in a custom folder instead of right next to 
 my index.mxml, somehow all kinds of flex properties get overwritten 
 by the SWC. (also the case with the flex button that generated 
 the 'name' error)
 
 For example, I can't use the property 'backgroundcolor' anywhere in 
 my entire flex app anymore, and borders around containers aren't 
 shown anymore.
 
 Also, comboboxes get rendered with strange squares around their round
 corners.
 
 
 
 --- In flexcoders@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] 
 wrote:
   
   WARNING exporter: cannot export name for init actions
   __anonymous.0.c:\program 
   files\\user_components\TfeResetButton .swc
  
  Wow, that's a pretty obscure problem.  I wrote the code, and even 
 I had
  to go dig through the code to see what its doing!
  
  This only gets triggered if the exporter sees an unnamed sprite 
 with
  init actions (are you using #initclip?)
  
  It temporarily gives the sprite an export name (code dependencies 
 are
  tracked based on names, so we give the unnamed sprite a unique 
 handle),
  and then on export it warns you that its stripping out that name.  
 The
  problem with unnamed sprites is that they don't work with the 
 normal SWC
  versioning system - if you exported two copies of that SWC and 
 copied
  them both to your libpath, it wouldn't be able to determine which 
 was
  the newer version of your symbol, so it would end up including 
 both.
  
  Coming up with a coherent message to print given that the thing its
  complaining about is an unnamed critter deep in the bowels of a big
  opaque file format is hard, so you got the confusing message that 
 you
  saw.  However, it is only a warning, it shouldn't affect the 
 behavior of
  your app.
  
  Note that importing code from Flash that uses #initclip is quite
  dangerous in Flex if the code has any class dependencies.  We only 
 track
  class-to-class deps, not codesnippet-to-class deps.
  
  If you want to make the warning go away, make sure that you give 
 your
  symbols export names.  Let me know if you need more details.
  
  -Roger
  
  Roger Gonzalez
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] custom skins for flex button

2005-04-27 Thread Roger Gonzalez

Assuming you are compiling that component code in Flex,

[Embed(source='your.swc', symbol='falseUp')] var falseUpSkin:String;

the value after embedding will be as if you typed your version (the
parse tree is modified).  Yes, you could put the symbol name in
explicitly, but the compiler won't notice it as anything but a string.
You need to trigger the linker dependency on the symbol.

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]
 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of eerkmans
 Sent: Wednesday, April 27, 2005 1:17 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] custom skins for flex button
 
 
 
 Hi,
 
 I've got a problem with using custom skins in a flex button. I'm 
 using the code below to export a flex button as an SWC component.
 
 This works fine, but when you give the button a width of, say 100 
 pixels, the corners get stretched out because it's just a single 
 graphic symbol that is used as the skin for the button.
 
 Flex itself uses three separate movieclips, the left side, the 
 middle and the right side, so that the corners are always nice and 
 round no matter what the size of the button is.
 
 So how can I access my custom skin symbols in my flex button SWC ???
 
 I'm strongly getting the idea that Flex is primarily aimed at people 
 who don't want to customize anything because making a simple custom 
 button can take you all day!
 
 class TfeResetButton extends mx.controls.Button {
   
   var falseUpSkin:String = falseUp;
   var falseOverSkin:String = falseOver;
   var falseDownSkin:String = falseDown;
   
   static var symbolName:String = TfeResetButton;
   static var symbolOwner:Object = TfeResetButton;
   var className:String = TfeResetButton;
   
   function TfeResetButton(){
   }
   
   function init() {
   setStyle(fontWeight,normal);
   super.init();
   invalidate();
 
   }
   
   static var clipParameters:Object = {resetSkin:1};
   
   function constructObject2(o:Object):Void {
   super.constructObject2(o);
   applyProperties(o, TfeResetButton.clipParameters);
   
   }
 
   
 }
 
 
 
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] MovieClip and Flex question

2005-04-27 Thread pilby1


I'm new at using movieclips with Flex, so if I may ask a basic 
question please. 

I'm trying to make a movieclip appear in my flex application, but for 
some reason, it's not working. Here is my code in the initialize 
handler of my flex app:

var mcSplash = new MovieClip();

mcSplash.width = 200;
mcSplash.height = 200;
mcSplash.setStyle(backgroundColor, 0xFF);
mcSplash.x = 200;
mcSplash.y = 200;

All I'm trying to accomplish here is just to see if a 200 x 200 pixel 
red square would appear, but it's not.

Could someone give me advise on how to do this right, please?





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Newby: How to use Manage Sites

2005-04-27 Thread Sho Kuwamoto





I asked some of the folks from the Flex Builder team, and 
here's what I found out:

* You should define a site for each "server", such as http://localhost:8700/flex/, or http://localhost:8700/samples/

* If you have multiple projects on each server, (i.e., 
multiple flex apps within /flex/ or /samples/), do NOT create new sites for each 
one.

The reason is that Flex Builder needs to have access to 
WEB-INF, which must be at the top level of your site.

Also, if you are flipping back and forth between a local 
server and a remote testing server, set up a testing server in your site 
definition. 

Hope this helps!

-Sho




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 
5:28 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Newby: How to use "Manage Sites"
I'm new to Flex and keep having trouble with theManage Sites 
thing in flexbuilder, so I was hopingsomeone could explain how MM intended 
for it to beused. I am doing flex tutorials and for each 
newtutorial, I am forced to create a new site. Then fbdoesn't seem to 
remember it the next time I open thetutorial. I am running flex and java on 
my local pc aswell as saving/running my flex files on a remote 
javaserver.I was expecting that I could create a site on 
eachmachine, then choose which one to use for each newmxml file I 
create. Or, switch back and forth betweensites wile testing the same files. 
How is it reallysupposed to be 
used?Thanks,Libby 
 __ Do you 
Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] FCS NetStream with Flex

2005-04-27 Thread kaibabsowats


I am trying to learn how to use FCS with Flex's mx:MediaPlayback.  I
can get it to play a Streaming FLV by just attaching a rmtp:// url to
the setMedia function.  But how do I then work with NetStream's
onStatus events as NetStream is not used at all.  How do I get the
events from FCS about buffering and play status?

Anybody have any good info on FCS and Flex Component integration.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] MovieClip and Flex question

2005-04-27 Thread Roger Gonzalez

 I'm new at using movieclips with Flex, so if I may ask a basic 
 question please. 
 
 I'm trying to make a movieclip appear in my flex application, but for 
 some reason, it's not working. Here is my code in the initialize 
 handler of my flex app:
 
   var mcSplash = new MovieClip();
   
   mcSplash.width = 200;
   mcSplash.height = 200;
   mcSplash.setStyle(backgroundColor, 0xFF);
   mcSplash.x = 200;
   mcSplash.y = 200;
 
 All I'm trying to accomplish here is just to see if a 200 x 200 pixel 
 red square would appear, but it's not.
 
 Could someone give me advise on how to do this right, please?

This is actually more of a Flash question than a Flex question.
MovieClips are (*cough*currently) somewhat funny critters with an less
than obvious contract.

Anyway, you'll probably want to use MovieClip.createEmptyMovieClip():

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/comm
on/html/wwhelp.htm?context=Flash_MX_2004file=1491.html

also see MovieClip.attachMovie() and Object.registerClass().

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: FCS NetStream with Flex

2005-04-27 Thread kaibabsowats


Misspelled rmtp its suppose to be
rtmp://fcsserver/application/instance/some.flv

--- In flexcoders@yahoogroups.com, kaibabsowats [EMAIL PROTECTED] wrote:
 
 I am trying to learn how to use FCS with Flex's mx:MediaPlayback.  I
 can get it to play a Streaming FLV by just attaching a rmtp:// url to
 the setMedia function.  But how do I then work with NetStream's
 onStatus events as NetStream is not used at all.  How do I get the
 events from FCS about buffering and play status?
 
 Anybody have any good info on FCS and Flex Component integration.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Segue is First to Provide Performance Testing Support for Macromedia Flex

2005-04-27 Thread Tarik Ahmed






Segue is First to Provide Performance
Testing Support for Macromedia Flex; SilkPerformer Optimizes
Performance of Flex Applications, Ensuring a Positive User Experience


LEXINGTON,
Mass.--(BUSINESS WIRE)--April 27, 2005--Segue Software (NASDAQ-SCM:
SEGU), the leader in software quality optimization(TM) (SQO(TM)), today
announced that SilkPerformer(R), Segue's performance testing solution,
provides support for Macromedia(R) (NASDAQ: MACR) Flex(TM) 1.5 and the
Action Message Format (AMF) protocol. With this announcement, Segue(R)
extends the comprehensive range of enterprise technologies
SilkPerformer already supports to the Flex environment. Macromedia Flex
is the leading presentation-tier solution for delivering enterprise
rich Internet applications. 

SilkPerformer from Segue is an enterprise-class performance testing
solution for optimizing the performance of mission-critical
applications. With SilkPerformer, an organization can accurately
predict the breaking points in an application and its underlying
infrastructure before it is deployed. AMF is a communication protocol
Flex applications can utilize for client to server communication.
Organizations use Flex to develop applications that enhance the
richness of the user experience - for example, a financial services
firm could deliver a portfolio management application that lets users
visualize their portfolio and make real-time investment decisions. 
"We are using SilkPerformer to optimize the performance of Vision 4
- our next generation, primary-care healthcare solution based on Flex,
Java and Oracle(R) 10g technology," said Simon Fanthorpe, development
director at UK-based In Practice Systems Ltd, a leading provider of
healthcare information systems. "We have to be able to support up to
10,000 simultaneous users, while still delivering sub-second response
times. Every millisecond we can shave off of the user experience has a
huge impact on overall system performance. SilkPerformer allows us to
model a variety of user profiles and to vary the load conditions to
simulate normal and peak usage. SilkPerformer will play a significant
part in making Vision 4 a major success." 
Flex applications can boost an organization's ROI on their
application investments by improving the end-user experience via the
delivery of enterprise-class, rich Web applications - such as business
process automation, visual analysis, customer self-service and others -
while at the same time leveraging existing tools, workflows and
information technology infrastructure. 
"Performance is an absolutely crucial element of the user
experience," said Jeff Whatcott, vice president of product management,
Macromedia. "Using SilkPerformer for all types of Flex data
communication will make it much easier for Flex development teams to
build and deploy the high quality rich Internet applications that users
demand." 
Segue's SilkPerformer testing solution is also highlighted in a
Macromedia whitepaper entitled, "Performance Testing Flex Applications
That Use AMF". To view the whitepaper, please go to: http://www.macromedia.com/devnet/flex/articles/amf_perftest.html.

About Segue Software 
Segue Software, Inc. (NASDAQ-SCM: SEGU) is a global expert in
delivering solutions to define, measure, manage and evolve software
quality throughout the entire software application lifecycle. Segue's
Quality Optimization(TM) (SQO(TM)) solutions help companies reduce
business risk, ensure the deployment of high quality software and
increase return on investment. Leading businesses around the world,
including many of the Fortune 500, rely on Segue's innovative Silk
family of products to protect their business service levels,
competitive edge and brand reputation. Headquartered in Lexington,
Mass., with offices across North America and Europe, Segue can be
reached at +1-781-402-1000 or http://www.segue.com. 
Segue and SilkPerformer are registered trademarks and Software
Quality Optimization and SQO are trademarks of Segue Software, Inc. All
other marks are the property of their respective owners. 
This Press Release may contain statements that are "forward-looking"
statements under the Private Securities Litigation Reform Act of 1995.
You can identify forward-looking statements by the use of the words
"believe", "expect", "anticipate", "intend", "estimate", "assume",
"outlook", "will", "should", and other expressions which predict or
indicate future events and trends and which do not relate to historical
matters. You should not rely on forward-looking statements, because
they involve known and unknown risks, uncertainties and other factors,
some of which are beyond the control of Segue. These risks,
uncertainties and other factors may cause the actual results,
performance or achievements of Segue to be materially different from
the anticipated future results, performance or achievements expressed
or implied by the forward-looking statements. Forward-looking
statements were based on information, plans and 

RE: [flexcoders] binding error - from Flex?

2005-04-27 Thread Tom Fitzpatrick

Tracy - thanks. Deleting the generated files did the trick.

- Tom

At 12:19 PM 4/27/2005, you wrote:
The generated files I am talking about are under 
..[flex-root]\WEB-INF\flex\generated| folder in the Flex server. There
are several folders with generated names. It is safe to delete them.

If you get the 32k error on one server but not another, that really
sounds like a boundary condition.  Try running the one with the error
using the ?debug=true request parameter.  This causes debug code to get
generated into the app and has, in the past allowed us to continue.

Tracy



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Fitzpatrick
Sent: Wednesday, April 27, 2005 6:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] binding error - from Flex?


Tracy - thanks for the suggestion. My problem is that I'm not really
changing anything, just making a copy of the whole app folder, renaming
it,
and trying to compile it again from the new folder - so I don't really
know
where to put the extra code.

I'm ready to try the file deletion suggestion, but need more info. I'm
running Flex locally using Tomcat, so I have generated files in my local

project folder and in my local server folder. Which ones do I delete?
Both?
Do I leave the libs folders alone? And - most important - is there any
danger in doing this or any precautions I should take?

- Tom

At 09:47 PM 4/25/2005, you wrote:
 Ignore the message, add some code, and run the app again.  I have also
 hit a situation where this did not work until I had deleted the files
 out of the ...web-inf\flex\generated folder, then compiled it again.
 But usually, 10-15 more lines of code gets me over the hump.
 
 If you believe you app is as refactored as is reasonable, give this a
 try.







Yahoo! Groups Links











--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 
 http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/
  

*
* To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] MovieClip and Flex question

2005-04-27 Thread Abdul Qabiz

If you want to know why we can't create an object of MovieClip using 'new'
operator?

This technote is worth reading:
http://moock.org/asdg/technotes/movieclipDatatype/

-abdul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 11:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] MovieClip and Flex question


 I'm new at using movieclips with Flex, so if I may ask a basic 
 question please. 
 
 I'm trying to make a movieclip appear in my flex application, but for 
 some reason, it's not working. Here is my code in the initialize 
 handler of my flex app:
 
   var mcSplash = new MovieClip();
   
   mcSplash.width = 200;
   mcSplash.height = 200;
   mcSplash.setStyle(backgroundColor, 0xFF);
   mcSplash.x = 200;
   mcSplash.y = 200;
 
 All I'm trying to accomplish here is just to see if a 200 x 200 pixel 
 red square would appear, but it's not.
 
 Could someone give me advise on how to do this right, please?

This is actually more of a Flash question than a Flex question.
MovieClips are (*cough*currently) somewhat funny critters with an less
than obvious contract.

Anyway, you'll probably want to use MovieClip.createEmptyMovieClip():

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/comm
on/html/wwhelp.htm?context=Flash_MX_2004file=1491.html

also see MovieClip.attachMovie() and Object.registerClass().

-Roger

Roger Gonzalez
mailto:[EMAIL PROTECTED]


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] where to place a subClassedComponent.as file ?

2005-04-27 Thread sanjayd


I have subclassed 'DataGrid' to create my own class (this code resides
in a file called 'FilterableDataGrid.as'):

class acControls.FilterableDataGrid extends mx.controls.DataGrid {
.
.
.
}


then, I use this class in my mxml file, like this:

?xml version=1.0 encoding=utf-8?

mx:Application initialize=initApp()
xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:ac=acControls.*
.
.
.
mx:VBox width=100% height=100%

ac:FilterableDataGrid id=dg  headerHeight=40
dataProvider={gridElementObjectsArray}
.
.
.


This is the compile error I get:

Don't know how to parse element
ArcheuscapControls.*:FilterableDataGrid. It is not a known type or a
property of mx.containers.VBox.

Any ideas ?? both the .as  .mxml files are in the same directory.

Thanks in advance.





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] where to place a subClassedComponent.as file ?

2005-04-27 Thread Matt Horn

I believe the class has to be in a sudirectory acControls.





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Wednesday, April 27, 2005 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] where to place a subClassedComponent.as
file ?



I have subclassed 'DataGrid' to create my own class (this code
resides
in a file called 'FilterableDataGrid.as'):

class acControls.FilterableDataGrid extends mx.controls.DataGrid
{
.
.
.
}


then, I use this class in my mxml file, like this:

?xml version=1.0 encoding=utf-8?

mx:Application initialize=initApp()
xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns:ac=acControls.*
.
.
.
  mx:VBox width=100% height=100%
  
ac:FilterableDataGrid id=dg  headerHeight=40
dataProvider={gridElementObjectsArray}
.
.
.


This is the compile error I get:

Don't know how to parse element
ArcheuscapControls.*:FilterableDataGrid. It is not a known
type or a
property of mx.containers.VBox.

Any ideas ?? both the .as  .mxml files are in the same
directory.

Thanks in advance.







Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service http://docs.yahoo.com/info/terms/ . 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Trying to grab handle to a child in a canvas

2005-04-27 Thread kredding.geo


I am having trouble grabbing a handle to a child inside a canvase.  
All children are created by using createChild

myCanvas.createChild(mx.controls.TextArea,newTxtFld+i, {x:xLoc, 
y:yLoc});


I have a button that when pressed, I am trying to grab a handle to 
the last child created.  I want to copy the TextArea to a Text 
control and remove the TextArea.  Here is the code for that.

function buttonPressed() {
if (i0) {
  var oldi:Number;
  var idx:Number=i;

  oldi=i-1;  //I am using i-1 to get the last child because earlier 
i was incremented.

  //newTxtFld is used for the Text Areas.
  //newTxt is used for text controls.
  var txtAreaChild = myCanvas[newTxtFld+idx];
  myCanvas.createChild(mx.controls.Text, newTxt+oldi, 
{x:txtAreaChild.x, y:txtAreaChild.y, text:txtAreaChild.text});

  myCanvas.destroyObject(txtAreaChild);
}

}

Flex doesn't seem to be able to grab a handle to the TextArea 
child.  What am I missing?






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Trying to grab handle to a child in a canvas

2005-04-27 Thread Tracy Spratt

That argument to createChild is not the same as the Flex id.

Instead, add the id after you create the child
var newChild:Object = myCanvas.createChild(..
newChild.id = newTxt+oldi;

I believe that will work.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kredding.geo
Sent: Wednesday, April 27, 2005 3:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trying to grab handle to a child in a canvas



I am having trouble grabbing a handle to a child inside a canvase.  
All children are created by using createChild

myCanvas.createChild(mx.controls.TextArea,newTxtFld+i, {x:xLoc, 
y:yLoc});


I have a button that when pressed, I am trying to grab a handle to 
the last child created.  I want to copy the TextArea to a Text 
control and remove the TextArea.  Here is the code for that.

function buttonPressed() {
if (i0) {
  var oldi:Number;
  var idx:Number=i;

  oldi=i-1;  //I am using i-1 to get the last child because earlier 
i was incremented.

  //newTxtFld is used for the Text Areas.
  //newTxt is used for text controls.
  var txtAreaChild = myCanvas[newTxtFld+idx];
  myCanvas.createChild(mx.controls.Text, newTxt+oldi, 
{x:txtAreaChild.x, y:txtAreaChild.y, text:txtAreaChild.text});

  myCanvas.destroyObject(txtAreaChild);
}

}

Flex doesn't seem to be able to grab a handle to the TextArea 
child.  What am I missing?






 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] NetStream instance in Media Components

2005-04-27 Thread kaibabsowats


Is there a instance of NetStream or PlayerNetStream in the Media
Components?  If not does the Media Components create some instance of
the NetStream or PlayerNetStream some where else?

The closest thing to FCS and Flex is:
http://coenraets.com/viewarticle.jsp?articleId=90

In his LiveMediaDisplay class he calls:
mx.controls.streamingmedia.PlayerNetStream.prototype.play
= function (s)
{
super.setBufferTime(1);
super.play(s);
}

I know this is not calling an instance but overiding the play method
of PlayerNetStream.  But where is the instance?  super has to be
referencing a instance some where right?

What I am doing right now is I have a Media Component (both Playback
and the Display/Controller) that loads a FCS streaming flv by
setMedia, with a url like rtmp://fcsserver/app/instance/some.flv.  It
loads the flv just fine, but the buffering is causing me troubles.  As
the start event on the Media Component doesn't relate to the
buffering.  Basically I am looking for an event that really means the
flv is ready to play, as I am trying to sync some swf's to it.







 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] SynergyFLEX Framework Presentation.

2005-04-27 Thread Scott Barnes

Hi All,

Thought this *may* be of interest (shamless self-plug), but tommorow I
am showcasing a framework I have been working on in FLEX. Its been
given the name SynergyFLEX and hopefully others may find it of use.

You can attend this presentation via
http://www.macromedia.com/go/anzcommunity/ it will be served up via
Breeze Live, so will require a broadband connection of some sorts and
of course speakers.

Details are:
URL: http://www.macromedia.com/go/anzcommunity/
Date: 3pm Sydney Time - 29th April.

Hope to see some of you there! :)
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon - 40% completed)


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] SynergyFLEX Framework Presentation.

2005-04-27 Thread Matt Chotin










Will it be recorded?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005
4:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SynergyFLEX
Framework Presentation.





Hi All,

Thought this *may* be of interest (shamless
self-plug), but tommorow I
am showcasing a framework I have been working on
in FLEX. Its been
given the name SynergyFLEX and hopefully others
may find it of use.

You can attend this presentation via
http://www.macromedia.com/go/anzcommunity/
it will be served up via
Breeze Live, so will require a broadband
connection of some sorts and
of course speakers.

Details are:
URL: http://www.macromedia.com/go/anzcommunity/
Date: 3pm Sydney Time - 29th April.

Hope to see some of you there! :)
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com
(Coming Soon - 40% completed)












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] NetStream instance in Media Components

2005-04-27 Thread Matt Chotin










Hmm, in the code I wrote the start
event generally fired right around the time things were ready to go. Even if I
called play(someNon0Time) start would fire when the buffer had reached the
point that I was ready to play (I think). 



The instance is very buried in the code
and not really meant to be exposed. I dont have any reliable way of
telling you what to look for.



Matt









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005
2:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] NetStream
instance in Media Components






Is there a instance of NetStream or
PlayerNetStream in the Media
Components? If not does the Media Components
create some instance of
the NetStream or PlayerNetStream some where else?

The closest thing to FCS and Flex is:
http://coenraets.com/viewarticle.jsp?articleId=90

In his LiveMediaDisplay class he calls:

mx.controls.streamingmedia.PlayerNetStream.prototype.play
= function (s)

{

super.setBufferTime(1);

super.play(s);

}

I know this is not calling an instance but
overiding the play method
of PlayerNetStream. But where is the
instance? super has to be
referencing a instance some where right?

What I am doing right now is I have a Media
Component (both Playback
and the Display/Controller) that loads a FCS
streaming flv by
setMedia, with a url like
rtmp://fcsserver/app/instance/some.flv. It
loads the flv just fine, but the buffering is
causing me troubles. As
the start event on the Media Component
doesn't relate to the
buffering. Basically I am looking for an
event that really means the
flv is ready to play, as I am trying to sync some
swf's to it.

















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] flexwidth= flexhieght=

2005-04-27 Thread Gordon Smith

width=100% height=100%

- Gordon

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 6:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flexwidth= flexhieght=




Now that flexwidth has been depreciated I am having issues getting
my data grid to grow 100%

How do I get HBOX/FORM/Data grid to grow 100%?





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: how to add multi-language feature in flex page?

2005-04-27 Thread loveewind


great ,thank you




  


--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 You can use ResourceBundle written by Benoit Hediards
 (http://groups.yahoo.com/group/flexcoders/message/8730)
 
 Also look at some of the possible ways, which Manish has put 
together on his
 blog (http://www.mannu.info/blog/2005/04/resource-bundles-in-
flex.html) 
 
 
 -abdul
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 27, 2005 10:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] how to add multi-language feature in flex 
page?
 
 
 
 who has such experiences?
 
 is like using in struts frame?
 
 thanks!
 

 
 
 
 
 
  
 Yahoo! Groups Links





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Bounce effect-toggle effect

2005-04-27 Thread nithya karthik



Thanks a lot. It worksJason Szeto [EMAIL PROTECTED] wrote:









Nithya,

 All effect triggers, like mouseDownEffect are styles. You need to access them using getStyle and setStyle. 

Instead of 

basketPanel["mouseDownEffect"] = "basketMoveRight";

Use 

basketPanel.setStyle(“mouseDownEffect”, “basketMoveRight”);

Jason





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Wednesday, April 27, 2005 3:43 AMTo: flexcodersSubject: [flexcoders] Bounce effect-toggle effect


hai!

 just try running the following code.. Actually it should make a vbox bounce from right to left on click and then bounce back to right.. but it doesnot.. It doesnot bounce back it only keeps moving left on evry click.. can u find where i have gone wrong?



regrds,

nithya



?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FF" hScrollPolicy="off"

mx:Scriptvar price:Number;public function setPrice( price:Number ) : Void{this.price = price ;var priceDown = new mx.effects.Move( this.basketTotal );priceDown.yBy = 20;priceDown.duration = 100;var priceUp = new mx.effects.Move( this.basketTotal );priceUp.yBy = -20;priceUp.duration = 100;var soundEffect = new CashSoundEffect();var priceRegister = new mx.effects.Sequence();priceRegister.addChild( priceDown );priceRegister.addChild( priceUp );priceRegister.addChild( soundEffect );priceRegister.playEffect();}![CDATA[function
 toggleBasketEffect(){var currentEffect = basketPanel["mouseDownEffect"];if ( currentEffect == "basketMoveLeft" ){basketPanel["mouseDownEffect"] = "basketMoveRight";}else{basketPanel["mouseDownEffect"] = "basketMoveLeft";}}function bounce(t, b, c, d){if ((t /= d)  (1 / 2.75)){return c * (7.5625 * t * t) + b;}else if (t  (2 / 2.75)){return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;}else if (t  (2.5 / 2.75)){return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;}else{return c * (7.5625 * (t -= (2.625 / 2.75)) * t +
 .984375) + b;}};]]

/mx:Scriptmx:Panel height="100%" width="700" hScrollPolicy="off"!--mx:Number id="edgeDistance"/mx:Number id="panelWidth" /mx:Number id="panelHeight" /--mx:Effectmx:Move name="basketMoveLeft" xBy="295" easing="bounce" duration="1000"/mx:Move name="basketMoveRight" xBy="-295" easing="bounce" duration="1000"//mx:Effect mx:Canvas width="700" height="100%" hScrollPolicy="off"mx:HBox borderStyle="solid"mouseDownEffect="basketMoveRight"mouseDown="toggleBasketEffect()"width="47%"height="100%"id="basketPanel" x="670"
 hScrollPolicy="off"!-- The “grab bar” --mx:VBox width="25" height="100%"borderStyle="solid" backgroundColor="#66CCFF" verticalGap="-1" mx:Text text="S" fontSize="10" width="15" fontWeight="bold"//mx:VBoxmx:Effectmx:Sequence name="productHoverIn"mx:Fade alphaFrom="100" alphaTo="50" duration="250" /mx:Pause duration="1000" /mx:Resize widthTo="150" heightTo="150" duration="1000"//mx:Sequence/mx:Effectmx:Effectmx:Parallel name="productHoverOut"mx:Fade
 alphaFrom="50" alphaTo="100" duration="500" /mx:Resize widthTo="100" heightTo="100" duration="500" //mx:Parallel/mx:Effectmx:Loader contentPath="product.jpg" width="100" height="100"mouseOverEffect="productHoverIn"mouseOutEffect="productHoverOut"mouseDown="setPrice(39.99)"id="product" /!-- The Shopping Basket --mx:VBox verticalAlign="bottom"mx:Label styleName="title" text="Shopping Basket"/mx:Spacer width="1"/mx:Label text="Basket Empty" /mx:Spacer height="1"/mx:VBox id="basketTotal"mx:TextArea
 editable="false"borderStyle="none"styleName="price" text="{price}"//mx:VBox/mx:VBox/mx:HBox/mx:Canvas/mx:Panel/mx:Application



Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now   
Yahoo! Messenger - Communicate instantly..."Ping" your friends 
today! Download Messenger Now







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Is there a javascript flashObj.callFunction(), l ike setVariable?

2005-04-27 Thread Abdul Qabiz
Hi Tracy,
 
There is no callFunction(..) like method for flash activeX or plugin. But
there is setVariable(..) method. 
 
Yes, you can set a variable or setter from Javascript using setVariable
function. I have create a example, it allows you to execute flex function
from javascript...

It's very basic example but you can adopt similar approach and do it more OO
way by creating classes in JS and AS...

 
1) FlexJSExample.jsp
 
%@ taglib uri=FlexTagLib prefix=mm %
HTML
HEAD
meta http-equiv=Content-Type content=text/html;  charset=ISO-8859-1
TITLEFlex-JS Communication Demo/TITLE
 

script language=javascript
   
 
//this function return to Flash ActiveX Object or Plugin depending upon
browser
//it takes care for browser type and returns the proper reference.
//Accepts the id or name of OBJECT or EMBED tag respectively
function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  
  if (navigator.appName.indexOf (Microsoft) !=-1) {
return window[movieName];
 
  } else {
   return window.document[movieName];
  }
}
 

/**###**/
//success flag, set by flash/flex app
var bFunctionCallFinished = true;
//param delimiter, kind of unique string
var paramDelimiter =  --$$###$$##$$--;
 
//this function would call a flash/flex function.
function callFlashFunction(functionName, paramsArray)
{
if(bFunctionCallFinished) 
{
//Get the reference so activeX or Plugin.
 var flashObject  = thisMovie(flexApp);
 
bFunctionCallFinished = false;
flashObject.SetVariable(functionName, functionName);
flashObject.SetVariable(functionParams,
paramsArray.join(paramDelimiter));
flashObject.SetVariable(commitFunctionCall, true);
}
else
{
//if previous function call is still being run, you can use
setTimeOut etc to call it little later...
}

}
 
/**###**/
 
/script
/HEAD
BODY bgcolor=#FF
 
!-- look at flexApp id/name, thats being used(in JS) to get the reference
of Flash Player in browser. --
 
mm:mxml border=1 id=flexApp name=flexApp
 
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; width=600
height=600 backgroundColor=#FF 
 mx:Script
 ![CDATA[
 
 
 /****/
 
 //the name of the function to be called.
  var functionName:String;
  //the params delimited by paramDelimiter
  var functionParams:String;
  //param delemiter, kind of unique string 
  var paramDelimiter =  --$$###$$##$$--;
  
  //setter, which executes the function and send the success flag back to
javascript
  public function set commitFunctionCall(flag:Boolean):Void
  {
  var func:Function = this[functionName];
  
  func.apply(this, functionParams.split(paramDelimiter));
  getURL(javascript:bFunctionCallFinished=true;void(0));
  
 }
 
 /****/
 
 
 function sayHi(name:String)
 {
 alert(Hi  + name);
 _ta.text += name + newline;
 }
 
 
 function setNum()
 {
 var n = arguments.length;
 for(var i=0;in;i++) 
 {
 _ta.text += arguments[i] + newline;
 }
 } 
 
  
  
 ]]
 
 
 /mx:Script
 mx:TextArea id=_ta width=200 height=200/
  
/mx:Application
/mm:mxml
 
input type=button value=Say Hi onclick=callFlashFunction('sayHi',
['Abdul']);/
input type=button value=Send Number
onclick=callFlashFunction('setNum', [1,2,3]);/
/BODY
 
/HTML
 
 
 
 
BTW! Based on above principle, I made a JS-Flash libarary long back. Take a
look at it for an idea...

http://www.abdulqabiz.com/files/JSFC/JSFCommunicator%20Library.htm


Hope that helps

-abdul
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a javascript flashObj.callFunction(), like
setVariable?



Using javasript in a custom HTML wrapper, Is there flashObj.callFunction(),
like there is a setVariable() method?

Or will setVariable() work with a setter method? (Hmm, surely I can create a
setter in mxml, right?)

Tracy




Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 






 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL