XaoS crashes while using my complex numbers - f**k
ive implemented complex numbers arithmetics using assembly and compiled it using nasm compiler. afterwards ive succesfully used that lib with gcc, vc++, bcb and even with delphi.
main purpose of writing that code was to add it to XaoS. i did that and even compiled XaoS without any error. but in runtime XaoS crashes when trying to call some of my functions. using gdb i found out that there is something 'wrong' with passing parameters to functions, but only when function returns complex number structure.
after a couple of hours i still dont how to deal with it ;(
edit:
finally ive found crashing down reason. its because of flag -omit-frame-pointer. its because my assembly code is a bit dirty and we cannot use this flag with gcc.
flashCS3 - notes #1
first part of my "migrating to as3" notes. lots of things have changed in new flashCS3. here are some i have to remeber about :
1. now its is possible to change parent of specified MovieClip (writing MovieClip i mean any subclass of InteractiveObject)
2. old MCs methods like attachMovie and createEmptyMovieClip are gone. now to achive the same effect you simply create MC instance and using method addChild append it to the parent MC.
Math display in Delphi
We easiest way to display mathematical equations in Delphi (this solution will also work with any Windows application). the idea is to use TEX math syntax and mimeTEX application. all we have to do now is to call mimeTEX from Delphi with consol output redirected back to our application and display returned image. to display gif images in Delphi we can use - this component by Finn Tolderlund. whole procedure (quick and dirty can look like this) [read more]
oop with actionscript in flash
currently im developing some code using actionscript 2 in flash 8. so ive implemented a class lets say code 1:
class myclass extends MovieClip { public function myclass() { trace("myclass - constructor"); }; private function onLoad() :Void { trace("On Load from class"); }; } class </strong>myclass extends MovieClip { public function myclass() { trace("myclass - constructor"); }; private function onLoad() :Void { trace("On Load from class"); }; }in flash ive linked that class with some movie clip (this is the way you can extend movie clips in flash ;)). after putting clip on stage ive added it an action code 2:
onClipEvent (load) { trace("loading from IDE"); }and while running this script we can see that : I. code defined for object already placed on stage does not override function defined in class implementation ( that is both - code 1 and code 2 will be invoked ) II. code 2 will be invoked as the first one afterwards code 1 -- a friend of mine said : "well, its normal behavior ! didnt you know that ?!?" ;/ i didnt ... -- BUT... lets suppose ive placed my object in first frame and called it : tst. if i write, also in first frame, code shown as code 3 i will override onLoad function defined in class implementation. and new onLoad handler will also be invoked after code 2: code 3:
tst.onLoad = function() { trace("OnLoad from IDE - onLoad<-function"); };- i think that what flash do is that it treads onClipEvent as if it was method implemented for MovieClip. in my class, MovieClips descendant, flash modifies onLoad method adding
super.onLoad() code. this tip works also for other events that can movieclip handle.previous (newer) , 1 , 2 , 3 , 4 , 5 , ... , 9 , next (older)