Re: [Flashcoders] jFlash and other web-based, non-browser options
Hi, The 'old' Version 3 of Screenweaver would fit to your needs, I think. But I don't know, where and if that version is still available. That was a really cool solution, because you have a Actionscript 2.0 API to Windows System functions. So you could give HaXe and ScreenweaverHX a try, which Nicolas would probably post here himself, if anyone else would. ;-) hth, Matthias 2007/5/21, Andrew Sinning [EMAIL PROTECTED]: Sounds like a good exe shell for Flash, but it requires an exe, i.e. Admin rights. The advantage of Java is that end users in corporate and other environments can typically run Java apps without Admin rights. Steven Sacks wrote: mProjector Andrew Sinning wrote: What are the options for delivering Flash over the web, but outside of the browser? Has anybody used jFlash (a module that allows you to use Flash content in stead of Swing within Java)? Our objective is to deliver an interactive IRC/remote-control which will float over other windows. We'd like to throw up an alert message before letting the end-user close the window, and we think it would be really cool if the window could be semi transparent. A Windows only solution would be acceptable in the short run. 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 ___ 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] remove a Dynamic dropDown menu problem
hey John, send me your new code and I'll take a look today at some point - I think we may want to take this subject off [public] list though. with kind, seb. John Trentini wrote: Sebastian, I have tried implementing your idea but I don't seem to be able to create my dropdown menu any longer. Only the last button is created and without the appropriate label but also at 0,0. Also, should I made the heigth of the container large enough to hold any number of buttons? At the moment it has a fixed height of 30. Thanks JohnT sebastian wrote: hi John, well you want to attach all the sub clips to the holder. so: var containerDepth:Number = 1; this.createEmptyMovieClip(container_mc, containerDepth,thisOne._x-100, 0, 130, 25); this.container_mc.createTextField(mySubText+i,this.getNextHighestDepth()); subBtn = this.container_mc.attachMovie(butt_btn, dropMenuArray[i], this.getNextHighestDepth()); by using the same containerDepth every time you also effectively overwrite the existing depth [another way of deleting]. in general, avoid attaching anything directly to the root, always group thing in container movieclips because then its much easier to do anything to the group [like relocating the x or y position, or in this case, deleting it all]. Also avoid using root in 99% of all cases since you will only create issues later on when you try and nest movieclips in movieclips [for example you decide later to make a preloader and want to nest the menu with other clips in another movieclip... [or swf]; your _root will no longer point to the right location... As far as the 'effort' to learn functions... its really not that hard, it's within your current knowledge if you are writing these kinds of commands already - so its a small step to add to your knowledge, and it will save you time! not cost you more time... trust us. [delegate.create is a specific solution to AS2 code! if you are just adding functions to your existing code on the time line, you would never need to use that] seb. ___ 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] jFlash and other web-based, non-browser options
Andrew, You don't need admin rights to run an .exe file. Typically, you need admin rights to run an _installer_, but if your app is a single self-contained .exe then there's no need for an installer. I have ScreenweaverHX/Flash apps running happily without admin rights on Vista, XP and 98 as a standalone .exe (that self-unpacks into a temporary folder to run). The other solution you might want to take a look at is Apollo, particularly if you are looking at AS3. HTH, Ian On 5/21/07, Andrew Sinning [EMAIL PROTECTED] wrote: Sounds like a good exe shell for Flash, but it requires an exe, i.e. Admin rights. The advantage of Java is that end users in corporate and other environments can typically run Java apps without Admin rights. Steven Sacks wrote: mProjector Andrew Sinning wrote: What are the options for delivering Flash over the web, but outside of the browser? Has anybody used jFlash (a module that allows you to use Flash content in stead of Swing within Java)? Our objective is to deliver an interactive IRC/remote-control which will float over other windows. We'd like to throw up an alert message before letting the end-user close the window, and we think it would be really cool if the window could be semi transparent. A Windows only solution would be acceptable in the short run. 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 ___ 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] Transitions on dynamically loaded swf slow down if you resize that loaded swf file and then play the transition.
Hi Everyone, I have a very unique problem. If i play transitions on dynamically loaded swf files in my container swf file. They all play nicely until i resize them. When i resize the dynamically loaded swf files as per the size of the container file the transition slow down to almost 0speed midway for few millisecond and then play. 2nd problem is that the container file i am referring here is a player which plays a slide show in it. For a better client experience i am loading all swf files into dynamically created child container clips, after loading each swf file i stop it and set their visibility to 0. Now the problem is that When i play the slide on it's turn and make it visible almost none of the transition plays. I have to make it play the other way. I play the slide when it's turn comes, set it's visibility to 1 and then set an interval of almost 500ms after which i play a transition on that slide/clip and it player nicely. I am not sure why is that. Any suggestion or help in this regard will be highly appreciated. -- Thanks Regards, Vivek Lakhanpal. Phone: +91-987-608-2125 (India) Skype ID: lakhanpalv Website: http://viveklakhanpal.spaces.live.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] flash and USB port
What is your usb device? If it accessible trough hyperterminal, zinc can get it, if hyperterminal can't see it, then you would require a driver. Pedro. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of quinrou . Sent: sexta-feira, 18 de Maio de 2007 18:42 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] flash and USB port Joe, i thought about that I also fund a xtra for doing so too but, i would rather avoid using Director. Pedro, I have been checking out Zinc and it has a COMPort class which I beleive is I/O communication. when I did a quick test to check whether it could detect some USB device, I only got connaction with COM1, COM2 which i beleive are the serial and parallel port, no? Anyone else? On 5/18/07, Joe Lister [EMAIL PROTECTED] wrote: Director can almost certainly access USB ports, probably via an Xtra (director plugin). Perhaps you could embed your flash in a Director movie? You would have to do some Lingo coding to access act as a bridge between the USB and flash, but these days there is a pretty good set of Lingo commands for interacting with actionscript. Joe Pedro Furtado wrote: Usb is like a serial port. So zinc does support it, dunno about mProjector. Try it with hyperterminal. hth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of quinrou . Sent: sexta-feira, 18 de Maio de 2007 10:41 To: Flashcoders mailing list Subject: [Flashcoders] flash and USB port Hi all, I was wondering if anyone knew how can Flash 8 or 9 can access the USB port? Would I need to use a third party software such as ZInc or mProjector? I had a look at Zinc and mProjector and it looks like none of them are supporting USB. Does anyone know which application would do that? Many thanks seb ___ 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@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] - Integrating instant messaging with Flash / Flex
Hi all, I'm scoping a project out which is a media based application to be done in as3. I'm looking for information on messaging api's or 3rd party applications for integration with i.e. yahoo/msn messenger etc. into flash/flex. Can anyone point me in the right direction? cheers, MaTT ___ 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] jFlash and other web-based, non-browser options
Ian Thomas wrote: You don't need admin rights to run an .exe file. Typically, you need admin rights to run an _installer_, but if your app is a single self-contained .exe then there's no need for an installer. That's certainly news to me. Everything I have ever built has been broken down into multiple files, so I've never attempted to distribute a single file exe. However, I'm quite skeptical of what you are saying. As I understand it, a typical institutional/corporate privileges configuration restricts non-admin execute rights to only the Programs and Windows folders, which in turn have write privs set to false. This combination makes in impossible for non admins to run anything that hasn't been installed by an admin. (The typical exception being CDs and removable devices.) But this is just what I've inferred. I've never specifically asked. The other problem I've seen is that many users can't download exes through their institutional firewalls. Don't get me wrong. I totally appreciate what you are saying and want you to be right! It just runs contrary to my experience. Thanks for the input! Andrew ___ 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] swfs in pdfs
Sounds possible. Would most situations / people not use PowerPoint for presentations though? And for kiosks you could make a good case for playing the .swf directly via flashplayer, or through a wrapper like Zinc or Director. Just trying to find the advantages of animated PDFs over mroe widely used options. Nik On 5/18/07, Dave Watts [EMAIL PROTECTED] wrote: My thinking is that if this would work as well as ti seems to look, people would use it a lot more. I have the feeling that swf in PDF - while not mutually exclusive - they technologies that are use in two different ways. PDF is still a mainstay of print quality material (so I send you a PDF if I want to be able to print it properly), if I want to send you some (screen based) animation, or even a facility to fill in some on-line form, then I send you some email based item, probably html email or link you to a site that has the respective thing I want you to look at or interact. My understanding of this is that the primary goal of embedding SWF or other multimedia content in PDF is for presentations and kiosk stuff. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.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 -- Nik C ___ 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] jFlash and other web-based, non-browser options
As I understand it, a typical institutional/corporate privileges configuration restricts non-admin execute rights to only the Programs and Windows folders, which in turn have write privs set to false Generally correct. But a Flash projector does not use these folders at all, nor does it change the registry. That's the beauty: all the playback technology is contained in the executable, with no dependencies and no change to the local machine. We've dropped executable Flash projectors on many desktops that have run on computers that are locked down. We've never had a problem, even for firms with very strict security policies like financial institutions. Getting the exe delivered to the desktop is an entirely different story... Randy Tinfow IMAGE PLANT -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: Monday, May 21, 2007 9:34 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] jFlash and other web-based, non-browser options Ian Thomas wrote: You don't need admin rights to run an .exe file. Typically, you need admin rights to run an _installer_, but if your app is a single self-contained .exe then there's no need for an installer. That's certainly news to me. Everything I have ever built has been broken down into multiple files, so I've never attempted to distribute a single file exe. However, I'm quite skeptical of what you are saying. As I understand it, a typical institutional/corporate privileges configuration restricts non-admin execute rights to only the Programs and Windows folders, which in turn have write privs set to false. This combination makes in impossible for non admins to run anything that hasn't been installed by an admin. (The typical exception being CDs and removable devices.) But this is just what I've inferred. I've never specifically asked. The other problem I've seen is that many users can't download exes through their institutional firewalls. Don't get me wrong. I totally appreciate what you are saying and want you to be right! It just runs contrary to my experience. Thanks for the input! Andrew ___ 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] jFlash and other web-based, non-browser options
On 5/21/07, Andrew Sinning [EMAIL PROTECTED] wrote: Ian Thomas wrote: You don't need admin rights to run an .exe file. Typically, you need admin rights to run an _installer_, but if your app is a single self-contained .exe then there's no need for an installer. That's certainly news to me. Everything I have ever built has been broken down into multiple files, so I've never attempted to distribute a single file exe. However, I'm quite skeptical of what you are saying. As I understand it, a typical institutional/corporate privileges configuration restricts non-admin execute rights to only the Programs and Windows folders, which in turn have write privs set to false. This combination makes in impossible for non admins to run anything that hasn't been installed by an admin. (The typical exception being CDs and removable devices.) But this is just what I've inferred. I've never specifically asked. Well - it's certainly something that's never been a problem for us! But now I've double-checked with a friend who works for the Ministry of Defense, and you're quite right - with 3rd-party technology you really can lock down XP to that extent, which is something I hadn't thought about (shows how often I work with big corporations these days!). However, from recent (painful) experience porting a whole bunch of apps to Vista, it's not a problem in out-of-the-box Vista/XP installations (standard restricted-rights users). Sorry for the noise! Ian ___ 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] flash and USB port
That's only true for USB drives. There are plenty of other things that can be plugged into a USB port, like modems, joysticks, missile launchers, etc. -Andy On 5/18/07, Derek Vadneau [EMAIL PROTECTED] wrote: A USB device isn't connected to a port. It is assigned a drive letter and is a removable drive on the computer. You access it like you would access any local resource. You don't need a 3rd party tool to do this, but you do need to be running in the local or trusted sandbox. You can't access a local resource (directly) from a web page. Derek Vadneau Northcode Inc. http://www.northcode.com - Original Message - From: quinrou . To: flashcoders@chattyfig.figleaf.com Sent: Friday, May 18, 2007 1:41 PM Subject: SPAM-LOW: Re: [Flashcoders] flash and USB port Joe, i thought about that I also fund a xtra for doing so too but, i would rather avoid using Director. Pedro, I have been checking out Zinc and it has a COMPort class which I beleive is I/O communication. when I did a quick test to check whether it could detect some USB device, I only got connaction with COM1, COM2 which i beleive are the serial and parallel port, no? Anyone else? ___ 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] Persistent A.I for off-screen enemies
Hey all, I've just finished adding persistent AI to my game engine, and made a little song and dance about it on my blog: http://futurlab.blogspot.com/ Thanks to everyone that had suggestions! 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] AS3 Loader multiple .swfs
Hi there, Is multiple .swf loading built into the AS3 Loader class API, if so how is it implemented? Thanks, Philip ___ 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 broadcasting Question...
This may sound daft, and perhaps not the way to go, but here is what I am trying to do (AS2): I have a class that I would like timeline code to instantiate and call a method on. I would like the class to broadcast back to whomever is listening... simplified class: import mx.utils.Delegate; class Login extends AsBroadcaster { function Login() { }; public function foo( sValue:String ):Void { // stuff broadcastMessage( attempt, bValue ); }; } timeline code (not class-based): var bar:Login = new Login(); bar.foo( test string ); function attempt( bValue:Boolean ):Void { trace( the result is + bValue ); } === Obviously I am missing some pieces here, any quick insights? - 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
Re: [Flashcoders] Class broadcasting Question...
You forgot to add a listener ! :) in the timeline code : bar.AddListener(this); and it will listen to all event broadcasted by your Login Class. Note that it's AddListener not AddEventListener as you're using AsBroadcaster. As easy as that ! HTH Alain eric e. dolecki wrote: This may sound daft, and perhaps not the way to go, but here is what I am trying to do (AS2): I have a class that I would like timeline code to instantiate and call a method on. I would like the class to broadcast back to whomever is listening... simplified class: import mx.utils.Delegate; class Login extends AsBroadcaster { function Login() { }; public function foo( sValue:String ):Void { // stuff broadcastMessage( attempt, bValue ); }; } timeline code (not class-based): var bar:Login = new Login(); bar.foo( test string ); function attempt( bValue:Boolean ):Void { trace( the result is + bValue ); } === Obviously I am missing some pieces here, any quick insights? - 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] Class broadcasting Question...
Hi Eric, first suggestion. Unless there is a really good reason not to, loose the AsBroadcaster class. It is unreliable and has been well an truely replaced by EventDispatcher. You can import this into your class, set up an event dispatcher Object, add event listeners and then dispatchEvent in the same place that you presently 'broadcastMessage', only it'll work ;) The basic lines of code are below, sorry, don't have more time to set out a class for ya ;) import mx.events.EventDispatcher; public var objBroadcaster:Object; objBroadcaster.addEventListener(markerPressed, Delegate.create(this, this.markerPressed)); objBroadcaster.dispatchEvent({type:eventName, param:param}); In my example the event dispatcher line (the last line of code above) is part of a generic event dispatcher function which accepts the event type and any parameters as part of the function call. You could hard code it. Good luck FlashCoder.net This may sound daft, and perhaps not the way to go, but here is what I am trying to do (AS2): I have a class that I would like timeline code to instantiate and call a method on. I would like the class to broadcast back to whomever is listening... simplified class: import mx.utils.Delegate; class Login extends AsBroadcaster { function Login() { }; public function foo( sValue:String ):Void { // stuff broadcastMessage( attempt, bValue ); }; } timeline code (not class-based): var bar:Login = new Login(); bar.foo( test string ); function attempt( bValue:Boolean ):Void { trace( the result is + bValue ); } === Obviously I am missing some pieces here, any quick insights? - 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] Class broadcasting Question...
YES YES YES YES YES - thank you. I am a moron forgot completely about EventDispatcher. Thats the ticket and its SO much better :) On 5/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Eric, first suggestion. Unless there is a really good reason not to, loose the AsBroadcaster class. It is unreliable and has been well an truely replaced by EventDispatcher. You can import this into your class, set up an event dispatcher Object, add event listeners and then dispatchEvent in the same place that you presently 'broadcastMessage', only it'll work ;) The basic lines of code are below, sorry, don't have more time to set out a class for ya ;) import mx.events.EventDispatcher; public var objBroadcaster:Object; objBroadcaster.addEventListener(markerPressed, Delegate.create(this, this.markerPressed)); objBroadcaster.dispatchEvent({type:eventName, param:param}); In my example the event dispatcher line (the last line of code above) is part of a generic event dispatcher function which accepts the event type and any parameters as part of the function call. You could hard code it. Good luck FlashCoder.net This may sound daft, and perhaps not the way to go, but here is what I am trying to do (AS2): I have a class that I would like timeline code to instantiate and call a method on. I would like the class to broadcast back to whomever is listening... simplified class: import mx.utils.Delegate; class Login extends AsBroadcaster { function Login() { }; public function foo( sValue:String ):Void { // stuff broadcastMessage( attempt, bValue ); }; } timeline code (not class-based): var bar:Login = new Login(); bar.foo( test string ); function attempt( bValue:Boolean ):Void { trace( the result is + bValue ); } === Obviously I am missing some pieces here, any quick insights? - 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 ___ 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] how to access custom TitleBackground(skinTitleBackground) of Window
hi, You can call as _root.TitleBackground.someClip make sure TitleBackground is the MovieClip Andrew Sinning wrote: Let me ask the question another way: how do I access movieClips and/or TextFields within my custom TitleBackground _in_general_, regardless of what I call them. Suppose there's a movieClip called someClip inside my TitleBackground and I want to changes it's _visible prop. How do I get a handle to this clip? Neither window.TitleBackground.someClip nor window.skinTitleBackground.someClip seem to be public. It's as if I need to specify that they are public in an interface somewhere, but I have no idea how? Muzak wrote: If for some reason you want to put your own title textfield in the header, you'll need to have a movieclip (instance name 'title_mc') that contains a textfield (instance name 'text') inside your custom TitleBackground. Woops.. that's incorrect.. You need to have a textfield named title_mc ;-) But again, you should probably leave it up to the Window to create the title for you. regards, Muzak - Original Message - From: Muzak [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, May 18, 2007 10:16 PM Subject: Re: [Flashcoders] how to access custom TitleBackground(skinTitleBackground) of Window The Window component class takes care of creating a title for you. You don't need to do anything, just set the .title property on the Window instance. If for some reason you want to put your own title textfield in the header, you'll need to have a movieclip (instance name 'title_mc') that contains a textfield (instance name 'text') inside your custom TitleBackground. The textfield might get affected by the stretching of the TitleBackground though, so not sure how well this will work out. regards, Muzak - Original Message - From: Andrew Sinning [EMAIL PROTECTED] To: Flash Coders flashcoders@chattyfig.figleaf.com Sent: Friday, May 18, 2007 9:39 PM Subject: [Flashcoders] how to access custom TitleBackground (skinTitleBackground) of Window I've created a TitleBackground movieClip by following the instructions in the MX04 online help To set the title of an Window component to a custom movie clip symbol (below). Now I'd like to make a call to a function inside of that clip or access properties within that clip directly. The window has a property skinTitleBackground the value of which is an object of type TitleBackground, but TitleBackground doesn't have any public properties. Inside my TitleBackground movieClip there is a TextField called titleText that I would like to be able to set the text of. So far the only way I've been able to change it is by having a loop within the movieClip check on the value of an external variable. There should be another way, right? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@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] - Integrating instant messaging with Flash / Flex
Check out: http://www.dgrigg.com/post.cfm/09/05/2006/XIFF-Actionscript-3-for-Flex-2 Matt Muller wrote: Hi all, I'm scoping a project out which is a media based application to be done in as3. I'm looking for information on messaging api's or 3rd party applications for integration with i.e. yahoo/msn messenger etc. into flash/flex. Can anyone point me in the right direction? cheers, MaTT ___ 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