[flexcoders] Re: Flash game ESC problem

2007-11-08 Thread helix206
Sory for the late reply.

Well, in my case, we are making games for kids, from age 7-11, and all 
games run in full screen. We dont want the kids to press escape and get 
MINIMAZED windows, we want to game to exit completly on ESC, or block 
ESC and expose an exit button in game just like all other games do. The 
main point here is to make Flash tehnoloty transparent.

The directX world wanted ALT+TAB blocked just to block users to get to 
windows while the game is running so it cant be easely cracked, or in 
MMORPG world, so that to pockets cant be sniffed easely. 

All those blocks are used to prevent bad people to do bad things to 
your software.



[flexcoders] Re: Flash player 9 standalone download

2007-09-24 Thread helix206
Thanks but i need the latest version 9.47 standalone. Any links on 
Adobe website?

I think Adobe should make this simpler.

--- In flexcoders@yahoogroups.com, "Bart Wttewaall" 
<[EMAIL PROTECTED]> wrote:
>
> After installing Flex 2, you can find the player in the install 
folder:
> 
> C:\Program Files\Adobe\Flex Builder 2\Player\debug\Install Flash 
Player
> 9.exe
> 
> 2007/9/24, helix206 <[EMAIL PROTECTED]>:
> >
> >   Can anyone please tell me where can i download the FP9 
standalone
> > player and active X so that i can put them on the CD for my 
clients? I
> > cant find them anyware on adobe.
> >
> > thansk alot.
> >
> >  
> >
>




[flexcoders] Using special characters in Flex

2007-09-24 Thread helix206
I have a problem with \ character in flex. I want to send it to JS 
function with external interface, but if i do it like this :

ExternalInterface.call("test","dir\\test.exe");

in JS i get "dir est.exe".

Any way to solve that?

Thanks



[flexcoders] Flash player 9 standalone download

2007-09-24 Thread helix206
Can anyone please tell me where can i download the FP9 standalone 
player and active X so that i can put them on the CD for my clients? I 
cant find them anyware on adobe.

thansk alot.



[flexcoders] Re: Open SWF from another SWF.

2007-09-24 Thread helix206
Can you please explain a bit more? Whats a shell app?

Thanks.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You can't use a shell app with SWFLoader?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of helix206
> Sent: Saturday, September 22, 2007 4:04 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Open SWF from another SWF.
> 
>  
> 
> Ok, i have tryed this with fscommand("exec", "test.exe"); and it 
works, 
> all SWF files must be projectors.
> 
> Now i have 2 problems, the projector test.exe witch is an 
application 
> runs fine when run directly, but when i execute it from my first 
> projector (runner.exe) the second test.exe wont read any XML files 
with 
> HTTPRequest method, i get an error that it cant find the file. 
> 
> I examined the path to the XML file and it changes if called from 
> another projector from :
> 
> URL: file:///G  |/Directory/fscommand/myXML.xml"]. 
> 
> to :
> 
> URL:file:3F/G  
|/Directory/fscommand/myXML.xml"]. 
> 
> Any way to fix that?
> 
> And another Q, when creating projectors, now i can create them with 
> file->Create Projector. Is there a way to create them from command 
line 
> because all my apps are in full screen and i have blocked the ESC 
> button. Btw, if anyone is interested i blocked ESC button with : 
> fscommand("trapallkeys","True");.
> 
> I hope someone can help.
> 
> thx.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "helix206"  wrote:
> >
> > I have a problem. I have several local SWF files built for a 
> > client,all run in full screen, and all are seperate applications. 
Now 
> > the client wants one unique window for running all thiose apps. 
> > 
> > Is it even possible to call and open SWF application from another 
SWF 
> > application. 
> > 
> > thx.
> >
>




[flexcoders] Re: Open SWF from another SWF.

2007-09-22 Thread helix206
Ok, i have tryed this with fscommand("exec", "test.exe"); and it works, 
all SWF files must be projectors.

Now i have 2 problems, the projector test.exe witch is an application 
runs fine when run directly, but when i execute it from my first 
projector (runner.exe) the second test.exe wont read any XML files with 
HTTPRequest method, i get an error that it cant find the file. 

I examined the path to the XML file and it changes if called from 
another projector from :

URL: file:///G|/Directory/fscommand/myXML.xml"]. 

to :

URL:file:3F/G|/Directory/fscommand/myXML.xml"]. 

Any way to fix that?

And another Q, when creating projectors, now i can create them with 
file->Create Projector. Is there a way to create them from command line 
because all my apps are in full screen and i have blocked the ESC 
button. Btw, if anyone is interested i blocked ESC button with : 
fscommand("trapallkeys","True");.

I hope someone can help.

thx.

--- In flexcoders@yahoogroups.com, "helix206" <[EMAIL PROTECTED]> wrote:
>
> I have a problem.  I have several local SWF files built for a 
> client,all run in full screen, and all are seperate applications. Now 
> the client wants one unique window for running all thiose apps. 
> 
> Is it even possible to call and open SWF application from another SWF 
> application. 
> 
> thx.
>




[flexcoders] Flex component kit problem

2007-09-17 Thread helix206
I have created a SWC component with Flash, simple one. I have a 
variable "label1" that i set from Flex when defining a component :



Variable label1 actualy changes but the textField in Flash doesent 
show it, anyone knows why?

This is part of AS code from Flash CS3.

 public class MyComp extends UIMovieClip
  {
  
public var label1:String ="" ;
  
public function MyComp():void{


setLabel();
}

public function setLabel():void{
labeltext.text = label1;
}



[flexcoders] Flash game ESC problem

2007-09-17 Thread helix206
I am creating a game in Flash, in fullscreen, but i dont want to allow 
users to exit fullscreen mode with Escape button, how can i disable 
that?

thanks



[flexcoders] Flex canvas more then 4300px?

2007-09-05 Thread helix206
My SFW file height is 5000px, and it works just fine, but the canvas 
component stops expanding at 4300px, anyone knows why? Text components 
work.

thx.



[flexcoders] How is this done?

2007-09-05 Thread helix206
I saw a fiew flash sites that act as normal HTML/CSS sites. By that i 
meen they resize the browser window acording to the content in flash, 
so if you click a link in a site and new content is much bigger then 
the old one, the flash SWF width and height changes and browser adopts.

Can anyone here explain how is that done?

Thank you in advanced.




[flexcoders] Flex component kit problem

2007-05-17 Thread helix206
Ok, i have managed to create a small component in flash and load it in 
flex, work great, tho i have one problem.

As the class i created extends uimovieclip, flex sees it as movieclip, 
but i need the property's of a button. Actualy i need autoRepeat 
property of a button. Does anyone know how to get flex to see my 
component as a button?

thx.



[flexcoders] Re: image out of frame

2007-05-11 Thread helix206
Set horizontalScrollPolicy="off" verticalScrollPolicy="off" on your 
component.



[flexcoders] Re: CacheAsBitmap stops working.

2007-05-10 Thread helix206
Ok, i have solved the problem with 2880px bitmap limit.

Its easy done with scroolRect.x and scrollRect.y where you determine 
the starting point of a 'cut' and scroolRect.width and 
scrollRect.height to determine the width and height of bitmap you 
want to show, so W and H would be your screen W&H...

Something like this :

public var test:Rectangle = new Rectangle();

private function cropMap():void{

map_container.validateNow();

test.x = - map_container.x/zoomFactor;
mapa.x = - map_container.x/zoomFactor;

test.y = - map_container.y/zoomFactor;
mapa.y = - map_container.y/zoomFactor;


//how much to crop
test.width = main_container.width/zoomFactor;
test.height = main_container.height/zoomFactor;

//apply rect to SWF map
mapa.scrollRect = test;

}



Still no luck with X,Y limit, tho i found this :

"Ahh... if my old OpenSWF memories serve, is that because x/y values 
are
stored as 16-bit int (64k values), split into +/- (-32k -> +32k), 
given
quarter-pixel accuracy (-8k -> +8k)...

Troy."

Anyone? How would one go with virtualizing X&Y? 


--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]> 
wrote:
>
> Yeah, you're hitting the 2880 pixel limit with bitmaps. No bitmap, 
including
> cached bitmaps, can be bigger than 2880 px in either dimension. In 
the case
> of cacheAsBitmap, it stops caching when that's the case.
> 
> Fortunately, you can control it a bit... I'd imagine that even when 
zooming
> in you're only showing less than 2880 pixels actually on screen. 
So, you can
> do a bit of caching. And you can control the size of the cached 
bitmap by
> setting the scrollRect for the displayObject.
> 
> Now, I'm not sure if the scrollRect is "smart" in that when you 
move it it
> simply redraws (stupid) or does a partial copy and a partial render
> (smart)... if its smart, then you've got it pretty easy, just move 
the
> scrolllRect around your map instead of moving the map (or its 
SWFLoader)
> around inside a container.
> 
> Another option would be to simply make the scrollRect be as big as 
possible
> while still being smaller than 2880px. This would allow you to drag 
the map
> around locally without it having to redraw but forcing a redraw if 
you
> dragged too far. Kinda similar result to a tiled renderer, not 
quite as
> efficient, but a whole lot less code!
> 
> Troy.
> 
> 
> On 5/2/07, helix206 <[EMAIL PROTECTED]> wrote:
> >
> >   Hello all,
> >
> > I have this strange ans stupid problem and the deathline is 
comming
> > in a fiew days, so i hope someone will be able to help me.
> >
> > First of, I am trying to drag a vector map inside another 
container
> > fluidly.
> >
> > So, I have a vector map, exported to .SWF. This map is loaded with
> > SWFLoader in another container, and the SWFLoader has a property
> > CacheAsBitmap set to True. Everything works just fine, and the map
> > drags very well inside the container. Problems araise when i zoom 
the
> > map (actualy scale it) beyond 2000px. Then draging becomes very 
slow,
> > and i sopose that CacheAsbitmap property just stops working.
> >
> > So, does anyone has any idea why is this heppening, and how could 
i
> > solve it?
> >
> > I will accept any sollution except tiling my map into 100 tiles 
and
> > showing only the ones that are on the screen. If no sollution 
will be
> > provided then i guess ill have to do it that way.
> >
> > Any help appriciated.
> >
> >  
> >
>




[flexcoders] Re: CacheAsBitmap stops working.

2007-05-10 Thread helix206

Has anyone solved the problem with +/-8191 coordinates problem?




--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]> 
wrote:
>
> Oh, and another issue you may run into... coordinates inside a 
container
> can't be outside of the range +/- 8191 or the object vanishes. So, 
that too
> could be an issue when you get into larger maps depending on how 
you're
> scrolling them around.
> 
> I've run into both of these issues in my current work where I'm 
developing a
> pretty open-ended game system which has required me to take on a 
lot of
> issues that I had hoped Flash's native renderer would juggle for 
me, like
> smart bitmap caching and coordinate virtualization (moving beyond 
the +/-
> 8191 limit). I'll be honest, I've not solved them both myself, 
yet... but
> will have to over the next few weeks, so anything you learn would 
be much
> appreciated...
> 
> Troy.
> 
> 
> On 5/2/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:
> >
> > Yeah, you're hitting the 2880 pixel limit with bitmaps. No bitmap,
> > including cached bitmaps, can be bigger than 2880 px in either 
dimension. In
> > the case of cacheAsBitmap, it stops caching when that's the case.
> >
> > Fortunately, you can control it a bit... I'd imagine that even 
when
> > zooming in you're only showing less than 2880 pixels actually on 
screen. So,
> > you can do a bit of caching. And you can control the size of the 
cached
> > bitmap by setting the scrollRect for the displayObject.
> >
> > Now, I'm not sure if the scrollRect is "smart" in that when you 
move it it
> > simply redraws (stupid) or does a partial copy and a partial 
render
> > (smart)... if its smart, then you've got it pretty easy, just 
move the
> > scrolllRect around your map instead of moving the map (or its 
SWFLoader)
> > around inside a container.
> >
> > Another option would be to simply make the scrollRect be as big as
> > possible while still being smaller than 2880px. This would allow 
you to drag
> > the map around locally without it having to redraw but forcing a 
redraw if
> > you dragged too far. Kinda similar result to a tiled renderer, 
not quite as
> > efficient, but a whole lot less code!
> >
> > Troy.
> >
> >
> > On 5/2/07, helix206 <[EMAIL PROTECTED]> wrote:
> > >
> > >   Hello all,
> > >
> > > I have this strange ans stupid problem and the deathline is 
comming
> > > in a fiew days, so i hope someone will be able to help me.
> > >
> > > First of, I am trying to drag a vector map inside another 
container
> > > fluidly.
> > >
> > > So, I have a vector map, exported to .SWF. This map is loaded 
with
> > > SWFLoader in another container, and the SWFLoader has a property
> > > CacheAsBitmap set to True. Everything works just fine, and the 
map
> > > drags very well inside the container. Problems araise when i 
zoom the
> > > map (actualy scale it) beyond 2000px. Then draging becomes very 
slow,
> > > and i sopose that CacheAsbitmap property just stops working.
> > >
> > > So, does anyone has any idea why is this heppening, and how 
could i
> > > solve it?
> > >
> > > I will accept any sollution except tiling my map into 100 tiles 
and
> > > showing only the ones that are on the screen. If no sollution 
will be
> > > provided then i guess ill have to do it that way.
> > >
> > > Any help appriciated.
> > >
> > >  
> > >
> >
> >
>




[flexcoders] Re: Mouse Event - Mouse Pressed

2007-05-07 Thread helix206

Flex rules, autoRepeat is what i needed !

thx alot!

--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> 
wrote:
>
> you might also want to take a look at Button.autoRepeat and Button 
styles
> repeatDelay and repeatInterval.
> 
> Daniel Freiman
> nondocs <http://nondocs.blogspot.com>
> 
> On 5/7/07, gotjosh819i <[EMAIL PROTECTED]> wrote:
> >
> >
> > I would look into the Flash Timer and TimerEvent
> >
> > import flash.utils.Timer;
> > import flash.events.TimerEvent;
> >
> > Those with the right code logic in conjunction with a mouseclick
> > event should do the trick.
> >
> > --- In flexcoders@yahoogroups.com ,
> > "helix206"  wrote:
> > >
> > > Hi all,
> > >
> > > I would like to know is there a simple way to do the folowing :
> > Press a
> > > buttom, and while its pressed button should call a function 24
> > times a
> > > second, or at the speed of a movie?
> > >
> > > thx.
> > >
> >
> >  
> >
>




[flexcoders] Mouse Event - Mouse Pressed

2007-05-07 Thread helix206
Hi all,

I would like to know is there a simple way to do the folowing : Press a 
buttom, and while its pressed button should call a function 24 times a 
second, or at the speed of a movie?

thx.



[flexcoders] Re: CacheAsBitmap stops working.

2007-05-03 Thread helix206
I think ill go with scrollRect, ill try to hide everything except 
what the user sees on his monitor. That would be like 1600x1200 px of 
visible parts of the map.

If anyone has some math for scroolRect done post it here. If not, 
after a fiew days of brainstorming ill post the whole map component 
with zooming, scrooling and other features.


--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]> 
wrote:
>
> Oh, and another issue you may run into... coordinates inside a 
container
> can't be outside of the range +/- 8191 or the object vanishes. So, 
that too
> could be an issue when you get into larger maps depending on how 
you're
> scrolling them around.
> 
> I've run into both of these issues in my current work where I'm 
developing a
> pretty open-ended game system which has required me to take on a 
lot of
> issues that I had hoped Flash's native renderer would juggle for 
me, like
> smart bitmap caching and coordinate virtualization (moving beyond 
the +/-
> 8191 limit). I'll be honest, I've not solved them both myself, 
yet... but
> will have to over the next few weeks, so anything you learn would 
be much
> appreciated...
> 
> Troy.
> 
> 
> On 5/2/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:
> >
> > Yeah, you're hitting the 2880 pixel limit with bitmaps. No bitmap,
> > including cached bitmaps, can be bigger than 2880 px in either 
dimension. In
> > the case of cacheAsBitmap, it stops caching when that's the case.
> >
> > Fortunately, you can control it a bit... I'd imagine that even 
when
> > zooming in you're only showing less than 2880 pixels actually on 
screen. So,
> > you can do a bit of caching. And you can control the size of the 
cached
> > bitmap by setting the scrollRect for the displayObject.
> >
> > Now, I'm not sure if the scrollRect is "smart" in that when you 
move it it
> > simply redraws (stupid) or does a partial copy and a partial 
render
> > (smart)... if its smart, then you've got it pretty easy, just 
move the
> > scrolllRect around your map instead of moving the map (or its 
SWFLoader)
> > around inside a container.
> >
> > Another option would be to simply make the scrollRect be as big as
> > possible while still being smaller than 2880px. This would allow 
you to drag
> > the map around locally without it having to redraw but forcing a 
redraw if
> > you dragged too far. Kinda similar result to a tiled renderer, 
not quite as
> > efficient, but a whole lot less code!
> >
> > Troy.
> >
> >
> > On 5/2/07, helix206 <[EMAIL PROTECTED]> wrote:
> > >
> > >   Hello all,
> > >
> > > I have this strange ans stupid problem and the deathline is 
comming
> > > in a fiew days, so i hope someone will be able to help me.
> > >
> > > First of, I am trying to drag a vector map inside another 
container
> > > fluidly.
> > >
> > > So, I have a vector map, exported to .SWF. This map is loaded 
with
> > > SWFLoader in another container, and the SWFLoader has a property
> > > CacheAsBitmap set to True. Everything works just fine, and the 
map
> > > drags very well inside the container. Problems araise when i 
zoom the
> > > map (actualy scale it) beyond 2000px. Then draging becomes very 
slow,
> > > and i sopose that CacheAsbitmap property just stops working.
> > >
> > > So, does anyone has any idea why is this heppening, and how 
could i
> > > solve it?
> > >
> > > I will accept any sollution except tiling my map into 100 tiles 
and
> > > showing only the ones that are on the screen. If no sollution 
will be
> > > provided then i guess ill have to do it that way.
> > >
> > > Any help appriciated.
> > >
> > >  
> > >
> >
> >
>




[flexcoders] CacheAsBitmap stops working.

2007-05-02 Thread helix206
Hello all,

I have this strange ans stupid problem and the deathline is comming 
in a fiew days, so i hope someone will be able to help me.

First of, I am trying to drag a vector map inside another container 
fluidly.

So, I have a vector map, exported to .SWF. This map is loaded with 
SWFLoader in another container, and the SWFLoader has a property 
CacheAsBitmap set to True. Everything works just fine, and the map 
drags very well inside the container. Problems araise when i zoom the 
map (actualy scale it) beyond 2000px. Then draging becomes very slow, 
and i sopose that CacheAsbitmap property just stops working.

So, does anyone has any idea why is this heppening, and how could i 
solve it?

I will accept any sollution except tiling my map into 100 tiles and 
showing only the ones that are on the screen. If no sollution will be 
provided then i guess ill have to do it that way.

Any help appriciated.





[flexcoders] How to connect Flex with barcode reader?

2007-04-06 Thread helix206
What would be the correct way to read Barcode reader data from Flex? 
Are there some examples on that?

thx.



[flexcoders] Re: DB access in Apollo

2007-03-07 Thread helix206

Hi all,

If i remember corectly, Mike Chambers sad in his Flex presentation 
that its possible to write drivers is AS3 for direct DB 
communication. Anyone tryed that?

Also, Apollo direct DB comm would be a great addition to the package.


--- In flexcoders@yahoogroups.com, "David Mendels" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
>  
> Some version of this will happen.  The question is when.  It 
certainly
> will not be in the first public developer betas of Apollo.  And I 
can't
> guarantee when it will be in Apollo (later beta? 1.0? 1.X?), but we 
all
> agree it should and will happen. 
>  
> :)
>  
> -David
> Apollo
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Rich Tretola
> Sent: Friday, March 02, 2007 9:03 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] DB access in Apollo
> 
> 
> 
> This is what I am hoping for.
> 
> Rich
> 
> 
> On 3/2/07, Gordon Smith <[EMAIL PROTECTED]  >
> wrote: 
> 
>   
> 
>   The Apollo team is considering integrating a SQL database into
> the Apollo runtime.
>
>   - Gordon
> 
> 
> 
>   From: flexcoders@yahoogroups.com
> [mailto:flexcoders@yahoogroups.com  ] On 
Behalf
> Of Shannon Hicks
>   Sent: Friday, March 02, 2007 7:00 AM
>   To: flexcoders@yahoogroups.com
>   Subject: RE: [flexcoders] DB access in Apollo
>   
>   
>   
> 
>   
> 
>   Don't forget that Apollo will let us use our own installers...
> There's no reason you couldn't install your own database in 
addition to
> the Apollo application.
> 
>   
> 
>   Shan
> 
>   
> 
>   From: flexcoders@yahoogroups.com
> [mailto:flexcoders@yahoogroups.com  ] On 
Behalf
> Of Abdul Qabiz
>   Sent: Thursday, March 01, 2007 12:20 PM
>   To: flexcoders@yahoogroups.com
>   Subject: Re: [flexcoders] DB access in Apollo
> 
>   
> 
>   I can imagine of doing that with Apollo. I would post soon .
>   
>   On 3/1/07, Russell Sprague <[EMAIL PROTECTED]
>  > wrote:
>   > I noticed a while back that there wasn't any kind of local
> database
>   > access in Apollos feature list. Is this something that
> will/has
>   > changed, or are the devs thinking this will be a community
>   > contribution? It seems to me that DB access is a big part of
> desktop
>   > apps, I have built a couple using Flash, Zinc, and MySQL. It
> would be a
>   > shame to not be able to use Apollo for some projects because
> of this
>   > issue. Hopefully someone can tell me that I just missed it
> when Adobe
>   > added this to the feature list.
>   >
>   > Russ
>   >
>   >
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
> -- 
> Rich Tretola
> 
> http://www.EverythingFlex.com 
>