Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using SWC libraries in my C# jsc project
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Moristar  
View profile  
 More options May 29 2009, 4:08 am
From: Moristar <moris...@gmail.com>
Date: Fri, 29 May 2009 01:08:02 -0700 (PDT)
Local: Fri, May 29 2009 4:08 am
Subject: Using SWC libraries in my C# jsc project
Hello, first of all, I must say that jsc is simply incredible!
Orginally I am C# developer but now I also developing AS3, so when I
found your tool I just felt orgazm )))
Anyway. How can I I use external libraries in my project.
For example I have Flint library (very good particle system) in SWC
file. But I can't use it in C# code and yes, I can parse it by hands
to C# jsc, but it's so boring - to many classes. So I wonder - is
there some automatic converter or simply the way to use external code?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zproxy  
View profile  
 More options May 29 2009, 2:05 pm
From: zproxy <dade...@gmail.com>
Date: Fri, 29 May 2009 11:05:07 -0700 (PDT)
Local: Fri, May 29 2009 2:05 pm
Subject: Re: Using SWC libraries in my C# jsc project
Hey,

There is no automatic stub generator yet.

I wrote a blog post about using flint in an example project:
http://zproxy.wordpress.com/2009/05/29/using-flint-particle-system-fr...

Cheers,
Arvo

On May 29, 11:08 am, Moristar <moris...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options May 30 2009, 12:27 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Sat, 30 May 2009 07:27:15 +0300
Local: Sat, May 30 2009 12:27 am
Subject: Re: Using SWC libraries in my C# jsc project

Grat thanks!
I have unlimited power now ))
You doing great job!

2009/5/29 zproxy <dade...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 1 2009, 1:59 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Mon, 1 Jun 2009 08:59:26 +0300
Local: Mon, Jun 1 2009 1:59 am
Subject: Re: Using SWC libraries in my C# jsc project

Hello again
Finally I took a look at the sample project and I'm happy, that I went in
correct direction. Thanks for stubs for Flint classes, but can I ask you to
make stubs for org.flintparticles.twoD package also? It seems that you
create them much more quickly than me.
Thanks again! Long live the jsc )

2009/5/30 A$TRAL Moristar <moris...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arvo Sulakatko  
View profile  
 More options Jun 1 2009, 3:20 am
From: Arvo Sulakatko <dade...@gmail.com>
Date: Mon, 1 Jun 2009 10:20:09 +0300
Local: Mon, Jun 1 2009 3:20 am
Subject: Re: Using SWC libraries in my C# jsc project

Hey,

I am sorry, but this week I am booked. I will do so however in the next
week.

Are you planning to post online your experiments with jsc? I would be happy
to have a look at them. Or even if you manage to write some cool demos I
would include them to the jsc project examples.

Best Regards,
Arvo


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 1 2009, 3:35 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Mon, 1 Jun 2009 10:35:33 +0300
Local: Mon, Jun 1 2009 3:35 am
Subject: Re: Using SWC libraries in my C# jsc project

Sure, I will )
Can you tell me than, how do you create them (I mean stubs) so accurate and
well formed? I cant believe, that you doing this by own hands

2009/6/1 Arvo Sulakatko <dade...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 1 2009, 3:40 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Mon, 1 Jun 2009 10:40:13 +0300
Local: Mon, Jun 1 2009 3:40 am
Subject: Re: Using SWC libraries in my C# jsc project

By the way, my goal of using jsc is to make flash demo versions of casual
games, that my company developing. So you will see them very soon on our
website. And also I'll will think about composing some good tutorials )

2009/6/1 A$TRAL Moristar <moris...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arvo Sulakatko  
View profile  
 More options Jun 1 2009, 4:31 am
From: Arvo Sulakatko <dade...@gmail.com>
Date: Mon, 1 Jun 2009 11:31:28 +0300
Local: Mon, Jun 1 2009 4:31 am
Subject: Re: Using SWC libraries in my C# jsc project

Cool, looking forward to it.

Are you guys using mochiads?

You might be interested to check out the source code for this:
http://code.google.com/p/avalontycoonmansion/

Arvo


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 1 2009, 6:48 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Mon, 1 Jun 2009 13:48:39 +0300
Local: Mon, Jun 1 2009 6:48 am
Subject: Re: Using SWC libraries in my C# jsc project

Hi.
Sorry for disturbance, but I faced a problem, that I cant pass AS3 Class
parameter. I mean using of Class type as C# Type.
So if I want to pass simply class name - C# compiler says, that I'm using
class as variable, and when I'm trying to cheat and replacing Class with
Type - it's C#-AS3 translator can't understand me.
Can you help with that?

2009/6/1 Arvo Sulakatko <dade...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
zproxy  
View profile  
 More options Jun 5 2009, 3:26 am
From: zproxy <dade...@gmail.com>
Date: Fri, 5 Jun 2009 00:26:36 -0700 (PDT)
Local: Fri, Jun 5 2009 3:26 am
Subject: Re: Using SWC libraries in my C# jsc project
Could you give me an example source snippet of how you are trying to
use it and a more elaborate description on what you are trying to
achieve. I would be glad to help you out.

On Jun 1, 1:48 pm, "A$TRAL Moristar" <moris...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 5 2009, 8:38 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Fri, 5 Jun 2009 15:38:48 +0300
Local: Fri, Jun 5 2009 8:38 am
Subject: Re: Using SWC libraries in my C# jsc project

Oh, that's OK. I've found the solution.
I'm using this statement
typeof(RadialDot).ToClassToken()
to get a Class object with the RadialDot type.
For now I'm trying to add some stubs for mx.controls package. It was a
pleasant surptise, when I compiled ScriptCoreLib and is copied to util\jsc
folder :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arvo Sulakatko  
View profile  
 More options Jun 5 2009, 8:42 am
From: Arvo Sulakatko <dade...@gmail.com>
Date: Fri, 5 Jun 2009 15:42:00 +0300
Subject: Re: Using SWC libraries in my C# jsc project

I could include those new stubs into the svn tree if you also provide a
simple example project to demonstrate (for testing) those new types.

If you have more questions, let me know.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 5 2009, 9:13 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Fri, 5 Jun 2009 16:13:39 +0300
Local: Fri, Jun 5 2009 9:13 am
Subject: Re: Using SWC libraries in my C# jsc project

Yeah, there is a lot of questions )
I will provide stubs with example a bit later. I only imported TextArea
class for real )
Now I have this message
Error 5 ActionScript : BCL needs another method, please define it. Cannot
call type without script attribute : System.Convert for System.String
ToString(Int64, Int32) used at
Engine.Widgets.TextWidgetWithScroll.set_FontInfo. If the use of this method
is intended, an implementation should be provided with the attribute
[Script(Implements=typeof(...)] set. You may have mistyped it.

This is because I use Convert method for getting hexadecimal string from
uint color value. It seems, that I must write functionality for converting
uint to string by myself?

2009/6/5 Arvo Sulakatko <dade...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A$TRAL Moristar  
View profile  
 More options Jun 5 2009, 10:53 am
From: "A$TRAL Moristar" <moris...@gmail.com>
Date: Fri, 5 Jun 2009 17:53:05 +0300
Local: Fri, Jun 5 2009 10:53 am
Subject: Re: Using SWC libraries in my C# jsc project

So.. I have made this correction to ScriptCoreLib:
[Script(Implements = typeof(global::System.Convert))]
 internal class __Convert
 {
  public static string ToString(char value)
  {
  return __String.FromCharCode(value);
  }

  [Script(OptimizedCode="var str:String = value.toString(16).toUpperCase();
str = String(\"000000\" + str).substr(-6); return str;")]
  public static string ToString(long value, int toBase) {
  return "";
  }

2009/6/5 A$TRAL Moristar <moris...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google