[flexcoders] PopupButton in item renderer of List : detect button mousedown / mouseup but not arrow btn for drag & drop
Hi all, So I have a PopUpButton in an itemRenderer (Box) of a List. I want that when user do a mouseDown on the main button of the popUpButton (not the button with the arrow that display a menu) be able to handle a drag'n'drop for the list. I cannot find a way to detect if the user have done a mouseDown on the main part of the pop up button or on the arrow part... Any idea? Thanks Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] Keep an object in flash player memory despit swf unloading?
That's also the problem... I didn't manage the code of the container application... :P Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Thu, Oct 29, 2009 at 2:45 PM, Battershall, Jeff < jeff.battersh...@dowjones.com> wrote: > > > If that’s the case, you wouldn’t be storing the information in the swf > but in the containing application. The information can then be passed as > flashVars to your swf when it is loaded. > > > > HTH, > > > > Jeff > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Flap Flap > *Sent:* Thursday, October 29, 2009 7:06 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Keep an object in flash player memory despit > swf unloading? > > > > > > Hi, > > The case is very special: > > We have a swf file that runs into a specific software. > This software load and unload the swf file when its required and we need to > persists some information during the software session (meaning while the > software is open and runs) but we cannot store those information on disk > because of security rules... > > > Benoît Milgram / Flapflap > http://www.kilooctet.net > > I'm also a music mashup / bootlegs producer : > http://www.djgaston.net > > On Wed, Oct 28, 2009 at 5:56 PM, Battershall, Jeff < > jeff.battersh...@dowjones.com> wrote: > > > > What problem are you trying to solve? In order to save state you’re going > to need some kind of persistent scope. If Shared Object can’t be used, > something else needs to be a repository for your state information. > > > > Jeff > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Flap Flap > *Sent:* Wednesday, October 28, 2009 12:21 PM > *To:* FlexCoders > *Subject:* [flexcoders] Keep an object in flash player memory despit swf > unloading? > > > > > > Hi all, > > Is there a way to keep an actionscript object in Flash Player memory even > when the swf that set up this object is unloaded. > And no, SharedObject is not an option :) > > I know is nearly impossible but I also know that I don't know everything :D > > Benoît Milgram / Flapflap > http://www.kilooctet.net > > I'm also a music mashup / bootlegs producer : > http://www.djgaston.net > > > > >
Re: [flexcoders] Keep an object in flash player memory despit swf unloading?
Hi, The case is very special: We have a swf file that runs into a specific software. This software load and unload the swf file when its required and we need to persists some information during the software session (meaning while the software is open and runs) but we cannot store those information on disk because of security rules... Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Wed, Oct 28, 2009 at 5:56 PM, Battershall, Jeff < jeff.battersh...@dowjones.com> wrote: > > > What problem are you trying to solve? In order to save state you’re > going to need some kind of persistent scope. If Shared Object can’t be > used, something else needs to be a repository for your state information. > > > > Jeff > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Flap Flap > *Sent:* Wednesday, October 28, 2009 12:21 PM > *To:* FlexCoders > *Subject:* [flexcoders] Keep an object in flash player memory despit swf > unloading? > > > > > > Hi all, > > Is there a way to keep an actionscript object in Flash Player memory even > when the swf that set up this object is unloaded. > And no, SharedObject is not an option :) > > I know is nearly impossible but I also know that I don't know everything :D > > Benoît Milgram / Flapflap > http://www.kilooctet.net > > I'm also a music mashup / bootlegs producer : > http://www.djgaston.net > > >
[flexcoders] Keep an object in flash player memory despit swf unloading?
Hi all, Is there a way to keep an actionscript object in Flash Player memory even when the swf that set up this object is unloaded. And no, SharedObject is not an option :) I know is nearly impossible but I also know that I don't know everything :D Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] Re: crossdomain.xml trhough https (IIS)
Ok, so I narrow down the scope : In fact I have three crossdomain.xml file one is the root : and two others in 2 different virtual directory for the webservices with that : What seems to happening is that in HTTPS, the crossdomain policy of the virtual directory are not loaded. So I'm not sure if its an IIS rediredtion problem or a crossdomain issue. Addind this tags : to the root crossdomain file make all works fine but it's not a good solution. Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Thu, Aug 13, 2009 at 5:36 PM, Flap Flap wrote: > Hi all, > > I have an IIS server that can serve both http and https webservice. > I must access webservice from local swf file to both protocol. > So I have my crossdomain.xml like that : > > - <#123146758b920521_> > > > > > Which works fine in HTTP (despite it's says that it will ignore the secure > false) but doesn't in HTTPS. > If I use IE to watch the files I get both of them (in HTTP / HTTPS) > > Any clue ? > > Thanks > > Benoît Milgram / Flapflap > http://www.kilooctet.net > > I'm also a music mashup / bootlegs producer : > http://www.djgaston.net >
[flexcoders] crossdomain.xml trhough https (IIS)
Hi all, I have an IIS server that can serve both http and https webservice. I must access webservice from local swf file to both protocol. So I have my crossdomain.xml like that : - <#> Which works fine in HTTP (despite it's says that it will ignore the secure false) but doesn't in HTTPS. If I use IE to watch the files I get both of them (in HTTP / HTTPS) Any clue ? Thanks Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] Embed XML file cause a "must inherit from Sprite to link to the root."
Hi all, So I have a Flex project with a file that have an XML embed using embed metadata. [Embed(source="/locale/XCConnectorStrings_dev.xliff", mimeType="application/octet-stream")] protected var devXML:Class; When lauching the swf file I get this Error : "myclass_devXML must inherit from Sprite to link to the root." The tricky part is that the SWF file is generated by a dashboard tool called Xcelsius so I don't have much control on the compilation of the real swf. I just compile a swf file that will be embed (how. ?.. no clue) into the resulted swf. I know this give a big unknown to my problem so if you see alternative solution to embed xml file into a class or project I will definitively appreciated ! Thanks Benoît Milgram / Flapflap http://www.kilooctet.net
[flexcoders] Using Sharde Object to communicate with a local SWF file from a desktop application
Hi all, I'm looking for info on how to use a shared object to do a communication between an C++ application that's run on the desktop and a swf file that's run locally on the desktop. I think it's quit easy for a C++ applciation to read and write SOL but I'm just thinking of read / write and lock issue... Have you any feedback on this or link to provide to me ? Thanks Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] Using windows authentication in LocalTrusted sandbox
Hi all, Here is my problem: I've a SWF file embeded in an application that will run it in the local trusted sandbox. I've a .NET webservice that run into IIS and use Windows Authentication as security model. His there any way that my SWF file can reach my webservice using the setCredentials method for example ? I'm sur you have face some similar issues... Thanks Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)
Thanks guys for all that clues. I will give a try and send feedback. For info, I've just used TextArra for a multiline text item, I don't need any editable behavior on it. Thx Benoit aka Flapflap
Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)
thanks I'll give a try to handle height in dataChange. variableRowHeight is already set to true, it's mandatory has my item will be different... Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net On Wed, Feb 4, 2009 at 10:41 PM, Jeffry Houser wrote: > > > Have you written any code in your itemRenderer to change the height > (this.height) to match the TextArea height? In an itemRenderer, I would > expect this code to exist in some dataChange event handler. > > Also, what happens if you set variableRowHeight to true? I'm unclear if > that would have an affect on your problem, though. > > > Flap Flap wrote: > > Hi there, > > Second night that I'm pulling my hairs on this stuff, I'm sure you will > give me some good hints. > > So, I have a custom list item render. > It's a VBOx with a GradientCanvas (width 100%, no height) child that have a > TextArea for child (width 100%, no height). > The GradientCanvas he's a custom component to have a advanced gradient > background. > The problem is one the TextArea. > > Here is the behavior that I'd like to have: > > When text is on several lines, the item renderer should update his height > to match the TextArea height. > At this moment, the TextArea display scrollbars. > > I've try with Label (but no multiline). > With UITextField, but not a mx component... > With Text component but the list act weird with this one... > > Can you point me to some clues ? > > thx > > Benoît Milgram / Flapflap > http://www.kilooctet.net > > I'm also a music mashup / bootlegs producer : > http://www.djgaston.net > > > -- > Jeffry Houser, Technical Entrepreneur > Adobe Community Expert: > http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711 | Phone: > 203-379-0773 > -- > Easy to use Interface Components for Flex > Developershttp://www.flextras.com.com?c=104 > --http://www.theflexshow.comhttp://www.jeffryhouser.com > -- > Part of the DotComIt Brain Trust > > >
[flexcoders] Custom List Item Render to have multiline (so variable Height)
Hi there, Second night that I'm pulling my hairs on this stuff, I'm sure you will give me some good hints. So, I have a custom list item render. It's a VBOx with a GradientCanvas (width 100%, no height) child that have a TextArea for child (width 100%, no height). The GradientCanvas he's a custom component to have a advanced gradient background. The problem is one the TextArea. Here is the behavior that I'd like to have: When text is on several lines, the item renderer should update his height to match the TextArea height. At this moment, the TextArea display scrollbars. I've try with Label (but no multiline). With UITextField, but not a mx component... With Text component but the list act weird with this one... Can you point me to some clues ? thx Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] my boss wants the impossible.. or is it?
Flex Preloader is a Class and you can have your own. But, you have to be aware that you don't have access to the flex framework only the base class of flash (which is substantial)... What do you want to change at every launch ? -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)
Yeah thanks ;) Ok so I made the test and result are the same. I think I will keep all the interval to produce an average... Thanks
Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)
Thanks Hodward, You think that KeyEvent can be more accurate than click ? I will give a try. Thanks Benoit
[flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)
Hi there, I'm actually taking some personnal time to work on a little project that unit two of my main occupations : Flex developpement and Mashup producing. In this AIR application I'll need a TAP Button. A TAP Button is a button that is clicking on rhytm to help find the BPM (Beats Per Minutes) of a song. The function seems simple : private function setTappedBPM( e : MouseEvent ) : void { var timer : Number = getTimer(); if( _nLastTimerForTappedBtn == 0 ) { _nLastTimerForTappedBtn = timer; } else { var ms : uint = timer - _nLastTimerForTappedBtn; var tappedBPM : uint = 600 / ms; _nTappedBPM = tappedBPM / 100; _nLastTimerForTappedBtn = timer; mainUI.bpmChoose.btnTap.label = "Tap (" + _nTappedBPM + ")"; } } Hi just keep the timer (from getTime) of the last click and then calculate the gap between the new and the old, it give me the number of ms between two click. I just have to make some basic math to have the BPM. But, by testing I see that the precision is very bad. I try to test it one very regular song and by clicking as regular as I can but the tempo calculated is very floating (about 10 BPM of gap)... I have make a mistake or it is just a flash player limitation ? -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] How to setup a Flex and AIR project that shares code?
Hi Rick, We are actually in the same problem. The way we choose to do this is to have a common library project for common code and two specific project with specific web / AIR code -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] AutoCompletion for custon event like with normal event
Hi there, Does anybody knows if there is a way to have custom Event autocomplete in the addEventListener method like native Events ? Example : A custom class named "Dispatcher" with a metadata tag [Event(name="test", type="test.MyEvent")] and a custom event class : package test { import flash.events.Event; public class MyEvent extends Event { public static const TEST_EVENT : String = "test"; public function MyEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } Si when I make a addEventListener on an instance of my Dispatcher I would like to have the test Event showed or better the public constant MyEvent.TEST_EVENT (like standard events) Thanks for any help -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] GIF image doesn't blinking in Flex App
Arf allready sent sorry... 2008/4/28 Flap Flap <[EMAIL PROTECTED]>: > Flash Player doesn't support animated GIF natively but Thibault Imbert has > developp a library for that : > http://www.bytearray.org/?p=95 > > ;) > -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] GIF image doesn't blinking in Flex App
Flash Player doesn't support animated GIF natively but Thibault Imbert has developp a library for that : http://www.bytearray.org/?p=95 ;)
[flexcoders] Define format for new text in a TextArea
Hi there, I need to have a behaviour where I can change the format (bold, italic, underline) of the "futur" text in a TextArea withour modifiying the existing one. I try to pass by getting the IUITextField of the TextArea and changing the defaultTextFormat but it dont seems to have any effect. Any clue on this ? Thanks -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] Help in bytes reading with AS3
Hi there, I'm starting a new personnal project and I need to be able to read bytes from a file to extract infos. Beacause I'm not familiar with this type of manipulation. So any of you know some good helper classes and / or tuts it will be good :) Thanks to all -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] [MVC+C] Who is in charge of changiong the views to reflect model(s) upates (Yep, another who do what on MVC+C thread...)
Hi there, I'm working right now on the basement of the new version of the main flash app of my company. This is quiet evolve chat that we plan to deploy with Flex for next version. So i'm deep in MVC+C questionning. I have deeply look at Cairngorm and PureMVC finding both interessting with qualities and defaults. Anyway, I don't think this a framework question but a code design question. My question is on where are the responsabilities when views needs to be updated because of model changes. I start with a little example : My model handle a list of conversations. Conversations are list of messages and one user. This user can be a contact or not. Conversation can be active or not (while you have not respond to a message of an user the conversation is not active) Some views need to know only the user with active conversations, other only user with non active conversations and other one only contact user. My concern is who needs to give the sorted by status list ? First I was thinking in was the model who just need a list for each case that be upate every time the main model list is updated. Counter argue is that in this case we implement view logic in model (the need to have specific information on the main list is specific to views). With this first possibility I can use data binding from model to view. (Cairngorm's spirit) Or have a command that push the data updated in the view. But in this case, I think that the Command is too much tied to the View. Other possibility is that the Command sort the main data of the model to create the needed sorted list and push it to the view. Logic is in the command and model stay simple. But once more, Command is tied to the View. To end, the moslyt use technique is that Command only update Model and Model notify view of a change. Model can notify view with a simple onChange (or whatever) event, but the view have to get is only needed info from the model directly and maybe the updated data is not the one's handle by this view. So maybe the model could dispatch one event fo each property and the view only listen to needed upaded property (PureMVC's spirit for what I know). So i'm not sur of wich way is the better. I'm sure there are great experience to share here and discuss about. For me the Model > View communication is the hardest part to well design. Hope I can have some great advices here and also please don't come to a Cairngorm vs PureMVC battle :) -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] [FB 3 b3] Module created from class not created where I want
Hi there, I've created a Flex Project to test the Modules. So I have 2 Modules that I load dynamicly. This Module are ceated from classes that are in package folder com.mysociety.labs.test.moduletest Trouble is that swf for modules are created in the same folders on the bin repositeroy. I would like to change this, but editing Output SWF property don't seems to have any effect... Bug or Not ? -- Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
[flexcoders] Google Calendar of Flash Community Events
Hi there, I started a month ago to set up a Google Calendar to reflect International Events of the Flash Commmunity. XML, iCal and HTML link can be found on OSFlash page : http://osflash.org/events Be sure to send me your info and to add it to your calendar Thanks -- Flapflap http://www.kilooctet.net (Dev Blog Flash Fr)
[flexcoders] DataGrid column order
Hi there,I put a simple xml as a Dataprovider via HTTPService.All works fine except this :Here is my xml example : Toto0 233 Titi 0 2 3 3 But in my DG the column are showned in this order : name,s01,s02,s51,s52Hi try to put dynamicly the column order by create a DataGridColumn in the right order it change nothing... Any clue ?Thanks-- Flapflap http://www.kilooctet.net (Dev Flash Blog Fr) __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___