Re: [Flashcoders] Levels and Classes
No, they´re not. Thank you for the advice! I´ll stick to it in the future. Peter Den 30. mar. 2006 kl. 14.09 skrev "" <[EMAIL PROTECTED]>: Just a thought but are your classes in a package hierarchy with class names qualified to a package? That should stop any class name conflicts and will help to organise your code in directories on your hard drive. --- On Thu 03/30, =?ISO-8859-1?Q?Peter_M=E5seide?= < [EMAIL PROTECTED] > wrote: From: =?ISO-8859-1?Q?Peter_M=E5seide?= [mailto: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Date: Thu, 30 Mar 2006 13:58:23 +0200 Subject: Re: [Flashcoders] Levels and Classes Thats my only solution so far. It works OK (except for an ugly rename job) as long as I´m in controll of all the classes. But if I get anothers authors swf with same-name classes and want to load it I can ´t see an easy solution.Den 30. mar. 2006 kl. 11.23 skrev Ramon Miguel M. Tayag:> The classes in level2 and 3 have the same name but do different> things? You must find a way to make them different. Can you change> the name of the class?>> On 3/30/06, Peter Måseide <[EMAIL PROTECTED]> wrote:>> I have a base swf (_level0) and I´m loading an swf into _level2 and>> another swf into _level3.>> The swfs in _level2 and _level3 both use classes with the same name,>> but the content of the classes are different.>> I found out that when I loaded the _level3-swf the classes in the>> _level2-swf was replaced with the new ones, and the result was chaos.>> Is there a way to avoid this problem, except from renaming the>> classes and recompile?>>>> Best regards>> Peter Måseide>> >> Peter Måseide - [EMAIL PROTECTED] - Mob 40858675>>>> ___>> 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>>>>> --> Ramon Miguel M. Tayag> Managing Director> Quirkworks> ___> 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>_ ___Peter Måseide - [EMAIL PROTECTED] - Mob [EMAIL PROTECTED] ttyfig.figleaf.comTo change your subscription options or search the archive:http://chattyfig.figleaf.com/mailman/listinfo/ flashcodersBrought to you by Fig Leaf SoftwarePremier Authorized Adobe Consulting and Traininghttp://www.figleaf.comhttp:// training.figleaf.com ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ 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 Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ 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] what´s the catch?
try { loadMovieNum(filename, 3); } catch (error:Error) { trace("An error!"); } If filename is a path to a non-existing file i want the code in the catch to be executed. I only get an Error opening URL "file:///Macintosh%20HD/... swf" in my Output window, either if I use try-catch or not. Any suggestions? Thanks in adwane! Peter ________ Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ 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] Levels and Classes
Thats my only solution so far. It works OK (except for an ugly rename job) as long as I´m in controll of all the classes. But if I get anothers authors swf with same-name classes and want to load it I can ´t see an easy solution. Den 30. mar. 2006 kl. 11.23 skrev Ramon Miguel M. Tayag: The classes in level2 and 3 have the same name but do different things? You must find a way to make them different. Can you change the name of the class? On 3/30/06, Peter Måseide <[EMAIL PROTECTED]> wrote: I have a base swf (_level0) and I´m loading an swf into _level2 and another swf into _level3. The swfs in _level2 and _level3 both use classes with the same name, but the content of the classes are different. I found out that when I loaded the _level3-swf the classes in the _level2-swf was replaced with the new ones, and the result was chaos. Is there a way to avoid this problem, except from renaming the classes and recompile? Best regards Peter Måseide ____ Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ 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 -- Ramon Miguel M. Tayag Managing Director Quirkworks ___ 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 ____ Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ 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] Levels and Classes
I have a base swf (_level0) and I´m loading an swf into _level2 and another swf into _level3. The swfs in _level2 and _level3 both use classes with the same name, but the content of the classes are different. I found out that when I loaded the _level3-swf the classes in the _level2-swf was replaced with the new ones, and the result was chaos. Is there a way to avoid this problem, except from renaming the classes and recompile? Best regards Peter Måseide Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ 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] Calling class function from xml object in a class onLoad
Problem solved, sorry for filling up your mailbox! I made a new class extending the XML-class and decleared an extra property for my class reference in the extended XML-class. If you have other interesting easy solutions, I´m listening, but don´t spend february figuring out something! Best regards Peter Den 4. feb. 2006 kl. 12.45 skrev Peter Måseide: When I us MovieClips in a class i can create references to the class inside the clip for calling class functions. *** example: ... clip_mc.classreference = this; clip_mc.onPress = function () { this.classreference.classFunction(); } ... classFunction(){ trace("Called from clip_mc"); } ... *** My case: class SomeClass { var data_xml:XML; public function SomeClass() { data_xml = new XML(); data_xml.onLoad = function(suksess) { if (suksess) { // Parsing... // After parsing I want to call the function pushData() } } } public function pushData(data) { trace("Data recieved"); } } I need to do something similar, but with xml-objects. I know I can reach the class instance via _root.someclassinstance.pushData(), but I don´t want to do it properly. Best regards Peter Måseide ________ Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ________ Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Calling class function from xml object in a class onLoad
Den 4. feb. 2006 kl. 12.45 Peter Måseide wrote: ... , but I don´t want to do it properly. That came out the opposite of what I really ment.. :) Do anybody have any suggestions for the problem? Peter Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Calling class function from xml object in a class onLoad
When I us MovieClips in a class i can create references to the class inside the clip for calling class functions. *** example: ... clip_mc.classreference = this; clip_mc.onPress = function () { this.classreference.classFunction(); } ... classFunction(){ trace("Called from clip_mc"); } ... *** My case: class SomeClass { var data_xml:XML; public function SomeClass() { data_xml = new XML(); data_xml.onLoad = function(suksess) { if (suksess) { // Parsing... // After parsing I want to call the function pushData() } } } public function pushData(data) { trace("Data recieved"); } } I need to do something similar, but with xml-objects. I know I can reach the class instance via _root.someclassinstance.pushData(), but I don´t want to do it properly. Best regards Peter Måseide ________ Peter Måseide - [EMAIL PROTECTED] - Mob 40858675 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders