RE: [Flashcoders] hitTest unreliability

2009-04-29 Thread Mendelsohn, Michael
Thanks for the responses.  I think this is probably the solution because when I 
set the framerate to 1fps, it always errorred.

Thanks
- MM


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] mxmlc include classes , possible???

2009-04-29 Thread Ian Thomas
-includes com.mycompany.MyClass com.mycompany.MyOtherClass

HTH,
   Ian

On Wed, Apr 29, 2009 at 3:40 PM, Jiri  wrote:
> Hello list,
>
> Is it possible to force the mxmlc compiler to include certain classes so
> they can be instantiated at runtime. So I dont have to put an explicit
> reference in the .as files, in order to include it.
>
> I thought there was a compiler flag called include-classes, but a google
> search yields nothing of any use.
>
> I tried putting this in my flex-config
>
>        
>        org.name.class
>        
>
> But I get an error.
>
> Doing a mxmlc -help advanced in the console also yields no such flag.
>
> So I wonder now, is it at all possible, or do i need to create a .swc and
> have that add to the librart tag?
>
> Jiri
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] mxmlc include classes , possible???

2009-04-29 Thread Muzak

Checked the docs?

includes class [...] 
Links one or more classes to the resulting application SWF file, whether or not those classes are required at compile time.


http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html


- Original Message - 
From: "Jiri" 

To: "Flash Coders List" 
Sent: Wednesday, April 29, 2009 4:40 PM
Subject: [Flashcoders] mxmlc include classes , possible???



Hello list,

Is it possible to force the mxmlc compiler to include certain classes so 
they can be instantiated at runtime. So I dont have to put an explicit 
reference in the .as files, in order to include it.


I thought there was a compiler flag called include-classes, but a google 
search yields nothing of any use.


I tried putting this in my flex-config


org.name.class
  

But I get an error.

Doing a mxmlc -help advanced in the console also yields no such flag.

So I wonder now, is it at all possible, or do i need to create a .swc 
and have that add to the librart tag?


Jiri



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] hitTest unreliability

2009-04-29 Thread allandt bik-elliott (thefieldcomic.com)
my guess is that you're actually passing over the whole clip you're
hitTesting against in the time it takes for the frame to go by - you could
try saving the previous mouseposition and the current mouseposition and then
testing to see if the path between them crosses your clip

On Wed, Apr 29, 2009 at 2:29 PM, Mendelsohn, Michael <
michael.mendels...@fmglobal.com> wrote:

> Hi list...
>
> [AS2] If I moderately rapidly move the mouse in and out of a ScrollPane
> component, a hitTest on movieclips contained within the ScrollPane won't
> always evaluate correctly.  I can't figure out why it's so unreliable,
> working only about 65% of the time.
>
> The ScrollPane contains a bunch of movieclips, each with the onRollOut
> function attached:
>
> if(this._parent.hitTest(_root._xmouse, _root._ymouse)==false){
>O.UI.firstLevelMenu.flmSP.content.topicSynopsis.removeMovieClip();
> }
>
> Any thoughts?
> - Michael M.
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] mxmlc include classes , possible???

2009-04-29 Thread Jiri

Hello list,

Is it possible to force the mxmlc compiler to include certain classes so 
they can be instantiated at runtime. So I dont have to put an explicit 
reference in the .as files, in order to include it.


I thought there was a compiler flag called include-classes, but a google 
search yields nothing of any use.


I tried putting this in my flex-config


org.name.class


But I get an error.

Doing a mxmlc -help advanced in the console also yields no such flag.

So I wonder now, is it at all possible, or do i need to create a .swc 
and have that add to the librart tag?


Jiri

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] hitTest unreliability

2009-04-29 Thread Paul Steven
If possible then perhaps increasing the frame rate, the theory being that
there will be more tests going on and less likely the mouse has moved
outside the hit area before the test is performed. I guess increasing the
frame rate may not be an option. 

Hope that helps

Paul

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn,
Michael
Sent: 29 April 2009 14:29
To: Flash Coders List
Subject: [Flashcoders] hitTest unreliability

Hi list...

[AS2] If I moderately rapidly move the mouse in and out of a ScrollPane
component, a hitTest on movieclips contained within the ScrollPane won't
always evaluate correctly.  I can't figure out why it's so unreliable,
working only about 65% of the time.

The ScrollPane contains a bunch of movieclips, each with the onRollOut
function attached:

if(this._parent.hitTest(_root._xmouse, _root._ymouse)==false){
O.UI.firstLevelMenu.flmSP.content.topicSynopsis.removeMovieClip();
}

Any thoughts?
- Michael M.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Name Value pairs across XMLSocket?

2009-04-29 Thread Glen Pike

Hi,

   Thanks for the reply Eric - might try that later.

   Anyway, still confused as to "crossdomain" system because I have 
just messed with my settings panel and added my SWF as "Always Trusted" 
for "older applications"


   Now it does not ask for the crossdomain file - WTF?

   Apart from the usual adobe security bulletins, articles on devnet.  
Is there actually a definitive, but easily understood guide as to how 
this f* thing works.  Am fed up of chasing round in circles and 
trying to work out which crossdomain file is being requested on which 
port over which protocol and would just like a simple solution please... 
- sorry rant over, probably being stupid, but then stupid people make 
Flash apps too ;)


   Thx

   Glen

Glen Pike wrote:

Hi,

   I have a strange problem with my application - cross-domain 
problems again!


   Anyway, I am using LoadVars to send name=value& pairs to a port 
which returns an XML response...


   The cross-domain GET request is appearing at the port, but I am 
guessing FlashPlayer expects a "proper" HTTP response with headers, 
etc. that this server does not give.


   Can I use an XMLSocket to pass name=value& pairs, or something else 
- again AS2 so we don't have benefit of a binary socket...


   Thanks

   Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] hitTest unreliability

2009-04-29 Thread Mendelsohn, Michael
Hi list...

[AS2] If I moderately rapidly move the mouse in and out of a ScrollPane 
component, a hitTest on movieclips contained within the ScrollPane won't always 
evaluate correctly.  I can't figure out why it's so unreliable, working only 
about 65% of the time.

The ScrollPane contains a bunch of movieclips, each with the onRollOut function 
attached:

if(this._parent.hitTest(_root._xmouse, _root._ymouse)==false){
O.UI.firstLevelMenu.flmSP.content.topicSynopsis.removeMovieClip();
}

Any thoughts?
- Michael M.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Conditional statement in [Embed(source="... tag

2009-04-29 Thread Jiri

Thanx, i will look into that.

Jiri

Ian Thomas wrote:

It does accept conditionals, sort of, using the mxmlc -define tag.

I blogged about it somewhere (hunts around).

Aha!

http://code.awenmedia.com/node/34

HTH,
   Ian


On Tue, Apr 28, 2009 at 8:41 PM, Merrill, Jason
 wrote:

I don't believe you can do conditionals with [Embed] statements. Those
are compile-time directives for the compiler, not runtime player logic
like an if/else.  If the compiler accepts conditionals of some sort, I
am not aware of it and don't think it's documented anywhere.  I could be
wrong, but I doubt this is possible.


Jason Merrill

Bank of  America   Global Learning
Shared Services Solutions Development

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Conditional statement in [Embed(source="... tag

2009-04-29 Thread Jiri

So, you could do something like this in an embed tag

[Embed(source="Arial-Rounded-MT-Bold.ttf",
 fontFamily="ArialRoundedBold", fontWeight="bold", 
mimeType="application/x-font-truetype",

 unicodeRange=getCodeRange()]

Will try it.

Cheers for replying.

Sidney de Koning wrote:

Hi Jiri,

Why do you want to do that conditional there? Cant you call a var?
Then in your main entry class you set that var depending on the lang you 
get in.

Idea?

Or if you work with some sort of MVC ( Model View Controller ) 
architecture you could do that conditional in your Model and in your 
Emdbed tag just query MainModel.getUnicodeRange() which returns a string 
of all appropriate unicode chars.


Let me know if this works,

Sid


On Apr 28, 2009, at 5:47 PM, Jiri wrote:


Hello list,

i was wondering if it is possible to set a conditional statement in 
the EMBED tag. I would like to set the unicode range based on an id.



Here is the class i have now:

package {
import flash.display.Sprite;

public class ArialRoundedBoldFont extends Sprite {
[Embed(source="Arial-Rounded-MT-Bold.ttf", 
fontFamily="ArialRoundedBold", fontWeight="bold", 
mimeType="application/x-font-truetype", 
unicodeRange="U+0020-U+017E,U+20A0-U+20CF")]

public static var font:Class;
}
}


I would like to achive that the var 
unicodeRange="U+0020-U+017E,U+20A0-U+20CF"


is something like
unicodeRange=((lang==id)? "U+0020-U+017E,U+20A0-U+20CF" :  
"U+0020-U+017E")


Is this possible, or do I need to write a pre parser,  generating the 
.as file with the correct unicodeRange for a specific language. Then 
compile all the .as files for each individual country?


Many thanks,

Jiri
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Name Value pairs across XMLSocket?

2009-04-29 Thread Eric E. Dolecki
Since you're just sending a string across an XMLSocket I don't see why you
couldn't do that & just break it apart for evaluation afterwards.
E

On Wed, Apr 29, 2009 at 8:24 AM, Glen Pike wrote:

> Hi,
>
>   I have a strange problem with my application - cross-domain problems
> again!
>
>   Anyway, I am using LoadVars to send name=value& pairs to a port which
> returns an XML response...
>
>   The cross-domain GET request is appearing at the port, but I am guessing
> FlashPlayer expects a "proper" HTTP response with headers, etc. that this
> server does not give.
>
>   Can I use an XMLSocket to pass name=value& pairs, or something else -
> again AS2 so we don't have benefit of a binary socket...
>
>   Thanks
>
>   Glen
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Name Value pairs across XMLSocket?

2009-04-29 Thread Glen Pike

Hi,

   I have a strange problem with my application - cross-domain problems 
again!


   Anyway, I am using LoadVars to send name=value& pairs to a port 
which returns an XML response...


   The cross-domain GET request is appearing at the port, but I am 
guessing FlashPlayer expects a "proper" HTTP response with headers, etc. 
that this server does not give.


   Can I use an XMLSocket to pass name=value& pairs, or something else 
- again AS2 so we don't have benefit of a binary socket...


   Thanks

   Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders