[Flashcoders] How to check if a URL is invalid?
Hi, I have a Video Player application using the FLVPlayback component. I've already built the entire thing so building a custom video player component is out of the question. I want to build in an error handling capability, that will check a URL's validity before setting it as the FLVPlayback components contentPath. The URL is pulled out of an XML file. I'm trying to do this to avoid the component become unresponsive when an invalid URL is passed to it. It's recommended to use try-catch-finally but I just can't get anything to work. I'm getting very frustrated. Appreciate any help. Let me know if you need more information. Thanks, Bruce. ___ 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 check if a URL is invalid?
Hey Bob, Thanks, that totally makes sense! I tried it out and it works great! I'm having a strange issue where Flash crashes every second time I publish the fla (this happens with some other files too). Could it be because there's many POSTs to server scripts and some browser specific functionality? I'm using Flash 8 on a MacBook Pro. Would you happen to know anything about that? Regards, Bruce. On May 23, 2007, at 11:30 AM, Bob Wohl wrote: Hi Bruce, So you're getting a path to the flv file via xml, correct? you could create a video object, connect a netstream of the flv and on success kill the stream telling your function handler to load up the component with the path to the url. With proper use of buffer time, this route would be pretty close to weightless. B. On 5/23/07, Bruce Drummond [EMAIL PROTECTED] wrote: Hi, I have a Video Player application using the FLVPlayback component. I've already built the entire thing so building a custom video player component is out of the question. I want to build in an error handling capability, that will check a URL's validity before setting it as the FLVPlayback components contentPath. The URL is pulled out of an XML file. I'm trying to do this to avoid the component become unresponsive when an invalid URL is passed to it. It's recommended to use try-catch-finally but I just can't get anything to work. I'm getting very frustrated. Appreciate any help. Let me know if you need more information. Thanks, Bruce. ___ 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] flash game developer - multi-player games
hi... i'm trying to find out how/who i can talk to to get information regarding flash games. specifically, if i'm looking to talk to anyone/small company who's developed small multiplayer flash games, who can i talk to... thanks -bruce ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] flash / ajax
hi... looking at implementing an ajax widget and wanted to know if anybody's combined ajax and flash to be able to implement a cross-domain solution? thanks -bruce ___ 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] Strange XML problems
Sorry if my message wasn't very clear. The xml is loaded with an onLoad handler. Once it loads it is assigned as a global variable and triggers a set of functions to generate tabs. Clicking each tab loads a external swf into an empty mc on the stage and assigns another global variable which would be the id no. of the tab. Each external swf has it's own code to read the xml and tab id no., and populate its contents. I hope this makes more sense... - Original Message - From: Christopher Whiteford [mailto:[EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wed, 15 Nov:12:07 -0500 Subject: Re: [Flashcoders] Strange XML problems Do you have the xml being loaded in with an onLoad handler triggering setting those variables? That is about the only thing that makes sense from the info given. On 11/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, 1. I have a main flash file which loads external SWF's when a particular tab is clicked on. This main file is embedded in an HTML page. All the data is coming through the XML file, including the fields that need to be populated in the SWF's loaded externally. 2. I've assigned a global variable that allows the external SWF's access to it. 3. It works perfectly in the flash IDE. 4. It works fine in firefox the first few times and then just returns 'undefined' for the variables that need to be populated, in SWF's loaded externally into the main file. I've been struggling with this issue since morning and can't for the life of me figure out what the problem is or what I'm doing wrong. I've changed folder structures, manipulated code...I'm so frustrated! Please help me :( Thanks, Bruce. ___ 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] Strange XML problems
I know! And it's extremely frustrating because everything seems to work when I run it in flash. I'm on a mac...tested it with FF, Safari and mac IE. It doesn't work on any. I'm using _lockroot for the external SWF's so that the components inside them work properly...not sure I can access the main flash _root vars that way...is there another way I should do that? - Original Message - From: Christopher Whiteford [mailto:[EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wed, 15 Nov:40:53 -0500 Subject: Re: [Flashcoders] Strange XML problems Honestly that sounds like a strange issue. What about IE do you have the same problems there? Have you tried just setting the values in the main flash as _root vars and then just trying to access them from the various loaded swfs? On 11/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry if my message wasn't very clear. The xml is loaded with an onLoad handler. Once it loads it is assigned as a global variable and triggers a set of functions to generate tabs. Clicking each tab loads a external swf into an empty mc on the stage and assigns another global variable which would be the id no. of the tab. Each external swf has it's own code to read the xml and tab id no., and populate its contents. I hope this makes more sense... - Original Message - From: Christopher Whiteford [mailto:[EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wed, 15 Nov:12:07 -0500 Subject: Re: [Flashcoders] Strange XML problems Do you have the xml being loaded in with an onLoad handler triggering setting those variables? That is about the only thing that makes sense from the info given. On 11/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, 1. I have a main flash file which loads external SWF's when a particular tab is clicked on. This main file is embedded in an HTML page. All the data is coming through the XML file, including the fields that need to be populated in the SWF's loaded externally. 2. I've assigned a global variable that allows the external SWF's access to it. 3. It works perfectly in the flash IDE. 4. It works fine in firefox the first few times and then just returns 'undefined' for the variables that need to be populated, in SWF's loaded externally into the main file. I've been struggling with this issue since morning and can't for the life of me figure out what the problem is or what I'm doing wrong. I've changed folder structures, manipulated code...I'm so frustrated! Please help me :( Thanks, Bruce. ___ 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
Re: [Flashcoders] Strange XML problems
That's a great idea! I zipped up the entire folder and uploaded it here: www.bruzed.com/testcases/eLesson player copy.zip (it's 12mb) There are 2 xmls, one for testing in flash and one for testing in the browser...this is because of the folder structure. Just to forewarn you, the script might be a bit of a mess..this is only my second AS project :) Thanks for your help! - Original Message - From: Christopher Whiteford [mailto:[EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wed, 15 Nov:38:45 -0500 Subject: Re: [Flashcoders] Strange XML problems Well with _lockroot you can still access _level0 and _parent vars and I know that it is frowned upon but you could try using some _global variables as well perhaps, to see if that makes a difference. The problem with working in flash versus using browsers is the timing. I have had issues just between the timing of how a movie loads for a different browser, and as you are experiencing it drove me pretty mad. I guess I am lucky as I have access to a mac and a pc which in cases like this make it a bit easier to get to the _root of the issue...(pun intended) Can you post this somewhere where I could test it real quick? as without looking at your code it is pretty tough to guess where exactly the issue is and to at least see it might be helpful. On 11/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know! And it's extremely frustrating because everything seems to work when I run it in flash. I'm on a mac...tested it with FF, Safari and mac IE. It doesn't work on any. I'm using _lockroot for the external SWF's so that the components inside them work properly...not sure I can access the main flash _root vars that way...is there another way I should do that? - Original Message - From: Christopher Whiteford [mailto:[EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wed, 15 Nov:40:53 -0500 Subject: Re: [Flashcoders] Strange XML problems Honestly that sounds like a strange issue. What about IE do you have the same problems there? Have you tried just setting the values in the main flash as _root vars and then just trying to access them from the various loaded swfs? On 11/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry if my message wasn't very clear. The xml is loaded with an onLoad handler. Once it loads it is assigned as a global variable and triggers a set of functions to generate tabs. Clicking each tab loads a external swf into an empty mc on the stage and assigns another global variable which would be the id no. of the tab. Each external swf has it's own code to read the xml and tab id no., and populate its contents. I hope this makes more sense... - Original Message - From: Christopher Whiteford [mailto:[EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wed, 15 Nov:12:07 -0500 Subject: Re: [Flashcoders] Strange XML problems Do you have the xml being loaded in with an onLoad handler triggering setting those variables? That is about the only thing that makes sense from the info given. On 11/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, 1. I have a main flash file which loads external SWF's when a particular tab is clicked on. This main file is embedded in an HTML page. All the data is coming through the XML file, including the fields that need to be populated in the SWF's loaded externally. 2. I've assigned a global variable that allows the external SWF's access to it. 3. It works perfectly in the flash IDE. 4. It works fine in firefox the first few times and then just returns 'undefined' for the variables that need to be populated, in SWF's loaded externally into the main file. I've been struggling with this issue since morning and can't for the life of me figure out what the problem is or what I'm doing wrong. I've changed folder structures, manipulated code...I'm so frustrated! Please help me :( Thanks, Bruce. ___ 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
[Flashcoders] Strange XML problems
Hi, 1. I have a main flash file which loads external SWF's when a particular tab is clicked on. This main file is embedded in an HTML page. All the data is coming through the XML file, including the fields that need to be populated in the SWF's loaded externally. 2. I've assigned a global variable that allows the external SWF's access to it. 3. It works perfectly in the flash IDE. 4. It works fine in firefox the first few times and then just returns 'undefined' for the variables that need to be populated, in SWF's loaded externally into the main file. I've been struggling with this issue since morning and can't for the life of me figure out what the problem is or what I'm doing wrong. I've changed folder structures, manipulated code...I'm so frustrated! Please help me :( Thanks, Bruce. ___ 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] Streaming video issue
Hi, I'm trying to stream videos off an FMS account with Influxis! Since I'm new at this I was looking for some tutorials and came across this one: http://www.adobe.com/devnet/flash/articles/video_player.html. I just need to integrate this into my application which plays local and progressive video just fine. But I can't get any of the videos to stream?! I tried using everything as is in the tutorials but it still doesn't work! I followed everything step by step and it all seems to be alright. I've created the application folders, etc. and put in all the necessary files in the correct place. The thumbnails show up but the video doesn't play when I click on the thumbnails. I'm slammed...can some one help me out and tell me where I'm going wrong!?!?! The test page is here: http://www.bruzed.com/rtmptest/VideoSource2.html. Thanks in advance! Bruce. ___ 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] Launching PPT presentations (or whatever) from a CD
I've searched the archives on this but didn't find much related to this so. Does anyone know of a best practice or design pattern or code example or article that can point to an efficient and flexible way of building a Flash projector that can act as a menu system for launching PPT presentations on a CD? The CD will be created for conference attendees and contain all the PPTs that will be presented. I need to be able to build the Flash projector up front and then change things (such as number of menu items/names, number and names of presentations, etc.) by simply editing an external text or XML file so that the Flash interface will adjust as needed. Thanks All, Bruce ___ 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