RE: [Flashcoders] XML diff
> I will check it out - I had thought that was for regular > expression support? Do you have an example of how that would > diff two xml files? Here is an outstanding tutorial on regular expressions, how and why they're used. http://www.regular-expressions.info/tutorialcnt.html Good luck! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] XML diff
Doesn't the browser cache images? I've never had a problem with performance reloading anything. Have you tried just letting it all reload? Another thing you could do is just check to see if the path is the same as the previous, if it is then skip loading a new image.. - Original Message - From: "Howard Nager" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Saturday, June 10, 2006 4:30 PM Subject: [Flashcoders] XML diff I have an upcoming project and am trying to figure out how to do what would best be described as a diff on a xml file. For example, here would be the initital xml: ... The way the system works is that all of the logic is handled server side. So when the user selects an option it hits the server and gets back another xml file with an updated price and more or less options depending on whatever rules came in to play. The front end was originally an html page which would redraw itself with every interaction. If I were to just emulate that model I would grab the new xml and redraw the menu within my flash movie with every selection. The issue with that is that each option has an associated thumbnail image loaded externally and redrawing hte menu would mean reloading all of those. I would rather look at the new and old xml files side by side and see what changed so that I could leave anything that didnt change alone. Any ideas on this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Debugging Tool
Yeah that's cool Aaron, I dig the concept. So basically, its a logger with filters that's really lightweight and is just listening for any swf sending it log data, is that about right? I like the multiple channel idea, that's something that's been on the "to be looked at" list. You know, with more items like this, xray and FlashInspector, it'd be nice to have some cross support for eachother. I know I had talked about doing this along time ago, but having some reserved localConnection names and possibly some API's published so that the tools could be customized/integrated where you want them. LIke I know that people might like Xray for certain features, but they dig FlashInspector's logging over xray's. It'd be nice to have them in the same container if I wanted to make that available for people. Know what I mean? I don't know, Just a tought. PS> again, I dig how lightweight this seems - a simplified UI can never be under estimated in it's affect on how the user feels about using it. I could easily see people opting for something like this, where as Xray seems a bit overwhelming, know what I mean? JG On 6/10/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote: I imagine the console is fairly boring without someone to talk to it ;] Sorry bout that, here is the link to the broadcaster: http://lab-media.com/opensource/flashconsole/samplebroadcaster.html A On 6/10/06 1:58 PM, "John Grden" <[EMAIL PROTECTED]> wrote: > Hey Aaron, I think the second link is either broken or misspelled in the > email: > > http://lab-media.com/opensource/fla...roadcaster.html comes up 404 > > Look forward to seeing what you've got goin! Let us know what the URL is, > > JG > > On 6/10/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote: >> >> Hey guys, >> >> I made this little tool about 3-4 months ago to let debug live rich ads >> with >> synced animations. The tool itself is simple and lightweight, but has >> managed to be an important part of my work. A few people have referred me >> to >> john's tool, & I will definitely play with it when I get a chance, but I >> wanted to offer this up too. >> >> Basically the idea underlying the tool is that you are able to set up >> broadcasters in your code with channel names. Then anytime your >> broadcaster >> sends a message to the console, you can filter them by their channel name. >> It has some issues, including performance hits if you use rapid iterative >> functions, or if you set up more buttons than there is room to tile the >> buttons for the channel names. >> >> I may end up building more functionality into this tool at some point. But >> it has fit my needs quite well and figured if anyone cant use john's tool, >> of if it doesn't quite do the same thing, then I offer this one for >> perusing. >> >> There is some docs in the code, but nothing formal yet. If you have any >> questions, feel free to hit me up offlist if you like on aim (tribalab) or >> email [EMAIL PROTECTED] >> >> Thx & enjoy :) >> >> -- >> >> Example Console (open before broadcaster): >> http://lab-media.com/opensource/flashconsole/index.html >> >> Example broadcaster: >> http://lab-media.com/opensource/fla...roadcaster.html >> >> Download Source: >> http://lab-media.com/opensource/flashconsole/source.zip >> >> -- >> Aaron >> >> >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- John Grden - Blitz ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] XML diff
I will check it out - I had thought that was for regular expression support? Do you have an example of how that would diff two xml files? -Original Message- From: [EMAIL PROTECTED] on behalf of Steven Sacks Sent: Sat 6/10/2006 7:37 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] XML diff Try RegEx. Flash 8: http://blog.deconcept.com/2005/08/29/regexp-flash-8-using-externalinterface/ Flash 5,6,7: http://www.jurjans.lv/flash/RegExp.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] XML diff
Try RegEx. Flash 8: http://blog.deconcept.com/2005/08/29/regexp-flash-8-using-externalinterface/ Flash 5,6,7: http://www.jurjans.lv/flash/RegExp.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] wanted: social network mapper
hi - I'm looking for someone to help code up a map of a social network (friends of friends etc) in flash. also some features like simple rankings: who has most friends, most pageviews, most endorsements... This is an example, perhaps there are others? http://www.marumushi.com/apps/flickrgraph/ I heard facebook had some graphs for a while, but dropped them. If people are interested please drop me a line. tx, /dc ___ David "DC" Collier [EMAIL PROTECTED] skype: callto://d3ntaku http://www.pikkle.com +81 (0)80 6521 9559 http://charajam.com 【★キャラ♪ジャム★】 人気キャラとJ-POP最新ヒット曲を自分で組み合わせて 待受Flashや着Flashを作っちゃおう! ___ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] wanted: social network mapper
hi - I'm looking for someone to help code up a map of a social network (friends of friends etc) in flash. also some features like simple rankings: who has most friends, most pageviews, most endorsements... This is an example, perhaps there are others? http://www.marumushi.com/apps/flickrgraph/ I heard facebook had some graphs for a while, but dropped them. If people are interested please drop me a line. tx, /dc ___ David "DC" Collier [EMAIL PROTECTED] skype: callto://d3ntaku http://www.pikkle.com +81 (0)80 6521 9559 http://charajam.com 【★キャラ♪ジャム★】 人気キャラとJ-POP最新ヒット曲を自分で組み合わせて 待受Flashや着Flashを作っちゃおう! ___ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Text link on hover
It accually doesn't use any extra textfields, it stores the htmlText value of a textfield and gets the coordinates, it then resets the tf to the original value. I am thinking of making this a subroutine; assigning a textfield some value dynamically would be done through a special function that gathers spacial data before assigning the value. Right now the the total operation is written in 300 lines of algorithmic code. I am frequently coming up with optimizations, so this number is droping... I will make it open source when it's finished because I finddevelopers and designers are often upset about not being able to measure rendered textfields. I figure this can be used for more than just text hover states. This will get you a rectangle of text, and it will also get you line metrics so I am thinking it will allow for some creative possibilities with typographic animation. It could be that a function defines the rectangle of all letters in a sequence for use with just words or short sentences. I suggest words and short sentences as any large body of text would cost too much in system resource with too many rectangles =] The dude at quasimondo.com tried mimicking the getLineMetrics function from Flex using bitmapData and getColorRect to measure the width of lines. It fails with custom anti aliasing, maybe even anti aliasing for animation. For some reason converting anti aliased text to bitmap data results in a blank bitmapData object... I wanted to run with his code but I found that it became far too elaborate as I was having to put the textfield in movieclips to get it to convert to bitmap data. This solution would fail too when image tags are used. It's a great theoretical solution but not a good practical solution. On 6/10/06, GregoryN <[EMAIL PROTECTED]> wrote: Hello elibol, > Were your textfields multiline? No, they were just a row of links. What you're trying to do is really interesting :-). As I can guess, to work with non-monospace fonts, your getWordRect function should be quite smart... Also, the only way I can imagine so far (in about 15 min) must probably use a lot of duplicate textfields to get all these dimensions. What do you think, how often the need for hover event in html text arises? -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. > --- elibol wrote: > Hi Greg, > > Yea, really is funny... Were your textfields multiline? > > I've tried the img tag solution, the problem is that it does not snuggle > between text, the tag must be either left or right justified so it's never > where it should be. > > So far I've built a function that gets the x/y ( relative to textfield ) and > w/h of a string from a textfield. > > getWordRect(textField, searchString) > > This returns a rectangle object that describes the word rectangle. I am > planning to use this with a mouse hotspot class I've written a while ago. > This will allow me to pass the rectangle objects and create a hover entity > that will broadcast the entity {id,x,y,w,h} to the hover event handler. > > It's pretty fricken elaborate. I think this functionality will be useful as > Flex does not even support these kinds of functions so I will post this > stuff on my site soon. > > I plan to implement a getLineMetrics style function as the base code that > the getWordRect is driven with will allow me to do this relatively easily. > > I plan to build a sub function of getWordRect that will get all word > rectangles of a searchString. > > Word to the Adobe developers, I think this is functionality the TextField > class in Flex should implement. > > I also think htmlText for TextField Objects should have a realtime DOM. > > M. > > On 6/9/06, GregoryN <[EMAIL PROTECTED]> wrote: >> >> well, >> >> The only solution I can suggest (and I've used it several times) is to >> make each of your links embedded into separate mc. >> >> But I was making just quite short html texts dynamically at runtime. >> >> Depending on situation you may have to embed an SWF within IMG tag and >> use some kind of flashvars to set it's behavior . >> Funny, isn't it? >> >> >> -- >> Best regards, >> GregoryN >> >> http://GOusable.com >> Flash components development. >> Usability services. >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figle
RE: [Flashcoders] XML diff
Thanks for the advice - the good news is that each child tree will have a unique id. So finding new or mssing child trees will be the easy part - since I wrote that original email I've been playing with how to do a diff between two arrays which is working well - it tells me which elements are new and which are gone. So the hope there is that I can filter out child trees that are identical and only do the diff on those that have changed. Can you think of anything else which would speed up the process? oh - also - each option will have a unique id and a set list of attributes which is good news. The values may change but that can all be part of the comparison. -Original Message- From: [EMAIL PROTECTED] on behalf of Ron Wheeler Sent: Sat 6/10/2006 5:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML diff Just hang onto the xml tress and walk them in parallel. Depending on the types of changes that might happen, you will have varying degrees of difficulty in matching the trees. Probably easier than a diff on a text file. Possible tests: For each node, check attributes for changes - easy if you have a list of possible attributes - missing or new attributes If you have node values - did they change check number of children - more or less?? What to do if a child tree is missing? What to do if you have a whole new child tree. How do you match the children between the old and new trees? - do they have unique ids or attributes that never change so you can find the same subtrees to compare. ... recurse through children. You Not terribly difficult once you think of the tree structure and once you think about what kind of changes you are prepared to handle. Ron Howard Nager wrote: > I have an upcoming project and am trying to figure out how to do what would > best be described as a diff on a xml file. > > For example, here would be the initital xml: > > > > > > > > > > > > > > > ... > > > The way the system works is that all of the logic is handled server side. So > when the user selects an option it hits the server and gets back another xml > file with an updated price and more or less options depending on whatever > rules came in to play. > > The front end was originally an html page which would redraw itself with > every interaction. If I were to just emulate that model I would grab the new > xml and redraw the menu within my flash movie with every selection. The issue > with that is that each option has an associated thumbnail image loaded > externally and redrawing hte menu would mean reloading all of those. > > I would rather look at the new and old xml files side by side and see what > changed so that I could leave anything that didnt change alone. > > Any ideas on this? > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Debugging Tool
I imagine the console is fairly boring without someone to talk to it ;] Sorry bout that, here is the link to the broadcaster: http://lab-media.com/opensource/flashconsole/samplebroadcaster.html A On 6/10/06 1:58 PM, "John Grden" <[EMAIL PROTECTED]> wrote: > Hey Aaron, I think the second link is either broken or misspelled in the > email: > > http://lab-media.com/opensource/fla...roadcaster.html comes up 404 > > Look forward to seeing what you've got goin! Let us know what the URL is, > > JG > > On 6/10/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote: >> >> Hey guys, >> >> I made this little tool about 3-4 months ago to let debug live rich ads >> with >> synced animations. The tool itself is simple and lightweight, but has >> managed to be an important part of my work. A few people have referred me >> to >> john's tool, & I will definitely play with it when I get a chance, but I >> wanted to offer this up too. >> >> Basically the idea underlying the tool is that you are able to set up >> broadcasters in your code with channel names. Then anytime your >> broadcaster >> sends a message to the console, you can filter them by their channel name. >> It has some issues, including performance hits if you use rapid iterative >> functions, or if you set up more buttons than there is room to tile the >> buttons for the channel names. >> >> I may end up building more functionality into this tool at some point. But >> it has fit my needs quite well and figured if anyone cant use john's tool, >> of if it doesn't quite do the same thing, then I offer this one for >> perusing. >> >> There is some docs in the code, but nothing formal yet. If you have any >> questions, feel free to hit me up offlist if you like on aim (tribalab) or >> email [EMAIL PROTECTED] >> >> Thx & enjoy :) >> >> -- >> >> Example Console (open before broadcaster): >> http://lab-media.com/opensource/flashconsole/index.html >> >> Example broadcaster: >> http://lab-media.com/opensource/fla...roadcaster.html >> >> Download Source: >> http://lab-media.com/opensource/flashconsole/source.zip >> >> -- >> Aaron >> >> >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> > > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] XML diff
Just hang onto the xml tress and walk them in parallel. Depending on the types of changes that might happen, you will have varying degrees of difficulty in matching the trees. Probably easier than a diff on a text file. Possible tests: For each node, check attributes for changes - easy if you have a list of possible attributes - missing or new attributes If you have node values - did they change check number of children - more or less?? What to do if a child tree is missing? What to do if you have a whole new child tree. How do you match the children between the old and new trees? - do they have unique ids or attributes that never change so you can find the same subtrees to compare. ... recurse through children. You Not terribly difficult once you think of the tree structure and once you think about what kind of changes you are prepared to handle. Ron Howard Nager wrote: I have an upcoming project and am trying to figure out how to do what would best be described as a diff on a xml file. For example, here would be the initital xml: ... The way the system works is that all of the logic is handled server side. So when the user selects an option it hits the server and gets back another xml file with an updated price and more or less options depending on whatever rules came in to play. The front end was originally an html page which would redraw itself with every interaction. If I were to just emulate that model I would grab the new xml and redraw the menu within my flash movie with every selection. The issue with that is that each option has an associated thumbnail image loaded externally and redrawing hte menu would mean reloading all of those. I would rather look at the new and old xml files side by side and see what changed so that I could leave anything that didnt change alone. Any ideas on this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash Debugging Tool
Hey Aaron, I think the second link is either broken or misspelled in the email: http://lab-media.com/opensource/fla...roadcaster.html comes up 404 Look forward to seeing what you've got goin! Let us know what the URL is, JG On 6/10/06, Aaron Buchanan <[EMAIL PROTECTED]> wrote: Hey guys, I made this little tool about 3-4 months ago to let debug live rich ads with synced animations. The tool itself is simple and lightweight, but has managed to be an important part of my work. A few people have referred me to john's tool, & I will definitely play with it when I get a chance, but I wanted to offer this up too. Basically the idea underlying the tool is that you are able to set up broadcasters in your code with channel names. Then anytime your broadcaster sends a message to the console, you can filter them by their channel name. It has some issues, including performance hits if you use rapid iterative functions, or if you set up more buttons than there is room to tile the buttons for the channel names. I may end up building more functionality into this tool at some point. But it has fit my needs quite well and figured if anyone cant use john's tool, of if it doesn't quite do the same thing, then I offer this one for perusing. There is some docs in the code, but nothing formal yet. If you have any questions, feel free to hit me up offlist if you like on aim (tribalab) or email [EMAIL PROTECTED] Thx & enjoy :) -- Example Console (open before broadcaster): http://lab-media.com/opensource/flashconsole/index.html Example broadcaster: http://lab-media.com/opensource/fla...roadcaster.html Download Source: http://lab-media.com/opensource/flashconsole/source.zip -- Aaron ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- John Grden - Blitz ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] XML diff
I have an upcoming project and am trying to figure out how to do what would best be described as a diff on a xml file. For example, here would be the initital xml: ... The way the system works is that all of the logic is handled server side. So when the user selects an option it hits the server and gets back another xml file with an updated price and more or less options depending on whatever rules came in to play. The front end was originally an html page which would redraw itself with every interaction. If I were to just emulate that model I would grab the new xml and redraw the menu within my flash movie with every selection. The issue with that is that each option has an associated thumbnail image loaded externally and redrawing hte menu would mean reloading all of those. I would rather look at the new and old xml files side by side and see what changed so that I could leave anything that didnt change alone. Any ideas on this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Debugging Tool
Hey guys, I made this little tool about 3-4 months ago to let debug live rich ads with synced animations. The tool itself is simple and lightweight, but has managed to be an important part of my work. A few people have referred me to john's tool, & I will definitely play with it when I get a chance, but I wanted to offer this up too. Basically the idea underlying the tool is that you are able to set up broadcasters in your code with channel names. Then anytime your broadcaster sends a message to the console, you can filter them by their channel name. It has some issues, including performance hits if you use rapid iterative functions, or if you set up more buttons than there is room to tile the buttons for the channel names. I may end up building more functionality into this tool at some point. But it has fit my needs quite well and figured if anyone cant use john's tool, of if it doesn't quite do the same thing, then I offer this one for perusing. There is some docs in the code, but nothing formal yet. If you have any questions, feel free to hit me up offlist if you like on aim (tribalab) or email [EMAIL PROTECTED] Thx & enjoy :) -- Example Console (open before broadcaster): http://lab-media.com/opensource/flashconsole/index.html Example broadcaster: http://lab-media.com/opensource/fla...roadcaster.html Download Source: http://lab-media.com/opensource/flashconsole/source.zip -- Aaron ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Text link on hover
Hello elibol, > Were your textfields multiline? No, they were just a row of links. What you're trying to do is really interesting :-). As I can guess, to work with non-monospace fonts, your getWordRect function should be quite smart... Also, the only way I can imagine so far (in about 15 min) must probably use a lot of duplicate textfields to get all these dimensions. What do you think, how often the need for hover event in html text arises? -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. > --- elibol wrote: > Hi Greg, > > Yea, really is funny... Were your textfields multiline? > > I've tried the img tag solution, the problem is that it does not snuggle > between text, the tag must be either left or right justified so it's never > where it should be. > > So far I've built a function that gets the x/y ( relative to textfield ) and > w/h of a string from a textfield. > > getWordRect(textField, searchString) > > This returns a rectangle object that describes the word rectangle. I am > planning to use this with a mouse hotspot class I've written a while ago. > This will allow me to pass the rectangle objects and create a hover entity > that will broadcast the entity {id,x,y,w,h} to the hover event handler. > > It's pretty fricken elaborate. I think this functionality will be useful as > Flex does not even support these kinds of functions so I will post this > stuff on my site soon. > > I plan to implement a getLineMetrics style function as the base code that > the getWordRect is driven with will allow me to do this relatively easily. > > I plan to build a sub function of getWordRect that will get all word > rectangles of a searchString. > > Word to the Adobe developers, I think this is functionality the TextField > class in Flex should implement. > > I also think htmlText for TextField Objects should have a realtime DOM. > > M. > > On 6/9/06, GregoryN <[EMAIL PROTECTED]> wrote: >> >> well, >> >> The only solution I can suggest (and I've used it several times) is to >> make each of your links embedded into separate mc. >> >> But I was making just quite short html texts dynamically at runtime. >> >> Depending on situation you may have to embed an SWF within IMG tag and >> use some kind of flashvars to set it's behavior . >> Funny, isn't it? >> >> >> -- >> Best regards, >> GregoryN >> >> http://GOusable.com >> Flash components development. >> Usability services. >> ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] How to display Image decoded base64 (bytearray ) using loadMovie in Flash 7
Flashcoders, i am calling a servlet to decode the base64 format in to byte array and return as response. I can able to load image using the below function in Flash 8 var ByteArrayServlet:String = " http://www.mywebserver.com//servlet/DecodeServlet";; loadMovie(ByteArrayServlet, imagecont_mc); But the same wont works in Flash 7. Is there is any other way to display the image in form of byte array as response in Flash 7 player. thanks, santhakumar ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ScreenWeaver HX Beta
Really a great job again Nicolas and Edwin !!! Do you plan to make a more friendly interface as ScreenWeaver OS in the future ? Cheers St3fX Nicolas Cannasse wrote: Hi lists, I'm please to announce the release of ScreenWeaver HX Beta. ScreenWeaver HX is a simple and powerful way to create Flash Desktop Applications in both ActionScript and haXe. It's an open source project but you can also use SWHX to create commercial applications. This Beta version is only available for Windows, but a Mac and Linux version should follow in the near future. You can read the tutorial and download SWHX Beta right now from http://haxe.org/swhx Enjoy ! Nicolas and Edwin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ScreenWeaver HX Beta
Can I create Linux executables using SWHX? On 6/10/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: Very interesting! This could make HaXe my language of choice for desktop applications too :) Marcelo. On 6/10/06, Weyert de Boer < [EMAIL PROTECTED]> wrote: > > Nicolas Cannasse wrote: > >> I suppose we need ScreenWeaver for this, right? > > > > No it's a separate standalone project based on ScreenWeaver > > technology. You need to use haXe to program the System Layer and you > > can extend it easily by writing additional DLLs. > Aha, okay! I am currently looking at mtasc and haXe it looks nice. I am > gonna play with it later tonight to make personalized flash lite > applications. > > Yours, > Weyert de Boer > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ScreenWeaver HX Beta
Very interesting! This could make HaXe my language of choice for desktop applications too :) Marcelo. On 6/10/06, Weyert de Boer <[EMAIL PROTECTED]> wrote: Nicolas Cannasse wrote: >> I suppose we need ScreenWeaver for this, right? > > No it's a separate standalone project based on ScreenWeaver > technology. You need to use haXe to program the System Layer and you > can extend it easily by writing additional DLLs. Aha, okay! I am currently looking at mtasc and haXe it looks nice. I am gonna play with it later tonight to make personalized flash lite applications. Yours, Weyert de Boer ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ScreenWeaver HX Beta
Nicolas Cannasse wrote: I suppose we need ScreenWeaver for this, right? No it's a separate standalone project based on ScreenWeaver technology. You need to use haXe to program the System Layer and you can extend it easily by writing additional DLLs. Aha, okay! I am currently looking at mtasc and haXe it looks nice. I am gonna play with it later tonight to make personalized flash lite applications. Yours, Weyert de Boer ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ScreenWeaver HX Beta
I suppose we need ScreenWeaver for this, right? No it's a separate standalone project based on ScreenWeaver technology. You need to use haXe to program the System Layer and you can extend it easily by writing additional DLLs. Nicolas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ScreenWeaver HX Beta
I suppose we need ScreenWeaver for this, right? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] ScreenWeaver HX Beta
Hi lists, I'm please to announce the release of ScreenWeaver HX Beta. ScreenWeaver HX is a simple and powerful way to create Flash Desktop Applications in both ActionScript and haXe. It's an open source project but you can also use SWHX to create commercial applications. This Beta version is only available for Windows, but a Mac and Linux version should follow in the near future. You can read the tutorial and download SWHX Beta right now from http://haxe.org/swhx Enjoy ! Nicolas and Edwin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] mmog server
I think the best thing to use is something which using that binary format of Adobe Flash. I think they call it AMF. Somehow I have the feeling the performance of this is better then using something like XMLSocketServer. Of course, this all change when you are able to use ActionScript 3 and his binary sockets. In theory you could use some standardized MMOG server, if available. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash and Javascript Interaction
Tried the integration kit yet? http://weblogs.macromedia.com/flashjavascript/ -josh On Jun 9, 2006, at 6:55p, Rick Root wrote: I posted this to cf-talk but decided this was probably a better place to post it... I'm trying to "play" a flash movie with javascript. This *SHOULD* work but it does not. Can anyone tell me why? http://www.opensourcecf.com/cfopenchat/demo/door.html When you go there you'll hear the sound of a door opening (if you have flash and sound enabled). When you click "Play Door Sound" the javascript should replay the flash movie, but it doesn't and I can't figure out why. Rick ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FLV problem (http)
Hi, I develop flash app ака video player. Appeared the one problem... flv files dont play if their load through http (size of the flv file ~13Mb) FLV file loading (I can trace the process on bytesTotal and bytesLoaded (NetStream)), but object NetStream does not get the events onStatus and onMetaData If load file local, that all ok. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] mmog server
I reccently created a post asking the same question as the company i work for was in a simmilar situation. In the end we decided to go for SmartFox as money wasnt realy an problem, dedicated custer support and ongoing upgrades became more important. I have been coding in smartfox for a coupple of weeks now and its great, the documentation and tutorials are very good, however i found that i had to write a wrapper the main class the SmartFoxClient as it doesnt implement listeners natively, but that wasnt too much of an issue :) Other alternatives were Red 5, Electroserver, Oregano and Unity. Mike On 09/06/06, Mathieu Savard <[EMAIL PROTECTED]> wrote: Hello, We about to start the production of a MMOG using flash. I'd like to know what type of server you would be using. So far we've been using flashcomm for multi user game but Smartfox seems to be another solution too. I'd like to have your input on this. Thank you, Mathieu Savard ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Is Object scope lost when using Delegate?
ahhh yes julien you are correct. In fact this is almost the exact thing i did when you advised me on listeners a few posts back :) On 09/06/06, Julien Vignali <[EMAIL PROTECTED]> wrote: I'm afraid mike but you're wrong. The MovieClip.onRelease handler doesn't pass any parameter... From the help files : MovieClip.onRelease = function() {} What Jeff could do is using a Delegate alternative class that allows him to pass parameters to the handler, but he can also link his button movieclips to a class that would dispatch events: class MenuButton extends MovieClip { // EventDispatcher mix-in functions here public function MenuButton(){ EventDispatcher.initialize(this); } public function onRelease():Void { dispatchEvent({type:"click", target:this}); } } class Menu extends MovieClip { private var btn1:MenuButton private var btn2:MenuButton public function Menu(){ btn1.addEventListener("click", Delegate.create(this, onMenuRelease); btn2.addEventListener("click", Delegate.create(this, onMenuRelease); } private function handleEvent(event:Object):Void { if (event.target == btn1) { // do some stuff... btn1.enabled = false; btn2.enabled = true; } if (event.target == btn2) { // do some stuff... btn2.enabled = false; btn1.enabled = true; } } } mike cann a écrit : > ummm correct me if im wrong but onRelease you are passed an event object > that contains the target of the event? > > so: > > funciton addChild( txt:String ):Void > { > // make new mc, with a text field and set the txt > myNewMc.onRelease = Delegate( this, onMenuRelease ); > { > > function onMenuRelease( event:Object):Void > { >event.target.myPropertyOfmyNewMc = somevalue; > } > > I could be wrong however... > > Mike > > On 09/06/06, Jeff Jonez <[EMAIL PROTECTED]> wrote: >> >> This is exactly what I was looking for, cheers Mark and Morten! >> > > myNewMc.onRelease = Delegate( this, onMenuRelease, myNewMc ); >> >> Previously, I kept a reference to my class in mc variable, which >> wasn't so bad codewise... not sure if there are other side effects to >> doing that. >> >> Re: Matt >> > can you not add your children in a loop? >> >> The children or menu items are added and removed dynamically by >> calling add/remove child ( and then I animate them on and off) from >> some other class that wants to use the menu >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Test message, please ignore
Test message, please ignore ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Slowing down the action (problem with a pause)
What you are now seeing should be like the graph appearing all at once after some "thinking time", e.g. it blocks other animations/code exectuion during this for-loop (Unless I´m not up-to-date with the screen-refresh-behaviour of the MovieClip.lineTo-method) Now adding a while-loop will only increase the time needed to execute the whole for-loop, but it will not change the fact that the screen is refreshed after all your code has processed, e.g. the whole graph has been drawn. An Interval will get around this issue, because it will not block any other code running (it´s asynchronous to your other timelines), and will update the screen after every execution. Thus it´s the only way to make the graph look like beeing drawn. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ville Walveranta Sent: Saturday, June 10, 2006 9:11 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Slowing down the action (problem with a pause) Thanks for the response, André! The problem with replacing the for-loop with an interval is that the array graph_coordinates contains plenty of data both before and after the segment that is to be visualized. Thus, if the delay is, say, 500ms per loop, there will be several seconds of delay both before and after that graph is drawn. If use of an interval is the only solution (why doesn't a while-loop work as in my initial example?), I may have to pre-process the data into a temp array that'll contain only the segment of data to be graphed, and then pass the data to the interval. Ville -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André Goliath Sent: Saturday, June 10, 2006 01:50 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Slowing down the action (problem with a pause) I can´t see your problem using an Interval here. In fact I don´t think there is any way around an Interval or onEnterFrame loop if you want to achieve a "drawing effect". First get rid of the For-Loop, thats what gets replaced by the interval. Then make sure you pass all neccessary parameters to the interval. That are all parameters that do not get changed during the calls. Finaly, make graph_coordinates an static/otherwise "global" array and pop out one coordinate on every call of the interval. On every interval step you process only this single coordinate. If your array is empty, clear the interval. hth ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Slowing down the action (problem with a pause)
Thanks for the response, André! The problem with replacing the for-loop with an interval is that the array graph_coordinates contains plenty of data both before and after the segment that is to be visualized. Thus, if the delay is, say, 500ms per loop, there will be several seconds of delay both before and after that graph is drawn. If use of an interval is the only solution (why doesn't a while-loop work as in my initial example?), I may have to pre-process the data into a temp array that'll contain only the segment of data to be graphed, and then pass the data to the interval. Ville -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André Goliath Sent: Saturday, June 10, 2006 01:50 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Slowing down the action (problem with a pause) I can´t see your problem using an Interval here. In fact I don´t think there is any way around an Interval or onEnterFrame loop if you want to achieve a "drawing effect". First get rid of the For-Loop, thats what gets replaced by the interval. Then make sure you pass all neccessary parameters to the interval. That are all parameters that do not get changed during the calls. Finaly, make graph_coordinates an static/otherwise "global" array and pop out one coordinate on every call of the interval. On every interval step you process only this single coordinate. If your array is empty, clear the interval. hth ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com