RE: [Flashcoders] asfunction problem
Hi there! Truncate a CDATA text a little like this and check this out. Working for me just great. var aaa = new XML(); aaa.ignoreWhite = true; aaa.load("in.xml"); aaa.onLoad = function() { str= new XML(this.firstChild.firstChild.firstChild.firstChild).firstChild.toString(); txt.htmlText =new XML(str).firstChild.nodeValue; }; // function showScript(script) { trace("script") } _ Ruslan Shestopal, Senior Flash Developer Envisionext, Inc. Phone: +380 66 999, ICQ: 122 0 355 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Friday, December 22, 2006 4:40 PM To: Flashcoders mailing list Subject: [Flashcoders] asfunction problem Hi I have xml file with with asfunction and function showScript(script) { } in the clip with text box on the layer. Clip has only one frame. When I click on the link function does not work. What is wrong? Please give me advice. ___ 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] ExternalInterface and FireFox
Hi, List! This is totally crazy! Can anyone confirm that ExternalInterface is working in WIN 9,0,16,0 FP and Firefox/1.5.0.7 ? I am trying to execute an example from the manual. It's working OK in IE But nothing happens in FF. According to manual "null" will be returned if the call failed. I think it's some kind of new security restriction or something. Any chance for working emplementation? ___ 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] PHP FLV streaming
Hi? List! I am trying to implement flv streaming as described here http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP- take-two I have a FLV file 100Mb. It's working fine in IE. When I am trying to seek in IE it works ok taking a usual behavior code: NetStream.Play.Start code: NetStream.Buffer.Full code: NetStream.Buffer.Empty code: NetStream.Buffer.Full code: NetStream.Buffer.Empty code: NetStream.Buffer.Full But it's fail in FireFox :( " NetStream.Buffer.Flush" resets a buffer It seems like a double loading issue. Any way to fix it for FF users? Thanks in reply. code: NetStream.Play.Start code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Buffer.Flush code: NetStream.Buffer.Flush code: NetStream.Buffer.Flush code: NetStream.Play.Stop code: NetStream.Buffer.Flush code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Play.Stop code: NetStream.Play.Stop ___ 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] OT- subscribe to Flashcomm list
The same story is here. Doesn't working for me for two mounts or something. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Telmo Dias Sent: Sunday, October 01, 2006 6:04 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] OT- subscribe to Flashcomm list The list is off. You can see it by going there through HTTP. http://chattyfig.figleaf.com/mailman/listinfo/flashcomm I even sent an e-mail to [EMAIL PROTECTED] but I don't think anyone received 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] NetConnection Fail Error
Hi there! The reason is: rtmp://localhost/ - this is how you se you computer. As for the others in local network be sure to change connection string to you local ip address. Must be something like 192.168.0.XXX Or whatever. Depends on your network conf. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 9:08 PM To: Flashcoders mailing list Subject: [Flashcoders] NetConnection Fail Error Any idea why? I'm trying to publish a live video on my local network... Locally on my pc works fine, feed and player, but when i go lo local host feed still working but no one can see the cam. here is my code: feed: var nc:NetConnection = new NetConnection(); nc.connect("rtmp://localhost/videoApp"); var ns:NetStream = new NetStream(nc); ns.attachVideo(Camera.get()); vid.attachVideo(Camera.get()); ns.publish("chrisCam", "live"); player: var nc:NetConnection = new NetConnection(); nc.connect("rtmp://localhost/videoApp"); var ns:NetStream = new NetStream(nc); vid.attachVideo(ns); ns.play("chrisCam"); ___ 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] NS status calling a func in a class?
Hi there@ Try this one. this.con_nc = new AppConnector(); this.con_nc.connect("rtmp://localhost/proof"); //this.con_nc.connect(null); this.con_nc.addListener(this); this.ns = new InfoNetStream(this.con_nc); // this.onConnect = function() { trace("onConnect"); }; this.onFailConnect = function() { trace("connection fail"); }; // AppConnector.AS dynamic class AppConnector extends NetConnection { var addListener:Function; var removeListener:Function; var broadcastMessage:Function; function AppConnector() { super(); AsBroadcaster.initialize(this); } function onStatus(info) { var code = info.code.substring(info.code.indexOf(".")+1); trace("onStatus:"+info.code); switch (code) { case "Connect.Success" : broadcastMessage("onConnect"); break; case "Connect.Rejected" : connectionClosed("onReject", info); break; case "Connect.Closed" : connectionClosed("onClose", info); break; case "Connect.Failed" : broadcastMessage("onFailConnect"); break; case "Connect.AppShutdown" : connectionClosed("onClose", info); break; case "Connect.InvalidApp" : connectionClosed("onReject", info); break; case "Call.Failed" : broadcastMessage("onCall"); break; } } function connect() { trace("go connect connect"); return super.connect.apply(super, arguments); } function close() { super.close(); } } // InfoNetStream.AS class InfoNetStream extends NetStream { function InfoNetStream(nc) { super(nc); } function onMetaData(info) { for (var p in info) { trace(p+": "+info[p]); } } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Tuesday, September 19, 2006 5:20 PM To: Flashcoders mailing list Subject: [Flashcoders] NS status calling a func in a class? Sorry - I've been in the hospital for a few months, so I forgot how this works. In a class, in its init, I have this code: my_ns.onStatus = function( infoObject:Object ):Void { if( infoObject.code == "NetStream.Play.Stop" ){ callFunction(); } }; I need that callFunction to be called, however what is the scope here? How can that be set up to call a private function of the class itself? I checked the archives but didn't really see anything straight away. - e. ___ 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] BitmapData and security.allowDomain
Yes. This is what we done so far. Fopen("get.image.php?url_to_image=image") BTW. xml and images is loading ok arcoss all domains. I am talking about a cross-domain scripting. The loaded JPEG acts exactly as SWF file. When I am loading SWF from a remote domain with System.security.allowDomain("*") inside it It creates a bitmap clone of what I see. All JPEG fails. I am unable to access bitmapData of remotely loaded JPG image. The reason why it happening described here ActionScript classes > security (System.security) > allowDomain (security.allowDomain method) Take a look at the table. JPEG acts the same way. I think it should not. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Wednesday, July 05, 2006 4:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] BitmapData and security.allowDomain > There is an issue with loading an extermal JPEGs form a remote server. > It seems to be a bug. I am loading a JPG image to a movie clip and > cloning it using Bitmap.draw(input_mc). > (SWF is hosted on domain A, JPG hosted on domain B.) > In this case loaded JPEG behaves exactly as an SWF loaded from a remore > server %\ (cross-domain data loading) > This means that it wount permit scripting it %| > So I am getting only white screen instead of a bitmap representation of > a symbol beeing cloned using BitmapData. > Since I can't add System.security.allowDomain("*"); to a JPEG file > The question is: > - any ideas how to access BitmapData of a remotely downloaded domain > (NOT the same as where SWF hosted ) Even with the cross domain policy xml file it won't work. The only way (that I know) is creating a server-side script (say, a simple script in PHP) on your server that reads the remote file and outputs it. That way, instead of loading the JPEG file, you load the local PHP script, but passing the remote JPEG as the parameter. It will make your tunnel all image viewing through your server, but it works. - Zeh ___ 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] BitmapData and security.allowDomain
Hi, List! There is an issue with loading an extermal JPEGs form a remote server. It seems to be a bug. I am loading a JPG image to a movie clip and cloning it using Bitmap.draw(input_mc). (SWF is hosted on domain A, JPG hosted on domain B.) In this case loaded JPEG behaves exactly as an SWF loaded from a remore server %\ (cross-domain data loading) This means that it wount permit scripting it %| So I am getting only white screen instead of a bitmap representation of a symbol beeing cloned using BitmapData. Since I can't add System.security.allowDomain("*"); to a JPEG file The question is: - any ideas how to access BitmapData of a remotely downloaded domain (NOT the same as where SWF hosted ) 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] BitmapData and security.allowDomain
Hi, List! There is an issue with loading an extermal JPEGs form a remote server. It seems to be a bug. I am loading a JPG image to a movie clip and cloning it using Bitmap.draw(input_mc). (SWF is hosted on domain A, JPG hosted on domain B.) In this case loaded JPEG behaves exactly as an SWF loaded from a remore server %\ (cross-domain data loading) This means that it wount permit scripting it %| So I am getting only white screen instead of a bitmap representation of a symbol beeing cloned using BitmapData. Since I can't add System.security.allowDomain("*"); to a JPEG file The question is: - any ideas how to access BitmapData of a remotely downloaded domain (NOT the same as where SWF hosted ) 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
RE: [Flashcoders] Good Math script for sheet movementwhendragedontable
Thanks in reply, guys! This is exact as I need http://hosted.zeh.com.br/misc/novo2.swf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Monday, April 03, 2006 5:11 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Good Math script for sheet movementwhendragedontable Another good article on something like that is this -- http://www.mactech.com/articles/mactech/Vol.12/12.08/GXRigidBodyDragging /index.html It's done for some kind of Apple scripting language, but of course the important part (trigonometry) still holds. That's what I used as a guide when I wanted to build a similar 'rigib body dragging' mechanism for a site. Here's one of my test SWFs by the way, so you can see what I'm talking about: http://hosted.zeh.com.br/misc/novo2.swf - Zeh - Original Message - From: "eugen pflüger" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, April 03, 2006 10:08 AM Subject: Re: [Flashcoders] Good Math script for sheet movement whendragedontable i guess you are looking for something like this: http://www.intentionallies.co.jp this site is from yugo nakamura. very well scripted. someday i tried it by myself but unfortunaly didnt get it to work. my thoughts were this: on click on a sheet find the distance from the middle and set it to be the new origin (thats the new rotation point). then you have to find out in which direction the sheet should turn - calculate some forces...depending on the drag movement something like this :) Am 03.04.2006 um 14:22 schrieb Alias: > You could probably adapt the page drag mathematics from this > article... > > http://www.oreillynet.com/pub/a/javascript/2004/09/03/flashhacks.html > > A good book to learn about trigonometry is the Complete Idiot's Guide > to Algebra by W. Michael Kelly - it's very well written and > mathematical beginner-friendly. > http://www.amazon.com/exec/obidos/tg/detail/-/1592571611?v=glance > > You won't get far in flash development without a basic knowledge of > trig, and besides, it starts to be fun after the first couple of years > :) > > Hope this helps, > Alias > ___ > 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 > plugisto ... eugen pflüger alexanderstr. 109 70180 stuttgart fon +49.711.6739797 mobil +49.177.6428272 e-mail [EMAIL PROTECTED] ... http://www.plugisto.net http://itself.pmalc.de http://www.lifeperformance.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 ___ 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] Good Math script for sheet movement when dragedontable
Well.. I am not talking here about Movieclip twening engines. The basic idea is: press and drag the sheet of papper with _rotation based in the movement direction doing some Math with angles sin/ cos.. I am not good at trigonometric functions. So maybe someone did something like that before. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of f a r i d | s i l v a | a b o i d Sent: Monday, April 03, 2006 1:43 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Good Math script for sheet movement when dragedontable have you tried this one? http://laco.wz.cz/tween/ -- SalU2 f a r i d | s i l v a | a b o i d www.e-foco.com.ar tel: +54 11 4115-0773 cel: 15-5774-8005 ___ 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] Good Math script for sheet movement when draged ontable
Not exactly. I am looking for a script that simulates sheet of papper movment over table with good physics and math. startDrag() is not realy nice looking. All need is to press and drag the papper with rotation according to mouse X Y position and a distance. Like real sheet of papper on polishing table. This is not as simple as it seems to be... Some good math formulas needed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Wttewaall Sent: Saturday, April 01, 2006 6:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Good Math script for sheet movement when draged ontable What's your question? If you're looking for a way to script animation, use the Tween class. 2006/3/31, INK. <[EMAIL PROTECTED]>: > Hi, List? > Anyone seen subj? Something real-life and natural motion? > > 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] Good Math script for sheet movement when draged on table
Hi, List? Anyone seen subj? Something real-life and natural motion? 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] Good Math script for sheet movement when draged on table
Hi, List? Anyone seen subj? Something real-life and natural motion? 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] WinXP SP2 & Remote debugging
Has anyone faced issues with the remote debugger not working after installing WinXP SP2? I read up a few technotes, which indicate that putting Flash MX in the exceptions list will enable remote debugging again. But it doesn't seem to work here. Clues...clues...clues? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Attaching components within components
I think I made some breakthrough here. When I trace a typeof(oStackVar) it returns "object" instead of "movieclip". What gives? I thought components were movieclips. I'm guess that because its being interpreted as an object, the createClassObject method doesn't run correctly. Anybody got any idea if this is true? Regards, Pranav Pranav Negandhi wrote: Sigh! I don't even know where to begin. I'm creating a component called Stack through the createClassObject command. A while later I'm creating a component called Card inside the Stack using createClassObject. And it returns null. The exact same line of code placed on the stage or on the constructor of the Stack object creates the Card component. But if I put this is a function in Stack called CreateCardObjects(sCardsList) then it doesn't work. Why? I have no clue. Can someone shed some light on this? Regards, Pranav Negandhi Fractal | ink O: 91 22 5660 3682 M: 91 98211 73656 www.fractalink.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders