Re: [flexcoders] Better way to update sub-records, Flex and Coldfusion
Hi lost, Does your table SubRecords have a primary keyhttp://en.wikipedia.org/wiki/Primary_key ? If so, you could use the SQL UPDATE statementhttp://www.sql-tutorial.com/sql-update-sql-tutorial/, rather than DELETE followed by INSERT. If the table does not have a primary key, there are compelling reasons to add one, so please post back either way. The following page from the CF Docs covers Creating an update action page with cfquery which will show you some of the basics: http://livedocs.macromedia.com/coldfusion/7/htmldocs/1261.htm#wp1110980 With Flex, you will need to have logic to programmatically track which records have been modified (say be adding a flag variable to each record). If your system may ever have 2 or more users simultaneously, it will be very important to ensure that your application implements proper transaction managementhttp://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10743/transact.htmlogic. This will include your having a mechanism for ensuring, before you execute the UPDATE statement, that the record in the table was not modified by another user between the time that the data was initially retrieved and sent over to Flex, up to the moment that the UPDATE is executed. Implementing transaction management logic is just as important with your DELETE followed by INSERT logic. Do you have a database administrator (DBA) on your team? If so, they will be an excellent person to walk you through this. Also, for most seasoned ColdFusion developers, implementing SQL UPDATEs is old hat :-) btw ... what database are you using (Oracle, MySQL, Microsoft, etc)? Please post back if you would like clarification on any of this. hth, g On 11/17/06, lostinrecursion [EMAIL PROTECTED] wrote: Hi all, I have been programming for a while now and have always used a particular method to update sub-records in a data driven application. I know there is a better way and was hoping flexcoders could point me in a solid direction. Let's say I have a table called MasterRecords and one called SubRecords - Each record in the SubRecords table has a Foreign Key called MasterRecordsID which ties it to the MasterRecords table. When I do an update I typically go through and delete all instances of SubRecords from that table and then re-insert them. It is a working method, but tends to create load on the database that is not needed. Is there a better way to handle updates of SubRecords?
[flexcoders] Re: Cairngorm and working with Delegate question
Hi, It turns out that there is a problem with my remote object (I think), because after I make the call, this function is executed. I know this one is executed because I did a Alert.show('test') within this function and it does the alert so this function must be getting called after I try to make a remote object call. // this is called when the delegate receives a fault from the service public function fault( rpcEvent : Object ) : void { model.errorStatus = Fault occured in LoadEmployeesCommand.; } I am thinking it may not be finding my CFC, butI am not sure, I just know its not calling the result function, its calling the fault function. Any help appreciated --- In flexcoders@yahoogroups.com, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am trying to learn to use Cairngorm and I am trying to find out where I am going wrong. I have a CFC which I am trying to call and get a string back for testing to make sure its all working. The delegate should call the result or the fault function in my LoginUserCommand if I am correct. I am trying to see if the problem is the call to the CFC or the problem is in my LoginUserCommand which has functions that should handle the result or a fault. I have this in my LoginUserDelegate package com.adobe.myApp.business { import mx.rpc.AsyncToken; import mx.rpc.IResponder; import com.adobe.cairngorm.business.ServiceLocator; import mx.controls.Alert; public class LoginUserDelegate { private var command : IResponder; private var service : Object; public function LoginUserDelegate( command : IResponder ) { this.service = ServiceLocator.getInstance().getService( 'loginUserService' ); this.command = command; } public function loginUserService() : void { var token:AsyncToken = service.send(); token.addResponder( command ); } } } My services.xml: ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=loginUserService destination=Coldfusion source=cf.com.User showBusyCursor=true mx:method name=sayHelloString / /mx:RemoteObject Then I have a LoginUserCommand: package com.adobe.myApp.command { import mx.rpc.IResponder; import com.adobe.cairngorm.commands.Command; import com.adobe.cairngorm.control.CairngormEvent; import com.adobe.myApp.business.LoginUserDelegate; import com.adobe.myApp.model.AppModelLocator; public class LoginUserCommand implements Command, IResponder { private var model : AppModelLocator = AppModelLocator.getInstance(); public function execute( loginEvent:CairngormEvent ) : void { var delegate : LoginUserDelegate = new LoginUserDelegate( this ); delegate.loginUserService(); } // this is called when the delegate receives a result from the service public function result( rpcEvent : Object ) : void { trace(rpcEvent.result); } public function fault( rpcEvent : Object ) : void { model.errorStatus = Fault occured in LoadEmployeesCommand.; } } } /cairngorm:ServiceLocator
Re: [flexcoders] [ADV] New version of Flexible Rails book available (Alpha version 5)
Hi Steve, Thanks for your feedback--I've just redesigned the flexiblerails website, including a link to an updated Table of Contents. Regarding your questions: - For authentication, I just use the old school login_generator and update its generated output to be less deprecated. I don't go into acts_as_authenticated vs. login generator vs. login engine vs. all the others in any depth. (I may add acts_as_authenticated coverage later, but I'd say that's less than a 10% chance.) - The REST content isn't in the book yet. This is what I'm adding to the current iteration (and the RESTful approach will be used going forward). So, I'm not sure whether the book would be worth it for you yet. It seems like you already know much (quite possibly all) of what it currently covers. There may be some bits in it that are worth it for you though, such as integrating Rails and Flex validation, etc. However, if you're at an advanced level with both Flex and Rails this book is probably not worth it today. Maybe once the REST and Cairngorm stuff is added that will be different; however, my target audience is mostly at a beginner to intermediate level. Thanks, Peter On 11/16/06, Steve Hindle [EMAIL PROTECTED] wrote: Hi Peter, Could I suggest making a full table of contents available in an easy to spot place on the website? Also, does the book cover Flex and Rails login/auth systems (AAA, etc), sessions, etc? It appears 'iteration03' might cover some of this? I'm currently building a rails app with a flex front end, and would probably buy the book if it covered these topics. BTW, I'm basically using a RESTFul approach as you mention - I use the trestle scaffold generator and :render xml for flex-Railscomms. Steve On 11/9/06, Peter Armstrong [EMAIL PROTECTED] wrote: Hi all, I've uploaded the fifth Alpha version of Flexible Rails. See http://www.flexiblerails.com for details. This is an in-progress, PDF-only book about using Rails 1.1 and Adobe Flex 2 to build Rich Internet Applications (RIAs). The two main highlights of this version are: 1. I have added a new iteration (Iteration 19: Validation), which explains how to integrate Rails Validation with Flex Validation. 2. I have reformatted almost all the code samples in the book, based on feedback from readers of earlier versions. Since posting the initial announcement to this list two months ago, the book has grown from 214 pages (169 pages + Preface and Appendices) to 309 pages (264 pages + Preface and Appendices). My current estimate is that the book is about half done. Readers of earlier versions can, of course, download their free updates via the usual method. Thanks, Peter Armstrong -- Peter Armstrong http://www.flexiblerails.com -- Flex 2 and Rails 1.1 together! (PDF-only book)
RE: [flexcoders] Minimizing File Size
in relation to this topic, probably mx:module will help a lot once available. although it has already been posted that the 2.01 update will be available early next year, I cnt wait to get my hands on it. Is there any chance of getting a prerelease copy of 2.01 at this time? we are currently working on a large web ap similar to google analytics. This is a combination of ajax and flex; where the number of instances of the flex swf's are to be determined by the user at runtime. I understand that RSL's will probably be part of the option now. But looking at roger's blog, going Modular will surely cut the file size heavily. It would ba a waste of time to reimplement everything once the mx:module support is out. Hence, guys, is there any way I can get hold of a prerelease? Although I understand it may be incomplete, at least we wouldnt have to worry about changing the entire architecture once 2.01 is out. Thnx in advance. --- Matt Chotin [EMAIL PROTECTED] wrote: I don't believe the gain will be that significant in the scheme of things. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman Sent: Tuesday, November 14, 2006 9:20 AM To: flexcoders Subject: [flexcoders] Minimizing File Size I have a fairly large swf (700k) which i want to shrink down a bit because it's only going to continue to grow. I already know about shared libraries and your other standard tricks but I'm also looking to just minimize the size through good coding practice. I have one area I might be able to improve. I have a fairly robust class hierarchy. The final classes that are actually used (there are about 50) are little more than classes that hold arguments for their superclasses (most have only a constructor). Would it reduce file size to destroy these fifty classes and just construct a 50 case switch statement? I started moving in this direction but my file size doesn't seem to be shrinking. I'd like to know if it's worth it before I do the other 40. Thanks, - Dan Sponsored Link $420k for $1,399/mo. Think You Pay Too Much For Your Mortgage? Find Out! www.LowerMyBills.com/lre
[flexcoders] Flex 2 Charting dynamic backgroundElements
Hi, I have to draw shapes and lines into the background of a Plotchart. The size/position of the shapes and lines depends on the minimum and maximum of the horizontal and vertical linear axis. My first try was to use the backgroundElements to solve this problem. I created a shape, drawed a polygon on it and added it to the backgroundElements: var shape:Shape = new Shape(); var gr:Graphics = shape.graphics; gr.moveTo(0, 20); gr.beginFill(0xFF9900, 50); gr.lineTo(0, 0); gr.lineTo(100, 0); gr.lineTo(100, 100); gr.lineTo(0, 20); gr.endFill(); backgroundElements.reverse(); backgroundElements.push( shape ); I reversed the array to keep the GridLines in the front. The polygon is visible in the background but it is scaled to fit the size of the PlotChart. The shape has to keep its scaling. How do I know the width/height of the PlotChart content area? With this information and the min/max of the x/y axis I am able to do the drawing. Any hint is very appreciated. Cheers, Sönke
Re: [flexcoders] Flex Upload Handling (design)
hank williams wrote: This is a current failing in the flash/flex design. The way that I deal with it is to, before doing the actual upload, to send the data associated with the upload to the server first. The server then sends back an itemID or ticketID or something like that. When you do the upload you send with the URL, a parameter which is this new ID. The server knows that the thing that is being uploaded must be associated with the ID. When the upload is done, the client then knows what the ID of the uploaded item is and may ask the server about the item or instruct the server to do some additional task(s) to the item. Ouch, not good to hear that. I hope in future version Flex will be more hm... flexible in this matter (pun intended :) However I admire your solution for the problem - I've been struggling with it for days, and haven't developed something like that. I'll definitely use this approach in our project. The only thing now is to think how to reserve this itemID from the server. Guess I will have to create empty object, put in inside DB, get the ID and return it. When the real upload comes, the object will be just updated with proper data in DB. So far, so good :) Thank you for your answer, it was really helpful. -- | Software Engineer | Sebastian Zarzycki | Microplan Polska (http://www.microplan.pl) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Compiling with FlashDevelopIDE/mxmlc.exe
I'm getting this error and can't figure out why. I've reinstalled everthing (FD, sdk - you name it). the app compiles without error, but when it loads, I get this in a long line of messages: VerifyError: Error #1079: Native methods are not allowed in loaded code. anyone know what this is? Experience it? -- [ JPG ]
[flexcoders] Re: Communicating with an embedded SWF from Flex App
--- In flexcoders@yahoogroups.com, ryanlevere [EMAIL PROTECTED] wrote: Thanks in advance to anyone who can help. Just posted on FlashCoders... these guys have something that help you a lot. http://www.flashextensions.com/products/flashinterface.php
RE: [flexcoders] FDS not receiving calls asynchronously
If you want asynchronous processing on the backend for your requests I'd recommend taking a look at the JMS adapter. Rather than making a RemoteObject call you'd send your requests to the server using a Producer and listen for async results using a Consumer. You'd want to use an inbound request topic for your clients to send their requests to, and you can write a Java JMS client that handles messages sent to this topic asynchronously via a worker pool or something similar. Reponses can be sent to a second outgoing response topic that the clients have subscribed to. You can use message headers and Consumer selector expressions to target responses back to the proper client. HTH, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jbergamotto Sent: Friday, November 17, 2006 4:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS not receiving calls asynchronously I am having an issue with concurrency using FDS. I have six calls going to the same destination (all different methods) at the same time. Setting up logging on the client side I see that Flex is sending the calls all at the same time, however in the server log (being recorded at the beginning and end of each method) I notice that each call is being completed before the next call is started. There is no code to block that I am writing, in fact the first line of the method writes to a log. Inside the method there is some message retrieval happening and each of the calls can take a different amount of time, the calls were broken up to allow for retrieval to come back asap, however the synchronous behaviour is preventing us from having 2 longer calls running at the same time. Are there settings that I am unaware of in the remoting-config that can fix this behaviour? Is there code in the messagebromer that is making this synchronous? I have tried increasing the framerate of the main application mxml and utilizing the callLater feature, but there is no change in behaviour.
Re: [flexcoders] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();
Not sure what your requirements are, but I usually just track dynamic objects in an array:** var radioButtons:Array = new Array(); for ( var i:int = 0; inumBtns; i++ ) { var rb:RadioButton = new RadioButton(); rb.property = value; . . radioButtons.push( rb ); } On 11/17/06, dj [EMAIL PROTECTED] wrote: I know I've posted this already. Sorry, just trying to get this populated in Actionscript, so I thought I'd post again since I've been kind of stuck on this point here. Thanks, Patrick -- : : ) Scott
[flexcoders] Remote object not working when called from delegate
Hi, I am trying to find out why this remote object does not return successfully using Cairngorm. I can use the same remote object in an application just by itself. The remote object invokes a CFC method and populates a datagrid just fine, but when I am trying to use a delegate to call this service, it is not working. It works for an HTTPService, but not remote object. Below is my Services.xml files ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx= http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id= loginUserService destination=ColdFusion source=myApp.cf.com.countries showBusyCursor=true mx:method name=getCountries / /mx:RemoteObject /cairngorm:ServiceLocator Here is the delegate: package com.adobe.myApp.business { import mx.rpc.AsyncToken; import mx.rpc.IResponder; import com.adobe.cairngorm.business.ServiceLocator; import mx.controls.Alert; public class LoginUserDelegate { private var command : IResponder; private var service : Object; public function LoginUserDelegate( command : IResponder ) { this.service = ServiceLocator.getInstance().getService( 'loginUserService' ); this.command = command; } public function loginUserServices() : void { // call the service var token:AsyncToken = service.send(); // notify this command when the service call completes token.addResponder( command ); } } }
[flexcoders] resize effect with AS
Hi there, I'm trying to add an event listener when the effect ends. Something like this in mxml: mx:Resize id=expand target={img} widthTo=100 heightTo=200 duration=1 effectEnd=endEffectHandler();/ but in AS, I have this function so far: private function resize(w:Number, h:Number):void { var resize:Resize = new Resize(); resize.end(); resize.target = this; resize.widthFrom = width; resize.widthTo = w; resize.heightFrom = height; resize.heightTo = h; resize.play(); } AS doest not seem to support effectEnd. is there any method to manage that from AS? thanks, Diego. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();
Another thing could be; myRadio[b+i]:RadioButton = new RadioButton(); if you are trying to name them var button:RadioButton = new RadioButton(); myRadio.name = b + i; then if you are trying to query the button by name; var button:RadioButton = RadioButton(myParent.getChildByName(b + i)); Peace, Mike On 11/19/06, slangeberg [EMAIL PROTECTED] wrote: Not sure what your requirements are, but I usually just track dynamic objects in an array:** var radioButtons:Array = new Array(); for ( var i:int = 0; inumBtns; i++ ) { var rb:RadioButton = new RadioButton(); rb.property = value; . . radioButtons.push( rb ); } On 11/17/06, dj [EMAIL PROTECTED] wrote: I know I've posted this already. Sorry, just trying to get this populated in Actionscript, so I thought I'd post again since I've been kind of stuck on this point here. Thanks, Patrick -- : : ) Scott -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] FLEX BUG: Effects don't work in custom Panel-derived component's children
I have found what appears to be another bug in Flex 2. Effects assigned to component triggers don't work if the component is a child of an mx:Panel-derived MXML component. The following simple example demonstrates this: Compiled example http://www.tommyb.com/flex/effectbug/EffectTest.html Source example: (Custom mx:Panel-derived component, defined in myComps/myPanel.mxml) ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute /mx:Panel (Main app mxml) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:myNameSpace=myComps.* layout=vertical viewSourceURL=srcview/index.html mx:WipeRight id=myFade duration=500/ mx:Label text=FLEX BUG: Effects don't work in custom Panel-derived component's children fontSize=14 fontWeight=bold/ mx:Label text=The effects work if the component is a child of mx:Panel/ mx:Panel width=250 height=200 title=mx:Panel layout=absolute mx:ControlBar mx:Button label=rollOverEffect Works Here rollOverEffect=myFade/ /mx:ControlBar /mx:Panel mx:Spacer height=25/ mx:Label text=They don't work if the panel is a custom MXML component derived from mx:Panel/ myNameSpace:myPanel width=250 height=200 title=myNameSpace:myPanel layout=absolute mx:ControlBar mx:Button label=rollOverEffect Doesn't Work Here rollOverEffect=myFade/ /mx:ControlBar /myNameSpace:myPanel mx:Spacer height=25/ mx:Label text=(Right click and select 'View Source' to inspect source code)/ /mx:Application
[flexcoders] SetStyle fonts in Actionscript - CSS
Hi, why can't i embed a font this way? I know this looks silly, did i miss something? Thanks, Patrick /* CSS file */ @font-face { src:url(/assets/trebucbd.ttf); fontWeight: bold; fontFamily: tres; } .myRadioText { font-family: tres; color: #0080ff; font-size:14; } var myRadioText:Text = new Text(); myRadioText.id = myRadioText; myRadioText.setStyle(color,#0080ff); myRadioText.setStyle(fontFamily,tres); myRadioText.setStyle(fontSize,14); myRadioText.styleName = myRadioText; myRadioText.text = This test; this.addChild(myRadioText);
[flexcoders] Re: Intel-Mac 9.0.28 debug plugin
If there is a debug player it would be nice to get it. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark McCray Sent: Friday, 17 November 2006 11:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin I tried installing that one and it says it's for power-pc based machines. (the fourth link down) On Nov 17, 2006, at 2:21 AM, Matt Chotin wrote: Oh, my mistake, looks like we did post them. I know the projector on Mac is PPC only for the moment, but I believe the plugin should have been universal. I had been told that there were some delays in one of the Mac builds though, so this might be it. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Thursday, November 16, 2006 8:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin The 4th link within the FP9 group (the one I previously dl'ed) throws an error on installation saying that its a PowerPC version only. Hence my question on the location of an Intel-mac UB. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: mailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.com [mailto: mailto:flexcoders%40yahoogroups.com [EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Friday, 17 November 2006 2:42 PM To: mailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.com Subject: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin It doesn't specifically list Intel Mac, but I would assume this is what you need. http://www.adobe.com/support/flashplayer/downloads.html http://www.adobe.com/support/flashplayer/downloads.html I actually had to ask in a comment on the Labs blog to find this link too. Hey Adobe, make it easier to find these- why aren't they linked from the main download page? HTH, Ben --- In mailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Hey, I'm having some trouble finding this. Any help? Regards, Bjorn Schultheiss Senior Flash Developer QDC Personalised Communication Power Level 2, 31 Coventry St. South Melbourne 3205, VIC Australia T: +61 3 9674 7400 F: +61 3 9645 9160 W: http://www.qdc.net.au http://www.qdc.net.au ((This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---))
Re: [flexcoders] FDS2 and Linux
I've had this problem too. Problem is that the installer is using it's own JVM, rather than the system one. There is some way to override this, but I can't remember how. So alternatively you can download the HP_UX version, which is actually just a jar file installer, then run: java -jar fds2_install.jar Let me know if you have any problems. -James On Sat, 2006-11-18 at 22:19 +0100, Christoph Guse wrote: Hi List, today I tried to install FDS2 on my Kubuntu Linux box. Unfortunately the installation fails with the error message: grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory /tmp/install.dir.13818/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory libc.sp.6 is present on my machine. I found somewhere a similar problem with CF7 on a japanese site but I didn't understand a word ;-) Can someone help me? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
[flexcoders] rotating label in tabbar
does anyone know how to get the label in the tabbar to rotate. Or perhaps know when i change the direction to vertical how to get the button to rotation? I'm trying to make it look like side tabs on something i'm working on its taking forever to get this part right... Thanks! lori-
[flexcoders] SetStyle fonts in Actionscript - CSS
Add fontWeight to the style as well @font-face { src:url(/assets/trebucbd.ttf); fontWeight: bold; fontFamily: tres; } .myRadioText { font-family: tres; fontWeight: bold; color: #0080ff; font-size:14; } var myRadioText:Text = new Text(); myRadioText.id = myRadioText; myRadioText.styleName = myRadioText; myRadioText.text = This test; this.addChild(myRadioText); Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of {reduxdj} Sent: Monday, 20 November 2006 10:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SetStyle fonts in Actionscript - CSS Hi, why can't i embed a font this way? I know this looks silly, did i miss something? Thanks, Patrick /* CSS file */ @font-face { src:url(/assets/trebucbd.ttf); fontWeight: bold; fontFamily: tres; } .myRadioText { font-family: tres; color: #0080ff; font-size:14; } var myRadioText:Text = new Text(); myRadioText.id = myRadioText; myRadioText.setStyle(color,#0080ff); myRadioText.setStyle(fontFamily,tres); myRadioText.setStyle(fontSize,14); myRadioText.styleName = myRadioText; myRadioText.text = This test; this.addChild(myRadioText);
[flexcoders] Flex 1.5 - Initail progress bar stuck
We have a Flex 1.5 app our clients use. 99.% of the time when our sales people go on a demo for a potential client, the app loads just fine. That .0001% of the time, the initial progress bar gets to a certain percentage and just sticks. In one situation, having the sales person demoing use or install Firefox on the client's machine did the trick. We have a similar situation with a potential client and we have tried everything. We've cleared caches on both browsers, we've uninstalled and reinstalled the Flash plug-ins for both IE and Firefox...we've upgraded to IE 7...no matter what we do, the app loads up and stops at 8%. It loads for every other existing client and every other demo sales goes on...it loads on all of our local machines in-office...this one single client's office cannot load the app...and the best part is, it loaded for them last week when the sales first went to demo. They went in for round two this past week and the app will not pass 8% on any of their machines. Any suggestions? robert l. brueckmann vice president merlin securities 712 fifth avenue new york, ny 10019 phone: 212.822.4821 fax: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.