[flexcoders] How to include a SWC in a Module using Flash Builder?
Hi, In Flash Builder I can add SWC files for the main application but this is not what I want and it kind of defeats the purpose of modular applications right? If a SWC file is used only by some Module, I would like to be able to compile it in the module instead of the main application. Is that possible if Flash Builder without using Ant? Thank you, Adnan
Re: [flexcoders] Flex popup module ignores context menu
Thank you! I just remembered the related bug: https://bugs.adobe.com/jira/browse/SDK-25598 Cheers, Adnan On 21/02/2012 07:27, Alex Harui wrote: Set mouseEnabled=true on the TitleWindow On 2/20/12 3:29 AM, Adnan Doric astronaute@gmail.com wrote: Hi all, I followed the Alex's Popup Dialogs as Modules blog entry: http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html It works with mx.containers.TitleWindow as intended, the context menu shows and I can copy/paste text in a TextArea. But if I try to use spark.components.TitleWindow, the context menu does not shows at all when right clicking in spark TextArea. Application code: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 fx:Script ![CDATA[ import mx.core.IVisualElement; import mx.events.ModuleEvent; import mx.modules.IModuleInfo; import mx.modules.ModuleManager; private var info:IModuleInfo; protected function loadModule(event:MouseEvent):void { info = ModuleManager.getModule(HelloModule.swf); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(null, null, null, moduleFactory); } private function modEventHandler(event:ModuleEvent):void { addElement(info.factory.create() as IVisualElement); } ]] /fx:Script s:Button label=loadModule click=loadModule(event) / /s:Application module code: ?xml version=1.0 encoding=utf-8? local:ModuleTitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:local=* width=400 height=300 s:TextArea width=100% height=100% / /local:ModuleTitleWindow package { import spark.components.TitleWindow; [Frame(factoryClass=mx.core.FlexModuleFactory)] public class ModuleTitleWindow extends TitleWindow { public function ModuleTitleWindow() { super(); } } } Any thoughts? Is there a workaround? Thank you -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
[flexcoders] Flex popup module ignores context menu
Hi all, I followed the Alex's Popup Dialogs as Modules blog entry: http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html It works with mx.containers.TitleWindow as intended, the context menu shows and I can copy/paste text in a TextArea. But if I try to use spark.components.TitleWindow, the context menu does not shows at all when right clicking in spark TextArea. Application code: ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 fx:Script ![CDATA[ import mx.core.IVisualElement; import mx.events.ModuleEvent; import mx.modules.IModuleInfo; import mx.modules.ModuleManager; private var info:IModuleInfo; protected function loadModule(event:MouseEvent):void { info = ModuleManager.getModule(HelloModule.swf); info.addEventListener(ModuleEvent.READY, modEventHandler); info.load(null, null, null, moduleFactory); } private function modEventHandler(event:ModuleEvent):void { addElement(info.factory.create() as IVisualElement); } ]] /fx:Script s:Button label=loadModule click=loadModule(event) / /s:Application module code: ?xml version=1.0 encoding=utf-8? local:ModuleTitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:local=* width=400 height=300 s:TextArea width=100% height=100% / /local:ModuleTitleWindow package { import spark.components.TitleWindow; [Frame(factoryClass=mx.core.FlexModuleFactory)] public class ModuleTitleWindow extends TitleWindow { public function ModuleTitleWindow() { super(); } } } Any thoughts? Is there a workaround? Thank you
Re: [flexcoders] Flex 4: How to make draggable and resizable modules?
Thank you for your response, I already saw your blog post :) But in Flex 4, I can't find the mx.core.FlexModuleFactory. What to use instead ? On 20/04/2010 23:41, Alex Harui wrote: You can try starting here: http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html Someone else probably has an example of how to add resizing to a TitleWindow. On 4/20/10 7:35 AM, astronaute75 astrona...@gmail.com astrona...@gmail.com wrote: Hello, I would like to make an application using Flex modules (mx.modules.Module), the requirement is that those modules have to be draggable and resizable inside the main application shell. What is the best practice to make this kind of applications in Flex 4? Thank you in advance for your help, Adnan -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui
Re: [flexcoders] Re: With the latest eula agreement from Apple
On 14/04/2010 13:10, Guy Morton wrote: Flipping this whole discussion on its head for a moment Adobe used to have the best SVG runtime player in the land. It was fast, had good support for the SVG standard and it was stable. Then Adobe bought Macromedia. They discontinued development and support for their SVG player because now they had Flash! Adobe could, I'm sure, alter their Flash development tools to output SVG+Javascript. In fact, I'd be surprised if they hadn't already experimented with this. If Adobe was as smart as they think they are, they'd RIGHT NOW fast-track SVG+Javascript export into Flex and Flash IDEs. This would let them become the premier tool for developing iPhone apps, standards-based web vector animations and would encourage adoption of open standards at such a rate that it'd hobble Silverlight into the bargain! Flash is here because standards sucks. When standards will be good enough, flash will disappear, bunt won't happen anytime soon. Of course that is just an idle dream, and instead they will keep pushing their proprietary solution and wait for the killer open-standards IDE that will allow developers to make full use of HTML 5 to pop up and change the market for them. Then we will see Flash become a thing of the past. eg check this out http://demo.sproutcore.com/sample_controls/ http://demo.sproutcore.com/sample_controls/ Look familiar? Look ma! NO plugins, just HTML 5! I don't know for others, but it reminds me of Flash 5 ten years old with extra crossbrowser issues. Let me think... hell no, don't want to go there :) Maybe in few years HTML will be like flash 8, and few more years it will be like flash 10. There will be flash 16 and AS4 by the time, another gap for HTML to reach. So, yeah, good luck with your HTML mate, I wish you good luck, really. Vale Flash, you have been good to us, but your time is drawing to a close. Steve Jobs has seen the future, and Flash ain't there. Guy The future where Apple dictates what you can install on your phone, what you can see on the web, what music you can listen ? Sound great, see you there :)
Re: [flexcoders] Performance feedback PLEASE
105-107 FPS i7 Extreme 965 On 09/04/2010 10:51, Allan Pichler wrote: I was wondering if anyone could take a quick glance at my AS3 3d renderer http://api.pluton.webhouse.dk/pool3d/pool3d.html http://api.pluton.webhouse.dk/pool3d/pool3d.html and reply what FPS they get on their gear. If you could also provide your CPU info that would be extremely helpful. For the curious the engine sports the following features: Subpixel positioning (1/4 pixel on both x y) Antialiasing Ambient light Specular light Best regards and have a wonderful day! *Allan Pichler* RIA Architect - ColdFusion/Flex/Ajax/UI Email: dreamc...@gmail.com mailto:dreamc...@gmail.com Phone DK: +45 22 68 08 88 Phone US: +1 (415) 683 0313 Skype:apichler Yahoo:allan_pichler Facebook: www.facebook.com/apichler http://www.facebook.com/apichler LinkedIn: www.linkedin.com/in/apichler http://www.linkedin.com/in/apichler
[flexcoders] How to store composed images in database ?
Hello all, My Flex application will be some kind of image editor, with different layers containing graphic objects and images on them. I want to be able to save and retrieve those images without flattening them down. Obviously I will need some kind of mecanism for storing resulting composed images in the database, and also retrieving them back in the Flex application (runtime import/export). I searched the web but can't find any mature libraries allowing the import/export of SVG files at runtime so I suppose SVG is not the way to go. Can someone please suggest some way of storing this kind of composed images in database. :) Thank you in advance, Adnan
[flexcoders] Flex 4 - How to refresh all rows of a spark List ?
Hello all, How to refresh all rows of a spark List please, there is no invalidateList() method anymore ? Thank you in advance, Adnan
Re: [flexcoders] What happened to the examples on flexaxmples.com
I think it is safe to say that it is you just by looking in the link in the title of your message and the one in the message. They are different, and both are wrong, but wait ! I can help you ! http://tinyurl.com/dlfpbk On 26/03/2010 00:25, Baz wrote: Is it just me or did flexamples.com http://flexamples.com remove the actual flex application demos and only leave the code?
Re: [flexcoders] What happened to the examples on flexaxmples.com
Not all of his posts have a working example unfortunately, but his site works as expected. One post with working example: http://blog.flexexamples.com/2010/02/25/preventing-the-selected-item-highlighting-in-the-spark-list-control-in-flex-4/ HTH On 26/03/2010 01:04, Baz wrote: Yeah I did mis-type the urls in the email, but that's the site I'm talking about. Do you see any flex demos on this page for example: http://blog.flexexamples.com/2009/11/11/creating-an-animated-transition-when-scrolling-through-items-in-a-spark-hgroup-container/ http://blog.flexexamples.com/2009/11/11/creating-an-animated-transition-when-scrolling-through-items-in-a-spark-hgroup-container/
Re: [flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?
Thank you for you reply, but I've done steps you describe but in FB4 and it doesn't work. I have the following error in library project (manifest.xml is added in assets tab) : could not find source for class myPackage:TestComponent in namespace http://mynamespace.com. Did you take a look at the link in my first post ? http://forums.adobe.com/thread/583153 On 15/03/2010 02:15, Jeff wrote: I cover this in the laast episode of The Flex Show's video series on creating Flex Components: http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs The other poster who mentioned the mainfest.xml file is correct. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, astronaute75 astrona...@... wrote: Hello, I would like to create a Library Project in Flex 4 with a custom namespace so I can reference the namespace in my *.mxml files instead of package. (xmlns:view=http://myapp.com http://myapp.com instead of xmlns:view=com.myapp.*) I asked the question on Adobe forums too, but nobody seems to know how to do it: http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 Maybe I am doing something completely wrong in which case I apologize :) Thank you in advance for your help, Adnan
Re: [flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?
Yes of course, manifest.xml is added and project cleaned. Did you try it in FB4 too ? On 15/03/2010 14:09, Jeff wrote: I did not see your original post on the Adobe Forums. Did you include the manifest.xml as an asset to the project? Did you clean the project after adding the asset? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adnan Doric astrona...@... wrote: Thank you for you reply, but I've done steps you describe but in FB4 and it doesn't work. I have the following error in library project (manifest.xml is added in assets tab) : could not find source for class myPackage:TestComponent in namespace http://mynamespace.com. http://mynamespace.com. Did you take a look at the link in my first post ? http://forums.adobe.com/thread/583153 http://forums.adobe.com/thread/583153 On 15/03/2010 02:15, Jeff wrote: I cover this in the laast episode of The Flex Show's video series on creating Flex Components: http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs The other poster who mentioned the mainfest.xml file is correct. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, astronaute75 astronaute@ wrote: Hello, I would like to create a Library Project in Flex 4 with a custom namespace so I can reference the namespace in my *.mxml files instead of package. (xmlns:view=http://myapp.com http://myapp.com http://myapp.com http://myapp.com instead of xmlns:view=com.myapp.*) I asked the question on Adobe forums too, but nobody seems to know how to do it: http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 Maybe I am doing something completely wrong in which case I apologize :) Thank you in advance for your help, Adnan
Re: [flexcoders] Re: How to create Flex 4 Library Project with custom namespace please ?
Alright, the problem occurs only if the checkbox include all classes... is selected. Very weird. Hope that helps someone :) On 15/03/2010 14:51, Jeffry Houser wrote: Yep, no issues in Flash Builder 4. It works fine for me! I'm not sure what to tell you. On 3/15/2010 9:34 AM, Adnan Doric wrote: Yes of course, manifest.xml is added and project cleaned. Did you try it in FB4 too ? On 15/03/2010 14:09, Jeff wrote: I did not see your original post on the Adobe Forums. Did you include the manifest.xml as an asset to the project? Did you clean the project after adding the asset? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Adnan Doric astrona...@... wrote: Thank you for you reply, but I've done steps you describe but in FB4 and it doesn't work. I have the following error in library project (manifest.xml is added in assets tab) : could not find source for class myPackage:TestComponent in namespace http://mynamespace.com. http://mynamespace.com. Did you take a look at the link in my first post ? http://forums.adobe.com/thread/583153 http://forums.adobe.com/thread/583153 On 15/03/2010 02:15, Jeff wrote: I cover this in the laast episode of The Flex Show's video series on creating Flex Components: http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs http://www.theflexshow.com/blog/index.cfm/2010/3/1/The-Flex-Show--Creating-Flex-Components--Episode-13-Custom-Namespace-URLs The other poster who mentioned the mainfest.xml file is correct. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, astronaute75 astronaute@ wrote: Hello, I would like to create a Library Project in Flex 4 with a custom namespace so I can reference the namespace in my *.mxml files instead of package. (xmlns:view=http://myapp.com http://myapp.com http://myapp.com http://myapp.com instead of xmlns:view=com.myapp.*) I asked the question on Adobe forums too, but nobody seems to know how to do it: http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 http://forums.adobe.com/thread/583153?tstart=0 Maybe I am doing something completely wrong in which case I apologize :) Thank you in advance for your help, Adnan -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert:http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: re[flexcoders] move an empty row in datagrid
On 10/02/2010 20:37, coder3 wrote: Hi All, For example i have a datagrid of student info. student name, class, payment, ... if a row contains only student name, other columns data is empty, i don't want to show this row. How can i do it? thanks C. Try using filters on underlying dataProvider (ArrayCollection.filterFunction for example).
Re: [flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
http://localhost is considered as a domain. If you want it to work, launch it directly from your Flash Builder. It will create a rule for the folder containing the swf in order to bypass the security. On 10/02/2010 22:54, s_hernandez01 wrote: Yeah I thought of that too, but no success :( The Flex Project is setup with a PHP application server type. It's like if Flash Player is saying hey this domain does not have access to get these images but the thing is I'm not calling them from domain to domain, I'm calling them locally to a domain. It's really frustrating. Any other solutions? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jake Churchill reyna...@... wrote: try manually loading the policy file: import flash.system.Security; ... Security.loadPolicyFile(http://domainname.com/crossdomain.xml http://domainname.com/crossdomain.xml); On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 s_hernande...@...wrote: I guess my question would be why would it give me a security sandbox error when I'm running the app locally, wouldn't the sandbox error be executed when you have your app on a webserver with no crossdomain.xml on the server you're trying to access? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Jake Churchill reynacho@ wrote: Looks like you are trying to access MyDomainName.com but your policy is set for www.MyDomainName.com. Those are treated as separate domains even though they are only sub domains. On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 s_hernandez01@wrote: Hey does anyone know why I get this error: SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost/beta/Test-debug/Test.swf http://localhost/beta/Test-debug/Test.swf cannot access http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() I have the xml file crossdomain.xml on the root of my webserver: ?xml version=1.0? cross-domain-policy allow-access-from domain=www.MyDomainName.com/ /cross-domain-policy but when I run the app locally I always get this error. All I'm doing is trying to retreive images from my database. What more do I need to do? Thanks Sal
Re: [flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!
On 10/02/2010 23:14, s_hernandez01 wrote: Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex. URL should be file:///something if you want it to work. You can also try to put a * in your crossdomain.xml and start from there if it works.
[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???
The key word is asynchronous. httpsrv.send() is asynchronous so it gets executed after all synchronous statements (addResponder is synchronous) in the same block. cheers, Adnan --- In flexcoders@yahoogroups.com, Mehdi elextra...@... wrote: This is a question that has been bothered me for some time. You know how in Flex you can invoke a service (say httpservice for instance) which returns a token. After that you set the responder on the token. I.e.: var asyncToken:ASyncToken = httpsrv.send(); asyncToken.addResponder(...) We set the responder/handler AFTER the call has been set. Its very awkward but it does work. I was hoping someone could explain this to me. Thank you. Flex being single threaded, the call to httpsrv.send() should actually invokes the server and not get into the second line about the responder until the call has been at least issued. But that's not how it works I guess. So, I am assuming the call is queued somewhere, untiluntil when??? Cheers
[flexcoders] You want Flex Builder for Linux ?
Adobe plans to stop porting flex builder for linux... You want Flex Builder for Linux ? http://bugs.adobe.com/jira/browse/FB-19053 Then vote for it, show your support ! :) http://bugs.adobe.com/jira/browse/FB-19053 Now!
[flexcoders] Detect keyboard layout in AIR or Flex ?
Hello, Capabilities.language returns the language, that's great but... Is it possible with AIR to look into OS (Windows, linux or MacOS) and retrieve the actual keyboard layout (qwerty, azerty atc.) ? TIA :)
[flexcoders] AIR chromless maximize() bug ?
Hello coders and happy new year :) I don't know if this is a bug or a feature : If a chromless AIR application is maximized, it's width and height is exactly 8 pixels wider than native OS resolution. For example, my resolution is 1680x1050, and maximized chromless AIR applications is 1688x1058 (I am in Dual View mode, so I can see 8px on the other screen which make me think it is a bug). In the XML descriptor file, I only set: systemChromenone/systemChrome transparenttrue/transparent And my test application source is: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=400 layout=vertical showFlexChrome=false applicationComplete=onApplicationComplete() mx:Style WindowedApplication { padding-bottom:0; padding-top:0; padding-right:0; padding-left:0; } /mx:Style mx:Script ![CDATA[ private function toggleMaximize() : void { if( nativeWindow.displayState == NativeWindowDisplayState.MAXIMIZED ) nativeWindow.restore(); else nativeWindow.maximize(); } private function onApplicationComplete() : void { OSWidth.text = Capabilities.screenResolutionX = + Capabilities.screenResolutionX; OSHeight.text = Capabilities.screenResolutionY = + Capabilities.screenResolutionY; } ]] /mx:Script mx:VBox id=vbox width=100% height=100% backgroundColor=#669966 mx:Button label=toggleMaximize() click=toggleMaximize() / mx:Label text=this.width = { this.width.toString() } / mx:Label text=this.height = { this.height.toString() } / mx:Label id=OSWidth / mx:Label id=OSHeight / mx:Button label=nativeWindow.close() click=nativeWindow.close() / /mx:VBox /mx:WindowedApplication Any explanation is welcome :) Cheers !
[flexcoders] Re: How to use flash component with timeline to skin Flex application ?
Shameless bump :) --- In flexcoders@yahoogroups.com, Adnan Doric [EMAIL PROTECTED] wrote: Hello, I have a flash file containing one class MyFlashClass, a simple MovieClip with a timeline. I use it in my Flex application as standalone component : local:MyFlashClass id=myFlashClass / Now I can control its timeline using : myFlashClass.gotoAndStop( n ); Fine ! The problem is I don't know how to use different flash file containing this same component (with different colors) for each skin of my Flex application. If I compile it into application, or use as RSL, it is always strong linked and no way to change it at runtime when loading a skin. What are the best practices when using flash component with timeline as skinnable component ? Is that even possible ? Any help is appreciated :)
[flexcoders] How to use flash component with timeline to skin Flex application ?
Hello, I have a flash file containing one class MyFlashClass, a simple MovieClip with a timeline. I use it in my Flex application as standalone component : local:MyFlashClass id=myFlashClass / Now I can control its timeline using : myFlashClass.gotoAndStop( n ); Fine ! The problem is I don't know how to use different flash file containing this same component (with different colors) for each skin of my Flex application. If I compile it into application, or use as RSL, it is always strong linked and no way to change it at runtime when loading a skin. What are the best practices when using flash component with timeline as skinnable component ? Is that even possible ? Any help is appreciated :)
[flexcoders] Re: skinClass in external library
It is possible using ANT scripts and library-path to compile your CSS sheet containing skinClass reference. Maciek, dependency can be satisfied with style sheets loaded at runtime. This way you can change skin without recompiling your application. Cheers. --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: Short answer: no. Longer answer: What exactly are you trying to do? You're defining assets in an external swc, configuring your swf to use those assets, but you don't want a dependency on the swc? That doesn't really make any sense: the embedded skin lives in the swc. What do you expect to happen when the swf references assets that are not there? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: albert.imaxel [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] skinClass in external library Date: Wed, 08 Oct 2008 11:24:16 - My scenario: I have a flex builder workspace with the main flex application, and many flex libraries which are linked to the main flex app. One of that libraries contains the assets, styleSheets... it's the theme library. In the stylesheet file of this library, there are some styles defined which use the Embed(skinClass='whatever') directive, this skin classes are in a swc file created with flash. This swc file is added to the build path of the theme library. Some of this styles are used in the main flex app. When I try to compile the whole thing, I got a class for skin 'whatever' not found error from the main app. If I compile the theme library only, i got no errors. The only solution I've found is to add the swc file to the build path of the main app. But, and here is my question: I don't want my main flex app to depend on the swc file. Is there any way I can accomplish that?
[flexcoders] How to make skinnable MovieClip with timeline for Flex ?
Hello flexoders :) I created an MyMC MovieClip with timeline inside an .FLA, and exported it in SWC with class name MyMC. Then I include it in my CSS file : .myMC { skin : ClassReference( MyMC ); } I compile CSS into SFW using ANT and library-path to include the .SWC file. Okay, now I have my flash MovieClip compiled into my runtime CSS file. The problem is I don't now how to use that asset inside my Flex project and be able to access its timeline. I tried many things such as mx:UIComponent styleName=myMC / or flash:UIMovieClip styleName=myMC / without success. I know my skin works because if I put in CSS Button{skin : ClassReference( MyMC );} all buttons are skinned using my custom MovieClip. If I provide the library path to the compiler, I can use my MovieClip like this : local:MyMC / but I need to include it into skin file, because this component need to be different for each skin. Am I doing something wrong here ? Any help is appreciated :)
[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
Okay I found this: http://bugs.adobe.com/jira/browse/SDK-14162 It was deferred to Flash Player bugs (I guess) so I'm pretty sure now it is not Flex issue but FP issue. Anyway I can only wait and see if it is resolved in next FP release :) Thank you all for your input. PS: hitting SWF directly has same behavior on my computer, preloader shows only if there is no # in the URL (firefox 3 fp 9.0.124). --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: When I hit the SWF directly, with or without #, it doesn't stream in (not sure why), the status bar (in IE) shows downloading progress. When it hit the html wrapper with the # I don't see the loading... screen. Makes me think that it isn't streaming the SWF if there's a #. That may be a known issue, not sure. One way you might be able to tell is when the debugger fires up. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adnan Doric Sent: Monday, July 28, 2008 1:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Hello Rick (and Alex) and thank you for your input, I am talking about the preloader not showing when using # in URL, I can't find a single application on the whole Internet where the preloader is showing in that particular case. I am NOT talking about deep linking application at all, because it is not possible considering this bug. Let's just concentrate on Preloader and URLs containing #: Can you see the preloader on this URL (7Mb + # + view source enabled) ? http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html# http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html If anyone here can see the preloader there, then sorry, the problem is probably somewhere on my computer. If no one can see it, the problem is probably in Flex or Flash player right ? I am still looking for some kind of workaround if possible :) for Alex : You can try to load only SWF : http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf# http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf As you can see, there is no wrapper issue, as the SWF alone is not showing the preloader. Thank you again for your help, Adnan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rick Winscot rick.winscot@ wrote: I've used deep linking with a custom pre-loader in many apps without problems. Can you verify your configuration? *. What html template are you using *. What are your compiler options *. Are you using any additional JavaScript goodies like FAB? Rick Winscot From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Adnan Doric Sent: Saturday, July 26, 2008 6:17 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? You are absolutely right, but the preloading part is completely missing :) Well, maybe it is Flash Player bug, I don't know, but it is very annoying for deep linking as you can imagine. I tried to create custom preloader but same thing is happening, there is no progress events. Maybe have some kind of workaround to show the progress ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I saw the initializing progress bar. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Adnan Doric Sent: Friday, July 25, 2008 12:50 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Sorry to bump this, but... am I the only one with this issue ? :) Even the Flex 3 style explorer have same issue : 1. clear the cache 2. load http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl o rer.html http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html You see the preloader 3. clear the cache 4. load (note the # at the end of the URL) http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl o rer.html# http://examples.adobe.com/flex3
[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
I am on FF 3 (FP 9.0.124) found this too : http://bugs.adobe.com/jira/browse/SDK-14162 Deferred to FP bugs I suppose. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Yeah, worthy of a bug. I was using IE, has anyone tried it with FF? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Winscot Sent: Monday, July 28, 2008 3:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Interesting... Just ran this through a whole bunch of angles. Running the example locally works just fine against debug or release builds. Deploy it to a web server on the cloud and it asplodes. Rick Winscot On 7/28/08 11:38 AM, Alex Harui [EMAIL PROTECTED] wrote: When I hit the SWF directly, with or without #, it doesn't stream in (not sure why), the status bar (in IE) shows downloading progress. When it hit the html wrapper with the # I don't see the loading... screen. Makes me think that it isn't streaming the SWF if there's a #. That may be a known issue, not sure. One way you might be able to tell is when the debugger fires up. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] On Behalf Of Adnan Doric Sent: Monday, July 28, 2008 1:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Hello Rick (and Alex) and thank you for your input, I am talking about the preloader not showing when using # in URL, I can't find a single application on the whole Internet where the preloader is showing in that particular case. I am NOT talking about deep linking application at all, because it is not possible considering this bug. Let's just concentrate on Preloader and URLs containing #: Can you see the preloader on this URL (7Mb + # + view source enabled) ? http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html# http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html If anyone here can see the preloader there, then sorry, the problem is probably somewhere on my computer. If no one can see it, the problem is probably in Flex or Flash player right ? I am still looking for some kind of workaround if possible :) for Alex : You can try to load only SWF : http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf# http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf As you can see, there is no wrapper issue, as the SWF alone is not showing the preloader. Thank you again for your help, Adnan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rick Winscot rick.winscot@ wrote: I've used deep linking with a custom pre-loader in many apps without problems. Can you verify your configuration? *. What html template are you using *. What are your compiler options *. Are you using any additional JavaScript goodies like FAB? Rick Winscot From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Adnan Doric Sent: Saturday, July 26, 2008 6:17 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? You are absolutely right, but the preloading part is completely missing :) Well, maybe it is Flash Player bug, I don't know, but it is very annoying for deep linking as you can imagine. I tried to create custom preloader but same thing is happening, there is no progress events. Maybe have some kind of workaround to show the progress ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders
[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
Hello Rick (and Alex) and thank you for your input, I am talking about the preloader not showing when using # in URL, I can't find a single application on the whole Internet where the preloader is showing in that particular case. I am NOT talking about deep linking application at all, because it is not possible considering this bug. Let's just concentrate on Preloader and URLs containing #: Can you see the preloader on this URL (7Mb + # + view source enabled) ? http://astronaute.net/_temp/PreloaderBug/PreloaderBug.html# If anyone here can see the preloader there, then sorry, the problem is probably somewhere on my computer. If no one can see it, the problem is probably in Flex or Flash player right ? I am still looking for some kind of workaround if possible :) for Alex : You can try to load only SWF : http://astronaute.net/_temp/PreloaderBug/PreloaderBug.swf# As you can see, there is no wrapper issue, as the SWF alone is not showing the preloader. Thank you again for your help, Adnan --- In flexcoders@yahoogroups.com, Rick Winscot [EMAIL PROTECTED] wrote: I've used deep linking with a custom pre-loader in many apps without problems. Can you verify your configuration? *. What html template are you using *. What are your compiler options *. Are you using any additional JavaScript goodies like FAB? Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adnan Doric Sent: Saturday, July 26, 2008 6:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? You are absolutely right, but the preloading part is completely missing :) Well, maybe it is Flash Player bug, I don't know, but it is very annoying for deep linking as you can imagine. I tried to create custom preloader but same thing is happening, there is no progress events. Maybe have some kind of workaround to show the progress ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I saw the initializing progress bar. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Adnan Doric Sent: Friday, July 25, 2008 12:50 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Sorry to bump this, but... am I the only one with this issue ? :) Even the Flex 3 style explorer have same issue : 1. clear the cache 2. load http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo rer.html http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html You see the preloader 3. clear the cache 4. load (note the # at the end of the URL) http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo rer.html# http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html There is no preloader... Am I crazy or we have some deep linking incompatibilities ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Adnan Doric astronaute@ wrote: Hello, I don't know if this was already discussed so sorry in advance. After few days of hard debugging, I sadly noted that Flex 3 preloader is completely broken while using # in the URL. It doesn't show at all. Does anyone have any workarounds as preloading 2Mb without preloader is actually real pain ? Thank you.
[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
You are absolutely right, but the preloading part is completely missing :) Well, maybe it is Flash Player bug, I don't know, but it is very annoying for deep linking as you can imagine. I tried to create custom preloader but same thing is happening, there is no progress events. Maybe have some kind of workaround to show the progress ? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I saw the initializing progress bar. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adnan Doric Sent: Friday, July 25, 2008 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Sorry to bump this, but... am I the only one with this issue ? :) Even the Flex 3 style explorer have same issue : 1. clear the cache 2. load http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo rer.html http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html You see the preloader 3. clear the cache 4. load (note the # at the end of the URL) http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo rer.html# http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html There is no preloader... Am I crazy or we have some deep linking incompatibilities ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Adnan Doric astronaute@ wrote: Hello, I don't know if this was already discussed so sorry in advance. After few days of hard debugging, I sadly noted that Flex 3 preloader is completely broken while using # in the URL. It doesn't show at all. Does anyone have any workarounds as preloading 2Mb without preloader is actually real pain ? Thank you.
[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
Sorry to bump this, but... am I the only one with this issue ? :) Even the Flex 3 style explorer have same issue : 1. clear the cache 2. load http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html You see the preloader 3. clear the cache 4. load (note the # at the end of the URL) http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html# There is no preloader... Am I crazy or we have some deep linking incompatibilities ? --- In flexcoders@yahoogroups.com, Adnan Doric [EMAIL PROTECTED] wrote: Hello, I don't know if this was already discussed so sorry in advance. After few days of hard debugging, I sadly noted that Flex 3 preloader is completely broken while using # in the URL. It doesn't show at all. Does anyone have any workarounds as preloading 2Mb without preloader is actually real pain ? Thank you.
[flexcoders] Flex 3 Preloader broken when using deep linking ?
Hello, I don't know if this was already discussed so sorry in advance. After few days of hard debugging, I sadly noted that Flex 3 preloader is completely broken while using # in the URL. It doesn't show at all. Does anyone have any workarounds as preloading 2Mb without preloader is actually real pain ? Thank you.
[flexcoders] Re: How to Reset ProgressBar?
progressBar.setProgress( 0, 100 ); --- In flexcoders@yahoogroups.com, gabsaga [EMAIL PROTECTED] wrote: I have an application that when you click on a button, it loads an image in a panel. There is a progress bar that shows progress on the image being loaded. The progress bar works fine when I load the first image but when I load subsequent images, it still shows the last status of the first progress bar. Is there a way to reset a progress bar so that it starts from 0 each time a new image is loaded? Thanks. Gabsaga -- View this message in context: http://www.nabble.com/How-to-Reset-ProgressBar--tp18634463p18634463.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] How to prevent selecting List item while clicking button in itemrenderer ?
Hello, I have a List and an itemRenderer with a button in it. Actually, each time I click the button, the item is selected in the list and the change event is triggered (normal). I would like to be able to click that button inside itemRenderer without selecting that item in the list. Basically, when clicking on the button, I just want to remove that item from the list, without changing the currently selected item in the list. Can anyone help me with this ?
[flexcoders] How to filter IHierarchicalCollectionView ?
Hello all, I have a simple hierarchical provider, parents and children have the field name. When I filter on name the parent node get filtered if it doesn't match the search pattern even if its children match the pattern. That is obviously not wanted effect :) How to filter IHierarchicalCollectionView in order to display parent branches with children matching the pattern, and filter out parent branches without children matching the pattern ? Is that difficult to do ? any help would be appreciated :) Cheers, Adnan
[flexcoders] AdvancedDataGrid group filtering openNode
Hello guys, I'm trying to filter my ADG without success : I created a GroupingCollection from a flat ArrayCollection. ADG's dataProvider is GroupingCollection. First issue : refresh if I filter the underlaying ArrayCollection, the related groupingCollection doesn't refresh automatically (bug? feature?) Actually I menaged to force gc.refresh() with some event( it is impossible to listen on CollectionEventKind.REFRESH because of infinite loop ac.refresh = gc.refresh ) Second issue (more important) : openNodes Ok now that my gc is refreshed, the Tree in the ADG collapses itself (ok let say that is normal), and I need it to expand all nodes that were opened before. I tried to do something like this : var openNodes : Object = IHierarchicalCollectionView( myADG.dataProvider ).openNodes; gc.refresh(); myADG.dataProvider.openNodes = openNodes; and it doesn't works. next I tried this : var openNodes : Object = IHierarchicalCollectionView( myADG.dataProvider ).openNodes; for each( var node : Object in openNodes ) { IHierarchicalCollectionView( myADG.dataProvider.openNode( node ) } guess what, doesn't work :) I'm calling myADG.invalidateList() each time too. I don't know what to do to achieve this simple task, I'm a bit disappointed because I expected lot more from the brand new AdvancedDataGrid and this basic functionality actually seems too hard to implement. I still hope I'm wrong and someone can show me the correct solution :) Thank you all, Adnan
[flexcoders] FDS Logging on Ubuntu 7.10
Hello, I have a small webapp that I tested on windows and it work nice (based on Flex Test Drive). Now I want to move that webapp in my virtual machine running Ubuntu 7.10, tomcat 5.5 (same as windows) but I can't get it to work : http://localhost:8180/myApp/messagebroker/amf returns 404 http://localhost:8180/myApp alone displays Flex welcome screen. So I know there must be some problem when FDS is starting, but in logs /var/lib/tomcat55/logs I have only : catalina.(timestamp).log localhost.(timestamp).log admin.(timestamp).log manager.(timestamp).log host_manager.(timestamp).log and there are no errors at all, everything seems to be started correctly. On Ubuntu I can't find stdout.(timestamp).log and stderr.(timestamp).log where Flex is normally outputting initialization errors. On windows I can see those files and Flex logs prefixed with [Flex] example : [Flex] RTMP-Server failed to start up: java.net.BindException: Address already in use: bind Can someone please help me configure Tomcat so it can generate stdout.(timestamp).log and stderr.(timestamp).log Thank you in advance, Adnan
[flexcoders] FDS Logging on Ubuntu 7.10
Hello, I have a small webapp that I tested on windows and it work nice (based on Flex Test Drive). Now I want to move that webapp in my virtual machine running Ubuntu 7.10, tomcat 5.5 (same as windows) but I can't get it to work : http://localhost:8180/myApp/messagebroker/amf returns 404 http://localhost:8180/myApp alone displays Flex welcome screen. So I know there must be some problem when FDS is starting, but in logs /var/lib/tomcat55/logs I have only : catalina.(timestamp).log localhost.(timestamp).log admin.(timestamp).log manager.(timestamp).log host_manager.(timestamp).log and there are no errors at all, everything seems to be started correctly. On Ubuntu I can't find stdout.(timestamp).log and stderr.(timestamp).log where Flex is normally outputting initialization errors. On windows I can see those files and Flex logs prefixed with [Flex] example : [Flex] RTMP-Server failed to start up: java.net.BindException: Address already in use: bind Can someone please help me configure Tomcat so it can generate stdout.(timestamp).log and stderr.(timestamp).log Thank you in advance, Adnan
Re: [flexcoders] TextInput for percentage
Hello, I would go for : Flexlib: PromptingTextInput.prompt = % + PromptingTextInput.restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.
[flexcoders] Re: accessing nested objects... what am I missing?!?!
It is better to dispatch events from your nested component and handle them in your parent component. --- In flexcoders@yahoogroups.com, ryanharlin [EMAIL PROTECTED] wrote: Thanks for the help. Your solution worked in practice but I do still get an error prior to compiling. If I ignore the error and compile, though, it works. But similarly, I want to be able to call functions that are in these different mxml files. So if I have an mxml file called navigation.mxml embedded in the master app file called master.mxml, how can I call master.mxml functions from navigation.mxml? Back from the flash days, I thought this would work: root.myFunction(); but it doesn't. I'm sure this problem is related to my earlier post, that's why I have it in the same thread. thanks, ryan --- In flexcoders@yahoogroups.com, ryanharlin ryanharlin@ wrote: I have a simple enough question, I think. But I've been struggling with it for two days. I have an mxml application which has a viewstack in it. The children in the viewstack are fr: tags for other mxml files It looks like this: mx:ViewStack id=mainScreens fr:interfacePanel id=interfacePanel / fr:otherPanel id=otherPanel / /mx:ViewStack In the mxml file called interfacePanel I have another viewstack with interface screens on them. How can I select different children of that viewstack from the main mxml app. I would think I'd do something like this: mx:button click=mainScreens.interfacePanel.secondViewstack.selectedChild = Page2; / But that doesn't work. Does anyone know the method of addressing object across multiple nested mxml files? Thanks! Hopefully someone can show me what I'm missing.
[flexcoders] FP9.0.60.235 can't catch onPlayStatus ?
Hello, It seems that Flash player 9,0,60,235 can't catch NetStram onPlayStatus Event (dispatched when streaming is finished), at least on my computer. I tried with a debugger, it doesn't stop at the breakpoint inside that function at all. It is triggered with 9,0,47,0 on IE, and Firefox. Can someone confirm that and tell me where can I submit à bug. Thank you in advance
[flexcoders] FP9.0.60.235 can't catch onPlayStatus ?
Hello, It seems that Flash player 9,0,60,235 can't catch NetStram onPlayStatus Event (dispatched when streaming is finished), at least on my computer. I tried with a debugger, it doesn't stop at the breakpoint inside that function at all. It is triggered with 9,0,47,0 on IE, and Firefox. Can someone confirm that and tell me where can I submit à bug. Thank you in advance
Re: [flexcoders] RegExp multiple backreferences?
I think you should use g (global) flag in your regexp. Adnan joshuajnoble wrote: Can any RegEx genius :) tell me whether ActionScript 3 properly supports multiple backreferences? The code I'm trying to use is this: private var headerBackreference:RegExp = /H([123]).*?\/H\1/; private function init():void { var s:String = BODYH2Valid Chocolate/H2 H2Valid Vanilla/H2 H2Invalid HTML/H3/BODY; var a:Array = headerBackreference.exec(s) as Array; if(a != null) { for(var i:int = 0; ia.length; i++) { trace(a[i]); } } a = s.match(headerBackreference); if(a != null) { for(var i:int = 0; ia.length; i++) { trace(a[i]); } } } I'm just trying to determine whether in fact this should return both the chocolate and the vanilla, or whether the behavior I see, returning just chocolate, is accurate. Thanks, Josh
Re: [flexcoders] How to force swf reload?
You can create a random number and load the swf like this : my.swf?random=microseconds But it will be reloaded each time, it is usefull only for small files. Adnan v.cekvenich wrote: What (java)script do people us to deploy swf files? We are using adobes .js script, but this does not reload the new swf files when we release a new version. So our users see the old swf version of our app. At the moment the only thing we tested that works is to rename the swf file each time. What do other do as a good practice? Some ant script + some javascript that loads? tia, .V
Re: [flexcoders] RegExp multiple backreferences?
I think you should use g (global) flag in your regexp. Adnan joshuajnoble wrote: Can any RegEx genius :) tell me whether ActionScript 3 properly supports multiple backreferences? The code I'm trying to use is this: private var headerBackreference:RegExp = /H([123]).*?\/H\1/; private function init():void { var s:String = BODYH2Valid Chocolate/H2 H2Valid Vanilla/H2 H2Invalid HTML/H3/BODY; var a:Array = headerBackreference.exec(s) as Array; if(a != null) { for(var i:int = 0; ia.length; i++) { trace(a[i]); } } a = s.match(headerBackreference); if(a != null) { for(var i:int = 0; ia.length; i++) { trace(a[i]); } } } I'm just trying to determine whether in fact this should return both the chocolate and the vanilla, or whether the behavior I see, returning just chocolate, is accurate. Thanks, Josh
Re: [flexcoders] Extending RichTextEditor
Well at least Adobe provide something :) They can't make very complex RTE because it is too complicated and people usually want customized components to suit their needs. Feel free to extend it or make your own from scratch and don't forget to share it :) Adnan Giles Roadnight wrote: Hi All I know that Rich Text editor has bene brought up a load of times but there still doesn't seem to be any decent solution. I want a basic HTML editor that will allow me to style and lay out fairly simple text as content for webpages. I want to be able to add images, re-size them and to be able to add heading tags. I think I can fake the heading tags by extending the Existing Rich Text editor and simply appling a large font and a font weight of bold to text in the internal html text. the get htmlText would re-convert this to a h1 tag. For the images I would ideally like to be able to select an image in teh text field then edit the alt, width, height ect. To do this I need to be able to get at the images within the field. Does anyone know how I can do this? I've looked at the children of the textArea and so on but no sign of any images. It seems ridiculous that Adobe provide such a poor implentation of this very useful tool. It's also odd that no one has provided a good alternative yet. Thanks Giles.
Re: [flexcoders] How to access the List from it's ItemRenderer
icepaco33 wrote: Greetings, I am trying to have access to the List which renderers the item from an item renderer. What I want basically is to be able to determine if an item is 'selected' from an item renderer. So I have overriden the set data prop in order to do this: override public function set data(value:Object):void { super.data = value; //Here I'd like to access the list to do : if (list.isItemSelected(value) ) currentState = Selected; else currentState = ; } thanx ! Hello, Try ListBase(owner).isItemSelected(data) Cheers, Adnan
Re: [flexcoders] AMFPHP 1.9 security problem
danielvlopes wrote: Hello, i'm using amfphp 1.9 beta2 to make comunication between php and flex, but i had some question about security when use amfphp... If someone discover the name of my methods in my classes inside services amfphp folder and point your flex app to my gateway using absolut path the invader can use my methods. Exist some way to use password to use gateway or don't accept absolute paths or better way to fix this problem??? Thanks. Hello, You can use MD5 or SHA1 from corelib for example to generate a unique key to be recognized on PHP side. You should use PHP sessions too so you can store session id in database and pass session id to flex using flashvars (just an example). cheers, Adnan
[flexcoders] [ AIR ] Create files on local system possible ?
Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan
Re: [flexcoders] [ AIR ] Create files on local system possible ?
Thank you I solved the problem by using file.url (file:///...). I think there was an issue using nativepath I can't remember the right syntax I used (tried so many things), but reading from same path was possible. Adnan Mike Chambers wrote: Can you post your code? Mike Chambers Sent by GoodLink (www.good.com) -Original Message- From: Adnan Doric [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 03:59 AM Pacific Standard Time To: flexcoders@yahoogroups.com Subject: [flexcoders] [ AIR ] Create files on local system possible ? Hello, I can read and write existing files on local system, but if I try to save (create) to a file that does non exist, I get the following error : Error #3003: File or directory does not exist. How to create a file on local system if it does not exists please ? Thank you in advance, Adnan
[flexcoders] Scrollbar on the left side of TextArea
Hello, Is that possible in Flex ? If yes can someone please provide an exemple, I can't find that property on TextArea so I will try to extend something :) Thank you ! Adnan
[flexcoders] Flex Compiler Shell with Ant Possible ??
Hello, I would like to try the fcsh in my eclipse 3.2 Flex 2.0.1, but can't figure how to do it or if it is even possible. http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell I already use Flex Ant Task with mxmlc compiler, so I would like to switch to fcsh :) http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks Thank you in advance for your help. Adnan
[flexcoders] TileList Binding Issue
Hello all, I have a TileList binded to an ArrayCollection. If I add more items to the ArrayCollection the TileList updates, but if I try to change an already existing item in the ArrayCollection, the TileList doesn't change. I tried with List component and I don't have this problem, the view is correctly updated. Is there something I'm doing wrong or not doing :) ? Thank you for your response.
Re: [flexcoders] TileList Binding Issue
I tried this with no success, my TileList items are still not updated. Maybe something is broken in TileList binding. Thank you :) Jon Bradley wrote: Something like the following process: myCollection.enableAutoUpdate(); myCollection.itemUpdated(someItem, someProperty,someOldValue,someNewValue); myCollection.disableAutoUpdate(); myColleciton.refresh(); // just to be sure I have it working fine with the itemUpdated and refresh. I usually don't bother with the auto update stuff - but it might be needed for your scenario. From what I understand, refresh() should always cause a data binding event for the TileList to update it's data. good luck, jon On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote: Hello all, I have a TileList binded to an ArrayCollection. If I add more items to the ArrayCollection the TileList updates, but if I try to change an already existing item in the ArrayCollection, the TileList doesn't change. I tried with List component and I don't have this problem, the view is correctly updated. Is there something I'm doing wrong or not doing :) ? Thank you for your response