Re: [Flashcoders] LocalConnection and Media Components?
I downloaded your examples and they worked fine both in the IDE and the browser. I'm going to just try and rebuild from those. As I stated, I already had coded a working player (with static file location), so I'll try and merge your localconnection examples and go from there. Thanks for your help and time. Marty Start by running both swf's in the IDE, so you can see the trace output. Once you got that working, try in a browser and see if the output is displayed in the textfield. view example http://muzakdeezign.com/downloads/localconn/ download example http://muzakdeezign.com/downloads/localconn/localconn.zip regards, Muzak - Original Message - From: Martin Scott Goldberg [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, October 28, 2006 5:57 AM Subject: Re: [Flashcoders] LocalConnection and Media Components? Hi Ray, that didn't work either. Changed the code to reflect those help pages as well, and that didn't work either. Here's the sending code: play_button.onRelease = function() { var sending_lc:LocalConnection = new LocalConnection(); sending_lc.send(_myConnections, setMedia, inmylife.mp3, MP3); } Here's the recieving code: _root.my_display.associateController(my_controller); _root.my_controller.controllerPolicy = on; var receiving_lc:LocalConnection = new LocalConnection(); function setMedia(file:String, type:String){ _root.my_display.setMedia(file, type); } receiving_lc.allowDomain = function():Boolean { return true; } receiving_lc.connect(_myConnections); This is getting really dissheartening that there's this much of a problem to do what should be a simple function. Marty ___ 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] Scale Stage but not a Movieclip?
This was intended for someone else! I don't know how I managed to send this here. Sorry! Kurt At 06:58 AM 10/28/2006, you wrote: Is this just for reference or was he telling you I can get files here? At 03:48 PM 10/27/2006, you wrote: That's the ticket! thanks! At 02:34 PM 10/27/2006, you wrote: Check out brother James: http://www.jamesor.com/2006/10/12/creating-liquid-guis-with-flash-part-1/ Scott On 10/27/06, Kurt Dommermuth [EMAIL PROTECTED] wrote: Hi All, I suck at math and I need help. I have a swf that is set to scale to the full size of the browser. But I don't want some move clips to scale. I think I need to get the proportions of the stage and somehow tell the movie clip that I don't want to scale to do the opposite. Am I being clear? I know this must have been asked already, but I must also suck at searching through the archives. thanks, Kurt ___ 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 -- : : ) Scott ___ 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] Scale Stage but not a Movieclip?
Is this just for reference or was he telling you I can get files here? At 03:48 PM 10/27/2006, you wrote: That's the ticket! thanks! At 02:34 PM 10/27/2006, you wrote: Check out brother James: http://www.jamesor.com/2006/10/12/creating-liquid-guis-with-flash-part-1/ Scott On 10/27/06, Kurt Dommermuth [EMAIL PROTECTED] wrote: Hi All, I suck at math and I need help. I have a swf that is set to scale to the full size of the browser. But I don't want some move clips to scale. I think I need to get the proportions of the stage and somehow tell the movie clip that I don't want to scale to do the opposite. Am I being clear? I know this must have been asked already, but I must also suck at searching through the archives. thanks, Kurt ___ 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 -- : : ) Scott ___ 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] Looking for a good FlexCoders list
Recommendations? URL for signup? TIA. -- Troy RPSystems, Ltd. http://www.rpsystems.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] Looking for a good FlexCoders list
Erhm, FlexCoders maybe? ;-) http://tech.groups.yahoo.com/group/flexcoders/ flexcoders@yahoogroups.com regards, Muzak - Original Message - From: Troy Rollins [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Saturday, October 28, 2006 6:55 PM Subject: [Flashcoders] Looking for a good FlexCoders list Recommendations? URL for signup? TIA. -- Troy ___ 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] XPath
Found this, not too detailed though. Hope it helps. http://www.skylab.ws/?p=85 __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New Toronto Group | http://www.newyyz.com Chip Moeser wrote: Does anyone know where I can samples using these (http://www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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] Highscore submit security with independent library
Hey folks, I'm researching the possibilities of creating a library to submit highscores to a central server. Other game-creators would be able to take this code, and implement it in their own games. The central server will take care of accumulating and displaying all scores. My question is: is this failsafe? Is it possible to create a secure library / block of code that cannot be abused by cheaters to submit fake scores. All submitted games that use the library and are accepted by the central server will be hosted by me, so I have some degree of control over it. Would it be possible for the game developer to create a backdoor without me knowing? Or is there some way to make this secure and fair? Thanks in advance! T. Boerman ___ 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] swf and domains, what domain made the call?
Anyone with any suggestions? Diversity wrote: With flash and its cross domain security is there anyway for me to read what the calling domain is of the swf? Example swf located on my server, being called from domain.com. How can I see that its domain.com calling the swf and not myserver.com making the call? _url gives me the swf location not the calling domain. Thanks, Diversity ___ 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] XPath
yeah, i used the w3schools to learn the syntax, and i get by with that. On 10/28/06, Joseph Balderson [EMAIL PROTECTED] wrote: Found this, not too detailed though. Hope it helps. http://www.skylab.ws/?p=85 __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New Toronto Group | http://www.newyyz.com Chip Moeser wrote: Does anyone know where I can samples using these (http://www.xfactorstudio.com/) xpath classes? Thanks! -Chip ___ 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] MovieClipLoader, onLoadInit: not working properly / bug
I've run into an issue with MovieClipLoader, that I haven't been able to find an mention of anywhere else online. The issue is with the onLoadInit firing before the first frame actionscript has executed. The issue was repeatable, but only on specific machines, and ONLY through the browser. When played in the IDE or EXE then it worked as expected. I personally was not able to see this error, but it happened consistently on my client's internal network. Here is the issue: The external swf files have AS on frame 1: // var myClass:CustomClass = new CustomClass(); function getInstance():CustomClass { return myClass;} / The main swf has the following: var holder_mc:MovieClip var myMCL:MovieClipLoader = new MovieClipLoader(); myMCL.addListener(this) function onLoadInit(p_target) { var myInst:CustomClass = holder_mc.getInstance(); if (myInst == undefined) { trace(Error, your file doesn't contain the appropriate class); } else { //Working as it should } } myMCL.loadClip(myUrl.swf,holder_mc); / Now, I know what you are saying... This should work... And it does - usually... But then I ran into this perplexing problem. In trying to resolve this issue I did the following: private var loadInitInterval:Number; private var doLoadInitCount:Number = 0; function onLoadInit() { doLoadInit() } function doLoadInit() { clearInterval(loadInitInterval); var myInst:CustomClass = holder_mc.getInstance(); if (myInst == undefined) { //Let's try waiting for a couple of frames if (doLoadInitCount 1) { trace(Error, your file doesn't contain the appropriate class); } else { var duration:Number = 1/30*1000 * 2 // wait for 2 frames at 30 fps clearInterval(loadInitInterval); loadInitInterval = setInterval(this,doLoadInit, duration) } doLoadInitCount++ } else { //Working as it should } } /// Setting up the interval, essentially an onEnterFrame, the onLoadInit worked as it should, where the code in frame 1 of the swf had executed. I see this as a HUGE ISSUE, in the fact that MovieClipLoader might not be reliable. Has ANYBODY run into this? Or know of what might cause it. We are publishing to the main swf to v7, external swfs are v6 and v7, and this issue has appeared when playing back on player 8 and 9. I haven't been able to duplicate the issue on v7... Actually I haven't been able to duplicate it at all, but my client has and has consistently. I don't expect anybody to really know the answer, because I'm sure that when/if you try it, it will work as expected. But if you could theorize about why this might happen... Or what set of circumstances might have occurred to cause onLoadInit to fail, or execute too early - I'd greatly appreciate it? Thanks for your time! Cheerio! Drew Shefman ___ 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] swf and domains, what domain made the call?
Would this do what you are looking for? http://www.mochibot.com jimbo *** REPLY SEPARATOR *** On 10/28/2006 at 6:24 PM Diversity wrote: Anyone with any suggestions? Diversity wrote: With flash and its cross domain security is there anyway for me to read what the calling domain is of the swf? Example swf located on my server, being called from domain.com. How can I see that its domain.com calling the swf and not myserver.com making the call? _url gives me the swf location not the calling domain. Thanks, Diversity ___ 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] MovieClipLoader, onLoadInit: not working properly / bug
hmm...you said the external swf's are 6 and 7...do youknowif it's only the version 6 swfs giving you the propblem? or is it both? just trying to isolate. On 10/28/06, Drew Shefman [EMAIL PROTECTED] wrote: I've run into an issue with MovieClipLoader, that I haven't been able to find an mention of anywhere else online. The issue is with the onLoadInit firing before the first frame actionscript has executed. The issue was repeatable, but only on specific machines, and ONLY through the browser. When played in the IDE or EXE then it worked as expected. I personally was not able to see this error, but it happened consistently on my client's internal network. Here is the issue: The external swf files have AS on frame 1: // var myClass:CustomClass = new CustomClass(); function getInstance():CustomClass { return myClass;} / The main swf has the following: var holder_mc:MovieClip var myMCL:MovieClipLoader = new MovieClipLoader(); myMCL.addListener(this) function onLoadInit(p_target) { var myInst:CustomClass = holder_mc.getInstance(); if (myInst == undefined) { trace(Error, your file doesn't contain the appropriate class); } else { //Working as it should } } myMCL.loadClip(myUrl.swf,holder_mc); / Now, I know what you are saying... This should work... And it does - usually... But then I ran into this perplexing problem. In trying to resolve this issue I did the following: private var loadInitInterval:Number; private var doLoadInitCount:Number = 0; function onLoadInit() { doLoadInit() } function doLoadInit() { clearInterval(loadInitInterval); var myInst:CustomClass = holder_mc.getInstance(); if (myInst == undefined) { //Let's try waiting for a couple of frames if (doLoadInitCount 1) { trace(Error, your file doesn't contain the appropriate class); } else { var duration:Number = 1/30*1000 * 2 // wait for 2 frames at 30 fps clearInterval(loadInitInterval); loadInitInterval = setInterval(this,doLoadInit, duration) } doLoadInitCount++ } else { //Working as it should } } /// Setting up the interval, essentially an onEnterFrame, the onLoadInit worked as it should, where the code in frame 1 of the swf had executed. I see this as a HUGE ISSUE, in the fact that MovieClipLoader might not be reliable. Has ANYBODY run into this? Or know of what might cause it. We are publishing to the main swf to v7, external swfs are v6 and v7, and this issue has appeared when playing back on player 8 and 9. I haven't been able to duplicate the issue on v7... Actually I haven't been able to duplicate it at all, but my client has and has consistently. I don't expect anybody to really know the answer, because I'm sure that when/if you try it, it will work as expected. But if you could theorize about why this might happen... Or what set of circumstances might have occurred to cause onLoadInit to fail, or execute too early - I'd greatly appreciate it? Thanks for your time! Cheerio! Drew Shefman ___ 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] MovieClipLoader, onLoadInit: not working properly / bug
Hi On the same line as Rich's question. Version 6 SWFs use a different security sandbox then v7 SWFs and thus you can get some interesting side effects. One such side-effect is if you try to query said clip it should return null or 0 for things like _bytesLoaded, _bytesTotal etc. The same type of thing happens when mixing version 7 and version 8 swfs. For best results and reliability, a project should attempt to use swfs of all the same version and from the same subdomain/domain to prevent goofy things. Another thing that might have an impact on the firing of onLoadInit is if a shared library is referenced by the swf. If I remember right, MovieClipLoader will load the swf but not its shared libraries. Thus there is an extended delay after loading in which the first frame cannot execute because it needs to load any items in a shared library (if referenced on that frame). I believe one of my coworkers noticed that in this case, onLoadInit occurs before the first frame executes as well. So beaware that the shared library thing can have a negative effect even if all swfs come from the same server and are the same version. Sincerely Mark R. Jonkman ___ 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