Re: [flexcoders] Question regarding FLV protection
Hi there, What version of FMS are you using? I would recommend looking into: -rtmpe -verify your swf files -restrict to your domain (VHOST.ALLOW) A From: thomas parquier To: flexcoders@yahoogroups.com Sent: Tuesday, May 5, 2009 4:19:48 AM Subject: Re: [flexcoders] Question regarding FLV protection I don't use fms, but couldnt streaming flv through https or rtmps do the work ? Or maybe a session based authorization ? thomas --- http://www.web- attitude. fr/ msn : thomas.parquier@ web-attitude. fr softphone : sip:webattitude@ ekiga.net téléphone portable : +33601 822 056 2009/5/4 Jon Oxtoby Hi, We're currently using FMS 3.0 as a streaming solution in an effort to prevent people stealing our FLV's, with limited success. The main issue we're running into is people using stream downloading software which is basically creating a new connection to FMS and downloading the stream. My question is - is it possible to intercept the FLV stream coming into a Flex application before it goes into the buffer and edit those bytes? Basically I'm looking at the possibility of encrypting the FLV on the server and then decrypting it on the fly as it streams into the Flex application. Does anyone know if this is feasible or not, or if not, what about the idea of decrypting the data in the buffer prior to it being accessed by the video player? I'm still semi-new to the whole concept of streaming video and FLV playback so if this is a stupid question please be gentle :). Cheers __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
Re: [flexcoders] Re: Flex, SharePoint and SQLServer
Hi Gerry, I just started working with Lists.asmx. Just like Tom, I too would be interested in seeing some examples thank-you! From: Gerry McLarnon To: flexcoders@yahoogroups.com Sent: Wednesday, April 8, 2009 5:19:07 PM Subject: [flexcoders] Re: Flex, SharePoint and SQLServer Hi, I recently finished implementing a portal for a client using Flex and Sharepoint using Sharepoint WebServices, mainly the List WS (Lists.asmx) . There is a large Sharepoint WS API that supports just about anything you would want to do in Sharepoint. Looking back I wish I had seriously considered developing some custom .NET WebServices as this would hopefully have been quicker and more maintainable than the massaging of the XML returned from the Sharepoint WS calls that I ended up implementing. If you are interested I'm sure I could provide some examples... Cheers, Gerry __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: [flexcoders] video - capture and save locally
just trying again to see if anyone has any ideas on this? thanks! From: thibodeau.alain To: flexcoders@yahoogroups.com Sent: Wednesday, March 25, 2009 7:15:43 PM Subject: [flexcoders] video - capture and save locally Hi all, I was wondering if anyone has any ideas or know of resources that I can start reading on how to capture a webcam and audio, then save it to the local file system? I am already doing this using FMS and saving it on the server. I want to expand the application to save locally and not to FMS or using FMS. Ideally, I would like a web and desktop version. So a flex and Air version. I've saved photos using FileReference before with player 10, but how can I expand that to video and audio? I did find this: http://tdotblog. info/?q=node/ 1 but seems outdated and the flv saved is buggy... any help or direction would be appreciated. Thank-you __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
Re: [flexcoders] is it not possible to upload a file to a flash app (no server)?
You mean just getting file info or actually parsing the full file data? If it's just the basic file information, I think you can get that with the FileReference... If you are looking for more power, swfStudio will give you all the power you need: http://www.northcode.com/index.php From: gmoniey22 To: flexcoders@yahoogroups.com Sent: Thursday, March 26, 2009 2:54:28 PM Subject: [flexcoders] is it not possible to upload a file to a flash app (no server)? I want the user to select a file and have my flash app parse it for information, and then display that info in the app. But it seems like all of the FileReference functions abstract the upload/download process to a server. Am I missing something? Thanks __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
Re: [flexcoders] Question from a C developper
>- Is it possible to define a variable as a long ? int is 32 bits and if you need bigger than go with Number http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html >- How to program the overloading of an operator like the equal between 2 >objects of a same class. Overloading is not possible in AS3, but google around some ppl have workarounds >- What is the equivalent of a structure ? I think you would want to use Object class...? >- When I call a function with a parameter, did this parameter is modified when >I return from this function ? All ActionScript objects are always passed by reference except primitive data types: Boolean, Number, int, uint, and String http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=03_Language_and_Syntax_160_19.html >- How to convert an int to a Number ? just cast it http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html From: christophe_jacquelin To: flexcoders@yahoogroups.com Sent: Thursday, March 12, 2009 10:27:32 AM Subject: [flexcoders] Question from a C developper Hello, I am a C developper and now I am developing in Action Script. I have questions about ActionScript - Is it possible to define a variable as a long ? - How to program the overloading of an operator like the equal between 2 objects of a same class. - What is the equivalent of a structure ? - When I call a function with a parameter, did this parameter is modified when I return from this function ? - How to convert an int to a Number ? Thank you, Christophe, __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: [flexcoders] Re: flash cs3 skinning
hi there, What I meants was: I don't think you can apply scale 9 to a class in css. I think you can only do one or the other..either in flash with classes or in css with bitmaps, but not 100% sure on this, I've never had to do it. I wonder why it isn't stretching properly from the flash, and I assume there is a reason you are using flash with bitmaps, perhaps because of an animation?...if there isn't then why not go with all bitmaps only? In that your css would look like something like this: .flipButton{upSkin: Embed(source="../images/iconCloseImage.png",scaleGridLeft="1",scaleGridTop="1",scaleGridRight="2",scaleGridBottom="2");overSkin: Embed(source="../images/iconCloseImage.png",scaleGridLeft="1",scaleGridTop="1",scaleGridRight="2",scaleGridBottom="2");downSkin: Embed(source="../images/iconCloseImage.png",scaleGridLeft="1",scaleGridTop="1",scaleGridRight="2",scaleGridBottom="2");color: "0xC8C8C8";textRollOverColor: "FF";textSelectedColor: "FF";textAlign }: "left"; From: quinrou To: flexcoders@yahoogroups.com Sent: Thursday, March 12, 2009 6:37:33 AM Subject: [flexcoders] Re: flash cs3 skinning Hi, I used the scale9grid which is part of the flash cs3 ide. the button template in flash cs3 already offers the scale9grid guides. All I did is move them to the right place so it wouldn't deform my round bits on my skin. here is the css I used to apply the skin .flipButton { skin: ClassReference( "FlipButtonSkin" ); color: "0xC8C8C8"; textRollOverColor: "0xFF"; textSelectedColor: "0xFF"; textAlign: "left"; } how would you apply the scale9grid to the skin in this case? many thanks S --- In flexcod...@yahoogro ups.com, Alain Thibodeau wrote: > > You mean you did the scale 9 in Flash with the guides or in the flex css? I > haven't had to set it in both before, but sounds like it isn't set properly. > I'd play around with the guides in flash and in the css... > > > I've never had issues with it in flash or in css with bitmaps. > > http://www.adobe. com/devnet/ flex/articles/ flex_skins_ 08.html > > hth > > > > > > _ _ __ > From: quinrou > To: flexcod...@yahoogro ups.com > Sent: Wednesday, March 11, 2009 1:23:14 PM > Subject: [flexcoders] flash cs3 skinning > > > Hi, > > I have skinned a button using the flex skinning template in flash cs3. The > skinned is composed of bitmaps and vertors. The skin has some rounded corners > so I used a scale9grid to make sure they wouldn't be distorted when used. > However when the skin is used in flex the scale9grid doesn't seem to work on > the bipmap, they are distorted. the vector graphics seem to behave as > expected. > > Does anyone know what I need to do to get this working properly? > > thanks > S > > > > > > _ _ _ _ _ _ > Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your > favourite sites. Download it now at > http://ca.toolbar. yahoo.com. > __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: [flexcoders] flash cs3 skinning
You mean you did the scale 9 in Flash with the guides or in the flex css? I haven't had to set it in both before, but sounds like it isn't set properly. I'd play around with the guides in flash and in the css... I've never had issues with it in flash or in css with bitmaps. http://www.adobe.com/devnet/flex/articles/flex_skins_08.html hth From: quinrou To: flexcoders@yahoogroups.com Sent: Wednesday, March 11, 2009 1:23:14 PM Subject: [flexcoders] flash cs3 skinning Hi, I have skinned a button using the flex skinning template in flash cs3. The skinned is composed of bitmaps and vertors. The skin has some rounded corners so I used a scale9grid to make sure they wouldn't be distorted when used. However when the skin is used in flex the scale9grid doesn't seem to work on the bipmap, they are distorted. the vector graphics seem to behave as expected. Does anyone know what I need to do to get this working properly? thanks S __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.
Re: [flexcoders] Re: Using icons on buttons?
If you have the Flash IDE and flex component kit installed, there are templates for skinning. There is one specific for the button. You can skin in flash with full control of the look you want, then export as swc. In flex open your css file in design mode and with the tools at the top you can add a new class. Create a new one based on the Button and in the right tabs you can change the skin with the swc you created from flash... Alternatly you can create images for each state and do the same as described above in Flex, but instead of selecting your swc you can select the images you created for each state... Don't forget for to use scale 9 to make your buttons scalable (if needed) HTH From: daniel.koestler To: flexcoders@yahoogroups.com Sent: Tuesday, March 10, 2009 5:28:02 PM Subject: [flexcoders] Re: Using icons on buttons? Hmm, if you wanted more control over the graphics in a button, what would you suggest using? I thought about subclassing the button or writing my own, but perhaps there's a way to skin it? __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: [flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true
what is the font used? If blend mode doesn't work...you might want to try embeding the font or at least the chars that you are using...Not the best solution for swf size, but see if that makes a difference From: Amy To: flexcoders@yahoogroups.com Sent: Tuesday, March 10, 2009 5:35:40 PM Subject: [flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true --- In flexcod...@yahoogro ups.com, "pliechty" wrote: > > We print images in our application. I can print fine with printAsBitmap= > false, but I want to set the smooth flag on the image. I have to set > printAsBitmap= true to get the smooth flag to take effect, but my text looks > horrible. Is there a way to have smooth images and nice looking text? > What happens if you set the blendMode to "layer" on the text that you are printing? __ Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Re: [flexcoders] calling a function from swf
Thanks Adrian! that will do the trick. In the meantime, I also found another way, not as elegant as yours //inside the fla var myParent = loaderInfo.loader.parent.parent; myParent.doSomething('do it'); thanks again From: Adrian Williams To: flexcoders@yahoogroups.com Sent: Tuesday, March 10, 2009 2:45:30 PM Subject: Re: [flexcoders] calling a function from swf This is pretty straightforward. We do a lot of this in our dashboard app where we have a function called registerSWF( ). This helps us keep tabs on all the swf objects that are loaded on the dash. private var registeredSWF: ArrayCollection = new ArrayCollection( ); public function registerSWF( swf:Object) :void { registeredSWF. addItem(swf) ; } Each child swf calls this functions when they load: application. registerSWF( this); Then, when we need to access a function from within the child swf, we pull it from the AC (so we can reference it) and directly call the function: for each (var swf:Object in registeredSWF) { swf.someFunction( vars); } Keep in mind that the function in your child swf must be in the public scope or the parent app cannot see it. HTH, Adrian thibodeau.alain wrote: Hi all, I am thinking this is simple, but I cannot find the proper way of doing this. I have a flex application that loads a swf file. I want to be able to call a function that is in the flex application from the swf file. >From my fla I tried calling _root, Application. application, _parent... Anyone know how I can do this ? thanks! __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: [flexcoders] Setting background color of Label control
Try this: Not sure that opaqueBackground can be set from css From: oneworld95 To: flexcoders@yahoogroups.com Sent: Friday, March 6, 2009 9:26:20 AM Subject: [flexcoders] Setting background color of Label control How do you set the background or border color of a Label control? I've tried using a custom style: .serverResponse { backgroundColor: blue; borderColor: white; } And then set the styleName="serverRe sponse" on the label control to no avail. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.
Re: [flexcoders] AsyncToken with special chars
For the record, the workaround explained here: https://bugs. adobe.com/ jira/browse/ SDK-18326 worked. TestWS.xmlSpecialCharsFilter = function(value:Object):String { return value.toString(); } Not sure I like the workaround much, but it's all I got for now. If anyone can comfirm the same issues are happening to them in SDK 3.3 and FP 10, that would be great. thanks! From: Alain Thibodeau To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 3:02:50 PM Subject: Re: [flexcoders] AsyncToken with special chars Hmmm, thanks Maciek, but that did not solve it. I updated my sdk and it still does the same? can anyone confirm or deny that this is still a bug? From: Maciek Sakrejda To: flexcod...@yahoogro ups.com Sent: Thursday, March 5, 2009 12:20:43 PM Subject: Re: [flexcoders] AsyncToken with special chars This sounds like your problem: https://bugs. adobe.com/ jira/browse/ SDK-18326 Fixed in the 3.0.3 that recently went out, according to the release notes. -Original Message- From: thibodeau.alain Reply-To: flexcod...@yahoogro ups.com To: flexcod...@yahoogro ups.com Subject: [flexcoders] AsyncToken with special chars Date: Thu, 05 Mar 2009 16:58:59 - Hi there, I've run into an issue that I am sure others have, but I cannot find a solution. I am using cairngorm with a webservice. I need to send in my soap body the less than and greater than characters. In my mxml based on user input, I use <>. I follow the call and flex converts the <> to <> until the AsyncToken gets a hold of it. It should convert it back to <> for the soap call, however it takes the first & and converts that too.. so the outgoing soap looks like this "<> " instead of "<>". Anyone know why this is happening or a solution? Thanks in advance Instant message from any web browser! Try the new Yahoo! Canada Messenger for the Web BETA __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.
Re: [flexcoders] AsyncToken with special chars
Hmmm, thanks Maciek, but that did not solve it. I updated my sdk and it still does the same? can anyone confirm or deny that this is still a bug? From: Maciek Sakrejda To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 12:20:43 PM Subject: Re: [flexcoders] AsyncToken with special chars This sounds like your problem: https://bugs. adobe.com/ jira/browse/ SDK-18326 Fixed in the 3.0.3 that recently went out, according to the release notes. -Original Message- From: thibodeau.alain Reply-To: flexcod...@yahoogro ups.com To: flexcod...@yahoogro ups.com Subject: [flexcoders] AsyncToken with special chars Date: Thu, 05 Mar 2009 16:58:59 - Hi there, I've run into an issue that I am sure others have, but I cannot find a solution. I am using cairngorm with a webservice. I need to send in my soap body the less than and greater than characters. In my mxml based on user input, I use <>. I follow the call and flex converts the <> to <> until the AsyncToken gets a hold of it. It should convert it back to <> for the soap call, however it takes the first & and converts that too.. so the outgoing soap looks like this "<> " instead of "<>". Anyone know why this is happening or a solution? Thanks in advance __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/
Re: [flexcoders] Reduce the speed of a .SWF
I think you are going to want to reduce the frame rate of either your main app or the loaded swf.. Check the help files for frameRate, there are some examples cheers a From: christophe_jacquelin To: flexcoders@yahoogroups.com Sent: Friday, February 27, 2009 12:50:19 PM Subject: [flexcoders] Reduce the speed of a .SWF Hello, I use SWFLoader to draw a SWF movie file. But the speed of the movie playing is too fast. How to reduce it ? Thank you, Christophe, __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.
Re: [flexcoders] FileReference save security
haha, point taken... I could of worded it differently Thanks for the idea. :) From: Gregor Kiddie To: flexcoders@yahoogroups.com Sent: Friday, February 27, 2009 9:55:13 AM Subject: RE: [flexcoders] FileReference save security I don’t think asking “How can I get round security” is going to garner much in the way of replies! However, once the rendering is done, you can throw up a dialog saying “Rendering Done, Save now?” or something, and work off that user event instead. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co. uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@ inps.co.uk From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of thibodeau.alain Sent: 27 February 2009 14:50 To: flexcod...@yahoogro ups.com Subject: [flexcoders] FileReference save security Hi all, I was wondering if anyone knows of a work around for the FileReference save security. More specifically that it must be a user event that drives the save otherwise it will not do it. I am using Cairngorm and long story short, but the time I am done rendering the image and wanting to save it, the user event is long gone and I get security error. For now I am using the old way of sending data to a server, however, I would like to be able to use the FileReference. save any ideas? thank-you __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: [flexcoders] Class Image
processing.. do you mean manipulation? I think the bitmap class is what you need to check out also this is a good start: http://www.insideria.com/2008/03/image-manipulation-in-flex.html hth From: christophe_jacquelin To: flexcoders@yahoogroups.com Sent: Thursday, February 19, 2009 11:59:03 AM Subject: [flexcoders] Class Image Hello, I am searching the code for an image class for doing image processing. Do you have examples ? Thank you, Christophe, __._,_..___ Messages in this topic (1) Reply (via web post) | Start a new topic Messages -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com MARKETPLACE >From kitchen basics to easy recipes - join the Group from Kraft Foods Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe Recent Activity * 46 New MembersVisit Your Group Yahoo! Finance It's Now Personal Guides, news, advice & more. Search Ads Get new customers. List your web site in Yahoo! Search. All-Bran Day 10 Club on Yahoo! Groups Feel better with fiber. .
Re: [flexcoders] Webservice with Dynamic request?
Thanks for anyone who looked at this. I found the prolem, by default I always put my class members as private...:( Making them public, seems to have let access to the serializer and I am sending the proper soap. From: Alain Thibodeau To: flexcoders@yahoogroups.com Sent: Wednesday, February 18, 2009 10:54:38 AM Subject: Re: [flexcoders] Webservice with Dynamic request? Thank-you but I am still a little unclear as to how this actually works. >From what I gather all I need to do is pass an array and flex will serialize >it... I've tried passing an array of objects, I've simplified my test case, below is the code: can anyone please help me figure out what I am doing wrong? thanks in advance - - - - CODE varsearch1:Searchcrite ria = newSearchcriteria( );varsearch2:Searchcrite ria = newSearchcriteria( );var search1.criteria1 = search1.criteria2 = search1.criteria3 = search1.criteria4 = search2.criteria1 = search2.criteria2 = search2.criteria3 = search2.criteria4 = search3.criteria1 = search3.criteria2 = search3.criteria3 = search3.criteria4 = search3:Searchcrite ria = newSearchcriteria( );"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test"; varcriterialist: Array = [search1,search2, search3,search4, search5]; ws.GetAdvancedSearc hListDept("param1","param2","param3",criterialist,"param5"); ws.GetAdvancedSearc hListDept. addEventListener (ResultEvent. RESULT, resultSearchHandler ) ; //search1, 2 3 4 5 are of type searchCriteria: publicclassSearchcriteriaprivatevarcriteria1:String;privatevarcriteria2:String;privatevarcriteria3:String;publicfunctionSearchcriteria( )publicfunctiongetCriteria1() : String { returnthis.criteria1; }publicfunctionsetCriteria1(criteria1 : String) : void{ this.criteria1 = criteria1; } publicfunctiongetCriteria2() : String { returnthis.criteria2; }publicfunctionsetCriteria2(criteria2 : String) : void{ this.criteria2 = criteria2; } publicfunctiongetCriteria3() : String { returnthis.criteria3; }publicfunctionsetCriteria3(criteria3 : String) : void{ this.criteria3 = criteria3; } { { }} When I look at what is being sent to the service I see this for the criterialist param, they are not expanded... All other params are passed ok as they are simple strings... SENT SOAP snippet tns:criterialist "http:mysite/ schema"/>"http:mysite/ schema"/>"http:mysite/ schema"/> From: Tracy Spratt To: flexcod...@yahoogro ups..com Sent: Monday, February 9, 2009 11:55:42 AM Subject: RE: [flexcoders] Webservice with Dynamic request? What are the input parameters of the operation “SearchParams”? What data types? Does it have a single argument of type array that that contains an array of “searchcriteria” objects, which have the three search specification values? The request object is a dynamic “Object”, not xml. build it something like this: Var oRequest:Object = new Object(); oRequest.criteriali st = buildSearchCriteria Array() webService.SearchPa rams.request = oRequest; Be sure to remove the declarative mx:request tag. Tracy Spratt Lariat Services Flex development bandwidth available From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of thibodeau.alain Sent: Monday, February 09, 2009 10:30 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Webservice with Dynamic request? Hi All, I am not sure how to go about this and couldn't find a sample anywhereI am trying to consume a webservice that contains dynamic request data. Meaning that my request will change depending on what the user has entered... I've always used services that had the same request params, but in this case they change... I tried building out in AS my request like this: webService.SearchPa rams.request = " string< /title> string string"; And I have been staring at the request tag not knowing how to make it "loop" string< /title> string< /item> string< /criteria> I hope it's clear what I am trying to accomplish and that someone can point me in the correct direction... thank-you!
Re: [flexcoders] Webservice with Dynamic request?
Thank-you but I am still a little unclear as to how this actually works. >From what I gather all I need to do is pass an array and flex will serialize >it... I've tried passing an array of objects, I've simplified my test case, below is the code: can anyone please help me figure out what I am doing wrong? thanks in advance CODE varsearch1:Searchcriteria = newSearchcriteria();varsearch2:Searchcriteria = newSearchcriteria();var search1.criteria1 = search1.criteria2 = search1.criteria3 = search1.criteria4 = search2.criteria1 = search2.criteria2 = search2.criteria3 = search2.criteria4 = search3.criteria1 = search3.criteria2 = search3.criteria3 = search3.criteria4 = search3:Searchcriteria = newSearchcriteria();"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test";"test"; varcriterialist:Array = [search1,search2,search3,search4,search5];"param1","param2","param3",criterialist,"param5"); ws.GetAdvancedSearchListDept( ws.GetAdvancedSearchListDept.addEventListener(ResultEvent.RESULT, resultSearchHandler) ; //search1, 2 3 4 5 are of type searchCriteria: publicclassSearchcriteriaprivatevarcriteria1:String;privatevarcriteria2:String;privatevarcriteria3:String;publicfunctionSearchcriteria()publicfunctiongetCriteria1() : String { returnthis.criteria1; }publicfunctionsetCriteria1(criteria1 : String) : void{ this.criteria1 = criteria1; } publicfunctiongetCriteria2() : String { returnthis.criteria2; }publicfunctionsetCriteria2(criteria2: String) : void{ this.criteria2 = criteria2; } publicfunctiongetCriteria3() : String { returnthis.criteria3; }publicfunctionsetCriteria3(criteria3 : String) : void{ this.criteria3 = criteria3; } { { }} When I look at what is being sent to the service I see this for the criterialist param, they are not expanded... All other params are passed ok as they are simple strings... SENT SOAP snippet tns:criterialist "http:mysite/schema"/>"http:mysite/schema"/>"http:mysite/schema"/> From: Tracy Spratt To: flexcoders@yahoogroups.com Sent: Monday, February 9, 2009 11:55:42 AM Subject: RE: [flexcoders] Webservice with Dynamic request? What are the input parameters of the operation “SearchParams”? What data types? Does it have a single argument of type array that that contains an array of “searchcriteria” objects, which have the three search specification values? The request object is a dynamic “Object”, not xml. build it something like this: Var oRequest:Object = new Object(); oRequest.criteriali st = buildSearchCriteria Array() webService.SearchPa rams.request = oRequest; Be sure to remove the declarative mx:request tag. Tracy Spratt Lariat Services Flex development bandwidth available From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of thibodeau.alain Sent: Monday, February 09, 2009 10:30 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Webservice with Dynamic request? Hi All, I am not sure how to go about this and couldn't find a sample anywhere...I am trying to consume a webservice that contains dynamic request data. Meaning that my request will change depending on what the user has entered... I've always used services that had the same request params, but in this case they change... I tried building out in AS my request like this: webService.SearchPa rams.request = " string< /title> string string"; And I have been staring at the request tag not knowing how to make it "loop" string< /title> string< /item> string< /criteria> I hope it's clear what I am trying to accomplish and that someone can point me in the correct direction... thank-you!
Re: [flexcoders] Image->swfLoader->memory
Excellent, thanks Alex, great help! From: Alex Harui To: "flexcoders@yahoogroups.com" Sent: Monday, February 16, 2009 4:21:14 PM Subject: RE: [flexcoders] Image->swfLoader->memory There’s a profiler tutorial on my blog. However, in general, the number of instances of SWFLoader, Bitmap and BitmapData should not keep going up after you force garbage collection. Several people say that if it is the browser, especially IE, you can minimize and restore IE and the memory will be reclaimed. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs. adobe.com/ aharui From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Alain Thibodeau Sent: Monday, February 16, 2009 9:00 AM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] Image->swfLoader->memory Thanks Alex, So there shouldn't be any issues with the way I set the swfLoader in Cairngorn then? I did test with the profiler and unless I am blind I don't see it releasing memory, however, I am not an expert with it. When I do test with the browser (IE), I see the memory go down then back up, in the long run it always goes much higher and doubles or triples from original. I am not sure at this point if I should worry about it or code it a different way. If it is the brower, then I gather there isn't much I can do... Thanks again. From:Alex Harui To: "flexcod...@yahoogro ups.com" Sent: Monday, February 16, 2009 11:43:24 AM Subject: RE: [flexcoders] Image->swfLoader->memory Use the Profiler to see if you really have such a problem.. We have seen issues with some browsers not releasing memory even though Flex has. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs. adobe.com/ aharui From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of thibodeau.alain Sent: Monday, February 16, 2009 6:00 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Image->swfLoader->memory Hi all, I am building a photo library using tileList and the
Re: [flexcoders] Image->swfLoader->memory
Thanks Alex, So there shouldn't be any issues with the way I set the swfLoader in Cairngorn then? I did test with the profiler and unless I am blind I don't see it releasing memory, however, I am not an expert with it. When I do test with the browser (IE), I see the memory go down then back up, in the long run it always goes much higher and doubles or triples from original. I am not sure at this point if I should worry about it or code it a different way. If it is the brower, then I gather there isn't much I can do... Thanks again. From: Alex Harui To: "flexcoders@yahoogroups.com" Sent: Monday, February 16, 2009 11:43:24 AM Subject: RE: [flexcoders] Image->swfLoader->memory Use the Profiler to see if you really have such a problem. We have seen issues with some browsers not releasing memory even though Flex has. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs. adobe.com/ aharui From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of thibodeau.alain Sent: Monday, February 16, 2009 6:00 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Image->swfLoader->memory Hi all, I am building a photo library using tileList and the
Re: [flexcoders] Re: yahoo maps "CustomSWFMarker"
Thanks, it did help, in order to load custom markers with click events this is now my attempt What I am now trying to do is load custom markers, once the user clicks on it, it's a method inside the loaded swf marker that loads the image...but I need to pass the image location to the loaded swf.. once it's loaded... This is what I have so far: I added an event listener : mapEventDispatcher.addEventListener('addSWFMarkerByAddress_Result', onSWFMarkerAdded); Then similar to what you have: latLonController.addMarkerByLatLon('CustomSWFMarker',44, -80,{url:'customMarker.swf', ref:'myMark'}); Then the event function: private function onSWFMarkerAdded(ev:Object):void { Alert.show(ev.lastResult, 'Title'); //shows nothing... } All works great, the event fires when the markers are added BUT from what I gather the event object "ev" has 2 params: event type and a reference id. I do not know however what the actual param names areAnd for some reason my Flexbuilder hangs while the map is loading ( I am uing the yahoo as3 connection kit) in debug mode.. I cannot go see the names.. So now, I am trying to figure out how I am going to pass the data to the loaded swf :( Perhaps this is the wrong approach, but I am learning! :) thanks in advance for any help! - Original Message From: Abyss Knight <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, September 12, 2007 3:21:19 PM Subject: [flexcoders] Re: yahoo maps "CustomSWFMarker" I actually am having the same documentation issues, but this might help you: latLonController. addMarkerByLatLo n('CustomPOIMark er',dp[i] .lat, dp[i].lon,{index: index,title: dp[i].shortName, description: description, markerColor: Number('0x3366CC' ), strokeColor: Number('0xCEE9FF' )}); Basically, it uses the latLonController to add CustomPOIMarker. Problem is, the response will not give you a reference. I hacked around it using the title of the marker as an index to the data array. Hope that helps, - William --- In [EMAIL PROTECTED] ups.com, "thibs73" <[EMAIL PROTECTED] > wrote: > > > Hi there, > > Anyone know if there is a click event for a CustomSWFMarker in yahoo > Maps? Just like the "onPOIClicked" for POIMarker... why am I not using > POIMarker? Because it seems that I can only add POI Markers by address > only. I need to be able to add it by Lat & Lon. > > To sum up, I want to add custom makers by Lat & Lon, open a unique > image when the user clicks on any of them. \ > > I am having a hard time finding documentation on this. > > Any help would be great, > Thank-you > Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca
[flexcoders] Repeater refresh bug?
Hi All, I am having a problem with nested Repeater controls not refreshing properly to reflect the data that is bound to the data provider for each of the Repeater controls. My problem is related to the following: I have two classes, say Parent and Child which are as follows: [Bindable] public class Parent { public var children : ArrayCollection = new ArrayCollection(); } [Bindable] public class Child { public var name : String = “foo”; public var isEnabled : Boolean = true; public var isSelected : Boolean = false; public var enabledChildren : ArrayCollection = …; public var disabledChildren : ArrayCollection = …; } The enabledChildren and disabledChildren collections contain references to other Child objects that exist within the children collection of another parent. Then I have the following nested Repeater control structure: Where model.parents references an ArrayCollection of Parent objects. The problem that I am having is that when a checkbox is clicked, the optionClicked function is called, and within this function there is logic that iterates over the enabledChildren and disabledChildren collections of the Child object bound to the clicked checkbox, and it sets the isEnabled and isSelected properties of each Child object in these collections to either true or false, depending on the current state of the checkbox that was clicked. However, when I do this, the checkbox controls are not updated properly, as the enabled and/or selected state of the checkbox does not accurately reflect the value that is stored in the object that is bound to this control. The only way that I am able to have the checkboxes redraw properly is to do a manual refresh on the model.parents collection, but doing so causes the view to flicker pretty noticeably. Is there any way to perform this type of operation and have all of the controls update properly without having to do the manual refresh? I know that the data that is bound to the controls is being updated properly, but the actual view of the controls is not being updated. Any help that could be offered on this matter would be greatly appreciated. Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Re: [flexcoders] Re: SWFLoader for .swf and Effects?
I think you can make it work with any type of flex effects like WipeLeft or right, I haven't tried them all... if you don't want it to be visible till later, there are several ways you could do this. I have to assume that "until later" means an event at some poitn in time.. You can hide your swfLoader then on that event, trigger an effect on the swfLoader like the fade.(in AS). Or, you can leave the swfLoader empty until your event happens and it calls the load on the swfLoader to load its content. Leave the completeEffect on the swfLoader so that once your image is loaded it will fade..and it will do so everytime the content changes... I guess,these are a few things I would try... - Original Message From: Matt <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, April 25, 2007 1:48:09 PM Subject: [flexcoders] Re: SWFLoader for .swf and Effects? Okay, I noticed that was the only effect mentioned for SWFLoader, but does that mean you can't do any other types of effects with it? What if I don't want it to be visible until later and when I make it visible I would like to fade it in? Thanks --- In [EMAIL PROTECTED] ups.com, Alain Thibodeau <[EMAIL PROTECTED] > wrote: > > An example using a fade effect: > > > > > > > > > - Original Message > From: Matt <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] ups.com > Sent: Wednesday, April 25, 2007 11:59:36 AM > Subject: [flexcoders] SWFLoader for .swf and Effects? > > I'm trying to figure out a way to apply a fade-in effect for a vector > image that is being loaded in an SWF via the SWFLoader but I can't > seem to make it work. I've thought perhaps I could grab the child to > add the effect, but that requires the SWFLoader to have completed loading. > > Is there a better way to do this? It's a vector graphic exported from > Illustrator that I'm trying to fade-in. > > > > > > Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail. yahoo.com/ try_beta? .intl=ca > Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
Re: [flexcoders] SWFLoader for .swf and Effects?
An example using a fade effect: - Original Message From: Matt <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, April 25, 2007 11:59:36 AM Subject: [flexcoders] SWFLoader for .swf and Effects? I'm trying to figure out a way to apply a fade-in effect for a vector image that is being loaded in an SWF via the SWFLoader but I can't seem to make it work. I've thought perhaps I could grab the child to add the effect, but that requires the SWFLoader to have completed loading. Is there a better way to do this? It's a vector graphic exported from Illustrator that I'm trying to fade-in. Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca
Re: [flexcoders] HTTPService/ArrayCollection/DataGrid/Tree/
Hi Tracy, Thanks for taking the time..Given that xml I would like the tree to look like this: >Chicago >Name >New York >Name >Miami >Name Basically, extract from the xml, the "area" as a branch and put the "name" as its leaf...However, there can be more than one "item" in the xml with the same "area", those should be all put under the same "area" branch...for example Chicago can have more than one leaf coming from more than one "item".. hope it makes sense.. I think I will need to write a custom data class...? Thanks again for your time, very much appreciated. - Original Message From: Tracy Spratt <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Wednesday, March 28, 2007 6:30:10 PM Subject: RE: [flexcoders] HTTPService/ArrayCollection/DataGrid/Tree/ So given that xml, what do you want your tree to look like? Tracy From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Alain Thibodeau Sent: Wednesday, March 28, 2007 8:12 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] HTTPService/ ArrayCollection/ DataGrid/ Tree/ Hi all, I was wondering if someone could please point me in the correct direction. I have an HTTPService that I am using with a datagrid, the Service's data is loaded into an ArrayCollection and I filter the ArrayCollection with a filterFunction. All works great. I now want to take the same ArrayCollection and load certain elements of the data into a tree. This is where I am getting errors. The xml: Name Chicago Avail. 1264 40 Name New York Avail. 1264 49 I want to display in the tree the area(s) as the folder and the name under it as a leaf(s). All I managed to do is a labelFunction that returns the area, and populates the tree as leafs. I am assuming, I will have to create a custom function? private function trModels(item: Object):String{ return item.community; } Now all the docs I could find tell me to use the result on the httpservice as e4x and filter the data that way for the tree, but when I specify e4x as resultFormat I get an error and it breaks my filtering on the datagrid...: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections. ArrayCollection. Can anyone point me in the correct direction please? There must be a way to filter data that is not "tree" friendly.. thank-you Ask a question on any topic and get answers from real people. Go to Yahoo! Answers. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] HTTPService/ArrayCollection/DataGrid/Tree/
Hi all, I was wondering if someone could please point me in the correct direction. I have an HTTPService that I am using with a datagrid, the Service's data is loaded into an ArrayCollection and I filter the ArrayCollection with a filterFunction. All works great. I now want to take the same ArrayCollection and load certain elements of the data into a tree. This is where I am getting errors. The xml: Name Chicago Avail. 1264 40 Name New York Avail. 1264 49 I want to display in the tree the area(s) as the folder and the name under it as a leaf(s). All I managed to do is a labelFunction that returns the area, and populates the tree as leafs. I am assuming, I will have to create a custom function? private function trModels(item:Object):String{ return item.community; } Now all the docs I could find tell me to use the result on the httpservice as e4x and filter the data that way for the tree, but when I specify e4x as resultFormat I get an error and it breaks my filtering on the datagrid...: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections.ArrayCollection. Can anyone point me in the correct direction please? There must be a way to filter data that is not "tree" friendly.. thank-you __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Recommendations for Print Preview
Hi All, Any recommendations on creating a custom print preview? I would like to take objects from my app, show a print preview on a different page. No problems with the printing, just not sure what approach to take on the preview part. Thanks in advance.
RE: [flexcoders] Difficulty when @embedding FP9/AS3 SWFs
Perhaps this will help you, even if it's not embed: http://www.bridel.org/flex/example/swfimport/swfloadasdemo.html http://www.bridel.org/flex/example/swfimport/srcview/index.html From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Rollins Sent: Monday, December 18, 2006 11:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Difficulty when @embedding FP9/AS3 SWFs I'm not having any problems accessing frame labels, etc. in FP9/AS3 swfs which are dynamically linked at runtime within a swfloader component, but if I try to @embed those same swf files, I lose all my ability to interact with them. Shouldn't I be able to do continue to reference their frame labels, etc.? Looking for suggestions or examples on embedding simple swf files (animations with frame labels, and timeline stop() actions) and maintaining control of those files programatically. TIA. <> <>
[flexcoders] problems with drag/zoom and levels
Hi All, I hope someone will be able to help me with some issues I am having. I need to load an external swf and control its display with drag and zoom. The loaded swf has to be inside a "white box" (container), it must be draggable/zoomable beyond the parameters of the box, but the excess that is outside this box must be hidden. As it stands now, I have the swf file loading ok with "SWFLoader", the Loader is nested inside an "HBox" which is also nested in other layout components. I am running into some problems: 1- When users drag the loaded swf, it seems like the swf file is swapped onto the top layer or level and it drags over the whole stage and not within its own area. 2- When users click the zoom, scroll bars appear for the whole stage as the page is stretched to the new size of the swf. I need the swf to load inside its container and not stretch the whole page while zooming/dragging, it should be clipped at the edges of the container so and not affect the rest of the stage... What would be the best way of doing this? I read up on changing depths of elements and/or creating a mask over the loaded swf, but I am unsure of which approach would be best? Thanks in advance. A
[flexcoders] historyManagement on viewStack and IE 7
Hello All, I have a ViewStack with historyManagementEnabled="true", the history works well in Firefox but in IE 7 nothing happens. It seems that there is no history saved. Have any of you had this problem? I am new to Flex and not sure if it's a bug or if I have to do more than just enable the history management on the ViewStack? Thank-you in advance A