Re: [Flashcoders] class member Array
Read this: --> Why does my initializer get shared across all instances like it's static? http://osflash.org/flashcoders/as2 regards, Muzak - Original Message - From: "James Tu" <[EMAIL PROTECTED]> To: Sent: Friday, May 25, 2007 12:46 AM Subject: [Flashcoders] class member Array > Has anyone encountered this before... > > If you have a class variable that is of type Array... > DO NOT DO THIS: > private var ListOfThings:Array = new Array(); > > > DO THIS: > private var ListOfThings:Array; > //then in your constructor, do this > ListOfThings = new Array(); > > > If you do the former, Flash will create an Array that is SHARED between all > instances of the class!!! (i.e., it makes it STATIC) ___ 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] MC xscale/width/yscale/height with MCL
Thank you to everyone on this. I guess I may have created a closure and after separating my code into independent functions was able to get the width/height changes. My onLoadInit was not tracing any target_mc out. Thank you! On 5/24/07, Durairaj Subramaniam <[EMAIL PROTECTED]> wrote: I guess you didnt add the listener to the movieClip loader using movieClipLoader.addlistener(ListenerObj).. That might be the reason your clip doesnt loads up and it is not seen.. Check back the code again for the method addlistener I think that might be the cause. On 5/25/07, Eric E. Dolecki <[EMAIL PROTECTED]> wrote: > > mcL_listener.onLoadInit = function( target_mc:MovieClip ):Void > { > target_mc._width = 300; > target_mc._height = 300; > } > > - eric > > On May 24, 2007, at 6:04 PM, Jonathan Berry wrote: > > > Hello all, I searched the archives for this, but could not find > > anything > > close to it. I am using a MovieClipLoader and seem to be able to > > xscale and > > yscale the loaded images from the MCL. However, I cannot set width > > or height > > on the images; they actually disappear. I sized my stage up to > > 1000h by > > 1000w to see if the images were just being resized and set at an x/ > > y off the > > stage somewhere, but no images seen. Any help/insight you have on > > setting > > width/height much to be appreciated. > > > > -- > > Jonathan Berry, M.A. > > IT Consultant > > 619.306.1712(m) > > [EMAIL PROTECTED] > > www.mindarc.com > > > > --- > > > > This E-mail is covered by the Electronic Communications Privacy > > Act, 18 > > U.S.C. ?? 2510-2521 and is legally privileged. > > This information is confidential information and is intended only for > > the use of the individual or entity named above. If the reader of this > > message is not the intended recipient, you are hereby notified that > > any > > dissemination, distribution or copying of this communication is > > strictly > > prohibited. > > > > --- > > ___ > > 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 > -- Durairaj www.expertbuddy.net ___ 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 -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- ___ 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] Hi List!
Hi, Yes you could do it on the server, but I was trying to figure it out inside the as code instead. A On 5/24/07 4:32 PM, "Andrei Thomaz" <[EMAIL PROTECTED]> wrote: > can't you translate HTML to pure text using some kind of script in the > server? > > []'s > andrei > > > On 5/24/07, Andy Andersson <[EMAIL PROTECTED]> wrote: >> >> I have a scenario that I try to figure out, don't know if it is possible >> yet, but maybe someone here on the list knows if it is? >> >> Scenario are: >> I have a couple of dynamic text fields and input text fields where people >> write comments, send messages, display messages/blogs etc... >> And it goes to the server and returns back to the flash app (everything >> works fine) but, I don't want people to paste or write HTML tags in the >> messages etc.. But if they do I want flash to filter/block those tags out >> to >> display in the flash app. So when the text gets back into the flash app, >> it >> should only contain real text, no HTML tags at all! >> >> Is that possible? >> >> Thanks >> A >> >> >> ___ >> 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] Hi List!
can't you translate HTML to pure text using some kind of script in the server? []'s andrei On 5/24/07, Andy Andersson <[EMAIL PROTECTED]> wrote: I have a scenario that I try to figure out, don't know if it is possible yet, but maybe someone here on the list knows if it is? Scenario are: I have a couple of dynamic text fields and input text fields where people write comments, send messages, display messages/blogs etc... And it goes to the server and returns back to the flash app (everything works fine) but, I don't want people to paste or write HTML tags in the messages etc.. But if they do I want flash to filter/block those tags out to display in the flash app. So when the text gets back into the flash app, it should only contain real text, no HTML tags at all! Is that possible? Thanks A ___ 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] Hi List!
Hi Andersson, It is possible by checking for the Html tags using the textField.onChanged event. Check through the tags with splitting up the "<" and ">" then when the text inside these contains any predefined tags .alert the user that these contains the html tag. Or you can check for the close tag too. When displaying you can check the text for the same scenario then i guess u can prevent these tags.. Cheers On 5/25/07, Andy Andersson <[EMAIL PROTECTED]> wrote: I have a scenario that I try to figure out, don't know if it is possible yet, but maybe someone here on the list knows if it is? Scenario are: I have a couple of dynamic text fields and input text fields where people write comments, send messages, display messages/blogs etc... And it goes to the server and returns back to the flash app (everything works fine) but, I don't want people to paste or write HTML tags in the messages etc.. But if they do I want flash to filter/block those tags out to display in the flash app. So when the text gets back into the flash app, it should only contain real text, no HTML tags at all! Is that possible? Thanks A ___ 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 -- Durairaj www.expertbuddy.net ___ 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] class member Array
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Tu wrote: > If you have a class variable that is of type Array... > DO NOT DO THIS: > private var ListOfThings:Array = new Array(); > > DO THIS: > private var ListOfThings:Array; > //then in your constructor, do this > ListOfThings = new Array(); General "best practices" in many object oriented environments tell you to save your initialization until the constructor. I never thought about it much, but your experience with weird static shared funk could probably be where the rule of thumb originated. I'm not terribly surprised to hear that AS2 behaves this way. I suspect this is an artifact of its ugly AS1 prototyping ancestry ;) Ammon -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVhzOR9XALM4wLEoRAmiZAJ0aK45/zFKyBhKJqaICuLA6aDf2zQCeO0Pi MZ8WA5hGdpC7DWESbtUfirs= =tCOX -END PGP SIGNATURE- ___ 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] MC xscale/width/yscale/height with MCL
I guess you didnt add the listener to the movieClip loader using movieClipLoader.addlistener(ListenerObj).. That might be the reason your clip doesnt loads up and it is not seen.. Check back the code again for the method addlistener I think that might be the cause. On 5/25/07, Eric E. Dolecki <[EMAIL PROTECTED]> wrote: mcL_listener.onLoadInit = function( target_mc:MovieClip ):Void { target_mc._width = 300; target_mc._height = 300; } - eric On May 24, 2007, at 6:04 PM, Jonathan Berry wrote: > Hello all, I searched the archives for this, but could not find > anything > close to it. I am using a MovieClipLoader and seem to be able to > xscale and > yscale the loaded images from the MCL. However, I cannot set width > or height > on the images; they actually disappear. I sized my stage up to > 1000h by > 1000w to see if the images were just being resized and set at an x/ > y off the > stage somewhere, but no images seen. Any help/insight you have on > setting > width/height much to be appreciated. > > -- > Jonathan Berry, M.A. > IT Consultant > 619.306.1712(m) > [EMAIL PROTECTED] > www.mindarc.com > > --- > > This E-mail is covered by the Electronic Communications Privacy > Act, 18 > U.S.C. ?? 2510-2521 and is legally privileged. > This information is confidential information and is intended only for > the use of the individual or entity named above. If the reader of this > message is not the intended recipient, you are hereby notified that > any > dissemination, distribution or copying of this communication is > strictly > prohibited. > > --- > ___ > 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 -- Durairaj www.expertbuddy.net ___ 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] Need help creating an old-skool arc or circularscrollbar
On 5/24/07, Carl Welch <[EMAIL PROTECTED]> wrote: Seems to me you guys are doing this the hard way. Why not just draw a curved line (with the line tool) then use code to attach/snap the handle to the line, and then just use actionscript to track the Y position of the handle and scroll accordingly? Trig for a simple scroller seems a little convoluted way of going about this simple thing...The end user will never know or appreciate the difference anyway. It depends on your perspective, mainly to what you're used to. Even with your description, it would take me significantly longer to do it your way -- that is, if I used the Flash authoring tool in the first place, which I don't have/want/need. So, coding it isn't the hard way, for me and many others, at least. That it involves trigonometry (in my example only for setting an angle and using Math.atan2()) doesn't automatically make it difficult for everybody. I don't consider myself to be good at trigonometry, but some basic things I know, and I have had many, many occasions where knowing that x = Math.cos( angle ) and y = -Math.sin( angle ) was useful. Also, by coding it, I could make it a reusable class -- just pass the radius and the handle (or the radius and the container along with a linkage name). What if the radius would depend on the stage size? What if the handle would have to be rotated (say, the hand of a clock). With a script, you gain flexibility. Mark ___ 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] MC xscale/width/yscale/height with MCL
mcL_listener.onLoadInit = function( target_mc:MovieClip ):Void { target_mc._width = 300; target_mc._height = 300; } - eric On May 24, 2007, at 6:04 PM, Jonathan Berry wrote: Hello all, I searched the archives for this, but could not find anything close to it. I am using a MovieClipLoader and seem to be able to xscale and yscale the loaded images from the MCL. However, I cannot set width or height on the images; they actually disappear. I sized my stage up to 1000h by 1000w to see if the images were just being resized and set at an x/ y off the stage somewhere, but no images seen. Any help/insight you have on setting width/height much to be appreciated. -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- ___ 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] class member Array
Has anyone encountered this before... If you have a class variable that is of type Array... DO NOT DO THIS: private var ListOfThings:Array = new Array(); DO THIS: private var ListOfThings:Array; //then in your constructor, do this ListOfThings = new Array(); If you do the former, Flash will create an Array that is SHARED between all instances of the class!!! (i.e., it makes it STATIC) I did the former: //this is in the class declaration section class Foo { private var _pressed_event_message:Array = new Array(); //other stuff omitted function setPressedEventMessage ( m:String, p:Object ) { _pressed_event_message.push( { msg:m, param:p} ); trace("this._pressed_event_message.length: " + _pressed_event_message.length); } } class FooExtender extends Foo { } When I create two FooExtender instances...and call the setPressedEventMessage() function, the trace increments as if there these both instances share the same array!!! var a=new FooExtender(); var b=new FooExtender(); a.setPressedEventMessage( "blah" ); //traces "this._pressed_event_message.length: 1" b.setPressedEventMessage( "blah" ); //traces "this._pressed_event_message.length: 2" a.setPressedEventMessage( "blah" ); //traces "this._pressed_event_message.length: 3" a.setPressedEventMessage( "blah" ); //traces "this._pressed_event_message.length: 4" b.setPressedEventMessage( "blah" ); //traces "this._pressed_event_message.length: 5" b.setPressedEventMessage( "blah" ); //traces "this._pressed_event_message.length: 6" When I took the initialization out of the variable declaration section and just did this... class Foo { private var _pressed_event_message:Array; function Foo () { _pressed_event_message = new Array(); } } All behaved as expected... Was I not doing something correctly? -James ___ 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] MC xscale/width/yscale/height with MCL
show us some code. - Original Message - From: "Jonathan Berry" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, May 25, 2007 12:04 AM Subject: [Flashcoders] MC xscale/width/yscale/height with MCL > Hello all, I searched the archives for this, but could not find anything > close to it. I am using a MovieClipLoader and seem to be able to xscale and > yscale the loaded images from the MCL. However, I cannot set width or height > on the images; they actually disappear. I sized my stage up to 1000h by > 1000w to see if the images were just being resized and set at an x/y off the > stage somewhere, but no images seen. Any help/insight you have on setting > width/height much to be appreciated. > > -- > Jonathan Berry, M.A. ___ 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] MC xscale/width/yscale/height with MCL
Check out Xray http://osflash.org/xray/ One of its features is it lets you take snapshots of the current application so you can see where your movieclip is. Xray is the best thing to happen to Flash Development. Ever. Rock on John Grden! \m/ Jonathan Berry wrote: Hello all, I searched the archives for this, but could not find anything close to it. I am using a MovieClipLoader and seem to be able to xscale and yscale the loaded images from the MCL. However, I cannot set width or height on the images; they actually disappear. I sized my stage up to 1000h by 1000w to see if the images were just being resized and set at an x/y off the stage somewhere, but no images seen. Any help/insight you have on setting width/height much to be appreciated. ___ 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] MC xscale/width/yscale/height with MCL
Hello all, I searched the archives for this, but could not find anything close to it. I am using a MovieClipLoader and seem to be able to xscale and yscale the loaded images from the MCL. However, I cannot set width or height on the images; they actually disappear. I sized my stage up to 1000h by 1000w to see if the images were just being resized and set at an x/y off the stage somewhere, but no images seen. Any help/insight you have on setting width/height much to be appreciated. -- Jonathan Berry, M.A. IT Consultant 619.306.1712(m) [EMAIL PROTECTED] www.mindarc.com --- This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- ___ 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] Re: LoadVars and (non)blocking behavior
Muzak telenet.be> writes: > > Flash is single threaded.. > OK, I made a wrong assumption about threading. Actually, that clearly explains why my attempted busy waiting was preventing the onLoad callback from completing, which didn't really make sense to me at first. I will have to play with the onEnterFrame callback and research the Delegate, but in the meantime I think I found a spot to place my code in front of a movie that is playing anyway, and which uses AS on the final frame to continue things anyway, so... I think that will work for now. Thanks much for your reply, Muzak! ;) (and I will not try to use nested functions anymore ;) -ej ___ 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] Have a problem with my flash site, in 1 or 2 people computer
Hi Eric, Good point yours, but the client just want to care about 1024x768 and 1280x1024. I´ll insist, but if they don´t send me the higher res pictures, no deal. Thanks! ___ 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] Hi List!
I have a scenario that I try to figure out, don't know if it is possible yet, but maybe someone here on the list knows if it is? Scenario are: I have a couple of dynamic text fields and input text fields where people write comments, send messages, display messages/blogs etc... And it goes to the server and returns back to the flash app (everything works fine) but, I don't want people to paste or write HTML tags in the messages etc.. But if they do I want flash to filter/block those tags out to display in the flash app. So when the text gets back into the flash app, it should only contain real text, no HTML tags at all! Is that possible? Thanks A ___ 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] LoadVars and (non)blocking behavior
> ActionScript, being a programming language for non-programmers, makes no > mention whatsoever of threads, nor do I see any way to call a sleep function > or > a yeild function on the current thread (i.e., some way to tell 'this' thread > to > just chill for a sec and let other threads do what they need to do). > Flash is single threaded.. It sounds like you simply want to call another function when the LoadVars.onLoad event is called. Or maybe you want to perform an onEnterFrame while the data is getting loaded.. And nested functions are a no-no.. Just google "actionscript nested functions" and "actionscript activation object" Also look into the Delegate proxy util class. import mx.utils.Delegate; var _lv:LoadVars; function loadvarsLoadHandler(success:Boolean):Void { if (success) { rv_obj.status = _lv.status; // stop enterframe this.onEnterFrame = undefined; delete this.onEnterFrame; // call some other method here?? } } function enterFrameHandler() { // do something here? check for timeout? } function getLessonStatus(userid, courseid) { // loop while loading data this.onEnterFrame = this.enterFrameHandler; this._lv.userid = userid; this._lv.courseid = courseid; this._lv.sendAndLoad(LESSON_STATUS_URL, this._lv); } this._lv:LoadVars = new LoadVars(); this._lv.onLoad = Delegate.create(this, this.loadvarsLoadHandler); this.getLessonStatus(val1, val2); Not sure if this is what you're after though.. regards, Muzak - Original Message - From: "ej" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 8:09 PM Subject: [Flashcoders] LoadVars and (non)blocking behavior > > > Here is the problem: I want to write a function that makes an outside > communication with a web server and exhibits to the caller blocking bahavior. > That is, I call something like getUserStatus(userid), and it either returns > with the value I want from my database (ColfFusion page), or after some > reasonable amount of time, if I'm not able to communicate with that page, it > returns a special value indicating so. > > As best as I can tell, what is happening behind the scenes for a LoadVars > object is it is essentially forking a new thread to handle this communication > asynchronously from what the thread that invoked LoadVars.sendAndLoad() is > doing. > > ActionScript, being a programming language for non-programmers, makes no > mention whatsoever of threads, nor do I see any way to call a sleep function > or > a yeild function on the current thread (i.e., some way to tell 'this' thread > to > just chill for a sec and let other threads do what they need to do). > > There is the setInterval() function, but again this appears to simply be > forking another thread to periodically call another callback - the code that > is > calling setInterval() itself essentially returns immediately and then proceeds > to do whatever it is doing. But what I want to do next depends on the value I > am trying to read. > > So, I figured, "Fine!" I'll just busy wait until my callback has done what it > needs to do. But the problem is that my busy waiting seems to be blocking my > callback from doing what it needs to do. > > Below is my attempt at a blocking function. On the stage I simply have a > bunch > of dynamic text fields that I set the values of to see what is going on. > Regardless of what I set the timeout value to, shortly after that that > result_lv.onLoad gets called, I get back a 200 HTTP status, and my expected > value is returned from ColdFusion. Unfortunately, my main thread has already > seen the timeout by then. > > So... I'm not seeing how to get this to work right. This must be a common > problem people are handling some other way - can someone help me out? > > > // Wouldn't it be nice if Flash's editor were smart enough to auto-indent > // with spaces instead of tabs? Then this code would look right when I > // paste it. > ___ 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] class file updated, but .aso not updated?
Happens all the time on this list. Sorry I did not see your post earlier. Tends to drive you crazy and makes you doubt your whole understanding of reality. The more things you change, the more things stay the same!!! Ron James Tu wrote: Figured it out: I'm using runtime shared libraries. These are automatically imported in frame 1. The classes in my movie are not exported until frame 5! So, the version of the compiled classes that I'm getting are from the rsl's !!! We're using rsl's to share assets and not code, but one specific rsl it also compiles some of the classes. So, now I'm going into that one and just extracting the assets that will be shared. Whew. I'm so happy that there was a logical explanation. -James On May 24, 2007, at 2:54 PM, James Tu wrote: I'm having a problem that is not directly related to a previous thread on this list about ASO files. Here's my inheritance heirarchy... BaseClass -> VisualBaseClass -> ButtonMessagingBaseClass -> CardBase -> CardSpecial I'm on a Mac OSX 10.4.8 running Flash Professional v8.0. I've updated CardBase, but the changes don't appear! I've deleted ASO files and that didn't work. I've deleted ASO files, quit Flash, restarted and that didn't work. I also tried to add trace statements all the way up to the parent (BaseClass) and those trace statements don't appear. The other curious bit is that I've checked "Omit Trace Actions" but the old trace statements in CardBase and the other onces all the way up to the parent (BaseClass) are still showing!!! CardSpecial...the last one in the chain, behaves correctly...changes take effect, when I "Omit Trace Action" its traces are suppressed! What's going on here? Am I going crazy? Is the Flash file corrupt? (Right now I'm going to try grabbing an older version and see how that behaves) -James ___ 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] Brining XML/XHTML into Flash
Xpath is a good place to start or any of the page injection techniques. jason law, detroit organic, inc. | www.organic.com retail tech lead | interface engineer e: [EMAIL PROTECTED] | p: 248.454.3387 | aim: jaylaw81 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Dobson Sent: Thursday, May 24, 2007 3:11 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Brining XML/XHTML into Flash I'd love to know if anyone has any advice... on best way to extract text from specific objects of an XHTML page which a SWF is loaded into... then allow the extracted text strings to be available in the SWF. I've built Javascript to extract text from XHTML the page in combination with the use of SWFObject for Javascript detection, Flash detection and to send text extractions to SWF with FlashVars). I believe the FlashVars method has a limit of 64kb which should work in almost every case. Here's a proof of concept I've created: http://hs.squadstudios.com/ Does anyone have advice on the best approach on this method or other things to consider? This has been working pretty smoothly so far, but I just have this sneaking suspicion there might be a better way to do this. Im curious if there might be a way to have Flash load the XHTML page itself into and XML node, and if this would even make sense. Or is my current approach a pretty solid one? -- Jordan Dobson [EMAIL PROTECTED] ofc 206.622.0408 ext:105 aim thesquadjordan web madebysquad.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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ 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] Custom cursor leaves artifacts on the screen
Oh cool, I didn't know about that method. Yeah, that did it. Thank goodness there was a trivial solution to this problem :) But it's strange that these sorts of problems happen... I was sure flash would only update the screen during the next frame redraw step... it seems like moving stuff on a MouseEvent and not on an EnterFrame event would mess things up somehow and the player wouldn't know which dirty regions to repaint. Thank you very much for the help. On 5/24/07, Muzak <[EMAIL PROTECTED]> wrote: Have you tried updateAfterEvent() ? http://livedocs.adobe.com/flash/9.0/main/1233.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html#updateAfterEvent() regards, Muzak - Original Message - From: "Frederico Ferro Schuh" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 5:30 PM Subject: [Flashcoders] Custom cursor leaves artifacts on the screen > Hello coders, > > I've been having a problem with custom cursors in AS3, where it sometimes > leaves dirt on the screen, as if it hadn't been repainted on the region > where the cursor just passed. It's also noticeable that the cursor's shape > gets cut off while it moves, like some kind of tearing. > > The cursor is a simple MovieClip added to the stage, and the mouse cursor is > hidden, though this doesn't seem to have anything to do with the problem > itself. > Has anyone come by a similar problem? > > Thanks. > > -- > Frederico Ferro Schuh ___ 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 -- Frederico Ferro Schuh ICQ 20486081 MSN [EMAIL PROTECTED] ___ 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] textArea doesn't scroll far enough
my solution? I don't use the crappy v2 components. Adobe V2 components = the devil. Believe me when i say it will be time well spent to create or find your own solution. On 5/24/07, Marc Hoffman <[EMAIL PROTECTED]> wrote: I've just added a couple of line breaks to the xml text: myTextField.htmlText = theXmlText + ""; Hackish, but easy to implement. At 10:44 AM 5/24/2007, you wrote: >I've run into this issue before as well. My (hackish) work-around was to >create an empty MovieClip right after the text, set its alpha to 0, set its >height to like, 50 or some arbitrary number to force the scrollbars to >scroll beyond the text. Very hackish and not the best solution, but I had to >get it working right then and there so > > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Allandt >Bik-Elliott (Receptacle) >Sent: Thursday, May 24, 2007 12:30 PM >To: flashcoders >Subject: [Flashcoders] textArea doesn't scroll far enough > >gah - not my day today > >i've got my textArea loading up a bunch of text from a string, from >an array loaded from an xml file (erk), but the scrollbars for the >component don't scroll far enough (either the bar or the arrows) - >i've dragged down the text with my cursor and the extra lines are there. > >does anyone with any experience of using these components know of any >reason this might happen? >___ >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
Re: [Flashcoders] class file updated, but .aso not updated?
Figured it out: I'm using runtime shared libraries. These are automatically imported in frame 1. The classes in my movie are not exported until frame 5! So, the version of the compiled classes that I'm getting are from the rsl's !!! We're using rsl's to share assets and not code, but one specific rsl it also compiles some of the classes. So, now I'm going into that one and just extracting the assets that will be shared. Whew. I'm so happy that there was a logical explanation. -James On May 24, 2007, at 2:54 PM, James Tu wrote: I'm having a problem that is not directly related to a previous thread on this list about ASO files. Here's my inheritance heirarchy... BaseClass -> VisualBaseClass -> ButtonMessagingBaseClass -> CardBase -> CardSpecial I'm on a Mac OSX 10.4.8 running Flash Professional v8.0. I've updated CardBase, but the changes don't appear! I've deleted ASO files and that didn't work. I've deleted ASO files, quit Flash, restarted and that didn't work. I also tried to add trace statements all the way up to the parent (BaseClass) and those trace statements don't appear. The other curious bit is that I've checked "Omit Trace Actions" but the old trace statements in CardBase and the other onces all the way up to the parent (BaseClass) are still showing!!! CardSpecial...the last one in the chain, behaves correctly...changes take effect, when I "Omit Trace Action" its traces are suppressed! What's going on here? Am I going crazy? Is the Flash file corrupt? (Right now I'm going to try grabbing an older version and see how that behaves) -James ___ 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] Brining XML/XHTML into Flash
I'd love to know if anyone has any advice... on best way to extract text from specific objects of an XHTML page which a SWF is loaded into... then allow the extracted text strings to be available in the SWF. I've built Javascript to extract text from XHTML the page in combination with the use of SWFObject for Javascript detection, Flash detection and to send text extractions to SWF with FlashVars). I believe the FlashVars method has a limit of 64kb which should work in almost every case. Here's a proof of concept I've created: http://hs.squadstudios.com/ Does anyone have advice on the best approach on this method or other things to consider? This has been working pretty smoothly so far, but I just have this sneaking suspicion there might be a better way to do this. Im curious if there might be a way to have Flash load the XHTML page itself into and XML node, and if this would even make sense. Or is my current approach a pretty solid one? -- Jordan Dobson [EMAIL PROTECTED] ofc 206.622.0408 ext:105 aim thesquadjordan web madebysquad.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] splitting the list?
Yea, but the ads are unobtrusive and 90% of the time I don't even notice them. The other 10% are when I look at them just to see what kind of random things are being displayed (I've seen some very strange ads come up and I try to figure out what could have triggered them. It's fun). Forums aren't nearly as convenient. As Ian mentioned, you have to choose to go to them on your own to see what's available. Mailing lists let you keep a central place to go for everything (your mail client of choice). I find mailing lists much more flexible and responsive, as I have full control over how I look at it and I don't have to go out of my way to see if anything has been added to the list. Also, mailing lists feel more like a 'standard' than forums, as they all use the same 'interface', instead of the widely varying software and interfaces for forums. -Andy On 5/24/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote: Gmail is that good in searching your mails, that it pops up advertising related to the words within your (private) mails! Look at the right side! Yeah! Each of us, who is using Gmail for flashcoders is storing the same information - which is the definition of redundance, isn't it? So, don't get me wrong, I like Flashcoders Mailinglist, because it just works for me, but why do Forums or (Google) Groups not work as well? There are at least two german web forums (flashforum.de and flashhilfe.de), which are highly used, but it can't beat the international discussions of Flashcoders. And: I would also not split Flashcoders.. Matthias 2007/5/24, Andy Herrman <[EMAIL PROTECTED]>: > I second that suggestion. Gmail is really good for storing mailing > lists. My account has this one (fairly high traffic) and a couple > gentoo related ones (massively high traffic). Between the two lists I > have over 19000 conversations (which can each have a large number of > individual mails). Mail.app on the mac and thunderbird had problems > dealing with that much stuff if I wanted to search through them, but > gmail's search is pretty much instantaneous. I've found it's much > faster to just search my e-mail account than to try and search the > list archives too. :) > > -Andy > > On 5/23/07, Count Schemula <[EMAIL PROTECTED]> wrote: > > Consider using a Yahoo! or gmail account specifically for this list. > > Helps a lot by threading e-mails with the same header and isolates it > > from your normal or work e-mail account. > > > > On 5/16/07, Nimrod Huberman <[EMAIL PROTECTED]> wrote: > > > This list include very interesting and helpful subjects, but for me its > > > large amount of posts each day make it less useable. > > > > > > Nimrod > > -- > > count_schemula > > ___ > > 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] class file updated, but .aso not updated?
I'm having a problem that is not directly related to a previous thread on this list about ASO files. Here's my inheritance heirarchy... BaseClass -> VisualBaseClass -> ButtonMessagingBaseClass -> CardBase - > CardSpecial I'm on a Mac OSX 10.4.8 running Flash Professional v8.0. I've updated CardBase, but the changes don't appear! I've deleted ASO files and that didn't work. I've deleted ASO files, quit Flash, restarted and that didn't work. I also tried to add trace statements all the way up to the parent (BaseClass) and those trace statements don't appear. The other curious bit is that I've checked "Omit Trace Actions" but the old trace statements in CardBase and the other onces all the way up to the parent (BaseClass) are still showing!!! CardSpecial...the last one in the chain, behaves correctly...changes take effect, when I "Omit Trace Action" its traces are suppressed! What's going on here? Am I going crazy? Is the Flash file corrupt? (Right now I'm going to try grabbing an older version and see how that behaves) -James ___ 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] textArea doesn't scroll far enough
I've just added a couple of line breaks to the xml text: myTextField.htmlText = theXmlText + ""; Hackish, but easy to implement. At 10:44 AM 5/24/2007, you wrote: I've run into this issue before as well. My (hackish) work-around was to create an empty MovieClip right after the text, set its alpha to 0, set its height to like, 50 or some arbitrary number to force the scrollbars to scroll beyond the text. Very hackish and not the best solution, but I had to get it working right then and there so -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 12:30 PM To: flashcoders Subject: [Flashcoders] textArea doesn't scroll far enough gah - not my day today i've got my textArea loading up a bunch of text from a string, from an array loaded from an xml file (erk), but the scrollbars for the component don't scroll far enough (either the bar or the arrows) - i've dragged down the text with my cursor and the extra lines are there. does anyone with any experience of using these components know of any reason this might happen? ___ 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] LoadVars and (non)blocking behavior
Here is the problem: I want to write a function that makes an outside communication with a web server and exhibits to the caller blocking bahavior. That is, I call something like getUserStatus(userid), and it either returns with the value I want from my database (ColfFusion page), or after some reasonable amount of time, if I'm not able to communicate with that page, it returns a special value indicating so. As best as I can tell, what is happening behind the scenes for a LoadVars object is it is essentially forking a new thread to handle this communication asynchronously from what the thread that invoked LoadVars.sendAndLoad() is doing. ActionScript, being a programming language for non-programmers, makes no mention whatsoever of threads, nor do I see any way to call a sleep function or a yeild function on the current thread (i.e., some way to tell 'this' thread to just chill for a sec and let other threads do what they need to do). There is the setInterval() function, but again this appears to simply be forking another thread to periodically call another callback - the code that is calling setInterval() itself essentially returns immediately and then proceeds to do whatever it is doing. But what I want to do next depends on the value I am trying to read. So, I figured, "Fine!" I'll just busy wait until my callback has done what it needs to do. But the problem is that my busy waiting seems to be blocking my callback from doing what it needs to do. Below is my attempt at a blocking function. On the stage I simply have a bunch of dynamic text fields that I set the values of to see what is going on. Regardless of what I set the timeout value to, shortly after that that result_lv.onLoad gets called, I get back a 200 HTTP status, and my expected value is returned from ColdFusion. Unfortunately, my main thread has already seen the timeout by then. So... I'm not seeing how to get this to work right. This must be a common problem people are handling some other way - can someone help me out? // Wouldn't it be nice if Flash's editor were smart enough to auto-indent // with spaces instead of tabs? Then this code would look right when I // paste it. function getLessonStatus(userid, courseid):Object { rv_obj = new Object(); // return value Object // what to do after communication completes... var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success:Boolean) { rv_obj.success = success; loaded_at_ta.text = getTimer(); if (success) { // append 'status' attribute as found in tblStudentProfile rv_obj.status = result_lv.status; } success_ta.text = rv_obj.success; status_ta.text = rv_obj.status; }; result_lv.onHTTPStatus = function(http_return_code:Number) { http_status_ta.text = http_return_code; }; // make HTTP request var send_lv:LoadVars = new LoadVars(); send_lv.userid = userid; send_lv.courseid = courseid; text0.text = "Talking to DB..."; text2.text = LESSON_STATUS_URL; send_lv.sendAndLoad(LESSON_STATUS_URL, result_lv); // I want this function to have blocking behavior, but the communication // via LoadVars is inherently non-blocking (i.e., callback based). Wait // until either TIMEOUT has expired or rv_obj has been updated. var intervalId:Number; var interval:Number = 100; // msec var timeout = 2 * 1000; // msec var start_time:Number = getTimer(); start_time_ta.text = start_time; var now:Number = getTimer(); // busy wait N = 0; while ((rv_obj.success == undefined) && (now - start_time < timeout)) { now = getTimer(); now_ta.text = now; N_ta.text = N; N++; } // OK, did we timeout or is the object updated? if (now - start_time >= timeout) { // TIMED OUT!! rv_obj = new Object(); rv_obj.success = false; rv_obj.timeout = true; text3.text = "TIMED_OUT!"; } else { rv_obj.timeout = false; } return rv_obj; } // function getLessonStatus(userid, courseid):Object var obj:Object = getLessonStatus('some_user_id', 'some_course_id'); success_ta.text = obj.success; status_ta.text = obj.status; ___ 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] textArea doesn't scroll far enough
yeh i've had to do something a bit hackish - a bunch of tags at the end of my script it's not pretty but it is working i tried that .invalidate() method but it didn't seem to do anything thanks for the input, guys On 24 May 2007, at 18:44, David Ngo wrote: I've run into this issue before as well. My (hackish) work-around was to create an empty MovieClip right after the text, set its alpha to 0, set its height to like, 50 or some arbitrary number to force the scrollbars to scroll beyond the text. Very hackish and not the best solution, but I had to get it working right then and there so -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 12:30 PM To: flashcoders Subject: [Flashcoders] textArea doesn't scroll far enough gah - not my day today i've got my textArea loading up a bunch of text from a string, from an array loaded from an xml file (erk), but the scrollbars for the component don't scroll far enough (either the bar or the arrows) - i've dragged down the text with my cursor and the extra lines are there. does anyone with any experience of using these components know of any reason this might happen? ___ 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] Need help creating an old-skool arc or circularscrollbar
Seems to me you guys are doing this the hard way. Why not just draw a curved line (with the line tool) then use code to attach/snap the handle to the line, and then just use actionscript to track the Y position of the handle and scroll accordingly? Trig for a simple scroller seems a little convoluted way of going about this simple thing...The end user will never know or appreciate the difference anyway. On 5/24/07, Ash Warren <[EMAIL PROTECTED]> wrote: Thank you both! This is great. I will try and apply the scroller to this code today. Ash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Dittgen Sent: Thursday, May 24, 2007 1:35 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Need help creating an old-skool arc or circularscrollbar Mark is true. Respect! :-) I used Math.atan(), too and if/else to know, in which quadrant of the circle the drag element is moved. I uploaded my quick&dirty source now. Please be kind! :-) http://lizu.net/circle.swf http://lizu.net/circleSrc.zip it consists of the circle drag mechanism, but I think, the scrolling can be easily applied then with a 'rule of three' and the angle. hth, Matthias 2007/5/23, Mark Winterhalder <[EMAIL PROTECTED]>: > On 5/23/07, Jesse Graupmann <[EMAIL PROTECTED]> wrote: > > > > Trigonometry > > No need, apart from Math.atan2() to get the result -- assuming the > anchor point of the container is in the middle, just normalize the > vector from the centre to the mouse and then scale it to the desired > radius, that's the position of the handle. > > About like this: > > var xmouse = ... > var ymouse = ... > var radius = ... > > var magnitude = Math.sqrt( xmouse * xmouse + ymouse * ymouse ); > > var x = xmouse / magnitude * radius; > var y = ymouss / magnitude * radius; > var angle = Math.atan( ymouse, xmouse ); // devide by Math.PI * 180 if you wish > // now set the position of the handle to x, y and broadcast an event > with the angle. > > If you want to set it to a certain angle (in radians), it should be > something like... > > var x = Math.cos( angle ) * radius; > var y = Math.sin( angle ) * -radius; > > ...which might turn into the wrong direction or be set off by > Math.PI/2, in that case, flip the sign of y and/or add/subtract > Math.PI/2 to the angle. > > HTH, > Mark > ___ > 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 -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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] textArea doesn't scroll far enough
I've run into this issue before as well. My (hackish) work-around was to create an empty MovieClip right after the text, set its alpha to 0, set its height to like, 50 or some arbitrary number to force the scrollbars to scroll beyond the text. Very hackish and not the best solution, but I had to get it working right then and there so -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 12:30 PM To: flashcoders Subject: [Flashcoders] textArea doesn't scroll far enough gah - not my day today i've got my textArea loading up a bunch of text from a string, from an array loaded from an xml file (erk), but the scrollbars for the component don't scroll far enough (either the bar or the arrows) - i've dragged down the text with my cursor and the extra lines are there. does anyone with any experience of using these components know of any reason this might happen? ___ 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] textArea doesn't scroll far enough
try calling invalidate on the component instance after setting/changing the text: UIObject.invalidate() http://livedocs.macromedia.com/flash/8/main/4199.html regards, Muzak - Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: "flashcoders" Sent: Thursday, May 24, 2007 6:30 PM Subject: [Flashcoders] textArea doesn't scroll far enough > gah - not my day today > > i've got my textArea loading up a bunch of text from a string, from an array > loaded from an xml file (erk), but the scrollbars > for the component don't scroll far enough (either the bar or the arrows) - > i've dragged down the text with my cursor and the > extra lines are there. > > does anyone with any experience of using these components know of any reason > this might happen? ___ 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] Re: [solved - bug] removeMovieClip scoped incorrectly?
lovely - thankyou :) On 24 May 2007, at 17:20, Muzak wrote: That's not a bug, but a feature (an annoying one, I agree) of the v2 component Framework. Use the DepthManager when working with components (which is mentioned in most of the examples in the docs that use getNextHighestDepth()) mx.managers.DepthManager Components Language Reference > DepthManager class regards, Muzak - Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 6:06 PM Subject: [Flashcoders] Re: [solved - bug] removeMovieClip scoped incorrectly? bah just found the reason i used this.getNextHighestDepth() in the createClassObject() for the depth which puts it beyond the reach of removeMovieClip seems like a bit of a bug the reasons can be found in the comments here http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/ common/ html/wwhelp.htm?context=Flash_MX_2004&file=1647.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] removeMovieClip scoped incorrectly?
it's placed procedurally using createClassObject() On 24 May 2007, at 17:10, Muzak wrote: If the TextArea (or whatever object) is placed on stage manually, it will reside on a negative depth. Objects with a negative depth can not be removed through ActionScript, unless they're swapped to a positive depth. Use the DepthManager to switch a component's depth to a positive one before removal. import mx.controls.TextArea; import mx.managers.DepthManager; var _ta:TextArea; _ta.text = "Hello World"; _ta.setDepthTo(DepthManager.kTop); _ta.removeMovieClip(); regards, Muzak - Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: "flashcoders" Sent: Thursday, May 24, 2007 5:21 PM Subject: [Flashcoders] removeMovieClip scoped incorrectly? hi folks i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think it may be a scope issue but i can't see why the function is ___ 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] textArea doesn't scroll far enough
gah - not my day today i've got my textArea loading up a bunch of text from a string, from an array loaded from an xml file (erk), but the scrollbars for the component don't scroll far enough (either the bar or the arrows) - i've dragged down the text with my cursor and the extra lines are there. does anyone with any experience of using these components know of any reason this might happen? ___ 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: SPAM-LOW: Re: [Flashcoders] removeMovieClip scoped incorrectly?
tried that too i'm afraid - it's a bug in the flash player (see my other post) thanks for the input guys On 24 May 2007, at 17:07, Derek Vadneau wrote: I'll bet if you trace the movieclip where your class resides from outside the class (on the next frame or after a timeout) you'll find that the movieclip no longer exists. removeMovieClip is being scoped to the class itself, not the Global function removeMovieClip. Just use: _root[thisColumn_txt].removeMovieClip(); Derek Vadneau - Original Message - From: Allandt Bik-Elliott (Receptacle) To: flashcoders@chattyfig.figleaf.com Sent: Thursday, May 24, 2007 11:52 AM Subject: SPAM-LOW: Re: [Flashcoders] removeMovieClip scoped incorrectly? yeh i correct that - still gives me the same jyp ___ 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] Re: [solved - bug] removeMovieClip scoped incorrectly?
That's not a bug, but a feature (an annoying one, I agree) of the v2 component Framework. Use the DepthManager when working with components (which is mentioned in most of the examples in the docs that use getNextHighestDepth()) mx.managers.DepthManager Components Language Reference > DepthManager class regards, Muzak - Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 6:06 PM Subject: [Flashcoders] Re: [solved - bug] removeMovieClip scoped incorrectly? > bah just found the reason > > i used this.getNextHighestDepth() in the createClassObject() for the depth > which puts it beyond the reach of removeMovieClip > > seems like a bit of a bug > > the reasons can be found in the comments here > http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ > html/wwhelp.htm?context=Flash_MX_2004&file=1647.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
Re: [Flashcoders] Custom cursor leaves artifacts on the screen
Have you tried updateAfterEvent() ? http://livedocs.adobe.com/flash/9.0/main/1233.html http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html#updateAfterEvent() regards, Muzak - Original Message - From: "Frederico Ferro Schuh" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 5:30 PM Subject: [Flashcoders] Custom cursor leaves artifacts on the screen > Hello coders, > > I've been having a problem with custom cursors in AS3, where it sometimes > leaves dirt on the screen, as if it hadn't been repainted on the region > where the cursor just passed. It's also noticeable that the cursor's shape > gets cut off while it moves, like some kind of tearing. > > The cursor is a simple MovieClip added to the stage, and the mouse cursor is > hidden, though this doesn't seem to have anything to do with the problem > itself. > Has anyone come by a similar problem? > > Thanks. > > -- > Frederico Ferro Schuh ___ 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] Cairngorm without remoting?
That's great, Muzak. It's right in line with what I thought needed to be done - import the remoting classes and use them only for what's necessary. It does seem like quite a lot of effort for something that should be pretty simple - since the built in XML loading already has events that could be used. cheers, jon On May 24, 2007, at 11:58 AM, Muzak wrote: I don't know if anything like this exists for Cairgorm, I do know that people have written extensions for ARP. One of them is an XMLService written by Christophe Herreman: http://www.herrodius.com/upload/arp_extensions.zip More custom services here http://www.swapdepths.nl/2006/01/27/customservice-and- sharedobjectservice-for-arp/ If all you need/want is an XMLService, try this one (should be the same is the one in arp_extensions.zip though): http://svn1.cvsdude.com/osflash/arp/labs/cherreman/actionscript/org/ osflash/arp/xml/ regards, Muzak ___ 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] removeMovieClip scoped incorrectly?
If the TextArea (or whatever object) is placed on stage manually, it will reside on a negative depth. Objects with a negative depth can not be removed through ActionScript, unless they're swapped to a positive depth. Use the DepthManager to switch a component's depth to a positive one before removal. import mx.controls.TextArea; import mx.managers.DepthManager; var _ta:TextArea; _ta.text = "Hello World"; _ta.setDepthTo(DepthManager.kTop); _ta.removeMovieClip(); regards, Muzak - Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: "flashcoders" Sent: Thursday, May 24, 2007 5:21 PM Subject: [Flashcoders] removeMovieClip scoped incorrectly? > hi folks > > i'm trying to get a function to remove a movieclip (actually a textArea > class object) but i've having a bit of trouble - i think > it may be a scope issue but i can't see why > > the function is > ___ 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: SPAM-LOW: Re: [Flashcoders] removeMovieClip scoped incorrectly?
I'll bet if you trace the movieclip where your class resides from outside the class (on the next frame or after a timeout) you'll find that the movieclip no longer exists. removeMovieClip is being scoped to the class itself, not the Global function removeMovieClip. Just use: _root[thisColumn_txt].removeMovieClip(); Derek Vadneau - Original Message - From: Allandt Bik-Elliott (Receptacle) To: flashcoders@chattyfig.figleaf.com Sent: Thursday, May 24, 2007 11:52 AM Subject: SPAM-LOW: Re: [Flashcoders] removeMovieClip scoped incorrectly? yeh i correct that - still gives me the same jyp ___ 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] Re: [solved - bug] removeMovieClip scoped incorrectly?
bah just found the reason i used this.getNextHighestDepth() in the createClassObject() for the depth which puts it beyond the reach of removeMovieClip seems like a bit of a bug the reasons can be found in the comments here http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ html/wwhelp.htm?context=Flash_MX_2004&file=1647.html On 24 May 2007, at 16:52, Allandt Bik-Elliott (Receptacle) wrote: yeh i correct that - still gives me the same jyp On 24 May 2007, at 16:39, Jason Law wrote: Make sure your closing your dynamic var. removeMovieClip(_root[thisColumn_txt); should be removeMovieClip(_root[thisColumn_txt]); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 11:22 AM To: flashcoders Subject: [Flashcoders] removeMovieClip scoped incorrectly? hi folks i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think it may be a scope issue but i can't see why the function is function changeLayout(layout:Number, textContent:String, image:String, textContent2:String):Void { //don't remove other columns if 3 is passed to layout if (layout != 3) { //otherwise get variables var layout:Number = layout; var textContent:String = textContent; var image:String = image; var textContent2:String = textContent2; //reset layout for (var i:Number = 0; i < 3; i++) { //use i to make column name var this_i = i+1; var thisColumn_mc:String = "column"+this_i+"_mc"; var thisColumn_txt:String = "column"+this_i+"_txt"; //these work with no problems _root[thisColumn_txt]._visible = false; _root[thisColumn_txt].text = ""; //however this doesn't seem to be working removeMovieClip(_root[thisColumn_txt); //trace reveals that the thisColumn_txt in the loop, once used, does not disappear after the removeMovieClip --> thisColumn_txt: [object Object] trace("thisColumn_txt "+thisColumn_txt+": "+_root [thisColumn_txt].toString()); //the rest works perfectly var currentWidth = _root[thisColumn_mc]._width; var thisTween:Object = new Tween(_root[thisColumn_mc], "_width", Strong.easeOut, currentWidth, 0, 1, true); thisTween.onMotionFinished = function() { if (i == 3) { if (layout == 1) { setupColumn(150, 1, 425, textContent, image); } else if (layout == 2) { setupColumn(150, 1, 200, textContent, image); setupColumn(350, 2, 225, textContent2); } } }; } } else { setupColumn(575, 3, 180, textContent); } } what's really strange is that other items using the same path to the textArea, _root[thisColumn_txt], work flawlessly but removeMovieClip does not. I've tried removeMovieClip with textArea class objects in a previous draft with no problems (although it didn't have the dynamically generated name) can anyone make sense of this? thankyou obie ___ 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ 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] Cairngorm without remoting?
I don't know if anything like this exists for Cairgorm, I do know that people have written extensions for ARP. One of them is an XMLService written by Christophe Herreman: http://www.herrodius.com/upload/arp_extensions.zip More custom services here http://www.swapdepths.nl/2006/01/27/customservice-and-sharedobjectservice-for-arp/ If all you need/want is an XMLService, try this one (should be the same is the one in arp_extensions.zip though): http://svn1.cvsdude.com/osflash/arp/labs/cherreman/actionscript/org/osflash/arp/xml/ regards, Muzak - Original Message - From: "Jon Bradley" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, May 24, 2007 4:18 PM Subject: [Flashcoders] Cairngorm without remoting? > Has anyone here approached Cairngorm development without remoting services? > > I'm developing in Flash 8 still - no case to go to Flash 9 yet since the > penetration is way less than the business requirements. > > I've got a prototype I'm putting together and am using Delegates that return > stub data right now to my Commands. In the end, the > data will be loaded from a .NET application in the form of XML, not using > Remoting objects. > > What I'd like to know is if anyone has implemented other service types, and > how, with Cairngorm in Flash (0.99 at the moment). > The Responder framework is just not going to work, obviously, so I'd rather > use XML calls that have their onResult and onFault > events returned to the Delegate that is making the request. > > Also, if any of the cairngorm team is still listening on the Flashcoders > list, is there a newer package available with the > org.osflash project structure? I'm still using the nevis formatting. From > what I gather the only change is to the package > formatting ... nothing else. > > Any takers? > > thanks for any input. > > best, > > jon > ___ 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] removeMovieClip scoped incorrectly?
yeh i correct that - still gives me the same jyp On 24 May 2007, at 16:39, Jason Law wrote: Make sure your closing your dynamic var. removeMovieClip(_root[thisColumn_txt); should be removeMovieClip(_root[thisColumn_txt]); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 11:22 AM To: flashcoders Subject: [Flashcoders] removeMovieClip scoped incorrectly? hi folks i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think it may be a scope issue but i can't see why the function is function changeLayout(layout:Number, textContent:String, image:String, textContent2:String):Void { //don't remove other columns if 3 is passed to layout if (layout != 3) { //otherwise get variables var layout:Number = layout; var textContent:String = textContent; var image:String = image; var textContent2:String = textContent2; //reset layout for (var i:Number = 0; i < 3; i++) { //use i to make column name var this_i = i+1; var thisColumn_mc:String = "column"+this_i+"_mc"; var thisColumn_txt:String = "column"+this_i+"_txt"; //these work with no problems _root[thisColumn_txt]._visible = false; _root[thisColumn_txt].text = ""; //however this doesn't seem to be working removeMovieClip(_root[thisColumn_txt); //trace reveals that the thisColumn_txt in the loop, once used, does not disappear after the removeMovieClip --> thisColumn_txt: [object Object] trace("thisColumn_txt "+thisColumn_txt+": "+_root [thisColumn_txt].toString()); //the rest works perfectly var currentWidth = _root[thisColumn_mc]._width; var thisTween:Object = new Tween(_root[thisColumn_mc], "_width", Strong.easeOut, currentWidth, 0, 1, true); thisTween.onMotionFinished = function() { if (i == 3) { if (layout == 1) { setupColumn(150, 1, 425, textContent, image); } else if (layout == 2) { setupColumn(150, 1, 200, textContent, image); setupColumn(350, 2, 225, textContent2); } } }; } } else { setupColumn(575, 3, 180, textContent); } } what's really strange is that other items using the same path to the textArea, _root[thisColumn_txt], work flawlessly but removeMovieClip does not. I've tried removeMovieClip with textArea class objects in a previous draft with no problems (although it didn't have the dynamically generated name) can anyone make sense of this? thankyou obie ___ 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ 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] removeMovieClip scoped incorrectly?
Make sure your closing your dynamic var. removeMovieClip(_root[thisColumn_txt); should be removeMovieClip(_root[thisColumn_txt]); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 11:22 AM To: flashcoders Subject: [Flashcoders] removeMovieClip scoped incorrectly? hi folks i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think it may be a scope issue but i can't see why the function is function changeLayout(layout:Number, textContent:String, image:String, textContent2:String):Void { //don't remove other columns if 3 is passed to layout if (layout != 3) { //otherwise get variables var layout:Number = layout; var textContent:String = textContent; var image:String = image; var textContent2:String = textContent2; //reset layout for (var i:Number = 0; i < 3; i++) { //use i to make column name var this_i = i+1; var thisColumn_mc:String = "column"+this_i+"_mc"; var thisColumn_txt:String = "column"+this_i+"_txt"; //these work with no problems _root[thisColumn_txt]._visible = false; _root[thisColumn_txt].text = ""; //however this doesn't seem to be working removeMovieClip(_root[thisColumn_txt); //trace reveals that the thisColumn_txt in the loop, once used, does not disappear after the removeMovieClip --> thisColumn_txt: [object Object] trace("thisColumn_txt "+thisColumn_txt+": "+_root [thisColumn_txt].toString()); //the rest works perfectly var currentWidth = _root[thisColumn_mc]._width; var thisTween:Object = new Tween(_root[thisColumn_mc], "_width", Strong.easeOut, currentWidth, 0, 1, true); thisTween.onMotionFinished = function() { if (i == 3) { if (layout == 1) { setupColumn(150, 1, 425, textContent, image); } else if (layout == 2) { setupColumn(150, 1, 200, textContent, image); setupColumn(350, 2, 225, textContent2); } } }; } } else { setupColumn(575, 3, 180, textContent); } } what's really strange is that other items using the same path to the textArea, _root[thisColumn_txt], work flawlessly but removeMovieClip does not. I've tried removeMovieClip with textArea class objects in a previous draft with no problems (although it didn't have the dynamically generated name) can anyone make sense of this? thankyou obie ___ 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ 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] removeMovieClip scoped incorrectly?
just corrected a typo in the removeMovieClip statement but the problem still stands hi folks i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think it may be a scope issue but i can't see why the function is function changeLayout(layout:Number, textContent:String, image:String, textContent2:String):Void { //don't remove other columns if 3 is passed to layout if (layout != 3) { //otherwise get variables var layout:Number = layout; var textContent:String = textContent; var image:String = image; var textContent2:String = textContent2; //reset layout for (var i:Number = 0; i < 3; i++) { //use i to make column name var this_i = i+1; var thisColumn_mc:String = "column"+this_i+"_mc"; var thisColumn_txt:String = "column"+this_i+"_txt"; //these work with no problems _root[thisColumn_txt]._visible = false; _root[thisColumn_txt].text = ""; //however this doesn't seem to be working removeMovieClip(_root[thisColumn_txt]); //trace reveals that the thisColumn_txt in the loop, once used, does not disappear after the removeMovieClip --> thisColumn_txt: [object Object] trace("thisColumn_txt "+thisColumn_txt+": "+_root [thisColumn_txt].toString()); //the rest works perfectly var currentWidth = _root[thisColumn_mc]._width; var thisTween:Object = new Tween(_root[thisColumn_mc], "_width", Strong.easeOut, currentWidth, 0, 1, true); thisTween.onMotionFinished = function() { if (i == 3) { if (layout == 1) { setupColumn(150, 1, 425, textContent, image); } else if (layout == 2) { setupColumn(150, 1, 200, textContent, image); setupColumn(350, 2, 225, textContent2); } } }; } } else { setupColumn(575, 3, 180, textContent); } } what's really strange is that other items using the same path to the textArea, _root[thisColumn_txt], work flawlessly but removeMovieClip does not. I've tried removeMovieClip with textArea class objects in a previous draft with no problems (although it didn't have the dynamically generated name) can anyone make sense of this? thankyou obie ___ 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] Custom cursor leaves artifacts on the screen
Hello coders, I've been having a problem with custom cursors in AS3, where it sometimes leaves dirt on the screen, as if it hadn't been repainted on the region where the cursor just passed. It's also noticeable that the cursor's shape gets cut off while it moves, like some kind of tearing. The cursor is a simple MovieClip added to the stage, and the mouse cursor is hidden, though this doesn't seem to have anything to do with the problem itself. Has anyone come by a similar problem? Thanks. -- Frederico Ferro Schuh ___ 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] removeMovieClip scoped incorrectly?
hi folks i'm trying to get a function to remove a movieclip (actually a textArea class object) but i've having a bit of trouble - i think it may be a scope issue but i can't see why the function is function changeLayout(layout:Number, textContent:String, image:String, textContent2:String):Void { //don't remove other columns if 3 is passed to layout if (layout != 3) { //otherwise get variables var layout:Number = layout; var textContent:String = textContent; var image:String = image; var textContent2:String = textContent2; //reset layout for (var i:Number = 0; i < 3; i++) { //use i to make column name var this_i = i+1; var thisColumn_mc:String = "column"+this_i+"_mc"; var thisColumn_txt:String = "column"+this_i+"_txt"; //these work with no problems _root[thisColumn_txt]._visible = false; _root[thisColumn_txt].text = ""; //however this doesn't seem to be working removeMovieClip(_root[thisColumn_txt); //trace reveals that the thisColumn_txt in the loop, once used, does not disappear after the removeMovieClip --> thisColumn_txt: [object Object] trace("thisColumn_txt "+thisColumn_txt+": "+_root [thisColumn_txt].toString()); //the rest works perfectly var currentWidth = _root[thisColumn_mc]._width; var thisTween:Object = new Tween(_root[thisColumn_mc], "_width", Strong.easeOut, currentWidth, 0, 1, true); thisTween.onMotionFinished = function() { if (i == 3) { if (layout == 1) { setupColumn(150, 1, 425, textContent, image); } else if (layout == 2) { setupColumn(150, 1, 200, textContent, image); setupColumn(350, 2, 225, textContent2); } } }; } } else { setupColumn(575, 3, 180, textContent); } } what's really strange is that other items using the same path to the textArea, _root[thisColumn_txt], work flawlessly but removeMovieClip does not. I've tried removeMovieClip with textArea class objects in a previous draft with no problems (although it didn't have the dynamically generated name) can anyone make sense of this? thankyou obie ___ 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] Cairngorm without remoting?
Has anyone here approached Cairngorm development without remoting services? I'm developing in Flash 8 still - no case to go to Flash 9 yet since the penetration is way less than the business requirements. I've got a prototype I'm putting together and am using Delegates that return stub data right now to my Commands. In the end, the data will be loaded from a .NET application in the form of XML, not using Remoting objects. What I'd like to know is if anyone has implemented other service types, and how, with Cairngorm in Flash (0.99 at the moment). The Responder framework is just not going to work, obviously, so I'd rather use XML calls that have their onResult and onFault events returned to the Delegate that is making the request. Also, if any of the cairngorm team is still listening on the Flashcoders list, is there a newer package available with the org.osflash project structure? I'm still using the nevis formatting. From what I gather the only change is to the package formatting ... nothing else. Any takers? thanks for any input. best, jon ___ 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] Moving links in a mc let the link stuck somewhere
This is really odd behavior so I would assume it is some issue with the code. It is possible to do what you want, but there is no way to help unless you post your code. That is most likely why you are getting no response. On May 24, 2007, at 6:42 AM, dr.ache wrote: is there no one who encountered the same problem? should have been an issue somewhere else... dr.ache schrieb: hi coders. you better watch it by yourself. on the following url: http://www.4inloop.de/typographer start the typographer, close the first upcoming tab, open the LINK tab BUT close it before activating one link... in so going and click again on the LINK tab - not the tab opens, but one those links... when you click again elsewhere on the link slider ANOTHER link opens up... it seems if all the links got stuck on that position and do not leave the stage with the closing tab. any thoughts? thanks, dr.ache ___ 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] Need help creating an old-skool arc or circularscrollbar
Thank you both! This is great. I will try and apply the scroller to this code today. Ash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Dittgen Sent: Thursday, May 24, 2007 1:35 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Need help creating an old-skool arc or circularscrollbar Mark is true. Respect! :-) I used Math.atan(), too and if/else to know, in which quadrant of the circle the drag element is moved. I uploaded my quick&dirty source now. Please be kind! :-) http://lizu.net/circle.swf http://lizu.net/circleSrc.zip it consists of the circle drag mechanism, but I think, the scrolling can be easily applied then with a 'rule of three' and the angle. hth, Matthias 2007/5/23, Mark Winterhalder <[EMAIL PROTECTED]>: > On 5/23/07, Jesse Graupmann <[EMAIL PROTECTED]> wrote: > > > > Trigonometry > > No need, apart from Math.atan2() to get the result -- assuming the > anchor point of the container is in the middle, just normalize the > vector from the centre to the mouse and then scale it to the desired > radius, that's the position of the handle. > > About like this: > > var xmouse = ... > var ymouse = ... > var radius = ... > > var magnitude = Math.sqrt( xmouse * xmouse + ymouse * ymouse ); > > var x = xmouse / magnitude * radius; > var y = ymouss / magnitude * radius; > var angle = Math.atan( ymouse, xmouse ); // devide by Math.PI * 180 if you wish > // now set the position of the handle to x, y and broadcast an event > with the angle. > > If you want to set it to a certain angle (in radians), it should be > something like... > > var x = Math.cos( angle ) * radius; > var y = Math.sin( angle ) * -radius; > > ...which might turn into the wrong direction or be set off by > Math.PI/2, in that case, flip the sign of y and/or add/subtract > Math.PI/2 to the angle. > > HTH, > Mark > ___ > 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] sendandload method fails inside a frameset.
hi glen, I just found out that the problem is that 1) you r right, I should use the object instead of the frame name. and 2) the line that attibutes the onLoad method to a outside function wasn't working. Once I put together the onLoad mehtod inside the same function that i was calling the sendandload it worked. I guess it was a scope problem, but still, I already used loadvars associating the onLoad to an outside function just like the first example and it worked. anyway thanks for the valuable help and this is the final code: lvEmailSnd = new LoadVars(); lvEmailSnd.email = txtEmail.text; lvEmailSnd.dataRecup = myDateStr; lvEmailSnd.onLoad = _root.retornoBuscaEmail; <- wasn't working, changed to: lvEmailSnd.onLoad = function() { code, code, code. } lvEmailSnd.sendAndLoad("usuarios/procuraemail.asp",lvEmailSnd,"POST"); - Original Message - From: "Glen Pike" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 23, 2007 8:05 PM Subject: Re: [Flashcoders] sendandload method fails inside a frameset. Hi, With LoadVars.sendAndLoad() the second parameter is the name of an object not a frame that will receive data, e.g. mSendVars = new LoadVars(); mLoadVars = new LoadVars(); mSendVars.sendAndLoad(mPostURL, mLoadVars, "POST"); The onload event should be fired for the target, so. mLoadVars.onLoad = function(success:Boolean) { trace(stMail); }; You don't have to use 2 LoadVars objects, you can use them both to send and receive data if you like: mLoadVars.sendAndLoad(mPostURL, mLoadVars, "POST"); Hope this helps... Glen Rodrigo Augusto Guerra wrote: hi all, I'm having some problems using sendandload method within a html frame. I have an asp page that is a frameset with 2 rows, header and content. the content frame name is "principal". Took me some time to discover first of all that I need pass the frame name in the sendandload method, as a return object otherwise the values *are not* received correctly by the asp page (at least I wasn't able to do it). In the principal frame, I have a swf that calls a asp page that do some DB check and return a variable/value to flash( eg: stMail=0) . Testing with *send* method it works and I can see the result displayed inside the frame by the asp response.write. But when I try to use sendAndLoad looks like that it doesn't execute the onLoad method. I believe that this is due to the fact that I specify the *frame name* in the LoadVars return object,but if i don't the asp page will not receive the values from flash and continue the processing in the asp page. I also tried specify a function for the onLoad without success. How the object knows what it should execute when loads if in the object parameter i specify the frame name? my code: lvEmailSnd = new LoadVars(); lvEmailSnd.email = txtEmail.text; lvEmailSnd.dataRecup = myDateStr; lvEmailSnd.onLoad = _root.retornoBuscaEmail; lvEmailSnd.sendAndLoad("usuarios/procuraemail.asp","principal","POST"); here dosen't work // lvEmailSnd.send("usuarios/procuraemail.asp","principal","POST"); // here works and my onload function (never ever called back) : function retornoBuscaEmail(success){ mytext.text = success } any help will be *very* welcome. thanks ___ 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] splitting the list?
works for me, but why do Forums or (Google) Groups not work as well? Because you have to remember to log in. Forums and Groups are a 'go and look' solution, whereas mailing lists are a 'here's something to look at!' solution. Personally, I subscribe to a whole bunch of mailing lists. The mails come in, and I at least notice the titles. If I had to go and visit the same number of forums instead, I wouldn't read half the lists. Ian On 5/24/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote: Gmail is that good in searching your mails, that it pops up advertising related to the words within your (private) mails! Look at the right side! Yeah! Each of us, who is using Gmail for flashcoders is storing the same information - which is the definition of redundance, isn't it? So, don't get me wrong, I like Flashcoders Mailinglist, because it just works for me, but why do Forums or (Google) Groups not work as well? There are at least two german web forums (flashforum.de and flashhilfe.de), which are highly used, but it can't beat the international discussions of Flashcoders. And: I would also not split Flashcoders.. ___ 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] splitting the list?
Gmail is that good in searching your mails, that it pops up advertising related to the words within your (private) mails! Look at the right side! Yeah! Each of us, who is using Gmail for flashcoders is storing the same information - which is the definition of redundance, isn't it? So, don't get me wrong, I like Flashcoders Mailinglist, because it just works for me, but why do Forums or (Google) Groups not work as well? There are at least two german web forums (flashforum.de and flashhilfe.de), which are highly used, but it can't beat the international discussions of Flashcoders. And: I would also not split Flashcoders.. Matthias 2007/5/24, Andy Herrman <[EMAIL PROTECTED]>: I second that suggestion. Gmail is really good for storing mailing lists. My account has this one (fairly high traffic) and a couple gentoo related ones (massively high traffic). Between the two lists I have over 19000 conversations (which can each have a large number of individual mails). Mail.app on the mac and thunderbird had problems dealing with that much stuff if I wanted to search through them, but gmail's search is pretty much instantaneous. I've found it's much faster to just search my e-mail account than to try and search the list archives too. :) -Andy On 5/23/07, Count Schemula <[EMAIL PROTECTED]> wrote: > Consider using a Yahoo! or gmail account specifically for this list. > Helps a lot by threading e-mails with the same header and isolates it > from your normal or work e-mail account. > > On 5/16/07, Nimrod Huberman <[EMAIL PROTECTED]> wrote: > > This list include very interesting and helpful subjects, but for me its > > large amount of posts each day make it less useable. > > > > Nimrod > -- > count_schemula > ___ > 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] splitting the list?
I second that suggestion. Gmail is really good for storing mailing lists. My account has this one (fairly high traffic) and a couple gentoo related ones (massively high traffic). Between the two lists I have over 19000 conversations (which can each have a large number of individual mails). Mail.app on the mac and thunderbird had problems dealing with that much stuff if I wanted to search through them, but gmail's search is pretty much instantaneous. I've found it's much faster to just search my e-mail account than to try and search the list archives too. :) -Andy On 5/23/07, Count Schemula <[EMAIL PROTECTED]> wrote: Consider using a Yahoo! or gmail account specifically for this list. Helps a lot by threading e-mails with the same header and isolates it from your normal or work e-mail account. On 5/16/07, Nimrod Huberman <[EMAIL PROTECTED]> wrote: > This list include very interesting and helpful subjects, but for me its > large amount of posts each day make it less useable. > > Nimrod -- count_schemula ___ 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] Moving links in a mc let the link stuck somewhere
is there no one who encountered the same problem? should have been an issue somewhere else... dr.ache schrieb: hi coders. you better watch it by yourself. on the following url: http://www.4inloop.de/typographer start the typographer, close the first upcoming tab, open the LINK tab BUT close it before activating one link... in so going and click again on the LINK tab - not the tab opens, but one those links... when you click again elsewhere on the link slider ANOTHER link opens up... it seems if all the links got stuck on that position and do not leave the stage with the closing tab. any thoughts? thanks, dr.ache ___ 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] upgrading AMFPHP code
First of all, make sure you have the AS2 Remoting components for Flash 8 installed: http://www.adobe.com/products/flashremoting/downloads/components/ Once installed, you should have a look at the docs that come with it. When creating a Service instance, you can pass a 4th parameter, which is the reponder and will handle Result and Fault events There's no onStatus event with the AS2 version, it's now called onFault. You should look into the Responder and RelayResponder classes. Just have a look at the docs, there's plenty of examples there. http://livedocs.adobe.com/flashremoting/mx2004/ http://livedocs.adobe.com/flashremoting/mx2004/using_flash_remoting/index.htm http://livedocs.adobe.com/flashremoting/mx2004/actionscript_api_reference/frameset.html regards, Muzak - Original Message - From: "alfonso florio" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 11:22 AM Subject: [Flashcoders] upgrading AMFPHP code > Hi to all, > > i've tried to google to obtain a solution, but no way... > > how can I catch STATUS events generated by the remoting connector? > > with AS 1 remoting: > _root.conn = NetServices.createGatewayConnection(_root.globals.amfGateway); > _root.myService = _root.conn.getService("myservice", this); > _root.conn.onStatus = function(error) { > // code here > }; > > how should I do this within a class and with the actual AS2 syntax > > this.service = new Service(this.gatewayUrl, null, "myservice"); > > i've find a PATCH to AS classes, but I think It's not a great idea... maybe > there is a smarter way > > Thanks in advance > > Alfonso Florio > ___ 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] Q: binary data (JPG) in XML
If you base64 encode the jpeg contents then it should be safe to put in a CDATA node and send over the wire. Cheers, Mischa On 23 May 2007, at 21:25, eric e. dolecki wrote: I have been asked if its possible to have Flash display a JPG thats stored in XML as a binary object (ie. I don't get a path to the JPG, I get the JPG). I have NO idea what this XML looks like yet, but perhaps someone has done this already? I am not very good with BitmapData, etc. yet and unsure if one needs ByteArray stuff or not. Any insight would be good ;) - Eric ___ 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] upgrading AMFPHP code
Dear all, dear al, with as2 remoting you must / can / may :) use the Responder Object. All you need to do is to pass the Responder as the second parameter for your Service constructor like so : // responder class class MyResponderSubclass extends mx.remoting.Responder { // please check the package , i am not really sure but the class name is correct public function MyResponderSubclass() {} public function onResult() { } public function onStatus() { } // private methods . } this.service = new Service(this.gatewayUrl, new MyResponderSubclass() , "myservice"); or var responder:Object = new Object(); responder.onResult = function() { ... code here ... } ; responder.onStatus = function() { ... code here } ; this.service = new Service(this.gatewayUrl, responder , "myservice"); By the way, its kinda best practice to NOT attach event handlers and other 'utililty Objects' directly to root. Better refactor them out to Helper classes or even better write a NetConnection Subclass and a NetConnection Responder subclass and handle all events in there. O'Reilly's Essential Flash Remoting is a great place to learn all about remoting, which by the way rocks Hope I could help you. If anybody finds a flaw in the code, please forgive and correct me. Its been quite a long night. Live long and prosper :) amirrocker.de Am 11:22 AM 5/24/2007 schrieben Sie: Hi to all, i've tried to google to obtain a solution, but no way... how can I catch STATUS events generated by the remoting connector? with AS 1 remoting: _root.conn = NetServices.createGatewayConnection(_root.globals.amfGateway); _root.myService = _root.conn.getService("myservice", this); _root.conn.onStatus = function(error) { // code here }; how should I do this within a class and with the actual AS2 syntax this.service = new Service(this.gatewayUrl, null, "myservice"); i've find a PATCH to AS classes, but I think It's not a great idea... maybe there is a smarter way Thanks in advance Alfonso Florio ___ 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] Coordinates and Stage align in Flexible UIs
Ahhh, of course. That makes sense to me now. Thanks very much. - Kevin On 22/05/07, Muzak <[EMAIL PROTECTED]> wrote: - Original Message - No, you calculate those using the original document width and height and the Stage.width and Stage.height. So you'll have to store the original width and height in variables. var origWidth:Number = 760; var origHeight:Number = 450; var offsetX:Number = (Stage.width - origWidth)/2; var offsetY:Number = (Stage.height - origHeight)/2; regards, Muzak ___ 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
Subject: Re: [Flashcoders] [OT] How to capture swf to .avi?
Hi Chris, Having just tried a lot of different options for converting, in my opinion, export from Flash CS3 is by far the best quality and most stable option if you can live without the user-interaction. It catches all scripted/nested animations nicely, and you could easily fake basic interaction with some code. Everything else I tried either dropped frames or annoyed me in some way. If it's a one-off you can get the trial version from the Adobe site and use that for free which is significantly less than $100. HTH, Pedr Message: 16 Date: Wed, 23 May 2007 11:49:39 -0700 From: "chris duke" <[EMAIL PROTECTED]> Subject: Re: [Flashcoders] [OT] How to capture swf to .avi? To: flashcoders@chattyfig.figleaf.com Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I've used SUPER Video Encoder in the past but it only works for SWFs that dont use any actionscripting. Its free so its probobly worth a shot to check out at least http://www.erightsoft.com/S6Kg1.html -Drakkon On 5/23/07, Marc Hoffman <[EMAIL PROTECTED]> wrote: What software are you using to capture a swf (including audio) and save as .avi? Note: I'm not talking about exporting from the .fla -- this .swf uses scripted tweens and other scripting, so I need to capture the entire animation sequence, including audio, from the .swf in either the browser or the standalone Flash player. Must be Windows-based. Prefer something under U.S. $100. I see some programs online but can't tell if they're professional quality. Thanks, Marc Hoffman ___ 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 -- +44 (0) 788 0600 363 | +44 (0) 127 3208 079 ___ 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] splitting the list?
/agree also the mac mail client has an option to show messages by thread On 24 May 2007, at 09:47, Mikko Törmälä wrote: The method I use is to assign a message filter to automatically move all messages with "flashcoders" in the subject field to another folder. This separates the important messages from the less important (you know... the work ones :) automatically as they arrive. I have set the filter to move them to a local folder on my machine so the messages don't use up space in my IMAP mail account. » Mikko Törmälä » Flash Developer » FWD HELSINKI » tel: +358 50 352 9770 Count Schemula wrote: Consider using a Yahoo! or gmail account specifically for this list. Helps a lot by threading e-mails with the same header and isolates it from your normal or work e-mail account. On 5/16/07, Nimrod Huberman <[EMAIL PROTECTED]> wrote: This list include very interesting and helpful subjects, but for me its large amount of posts each day make it less useable. Nimrod ___ 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] upgrading AMFPHP code
Hi to all, i've tried to google to obtain a solution, but no way... how can I catch STATUS events generated by the remoting connector? with AS 1 remoting: _root.conn = NetServices.createGatewayConnection(_root.globals.amfGateway); _root.myService = _root.conn.getService("myservice", this); _root.conn.onStatus = function(error) { // code here }; how should I do this within a class and with the actual AS2 syntax this.service = new Service(this.gatewayUrl, null, "myservice"); i've find a PATCH to AS classes, but I think It's not a great idea... maybe there is a smarter way Thanks in advance Alfonso Florio ___ 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] splitting the list?
The method I use is to assign a message filter to automatically move all messages with "flashcoders" in the subject field to another folder. This separates the important messages from the less important (you know... the work ones :) automatically as they arrive. I have set the filter to move them to a local folder on my machine so the messages don't use up space in my IMAP mail account. » Mikko Törmälä » Flash Developer » FWD HELSINKI » tel: +358 50 352 9770 Count Schemula wrote: Consider using a Yahoo! or gmail account specifically for this list. Helps a lot by threading e-mails with the same header and isolates it from your normal or work e-mail account. On 5/16/07, Nimrod Huberman <[EMAIL PROTECTED]> wrote: This list include very interesting and helpful subjects, but for me its large amount of posts each day make it less useable. Nimrod ___ 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