PDA

View Full Version : [as] tag hack solution?


senocular
06-14-2004, 11:31 AM
how about this, how hard would it be to copy the PHP code into the AS tags and just change the "PHP:" to "ActionScript:" that appears at the top of the code?

petefs
06-14-2004, 03:43 PM
you have my vote -- hope it's an easy matter ^^

CyanBlue
06-14-2004, 03:43 PM
Hehe... Are you trying to fool vB, senocular??? I think vB will explode because vB won't know what the !#%&*()_+ it should do out of that... :D

Yeah... That sounds good... Can we have it, pretty please??? :)

dzy2566
06-14-2004, 05:34 PM
Hm, an intersting thought. Whatever the solution may be, I'm really looking forward to having our formatting back. It's so hard to read unformatted code...........call me lazy :)

pom
06-15-2004, 10:22 AM
It's harder to indent it by hand... :/

CyanBlue
06-15-2004, 10:29 AM
You call call ME lazy, dzy2566... I don't read the scripts that are not formatted... I need to spend more time to read and understand what their problem is, and I don't want to spend more time on something that can be provided as easy as using any formatting tag... :(

pom... Ctrl + Shift + F does the auto formatting... :D

pom
06-15-2004, 10:43 AM
this.onEnterFrame = function () {
trace ("somebody shoot me in the head!") ;
}??

CyanBlue
06-15-2004, 10:45 AM
Um... You can shoot me... :D
I meant doing that in Flash and then bring it back to the forum... :(

red penguin
06-15-2004, 01:24 PM
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};


Note the translation of the quotes...

Jesse
06-15-2004, 06:48 PM
I can probably impliment the PHP code for AS tags as well, as a hack if ppl wnat that, but ultimately I want to get our old AS formatter going because... well PHP is not AS. Also, we have a NEW AS2 formatter, which will do classes and evrything if we can just get the old one working as a basis!

Anyway, I'll keep on it.

Jesse
06-15-2004, 07:21 PM
// test scrolling box implimentation
// 1
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 2
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 3
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 4
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 5
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 6
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 7
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 8
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 9
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};
// 10
_global.$echo = function(exp) {
if(_root._url.substr(0, 4) == "file") trace(exp);
else getURL("javascript:alert('" add exp add "')");
};

Jesse
06-15-2004, 07:39 PM
OK I did some more playing and I think we've got it working now. *fingers crossed*

If anyone finds serious bugs in it please email me jesse@this_site.

Jesse
06-15-2004, 08:13 PM
Alright, I had it working perfectly. Better than ever, int he little scrolly box and everything, and then as soon as I posted something,it magically stuffed up. In all honesty I'm about to run a "rm -f *" because of how much time I've wasted on this this morning! I've put in a little something util I have a real chance to fix it. I guess it's better than nothing, but I KNOW it can work, because it damn well was working 20 mins ago. Grrr.

I'll get onto it next week after exams are over.

Colin Campbell
06-15-2004, 08:49 PM
Good luck with the exams Jesse :), don't sweat over the AS tags.

red penguin
06-16-2004, 10:15 AM
Good luck with exams, sir!

As of this post, the quotes are fixed...

Jesse
06-16-2004, 06:20 PM
Yeah I changed the code a little to search for "&quot" instead of """. That fixed it.

Jesse
06-16-2004, 06:20 PM
Oh and thx for well wishes :)

tg
06-17-2004, 12:01 AM
what? your taking exams jesse?



damn. and here i thought you knew it all by now.

hehhehheh. good luck.

Jesse
06-17-2004, 04:46 AM
Haha. I wish I could convince my University lecturers of that as easily! Unfortunately I have 12 hours of examination to look forward to next week :)

Colin Campbell
06-17-2004, 03:38 PM
I'm done 1 of my finals, 2 more to go :(

Jesse
06-17-2004, 06:30 PM
Good luck to you too mate! :)

Ricod
06-17-2004, 11:58 PM
Good luck to the both of you (and other people who have exams too of course) !

dzy2566
06-18-2004, 10:34 AM
It's awesome that the AS tags are working again and I appreciate all your work to get them back up. Just wondering if we'll ever get the colors/bold/etc. back eventually too, or is that not in the works? Not trying to be greedy, just wondering. Thanks again Jesse :D

Colin Campbell
06-18-2004, 02:02 PM
2 exams down, 1 to go.

I had my Math exam today, I thought it would be tougher than it was, thats always a good feeling :)

dzy2566
06-18-2004, 02:14 PM
You must have studied extra hard...............:) I remember how great it felt when exams were all over, but those fews days during exam week, ugh.