Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-22 Thread Glen Pike

Hi,

Forgot to mention - look at Jobe Makar's "Flash MX Game Programming 
Demystified" book / examples - he did a "high score system" in ASP that 
is quite nice and simple. If you are fairly fluent, it should be easy to 
"port" to PHP or other languages.


Glen

Paul Steven wrote:

I was considering using an xml file to store high score data for a game. It
is quite possible that this game will have a significant amount of traffic
(certainly in the first few days after launch) and I am now wondering if an
xml file would be suitable. I am not sure what happens in the scenario where
multiple players want to update the highscore at the same time - they will
all need to write to the file. I assume this is the same scenario with a
database but think perhaps updating a database is more efficient.

Anyone care to offer any insight into whether an xml file would be suitable
or not? 


Thanks

Paul

___
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] link bar frustrating question

2009-04-22 Thread Glen Pike

Hi,

   I think Sprite / MovieClip may have a "mouseChildren" property which 
you can set to true / false, which I vaguely remember helped me before.  
Problem is you won't get any further mouse events from it unless you 
re-enable.


   Or, the other option is to remove the event listener for rollover / 
rollout when the button is clicked / becomes the current link.


   Hope this helps?

   Glen

Omar Fouad wrote:

Thanks Dave but No It does not change anything same problem.

On Tue, Apr 21, 2009 at 7:38 PM, Dave Watts  wrote:

  

this is a silly problem that, because it is silly, makes me nervous and
frustrate at the same time.

I've got a class (extends Sprite) that has embedded some MovieClips.
  

Those


MCs are actually containing textboxes with the name of the sections.

for each MC

MC.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
MC.addEventListener(MouseEvent.ROLL_OVER, onRollOver);

private function onRollOut(e:MouseEvent):void {
 //change colors here of e.currentTarget

}

private function onRollOver(e:MouseEvent):void {
 //change colors here of e.currentTarget

}

In the Main Class I am adding the above class to the displayList and I
  

set


Click Listeners for each of its children

var CurrentLink:Sprite // assume it holds a reference of a link

var linkbar:LinkBar = new LinkBar();
linkBar.link1.addEventListener(MouseEvent.CLICK, onClick);

private function onClick(e:MouseEvent):void {
   e.currentTarget.mouseEnabled = false;
   CurrentLink.mouseEnabled = true;
   CurrentLink = e.currentTarget;

}

The link clicked is now disabled but there is a little problem, the
CurrentLink still listens for RollOut events as its color change when i
  

take


the mouse off it. I think it shouldn't because I am setting its
  

mouseEnabled


to false.
  

I think that, for every rollover, there has to be a corresponding
rollout before you can effectively disable the event listener.

http://www.actionscript.org/forums/showthread.php3?t=157859

I could be wrong about this, and would welcome correction if that's the
case!

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
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] Accessibility of a flash game

2009-04-20 Thread Glen Pike

Hi,

   UK DDA has not been fully tested yet with websites, but the emphasis 
is on encouraging people to implement "good practice".


   Niqui Merret has done some good practical stuff about accessibility 
- I went to a session at FOTB 2007 which is fairly "ageless" as it 
discussed approaches rather than technology.


   http://niquimerret.com/ has various articles and links.

   If the "accessibility" bit is an addition to the spec' / agreed 
contract, you will need to sit down with the client and make sure that 
you agree on any extra charges / what's not included, etc.  If the 
client makes you jump through too many hoops for this it could get 
annoying and damage your relationship, so be up front with them.


   I think one idea would be to identify the visitors who may have 
different needs when accessing your game, etc.  As it is a game, it may 
not be possible to accommodate all user types, but with some careful 
planning you can cover a lot of bases and then tell the visitors what 
you have done to address the needs of everyone.


   I am not sure why the requirements of FP6 are essential - my guess 
is that you are stuck doing some government / civil service contract, 
but you may need to carefully look at the tools provided for helping you 
create more accessible content in later versions of Flash and possibly 
argue your case here.  (IMHO, It's high time the IT departments of many 
of these org's pull their fingers out anyway as far as upgrading is 
concerned.)


   There are quite a few resources to do with UK guidelines for 
websites, which I would look at interpreting carefully for games, here 
are some of my "web" ones collected over time...:


   http://www.w3.org/TR/WAI-WEBCONTENT/
   http://www.w3.org/WAI/
  
   http://www.uiaccess.com/dda-uk.html
  
   
http://www.rnib.org.uk/xpedio/groups/public/documents/code/public_rnib008789.hcsp


   
http://www.publicsectorforums.co.uk/page.cfm?LANGUAGE=eng&pageID=1701&lowres=true


   http://www.w3.org/TR/WCAG10/full-checklist.html
  
   http://www.w3.org/WAI/wcag-curric/int1-0.htm


   http://www.freedomscientific.com/downloads/jaws/jaws-downloads.asp  
   http://www.hobo-web.co.uk/design.htm
  
   Anyway, that's a start, but remember it's about usability & 
accessiblity not just doing a high contrast colour scheme for partially 
sited people :)


   Hope this helps a bit.

   Glen
  


Paul Steven wrote:

Thanks - I am not sure why they specified international as the game is aimed
at the UK only.

Whatever the region, can anyone give me a quick summary of what elements of
a flash (flash player 6) game, one can affect with regards accessibility?
Does this relate primarily to any textual content?

Thanks

Paul

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: 20 April 2009 18:24
To: Flash Coders List
Subject: Re: [Flashcoders] Accessibility of a flash game

- Original Message - 
From: "Kerry Thompson" 

To: "'Flash Coders List'" 
Sent: Monday, April 20, 2009 6:05 PM
Subject: RE: [Flashcoders] Accessibility of a flash game


  

Paul Steven wrote:



I am making a game and have been asked by the client to ensure "The game
should meet all international accessibility requirements"
  
Ack!!<
  

"All international accessibility requirements"? Your client is out of his
mind. How can you possibly know, much less meet, so broad, varied, and
sometimes contradictory a set of standards? Even in the U.S., you can meet
federal standards, but fail to meet some state requirements.

I would go back to the client and choose a country that has a well-defined
set of requirements, and meet those. Hopefully, the country you live in 
has

a reasonably clear set of requirements. Most of the G-20 countries do.



I think I'd ask the client to specify the standards they want supported.

Paul
  

Cordially,

Kerry Thompson

___
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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-17 Thread Glen Pike
Have you tried the toString or toXMLString for this - check the XML 
class for the proper function name...

Glen

Tim Hawkins wrote:

Hi Matt,
No, afraid not.. I actually use the select1 variable elsewhere, so it's not
just that trace which is the problem.

Thanks for the suggestion though!



2009/4/17 Matt S. 

  

Does it make a difference if you write the trace as :

trace("formData="+formData);
trace("select1:"+ select1);


On 4/17/09, Tim Hawkins  wrote:


Hi,
I've come across this a few times in my own code, but haven't seen it
mentioned online - though it's a difficult thing to google for.

In the following function, if the trace at the top is present, formData
traces a load of XML and select1 also traces a load of XML.

If I comment out the top trace, formData still traces the same pile of
  

XML


but select1 traces null!

public function testMakeModelFilterWorks():void {

 trace("");
 default xml namespace  = NAMESPACE;

var select1:XML = formData..select1[2];
trace("formData=", formData);
 trace("select1:", select1);

// etc
default xml namespace = null;
}

Any ideas? I'm getting fed up of leaving 'trace("");//don't delete me' at
the top of functions.
(I don't think it's a timing thing, if I put a 10-item
increment-a-variable loop in there instead of a trace the E4X still
  

fails.)


t.
___
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] Best Tutorial Sites?

2009-04-16 Thread Glen Pike

gotoandlearn.com

adobe's devnet site
http://www.adobe.com/devnet/

kirupa.com

sephiroth.it

are a few ones I use quite a bit.

Aurek Brillowski wrote:
Re-acquainting myself to Flash.  Left off around v6 or the first MX.  
Can you possibly direct me to your favorite Flash cookbook tutorial 
sites these days?  Some of the old standbys appear rather antiquated 
and unused.
I think I have the basic usage of the tool down.  I just feel I'm 
spending a lot of time reinventing the wheel here.  I've started a 
pretty good web search but I'm sure a few of you will have a few good 
sites that could help me separate the wheat from the chaff.


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




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Can't use CS4 so can't use [Embed]

2009-04-16 Thread Glen Pike
Hi,

Could you put these inside a library swf and use Flash Develop to
compile that with the [Embed] and then expose the instances as public
members of a particular class / clip?
   
Glen

Patrick Matte wrote:
> Hey I need to use this code but I can't use Flash CS4 so I need to load
> these embedded files instead cause [Embed] doesn't work in Flash CS3. So how
> would I go to do that? Here's the code I need to change...
>
> [Embed(source="../lib/camera_para.dat",
> mimeType="application/octet-stream")]
> private var CameraParameters:Class;
>
> [Embed(source="../lib/mikko.pat", mimeType="application/octet-stream")]
> private var MarkerPattern:Class;
>
> var cameraParameters:FLARParam = new FLARParam();
> cameraParameters.loadARParam(new CameraParameters() as ByteArray);
>
> markerPattern = new FLARCode(16, 16);
> markerPattern.loadARPatt(new MarkerPattern());
>
>
>
> This e-mail is intended only for the named person or entity to which it is 
> addressed and contains valuable 
> business information that is proprietary, privileged, confidential and/or 
> otherwise protected from disclosure.
>
> If you received this e-mail in error, any review, use, dissemination, 
> distribution or copying of this e-mail 
> is strictly prohibited. Please notify us immediately of the error via e-mail 
> to disclai...@tbwachiat.com and 
> please delete the e-mail from your system, retaining no copies in any media. 
> We appreciate your cooperation.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Fake Preloading

2009-04-16 Thread Glen Pike

You tell him that's not a preloader it's a transition :)

Anthony Pace wrote:
What happens when your client wants a pretty preloader, and he wants 
it to play out entirely, but there is nothing to preload, and you have 
indicated it to him a thousand times?


Everything is generated by code, and the file size is less than 40k.

I can fake a preloader animation; however, it seems pointless to do 
so, it causes an increase the file size, and if I use his graphics, I 
will need a preloader for his preloader.


When did preloaders become cool?  I have always thought of them as an 
annoyance to the user, to be used as a transition only when motion 
cannot be constant.

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




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Smart Preloading

2009-04-16 Thread Glen Pike
Sorry, it's a SWF preloader.  As for preloading clips in the library, 
that's not what it's for..


Glen

Dennis - I Sioux wrote:

Hey Glen,

Greensock isn't for preloading movieclips right?
The swf's own movieclips in his library..

Or has it got an option for that?

- Original Message - From: "Glen Pike" 


To: "Flash Coders List" 
Sent: Thursday, April 16, 2009 4:03 PM
Subject: Re: [Flashcoders] Smart Preloading



Hi,

   There are a couple of sequential preloaders out there on the web - 
I think greensock did on, but not 100% sure.


   It's possible that you can use these preload a list of movie clips 
in the background.  I wrote my own before finding queuing loader 
before seeing the others, so I don't know if they implement the same 
functionality: to interrupt the preloading queue when a specific 
"level" is requested and put the loading of that to the front of the 
queue.  If you are not stopping the things caching in the browser, 
you might take a small hit re-loading the required level if it has 
not reloaded, but that is all.


   HTH a bit

   Glen


Dennis - I Sioux wrote:

Hey,

Tried to use a UILoader to check the bytes loaded of a single 
movieclip(in the library).. but this isn't working.

Has anyone got a suggestion to check the loaded bytes of an mc?

Thought the LoaderInfo only reffers to the mc's owner.

Goal is to preload each game level seperately when it is needed.(if 
it hasn't loaded while playing the previous level yet).


With kind regards,

Dennis
Isioux
___
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

__ NOD32 4013 (20090416) Informatie __

Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem.
http://www.nod32.nl




___
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] Smart Preloading

2009-04-16 Thread Glen Pike

Hi,

   There are a couple of sequential preloaders out there on the web - I 
think greensock did on, but not 100% sure.


   It's possible that you can use these preload a list of movie clips 
in the background.  I wrote my own before finding queuing loader before 
seeing the others, so I don't know if they implement the same 
functionality: to interrupt the preloading queue when a specific "level" 
is requested and put the loading of that to the front of the queue.  If 
you are not stopping the things caching in the browser, you might take a 
small hit re-loading the required level if it has not reloaded, but that 
is all.


   HTH a bit

   Glen

  


Dennis - I Sioux wrote:

Hey,

Tried to use a UILoader to check the bytes loaded of a single movieclip(in the 
library).. but this isn't working.
Has anyone got a suggestion to check the loaded bytes of an mc?

Thought the LoaderInfo only reffers to the mc's owner.

Goal is to preload each game level seperately when it is needed.(if it hasn't 
loaded while playing the previous level yet).

With kind regards,

Dennis
Isioux
___
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: FW: [Flashcoders] Favorite Flex book?

2009-04-15 Thread Glen Pike

Hi,


http://www.networkworld.com/news/2008/072108-open-source-security-risk.h
tml  -  and another take on the same article:
http://news.zdnet.com/2100-3513_22-123151.html  the first paragraph
reads, "Open source software is a significant security risk for
corporations that use it because in many cases, the open source
community fails to adhere to minimal security best practices, according
a study released Monday."


   Just to add a couple of cents...

   I can see your point about security with the industry you work in, 
but if you look at the two articles you mention there are a few things 
you might want to take with a pinch of salt and read around further:
  
   The network world article highlights a survey done into 11 OS 
software packages, but they were all Java based and although I am not an 
OS / Java guru, I only recognise 2 of these.  I think a survey done into 
some of the larger widely used OS packages - e.g. some operating 
systems, web-servers, databases, etc. would have been more beneficial.  
It would also be interesting to see a comparison between similar closed 
and open source systems that provided statistics such as  the number of 
bugs / vulnerabilities found, time to fix bugs, number of lines of code, 
etc. - metrics.  My guess is that whether it's closed or open source, 
everyone will be frantically trying to fix the latest vulnerability and 
if my Windows update shield is anything to go by, it's not just OS 
that's affected...


   The zdnet article cites a paper written by ADTI, who are described 
in the article as a "conservative" organisation and are also cited for 
often criticising OS software and are believed to be in bed with all the 
major business - speculation possibly, but it's worth reading between 
the lines and don't believe slashdot over wikipedia over zdnet...

http://en.wikipedia.org/wiki/Alexis_de_Tocqueville_Institution
http://linux.slashdot.org/linux/05/03/25/238257.shtml?tid=166&tid=106

   I guess the upshot is - software for any organisation needs to be 
evaluated effectively.  This can get more frustrating with larger 
organisations because like you mentioned, it is a PITA to get a new 
piece of software approved.  But with open source, the code is up for 
review, so I think it has an advantage there...


   At the end of the day, because it's open or closed, does not mean I 
trust it any more, but at least with open source, I know I can have a 
look at the stuff inside and probably fine tune it a lot more than 
closed and I think that's the attitude IT departments need to embrace a 
bit more - check the software out properly.  If departments did this, 
then maybe there would be a few more jobs going and possibly a little 
less money lost due to the wrong choices being made, but I am being 
optimistic here :)


   I do agree with the comment at the end of the zdnet article and I 
would sincerely hope that agencies responsible for my safety are making 
informed decisions about the software that "protects" us.  However after 
recent events in the financial and government sectors in UK & US, I am 
more concerned about the human capabilities, decision making and 
morality of many organisations who are trusted with our information, 
safety and money than the software running these places.  Most of the 
problems I have read about recently have seem to come about because of 
human error/incompetence rather than software bugs / security 
vulnerabilities...


   And yes decent customer support is hard to find, but that's not just 
restricted to OS software :)


   Cordially.

   Glen

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] FlashDevelop problem

2009-04-15 Thread Glen Pike
Check your "Project Properties - on the "Output" tab, if the "No output" 
box is ticked, my Flex projects launch the IDE, but if I untick, they 
will run the compiler...


Glen

Merrill, Jason wrote:

That's what I thought too -but everything I have checked in my settings
seem to be fine.


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 






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Wednesday, April 15, 2009 10:16 AM
To: Flash Coders List
Subject: Re: [Flashcoders] FlashDevelop problem

Have you messed up your settings??

Look in Tools->Program Settings and check that your AS2 and AS3 context 
are setup and not disabled, possibly have a root around in these

context's.

That's my limit...

Glen

Merrill, Jason wrote:
  

Sorry to ask the question here, I know there is a FlashDevelop forum,
but I need an answer quick, and they sometimes take 24 hours to


respond
  

there.  I'm guessing someone here knows the answer.

Yesterday, I don't know what I did, but in my Flex 3 project I am
building, when I hit either F5 (test project) or F8 (build project),
instead of calling the Flex 3 mxmlc compiler and playing my Flex app


in
  

an external player, it tries launching Flash CS3 instead.

I have verified this is setup as a Flex 3 project in FlashDevelop,


even
  

created a new one with the same files, and checked the Flex SDK path.
Everything seems fine.  Anyone know how to fix this?  I'm about to do


an
  
uninstall/re-install.  


Thanks.


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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] How to test in Flash Player 6

2009-04-15 Thread Glen Pike

You can try Kewbee Plugin Switcher which is standalone.

It's a bit of a rigmarole setting up - you have to kill your browsers, 
run the Flash Player unininstaller and install one of the "old players", 
then restart Kewbee & browser each time you want to add a new one, but 
once it's set up it runs nicely.  Only problem is switching browser 
plugin's requires a browser restart - to get round this use Task Manager 
to kill the firefox process then you can restore your session :)


glen

Paul Steven wrote:

Thanks Charles -I downloaded the extension but unfortunately seem to be
getting an error. I am on Vista Ultimate with Firefox 3.08. Perhaps not
compatible?

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Charles
Parcell
Sent: 15 April 2009 14:02
To: Flash Coders List
Subject: Re: [Flashcoders] How to test in Flash Player 6

And of course the Mozilla site will not allow it to be updated for the
current browser version.  I did track down a link that does work.

http://www.sephiroth.it/firefox/flash_switcher/#install

Scroll down to the Install link.

Charles P.


On Wed, Apr 15, 2009 at 8:53 AM, Charles Parcell
wrote:

  

Finally found it.

https://addons.mozilla.org/en-US/firefox/addon/5044

Charles P.



On Wed, Apr 15, 2009 at 8:50 AM, Charles Parcell


wrote:
  

Isn't there some sort of FireFox plug-in that allows you to have multiple
Flash Players and to easily switch between them?  I have seen this on
someone elses machine but I am not finding it when I Google search it.

Charles P.



On Wed, Apr 15, 2009 at 8:35 AM, Adrian Ionut Beschea <
flashbk2...@yahoo.com> wrote:

  

Hi,

you can try this link:




http://www.google.ro/search?q=download+older+flash+player+versions+&ie=utf-8
&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a
  

there is a firefox plugin that allows you to switch flash player version
anytime you want but last time I used it (few years ago) it had some


issues
  

when wanting to switch back. Basically the only way to restore my flash
player was to install the .msi version.

good luck.

--- On Wed, 4/15/09, Paul Steven  wrote:
From: Paul Steven 
Subject: [Flashcoders] How to test in Flash Player 6
To: "'Flash Coders List'" 
Date: Wednesday, April 15, 2009, 3:10 PM

I am making a game for a large organisation where the most common Flash
player is version 6. I would appreciate any advice on how best I can


test
  

on
this player version. Is this player version still available for download
and
if so where? Is there any clever apps/websites that allow me test on
various
flash versions?

Thanks

Paul

___
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

___
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] FlashDevelop problem

2009-04-15 Thread Glen Pike

Have you messed up your settings??

Look in Tools->Program Settings and check that your AS2 and AS3 context 
are setup and not disabled, possibly have a root around in these context's.


That's my limit...

Glen

Merrill, Jason wrote:

Sorry to ask the question here, I know there is a FlashDevelop forum,
but I need an answer quick, and they sometimes take 24 hours to respond
there.  I'm guessing someone here knows the answer.

Yesterday, I don't know what I did, but in my Flex 3 project I am
building, when I hit either F5 (test project) or F8 (build project),
instead of calling the Flex 3 mxmlc compiler and playing my Flex app in
an external player, it tries launching Flash CS3 instead.

I have verified this is setup as a Flex 3 project in FlashDevelop, even
created a new one with the same files, and checked the Flex SDK path.
Everything seems fine.  Anyone know how to fix this?  I'm about to do an
uninstall/re-install.  


Thanks.


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


Re: [Flashcoders] Access objects in embedded swf

2009-04-15 Thread Glen Pike

Hi,

This is a guess, but is it possible that the clip has not had chance to 
"init"? I don't know what happens when you instanciate a movieclip like 
this with children, but if you load a SWF you usually have to wait until 
the onLoadInit event is dispatched before you can access properties and 
methods on the movie - could be similar, but correct me if I am wrong.


If you only need to access the a1 element of the Portfolio SWF, you 
could export the library symbol with a LinkageID, republish the swf, 
then change the [Embed] to only embed the Library symbol - something like


[Embed(source = 'portfolio.swf', symbol="a1_symbol")]

http://www.bit-101.com/blog/?p=853

HTH

Glen


Ian Thomas wrote:

In which case you're doing something wrong. :-)

That's definitely how it works in AS3 - I use it all the time.

To find the child of a DisplayObjectContainer (i.e. a Sprite or a
MovieClip) you use getChildByName(), pass in the instance name as set
in the timeline. That returns a DisplayObject. If it _doesn't_ return
a DisplayObject, you have no child object called that.

Then when you have retrieved the child as a DisplayObject, you can
manipulate it as required.

Are you sure you're on the right frame of Portfolio? Are you sure 'a1'
is the instance name on the timeline?

Ian

On Wed, Apr 15, 2009 at 1:49 PM, Dav  wrote:
  

No luck :(

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ian Thomas
Sent: 15 April 2009 13:36
To: Flash Coders List
Subject: Re: [Flashcoders] Access objects in embedded swf

Dave,
  Try:

portfolio.x = 0;
portfolio.y = 0;
var child:DisplayObject=portfolio.getChildByName("a1");
child.x=150;

HTH,
  Ian

On Wed, Apr 15, 2009 at 1:14 PM, Dav  wrote:


Hi guys!

I'm having a problem accessing movieclips within an embedded SWF.

Here is some code:

...
   [Embed(source = 'portfolio.swf')]
   public var Portfolio:Class;

   public function Main()
   {
   var portfolio:* = new Portfolio();
   addChild(portfolio);
   portfolio.x = 0;
   portfolio.y = 0;
   portfolio.a1.x = 150; // Fails
   }
...

portfolio.a1.x fails, even though there is a movieclip inside
  

portfolio.swf


called a1.

ReferenceError: Error #1069: Property a1 not found on Main_Portfolio and
there is no default value. at Main()[D:\Flash\NewProject\Main.as:19]

Any ideas?

Thanks in advance!
Dav

___
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




___
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] How much bytes ActionScript classes take in SWF?

2009-04-15 Thread Glen Pike
Sorry, misread your email and jumped the gun - the size report should 
tell you how big your classes are though...



Pavel Repkin wrote:

There are 500 KB of ActionScript code in our project (according to Flash
size-report)
That is a lot.
I want to find the classes (packages) that take most space.
And then to optimize them.
And throw away classes that were linked by a mistake.

So I want to find out how much space take individual classes and packages in
the swf.

Do you know a tool that can help me?
Ideally the app should display class tree with size in KB beside each node.

Pasha.
___
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] How much bytes ActionScript classes take in SWF?

2009-04-15 Thread Glen Pike

Hi,

   In your Publish Settings there is a "generate size report" option or 
something similar.  Tick the box and publish and it will create a text 
file detailing the contents and sizes of stuff in your SWF.


   Glen

Pavel Repkin wrote:

There are 500 KB of ActionScript code in our project (according to Flash
size-report)
That is a lot.
I want to find the classes (packages) that take most space.
And then to optimize them.
And throw away classes that were linked by a mistake.

So I want to find out how much space take individual classes and packages in
the swf.

Do you know a tool that can help me?
Ideally the app should display class tree with size in KB beside each node.

Pasha.
___
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] tubeloc as3 youtube in flash

2009-04-13 Thread Glen Pike

Hi,

   You may have to run this from a web-browser rather than from the 
computer desktop / Flex debugger.


   I compiled MainChromeless.mxml from FlashDevelop and running it 
loads a GUI up, but for the youtube player to be loaded in I had to run 
TubeLoc.html from a webserver running on my PC e.g. with 
http://devserver/tubeloc/index.html url rather than opening it up from 
explorer: file:///J:/devserver/tubeloc/TubeLoc.html


   In my /tubeloc folder are the contents of the as3/lib directory from 
the zip + the compiled swf "TubeLoc.swf" output from FlashDevelop.


   You may have to load the lot up onto your webspace if you don't have 
a "localhost" webserver.


   HTH

   Glen

Preston Parris wrote:

Hey all,
has anyone messed with the chromeless youtube player in flash? the best way
I can find to do this is the tubeloc package, I have successfully built the
as3 flash package with ant and the flex builder sdk, but It doesnt seem to
actually load the movie, nor does it provide an fla for the main swf. Anyone
have some advice or a tutorial to use?

  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Flashplayer standalone settings

2009-04-09 Thread Glen Pike

Hi,

   Problem solved.

   Have to install the browser plugin and then visit the settings 
manager to allow access to the webcam by "local" applications...  What a 
PITA...


   Glen

Glen Pike wrote:

Hi,

   Can anyone tell me how I might make sure that Flash Player 
standalone remembers my settings for camera & microphone on Linux?


   Everytime I start my app up and it tries to connect to the camera, 
the settings popup appears, but it never remembers the choices - used 
to be fine on FP9, seems to be an FP10 problem (again).


   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] Flashplayer standalone settings

2009-04-09 Thread Glen Pike

Hi,

   Can anyone tell me how I might make sure that Flash Player 
standalone remembers my settings for camera & microphone on Linux?


   Everytime I start my app up and it tries to connect to the camera, 
the settings popup appears, but it never remembers the choices - used to 
be fine on FP9, seems to be an FP10 problem (again).


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


Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Glen Pike

the "null" is maybe a string if it's from url variables.

Alexander Farber wrote:

Hello,

does anybody please have an idea, why would this code:

private function handleComplete(event:Event):void {
var urlvars:URLVariables = event.target.data;
..
if (urlvars.bids != null && urlvars.bids != 0) {
trace(urlvars.bids);
.
}
}

still print out "null"? Is it maybe because null != null in AS3
and I have to perform some other check similar to isNaN()?

Thank you
Alex
___
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] Any ideas / thoughts on this?

2009-04-09 Thread Glen Pike
Putting all the clips in your group will probably make your rotation 
calc's so much easier as you only have to spin one clip.


You could store the position & rotation of each child clip when you add 
it, then when you need to rotate, you can work out your "current" 
rotation / position, then offset the position and rotation of your child 
clip vs your parent and tween...   Not sure off the top of my head, but 
you know where you are placing pages so that's probably your starting 
point - it does not matter hugely if you hardcode positions - if the 
number of pages does not change, you could be at an advantage keeping it 
simple :)


Dav wrote:

I'm trying to create a flash website where 6 pages are placed on the stage
with different rotations. The active page fills the viewport and a menu sits
just below the active page.

Now when you click on the menu for say page 2, the viewport will appear to
move and rotate to the correct angle to display page 2.

I have worked up a site to better explain what I mean.

http://79.170.40.163/flashdev.com/

For the sake of keeping things simple each of the three buttons just move
you to the next page.

I believe the best way to achieve the effect is to put each "page" into a
"group" movieclip, that will hold all 6 pages.

Then when a menu item is clicked, just rotate the "group" movieclip and move
it to a pre-defined x and y.

I'm hoping to code it in FlashDevelop, so it will be dynamic and not static
content.

Does anyone think there is a better way to achieve the end result?

Thanks in advance,
Dav

___
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] changing video playback speed with timer listeners

2009-04-06 Thread Glen Pike

Hi,

   If you remove the timer listener, stop the timer and make your timer 
a variable outside your function, you can recreate a new one...  The key 
is removing the event listener before you "kill" the timer instance - 
it's good practice, especially for AS3 :)


   See the code below - it was not too bad!
  
   I am not sure how easy it is to skip through the FLV - it looks 
possible, but might end up looking funny - the problem being is that you 
are trying to play an FLV, but also asking it to seek - you will need to 
make sure that your "pause()" does not stop it from playing too.  
Because of the encoding of FLV's using keyframes in inbetween frames, 
you might end up with funny looking results, but it could work - don't know.


   HTH

   Glen
  
//Put your timer variable outside the function.  If you are coding on a 
frame in Flash, make sure you have a "stop()" at the end of the code.

var myTimer:Timer = null;

function videoPlaybackTimer(fastslow) {

   if(fastslow == "faster"){
   videoSpeed = videoSpeed+videoSpeedVAR;
   }else{
   videoSpeed = videoSpeed-videoSpeedVAR;
   }
   videoSEEK.text = timerTimes+" / videoSpeed: "+videoSpeed;
  
   //Add a check to see if you have a timer already:

   if(null != myTimer) {
  myTimer.removeEventListener(TimerEvent.TIMER, timerHandler);
  myTimer = null;
   }
   //Then you can safely create a new Timer and not worry about the old 
one...
   myTimer = new Timer(videoSpeed);
  
   myTimer.addEventListener(TimerEvent.TIMER, timerHandler);


   myTimerActive = 1;
   myTimer.start();
   timerTimes++
}

  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] mad spacing

2009-04-06 Thread Glen Pike

Hi,

   It looks like the CSS for flash does not seem to support 
margin-bottom, or padding.  You might be able to change the "leading" on 
the last list item, but that might not be fun...


   leading = line-height.

   I don't think you need to put the  in to define a list, just add 
a list item 


   If it's any consolation, bulleted lists in normal HTML & CSS are not 
much better...


   AS2 and AS3 upto FP10 are fairly similar.  You might be able to 
squeeze a bit more fanciness out of the new Text Engine stuff in FP10, 
but it probably is not worth the time and effort for doing 's - 
maybe for curiosity's sake though :)


   Glen

allandt bik-elliott (thefieldcomic.com) wrote:

hi guys

I am loading some xml with css to do my text but one of the things that's
been asked for is bulletted lists

currently i have paragraphs with css classes and manually added bullet
points which is clunky to say the least. It doesn't maintain the left
alignment to the text (if the line breaks, it goes back to the bullet point
position) and i have to keep adding the bullet points (alt-0149 i hate thee)

I started looking at using a proper  but it seems to have a 20px gap on
the left and bottom of the list. I can get rid of the gap to the left with a
margin-left style but is there any way of getting rid of the gap at the
bottom?

if not, how would i go about getting the text to align properly with the
text rather than with the bullets? I've tried a positive margin-left style
with a negative text-indent but that doesn't seem to work

thanks guys
best
a
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] live streaming

2009-04-06 Thread Glen Pike

Hi,

   Check out these threads which I remember posting a while ago:

   
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg46719.html


   http://www.mail-archive.com/osfl...@osflash.org/msg15410.html

Fabio Pinatti wrote:

Hello all,

I need to collect some resources about live video streaming and live sound
streaming with flash or other tool you advice me. As I never worked with
that early I'm a bit lost. Do we have free servers? If negative, do you know
some cheap/good? Is there some api to help with that?

Any help would be very appreciated...

Thank you so much,

  


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


Re: [Flashcoders] Flashplayer "positioning"

2009-04-03 Thread Glen Pike

Hi,

   This was an issue with the Flashplayer running without a Window 
manager - for some reason FP10 defaulted to a 200x200 pixel sized window 
and ignored the size of the Flash content when run in "fullscreen".


   The only way around this is to run a desktop / window manager and 
launch Flashplayer inside that - problematic because if Flash dies / 
exits, the user gets access to the desktop rather than a blank screen  - 
not good for kiosk apps.


   Funny thing is, Flashplayer 9 is fine, so have submitted a bug 
because that's an unexpected change of behaviour that we have no way of 
working around..


   Thanks for your help, maybe this will be useful for anyone with 
similar problems


   Glen


Glen Pike wrote:

Hi,

   I tried the Stage.align but this has no effect.

   The stage size is the same as the monitor size.

   Looking into this further, it seems to be an issue with the Window 
Manager - if we run X11 with no Window Manager and start Flashplayer 
from the command line it can't seem to position itself properly.  If 
we run Flash with a Window Manager / Desktop, e.g. xfce, it aligns 
fine.  I am guessing something changed in FP10 relating to X11 but 
what...


   Glen

Taka Kojima wrote:

not sure, maybe FP10 defaults to a different stage alignment. Maybe
try explicity stating the stage alignment and see if that fixes it.

- Taka

On Thu, Apr 2, 2009 at 11:16 AM, Glen Pike 
 wrote:
 

Hi,

  There is stuff offstage, but I am not sure if it is in a guide 
layer or

not - will check later.

  Why this would happen in FP10 and not 9 though??

  Glen

Joel Stransky wrote:
   

Is there any off-stage content that might be causing this?

On Thu, Apr 2, 2009 at 12:42 PM, Glen Pike
wrote:


 

Hi,

 I have just setup FP10 in standalone on my Gentoo Linux box and am
running a SWF from the command line in standalone mode.

 The x, y position of my SWF is all wrong - the SWF is positioned 
mostly

off the screen.  Reverting to FP9 standalone it works fine.

 The SWF is compiled for AS2.

 Does anyone have any ideas about this??
   Ta

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






  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
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




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Flashplayer "positioning"

2009-04-03 Thread Glen Pike

Hi,

   I tried the Stage.align but this has no effect.

   The stage size is the same as the monitor size.

   Looking into this further, it seems to be an issue with the Window 
Manager - if we run X11 with no Window Manager and start Flashplayer 
from the command line it can't seem to position itself properly.  If we 
run Flash with a Window Manager / Desktop, e.g. xfce, it aligns fine.  I 
am guessing something changed in FP10 relating to X11 but what...


   Glen

Taka Kojima wrote:

not sure, maybe FP10 defaults to a different stage alignment. Maybe
try explicity stating the stage alignment and see if that fixes it.

- Taka

On Thu, Apr 2, 2009 at 11:16 AM, Glen Pike  wrote:
  

Hi,

  There is stuff offstage, but I am not sure if it is in a guide layer or
not - will check later.

  Why this would happen in FP10 and not 9 though??

  Glen

Joel Stransky wrote:


Is there any off-stage content that might be causing this?

On Thu, Apr 2, 2009 at 12:42 PM, Glen Pike
wrote:


  

Hi,

 I have just setup FP10 in standalone on my Gentoo Linux box and am
running a SWF from the command line in standalone mode.

 The x, y position of my SWF is all wrong - the SWF is positioned mostly
off the screen.  Reverting to FP9 standalone it works fine.

 The SWF is compiled for AS2.

 Does anyone have any ideas about this??
   Ta

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






  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
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] Flashplayer "positioning"

2009-04-02 Thread Glen Pike

Hi,

   There is stuff offstage, but I am not sure if it is in a guide layer 
or not - will check later.


   Why this would happen in FP10 and not 9 though??

   Glen

Joel Stransky wrote:

Is there any off-stage content that might be causing this?

On Thu, Apr 2, 2009 at 12:42 PM, Glen Pike wrote:

  

Hi,

  I have just setup FP10 in standalone on my Gentoo Linux box and am
running a SWF from the command line in standalone mode.

  The x, y position of my SWF is all wrong - the SWF is positioned mostly
off the screen.  Reverting to FP9 standalone it works fine.

  The SWF is compiled for AS2.

  Does anyone have any ideas about this??
Ta

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






  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


[Flashcoders] Flashplayer "positioning"

2009-04-02 Thread Glen Pike

Hi,

   I have just setup FP10 in standalone on my Gentoo Linux box and am 
running a SWF from the command line in standalone mode.


   The x, y position of my SWF is all wrong - the SWF is positioned 
mostly off the screen.  Reverting to FP9 standalone it works fine.


   The SWF is compiled for AS2.

   Does anyone have any ideas about this??
  
   Ta


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


Re: [Flashcoders] Proof of Concept - HTTPServiceobjectdoesn't require crossdomain-policy file

2009-04-02 Thread Glen Pike

Projector sandbox can be set to "local" or "network", but not both.

Paul Andrews wrote:
Looking at the flash player security model, a projector has a local 
security sandbox while a browser launched swf has a security sandbox 
that includes it's own domain, so this would explain why your 
projector would be restricted.


Paul
- Original Message - From: "Paul Andrews" 
To: "Flash Coders List" 
Sent: Thursday, April 02, 2009 10:36 AM
Subject: Re: [Flashcoders] Proof of Concept - HTTPServiceobjectdoesn't 
require crossdomain-policy file




Is this a projector or an AIR application?

Seems to me that if you say "network only" to an executable, it's 
like running it in a browser with no "default" domain, whereas an AIR 
application isn't restricted.


Paul
- Original Message - From: "Glen Pike" 


To: "Flash Coders List" 
Sent: Thursday, April 02, 2009 10:26 AM
Subject: Re: [Flashcoders] Proof of Concept - HTTPService 
objectdoesn't require crossdomain-policy file



If that is the case then why is my standalone Flash exe restricted 
when I set it to allow network access only?


Paul Andrews wrote:
Isn't the context for an AIR application different to a flash 
application loaded from a browser?


In the browser the flash swf is loaded from a particular domain and 
access outside that domain requires the crossdomain policy.


In an Air application there is no concept of the domain that the 
swf is loaded from - it's essentially a desktop application.


Flash in Air and Flash in the browser have different security models.

Paul
- Original Message - From: "Johan Nyberg" 


To: 
Sent: Thursday, April 02, 2009 9:29 AM
Subject: [Flashcoders] Proof of Concept - HTTPService object 
doesn't require crossdomain-policy file



Hi, thanks for all the response to my question about the 
crossdomain.xml. But... I didn't get a lot of response to the fact 
that HTTPService can access public feeds/content on other sites 
without the need of a crossdomain.xml


Please check out the code included at the end of this post. I've 
created a small AIR application (with a certificate) and it works 
without a problem.


Am I missing something?

But again.. if my Flash app isn't allowed to access content on 
another site, I can always throw together a simple php-script that 
extracts the content for me that my Flash then can read...


And then I can go ahead and create my evil banner ad. ;-)

I understand that crossdomain policy files are here to stay. I 
just don't understand why they don't allow me to access content on 
other domains that I can access in other ways and then pass on to 
Flash.


--
Johan Nyberg

Web Guide Partner
Engelbrektsplan 1
114 34 Stockholm
08 - 50 00 24 30
070 - 407 83 00
___
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


___
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] Proof of Concept - HTTPService objectdoesn't require crossdomain-policy file

2009-04-02 Thread Glen Pike

Hi,

   It's an AS2 Flash application running standalone on Linux requesting 
stuff from the localhost on various ports - the irritating thing is I 
still have to implement x-domain files / responses on every port I 
connect to, I tried setting a policy server up on the default port as 
per the instructions on the devnet site, but this did not work..


   My point is that the standalone Flash application is an exe, like 
Air, so implies that a higher level of trust is required to run it, 
therefore it should be allowed more "liberty" than a browser based Flash 
app.  This is one of the most irritating things about doing standalone 
stuff - I can't load files from the file system because I am requesting 
over the network.  I am doing standalone because this is legacy stuff 
for a kiosk...


   Glen

Paul Andrews wrote:

Is this a projector or an AIR application?

Seems to me that if you say "network only" to an executable, it's like 
running it in a browser with no "default" domain, whereas an AIR 
application isn't restricted.


Paul
- Original Message - From: "Glen Pike" 


To: "Flash Coders List" 
Sent: Thursday, April 02, 2009 10:26 AM
Subject: Re: [Flashcoders] Proof of Concept - HTTPService 
objectdoesn't require crossdomain-policy file



If that is the case then why is my standalone Flash exe restricted 
when I set it to allow network access only?


Paul Andrews wrote:
Isn't the context for an AIR application different to a flash 
application loaded from a browser?


In the browser the flash swf is loaded from a particular domain and 
access outside that domain requires the crossdomain policy.


In an Air application there is no concept of the domain that the swf 
is loaded from - it's essentially a desktop application.


Flash in Air and Flash in the browser have different security models.

Paul
- Original Message - From: "Johan Nyberg" 


To: 
Sent: Thursday, April 02, 2009 9:29 AM
Subject: [Flashcoders] Proof of Concept - HTTPService object doesn't 
require crossdomain-policy file



Hi, thanks for all the response to my question about the 
crossdomain.xml. But... I didn't get a lot of response to the fact 
that HTTPService can access public feeds/content on other sites 
without the need of a crossdomain.xml


Please check out the code included at the end of this post. I've 
created a small AIR application (with a certificate) and it works 
without a problem.


Am I missing something?

But again.. if my Flash app isn't allowed to access content on 
another site, I can always throw together a simple php-script that 
extracts the content for me that my Flash then can read...


And then I can go ahead and create my evil banner ad. ;-)

I understand that crossdomain policy files are here to stay. I just 
don't understand why they don't allow me to access content on other 
domains that I can access in other ways and then pass on to Flash.


--
Johan Nyberg

Web Guide Partner
Engelbrektsplan 1
114 34 Stockholm
08 - 50 00 24 30
070 - 407 83 00
___
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 


___
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] Proof of Concept - HTTPService object doesn't require crossdomain-policy file

2009-04-02 Thread Glen Pike
If that is the case then why is my standalone Flash exe restricted when 
I set it to allow network access only?


Paul Andrews wrote:
Isn't the context for an AIR application different to a flash 
application loaded from a browser?


In the browser the flash swf is loaded from a particular domain and 
access outside that domain requires the crossdomain policy.


In an Air application there is no concept of the domain that the swf 
is loaded from - it's essentially a desktop application.


Flash in Air and Flash in the browser have different security models.

Paul
- Original Message - From: "Johan Nyberg" 


To: 
Sent: Thursday, April 02, 2009 9:29 AM
Subject: [Flashcoders] Proof of Concept - HTTPService object doesn't 
require crossdomain-policy file



Hi, thanks for all the response to my question about the 
crossdomain.xml. But... I didn't get a lot of response to the fact 
that HTTPService can access public feeds/content on other sites 
without the need of a crossdomain.xml


Please check out the code included at the end of this post. I've 
created a small AIR application (with a certificate) and it works 
without a problem.


Am I missing something?

But again.. if my Flash app isn't allowed to access content on 
another site, I can always throw together a simple php-script that 
extracts the content for me that my Flash then can read...


And then I can go ahead and create my evil banner ad. ;-)

I understand that crossdomain policy files are here to stay. I just 
don't understand why they don't allow me to access content on other 
domains that I can access in other ways and then pass on to Flash.


--
Johan Nyberg

Web Guide Partner
Engelbrektsplan 1
114 34 Stockholm
08 - 50 00 24 30
070 - 407 83 00
___
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] Detecting if authoring mode (Flash 8 AS2)

2009-04-02 Thread Glen Pike

Hi,

   I have used the "_root.url" variable before to detect whether it is 
an "http" or a "file" based one and done caching based on that.


   Glen

Paul Steven wrote:

Is there a property or function to detect if a Flash movie is being tested
in authoring mode or live on the web?

Basically I have added a random variable to my xml file when loading it to
prevent caching.

The following works in both authoring and when live

myXML.load("xml/homeFlashContent.xml");

Whereas the following including the cache busting code doesn't work when
tested within Flash IDE.

my_Date = new Date();

myXML.load("xml/homeFlashContent.xml?"+my_Date.getUTCSeconds());

I would therefore like to have an if statement something like

If (boolAuthoringMode == true) {

myXML.load("xml/homeFlashContent.xml");

} else {

myXML.load("xml/homeFlashContent.xml?"+my_Date.getUTCSeconds());

}


If there are any better solutions please let me know.

Thanks

Paul

___
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] Cross-domain policy - why is Flex more forgiving thanFlash?

2009-03-31 Thread Glen Pike
I would agree with John too - If it's up there, it's public - I guess 
that's the point.


The crossdomain policy thing bugs me a great deal, especially when I 
have to implement the "response" in each program running on a port I 
want to connect to.   For "files": I know what file I want to load from 
somewhere - I programmed it into the Flash myself.  So why do I have to 
jump through hoops to get to it?  For passive content - XML / Images / 
Movies, I would expect that if I know the URL of something I can load 
it.  If that server wants to stop me, then it's upto that server.  I get 
the point for non-passive content with XSS, etc, but it seems that the 
policies are way of solving something that is an issue somewhere else 
that then makes it extremely difficult for normal people - maybe I just 
don't get it totally :)


If a banner ad reads something on my server - so what?  Sureley it's up 
to me as the sysadmin to make sure of the access control / permissions 
for my data, not Flash Player's to stick a big plaster (Band Aid) over 
security holes left by my bad programming.


Now which is your favourite editor :)

Meinte van't Kruis wrote:

Still, I agree with John, on the XML part. If everybody and everything can
read an XML on a random server, why can't Flash, it doesn't make any sense.

On Tue, Mar 31, 2009 at 5:33 PM, Muzak  wrote:

  

And, I've also discovered that Flex is more forgiving. I can pull in


content from another domain without said crossdomain.xml by using a
HTTPService component.

  

That's not correct.
Doesn't matter if it's Flex or Flash. It's the Flash Player that enforces
security, not the tool that created the swf.
Different rules apply to different swf versions, so if Flex compiles to fp9
and Flash CS4 compiles to fp10, you may see different results.
Even minor revisions may show different results (e.g. 9.0.45 vs 9.0.124).

 But why on earth is that so? I mean, the same file can easily be read by


an ordinary browser!? What on earth could i concoct with my devious,
malignant Flash application with the same file?

  

Well, it's not about what your intensions are, they may be all good,
but not everyone has those same good intensions :)

Think about banner ads that are displayed *wherever*.
Do you really want those to be able to read/load/execute anything they feel
like from your site/server?

There's quite alot of info on the Adobe site regarding security:
http://www.adobe.com/devnet/flashplayer/security.html
http://www.adobe.com/devnet/security/
http://www.adobe.com/products/flashplayer/security/

regards,
Muzak

- Original Message - From: "Johan Nyberg" <
johan.nyb...@webguidepartner.com>
To: 
Sent: Tuesday, March 31, 2009 2:17 PM
Subject: [Flashcoders] Cross-domain policy - why is Flex more forgiving
thanFlash?


 I'm getting tired of Flash's unforgiving cross-domain policy. Why can't I


read an xml-feed, content produced by a php file or a simple text file
without Flash wagging that finger in my face saying "No, no, you can't, not
without that site allowing your site access in the crossdomain.xml".

But why on earth is that so? I mean, the same file can easily be read by
an ordinary browser!? What on earth could i concoct with my devious,
malignant Flash application with the same file?

And, I've also discovered that Flex is more forgiving. I can pull in
content from another domain without said crossdomain.xml by using a
HTTPService component.

I would greatly appreciate if anyone could shed some light on this. And,
if anyone can point out if I'm doing anything wrong here.

But please don't tell me to get my domain name into that other servers
cross-domain policy file. There are many situations where this is not
possible, and where it would still be legitimate to read content from that
site.

And, as I said before, the browser doesn't need that permission. Nor does
Flex, apparently.

Regards,

--
Johan Nyberg

Web Guide Partner

  

___
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] Best data type for Zend AMF

2009-03-30 Thread Glen Pike
You can set the dataprovider of a DataGrid with a result set from MySQL 
or similar.


I have an experiment with AS2 + AMFPHP + datagrid at home, so guessing 
that AS3 is similar - will try and find it later if you are interested.


Although you can't do "data-binding" in the {Flex} way without the 
framework - that's an implementation of the observer pattern, so you 
could roll your own if you wanted. You can use the "Watcher" stuff that 
comes with the framework for a pure AS3 implementation - can't remember 
where it is, but look in the doc's - you can set up property watchers in 
Flex AS3 which you respond to (bit like registering listeners...)


Glen

Sidney de Koning wrote:

Nice one guys, thanks for the response.
Since i'm not at all into Flex, in the video he talks about binding 
(and mapping them to ValueObjects).

My question is can i do this with pure AS3?

Cheers,

Sid

On Mar 30, 2009, at 4:23 PM, Glen Pike wrote:

AMFPHP did this really well with result sets too - straight out of 
the box like CF.


Muzak wrote:

For database type data, Array of Objects.
Forget about XML.

With Coldfusion (and remoting) you can grab a database query result 
and just send that straight to Flash/Flex and it will be transformed 
into an Array of Objects automatically.


In CF it's as simple as:



SELECT * FROM table_name



Seems they're still working on mapping PHP to AS objects:
http://wadearnold.com/blog/?p=54
Allthough, the article is from sept 2008, so it may have been 
implemented by now.


So if class mappings are implemented (still have to take Zend AMF 
for a spin) then that's the *best* option, but probably not the 
*fastest*.
At least in Coldfusion transforming plain vanilla objects into typed 
objects slows things down (especially with lots of data).


regards,
Muzak

- Original Message - From: "Sidney de Koning" 


To: "Flash Coders List" 
Sent: Monday, March 30, 2009 12:05 PM
Subject: [Flashcoders] Best data type for Zend AMF



Hi List,

I'm using Zend AMF, and i'd like to know what is the best way and 
fastest to transfer data.
For instance; do i create an array from database data in PHP and 
send it to flash? Or do i formatted array data from a database to 
xml and send that to flash?
Which is the fastest? And more specifically; what datatype is the 
fastest.


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


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] Best data type for Zend AMF

2009-03-30 Thread Glen Pike
AMFPHP did this really well with result sets too - straight out of the 
box like CF.


Muzak wrote:

For database type data, Array of Objects.
Forget about XML.

With Coldfusion (and remoting) you can grab a database query result 
and just send that straight to Flash/Flex and it will be transformed 
into an Array of Objects automatically.


In CF it's as simple as:



   SELECT * FROM table_name



Seems they're still working on mapping PHP to AS objects:
http://wadearnold.com/blog/?p=54
Allthough, the article is from sept 2008, so it may have been 
implemented by now.


So if class mappings are implemented (still have to take Zend AMF for 
a spin) then that's the *best* option, but probably not the *fastest*.
At least in Coldfusion transforming plain vanilla objects into typed 
objects slows things down (especially with lots of data).


regards,
Muzak

- Original Message - From: "Sidney de Koning" 


To: "Flash Coders List" 
Sent: Monday, March 30, 2009 12:05 PM
Subject: [Flashcoders] Best data type for Zend AMF



Hi List,

I'm using  Zend AMF, and i'd like to know what is the best way and  
fastest to transfer data.
For instance; do i create an array from database data in PHP and 
send  it to flash? Or do i formatted array data from a database to 
xml and  send that to flash?
Which is the fastest? And more specifically; what datatype is the  
fastest.


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] Pixel recognition?

2009-03-29 Thread Glen Pike

Hi,

   Wordpress has the "monotone" theme which sets your CSS colours based 
on the image colouring.  I am not sure if this is done in Flash or not, 
but I am guessing there will be some code in there somewhere to work out 
the colour or the image which you might be able to adapt...


   http://wordpress.org/extend/themes/monotone

   You might also want to look at some of Mario Klingemann's blog posts 
/ tutorials / lectures.  I think he has done some useful stuff on images 
and his lecture at FOTB 2007 sort of touched on what you want to do, but 
in a slightly different way. - www.quasimondo.com


   Hope this helps

   Glen
  


Karl DeSaulniers wrote:
I was wondering is there a way to recognize the density of pixels in 
flash AS2 or AS3? The darkness or lightness.


For instance, say I have a loader that is dynamically loaded and 
normally it would be, say, white.
But lets say I want it to have a script that detects the pixel density 
of the MC behind it so as to let the loader mc know to play on frame 1 
or frame 2.

Frame 1 having a white loader and frame 2 having a black or grey loader.
That way when the loader is dynamically placed over a MC with a 
picture in it,
it will detect if there is a white picture (placing a black loader) or 
if its a color picture (placing the white loader on top)?


Usage would be for say a photo gallery and while one picture is being 
displayed, and the user clicks a new photo,

the previous photo does not remove until the new one is loaded.
Thus if I have a white loader and the previous photo was white under 
the loader,
the loader is hard to see and the user sometimes does not know that 
anything is happening.


I basically think it would just take a script that would map out the x 
and y of the loader
and read the pixel density of the MC directly behind the Loader 
(reason for the x and y theory)
then switch so the user will always see a loader. Either grey or white 
depending.


Sounds good in my head, may not be too good (or easy) in code though.
Any thoughts would be great,
Thanks,


Karl DeSaulniers
Design Drumm
http://designdrumm.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] ExternalInterface ...

2009-03-28 Thread Glen Pike
I also forgot to add that you may need to set the "AllowScriptAccess" 
variable to "always" in your SWF embedding HTML code in order to make 
sure your Flash can talk to the browser...


http://www.google.co.uk/search?hl=en&q=allowScriptAccess&btnG=Search&meta=

SJF wrote:

I have an ExternalInterface call in my application that looks like this:


ExternalInterface.call(BrowserScriptsJS.GET_BROWSER_INFO);


The variable GET_BROWSER_INFO looks like this:


*public* *static* *var* GET_BROWSER_INFO:XML =
<![CDATA[
*function*()
{
*var* nav = navigator;
*return* nav;
}
]]>;
--

So how do I get a response from the Javascript?

Do you have to create a proxy function in an example like this, the proxy
function being where you make the ExternalInterface.call and then another
function using ExternalInterface.addcallback for the return?

Also, and the above may answer this question, when you use ExternalInterface
to communicate with Javascript, must you always use call *and* addcallback,
i.e.: the request, then the response?

Thanks.


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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] ExternalInterface ...

2009-03-28 Thread Glen Pike

Hi,

   The example here shows how to get your return value from JS into Flash.

   http://www.adobe.com/devnet/flash/articles/external_interface_05.html

   The addCallback is used for JS talking to Flash so you can go the 
other way -


   http://www.adobe.com/devnet/flash/articles/external_interface_06.html

   HTH

   Glen

SJF wrote:

I have an ExternalInterface call in my application that looks like this:


ExternalInterface.call(BrowserScriptsJS.GET_BROWSER_INFO);


The variable GET_BROWSER_INFO looks like this:


*public* *static* *var* GET_BROWSER_INFO:XML =
<![CDATA[
*function*()
{
*var* nav = navigator;
*return* nav;
}
]]>;
--

So how do I get a response from the Javascript?

Do you have to create a proxy function in an example like this, the proxy
function being where you make the ExternalInterface.call and then another
function using ExternalInterface.addcallback for the return?

Also, and the above may answer this question, when you use ExternalInterface
to communicate with Javascript, must you always use call *and* addcallback,
i.e.: the request, then the response?

Thanks.


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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Tips for newbie

2009-03-20 Thread Glen Pike

Hi

 Here are some quick tips.
   Look at the help docs in Flash IDE for: Programming ActionScript 
3.0:  Working with movie clips -> Creating MovieClip objects with 
ActionScript.


  To summarise, you can use MovieClips to group together stuff into 
"components" (Not formal Flash Components in the Button, DataGrid, etc. 
sense - creating these is a bit more tricky because you have to follow 
certain rules - the principle that they collect a load of other 
MovieClip / Sprite based assets is the same as above, but the class 
heirarchy may be different.  I would recommend following the tutorials / 
samples in Flash's help as these will be very useful.)


   I think if you use the Gaia Framework, it generates your FLA's for 
you and also AS3 classes that are linked to your page, you can then work 
in one of these FLA's to create components in the informal sense.


   The idea of creating components is similar to the way Gaia scaffolds 
your FLA's with classes that are linked to them - I am not sure how you 
would make your components available across the whole Gaia'd site - look 
in the doc's about "Assets" probably - but if you want to create a 
"component" in an individual page that you can instanciate in code:
  
   Make a MovieClip symbol, in the "Advanced" properties of the create 
dialog,  choose to export for ActionScript.  If you want to add 
behaviour to your symbol ~ to  in your MXML, you would create 
an AS3 class file and set this class file as the Class of your 
MovieClip.  Then in other AS files used in the same FLA, you can 
instanciate by calling new ClassName() - you can add params to the 
constructor if you like too, but if you drag a copy of the Symbol on 
stage, Flash may moan because it creates the ClassName instance, but 
passes no params...


   Also, if you want to link your AS class to more than one symbol in 
the library of the same FLA, you will need to set it as the Base Class 
and use a different name for each Class property of the Symbol - Flash 
will automatically generate an class internal to the SWF with the same 
name and you would instanciate it with that name, but it would behave as 
the Base Class - like extends in php...


   For some good books - Keith Peter's "Making Things Move" is nice, 
because you do interesting things, but maybe it's not geared towards UI 
stuff completely.  Colin Moock's AS3 book is about 3 times the size of 
the AS2 one, but invaluable.  There are PDF sample chapters out there 
for lots of books - look on Friends Of Ed / O'Reilly for these and see 
what you think.  Look at the Devnet site on Adobe too for loads of 
useful stuff


   I hope this is useful, it can be a bit fiddly getting stuff right - 
watch out for declaring your variables in code and flash's publish 
settings for AS3 (File->Publish Settings, "Flash" tab, "Settings 
button), untick "declare stage instances automatically".  If you do have 
sub-components in a component on the stage, you need to give them an 
instance name - like the id attribute in Flex - the same as your 
variable in codeselect the clip on the stage in Flash and name it in the 
"Properties" panel in the box where it says "".  If you 
instanciate anything dynamically you won't (should become obvious...).  
Also, like Flex, you may have to wait for the ADDED_TO_STAGE event 
before you can manipulate child clips that you add at author-time...


   Hope this is a bit useful :)

   Glen

  



Sid Ferreira wrote:

Hi all!
Im new in Flash, but I have a long background in programming (php, C, asp,
Flex, and there we go) for a long time.
I was really into Flex' view, but after discussing with a friend, I've met
and choosed Gaia Framework.
Now I have the problem: Where to start?
In Flex, it would be pretty simple tasks like dynamically add custom created
components an passing parameters on them, but, how to do that in flash?
Sorry if it sounds lazy, but, my cable is off and I need gather most tuff
possible to get home and use it a lot at weekend.

Thanks in advance

  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] setBufferTime on stream locks up flashplayer

2009-03-20 Thread Glen Pike

I had a problem with FP9 connecting to a http stream which went with FP10...

Hans Wichman wrote:

Hi list,

when setting the buffertime on a stream thats played through http, setting
the buffertime completely locks up my interface for a few seconds.
has anyone seen this before?

regards,
Hans
___
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] Flash Future - Unity3D, iPhone and performance

2009-03-20 Thread Glen Pike


Naturally, to get the optimum feature set you will need to buy the 
whole A-Phone suite, A-SatNav, A-PhotoDevice, etc to get the best from 
the A-Phone, further slimming the wallet. On the downside you will 
require a pocket a foot square to put it all in..  ;-)
And another pocket a foot square for the hard disk needed to install all 
the common files...

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


Re: [Flashcoders] Re: A very simply question of XML toString()

2009-03-19 Thread Glen Pike

Hi,

   Have a look for "e4x" if you are using AS3, if not look for 
http://www.xfactorstudio.com/


   These will help immensely, but something like myXML.book.title might 
return an XMLList...


   Glen

ACE Flash wrote:

I was using this script, is there any short way to push them into an array?

Thank you.

var myXML:XML =



Dictionary 1


Dictionary 2


;

var arr:Array = new Array();
var childLength:uint = myXML.children().length();


for ( var k:uint = 0 ; k < childLength ; k++ )
{
arr.push( myXML.children()[k].title.toString() );

trace( myXML.children()[k].title.toString() )
}




On Thu, Mar 19, 2009 at 1:11 PM, ACE Flash  wrote:

  

Hey there,

I was trying to parse the XML to get all value of  and store them
into array at once. Do I have to use loop to push them into an Array or
there is a shortcut for doing this?

I'd like to get something like this...

var arr:Array = new Array();

// to trace arr
arr[0] = Dictionary 1
arr[1] = Dictionary 2

Thank you



   1.
   var myXML:XML =

   2.

   3.

   4.
Dictionary 1
   5.

   6.

   7.
Dictionary 2
   8.

   9.
;
   10.
   trace( myXML.book.title.toString() )






___
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] crossdomain policy requests

2009-03-19 Thread Glen Pike

Hi,

   I have a flash app running from a standalone player in Linux that 
requests files from a webserver connection on localhost:80 and also 
connects to a socket on localhost:3000


   Both of these connections require a crossdomain policy file 
"implementation" one in the webroot and one pushed down the socket even 
though the xml on both says all hosts all ports.


   Is this how it's supposed to work, because it's really annoying 
having to do a x-domain file for every connection...


   Is there anyway around this?

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


Re: [Flashcoders] Question about AS3 components

2009-03-18 Thread Glen Pike

Eric E. Dolecki wrote:

I have a component I am building that has a default size set with an
"avatar" clip. When it's placed on stage by hand, it uses that dimension and
it removes that clip. Great. I have overriden height and width mutators and
accessors.
When I resize the component on stage, it works correctly, but I have the
blue outline selection box at the default size still, not properly bounding
the resized contents of the component.

Is there a trick I should use here?

  

Hi,

   It talks about avatar's in here, which might help - search for the 
term on the page.


   Funny thing is, that if you resize the avatar clip inside a Flash 
button, it resizes the buttons on stage, so maybe this is something the 
other way around???


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


Re: [Flashcoders] Looking for a configurable Flash Live Chat Box With Rooms Optional

2009-03-17 Thread Glen Pike

Hi,

   I found this a few years ago which worked out of the box.
  
   http://www.tufat.com/s_flash_chat_chatroom.htm
  
   It's a bit cheeky tho' because the guy is packaging up some stuff 
with AMFPHP and not honouring the license properly...


   Glen

TS wrote:

Does anyone have a good link to something like this for reasonable price or
free?

Configurable meaning skinnable and sizeable?

Thank you everyone :)

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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Intersection on circle based on angle

2009-03-17 Thread Glen Pike

Hi,

   You have the position of the point in polar coordinates (radius, 
angle), so you want to get the point in cartesian (x, y) - this function 
converts it.  You need the angle in radians though.


   It's shorthand for:
  
   x = radius * sin(theta); y = radius * cos(theta);

   Where theta = angle * Math.PI / 180

   HTH

   Glen
Eric E. Dolecki wrote:

Jason,
Could you elaborate please?

Point.polar( length, angle );


I have the angle (say 0 degrees). The length would then be pixels from the
center (ie. radius)?




On Tue, Mar 17, 2009 at 9:53 AM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

  

In AS3, Point.polar()


Jason Merrill

Bank of  America   |  Learning Performance Solutions Instructional
Technology & Media

Monthly meetings on the Adobe Flash platform for rich media experiences -
join the Bank of America Flash Platform Community




-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki
Sent: Tuesday, March 17, 2009 9:17 AM
To: Flash Coders List
Subject: [Flashcoders] Intersection on circle based on angle

I've done this before but can't find my file(s). I am currently googling
but
haven't found the answer yet (I'm sure it's out there, just need to
rediscover it).
I have a circle, registration at 0, 0.
If I have an angle from it's center, I'd like to get x,y where the angle
would intersect with the edge of the circle. I am basically drawing dots
around the outside of a circle (think mixing console knobs with a variable
number of detents).

anyone have something handy?

___
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] AS3: Troubles styling the List

2009-03-15 Thread Glen Pike

Hi,

   Have a look at this tutorial - it applies to lists too.

   http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/

   Glen

Alexander Farber wrote:

Hello,

I'm trying to change the font size in a fl.controls.List:

private static const SMALL:TextFormat = new TextFormat('Arial', 18, 
0x00);

list = new List();
list.setStyle('textFormat', SMALL);

but the size of the font in the List doesn't seem to change.

Has anybody else fought a similar trouble?

And also I wonder if it's possible to set
text color for selected items to red,
since I'm trying to represent playing cards
(and hearts + diamonds would be red)

Thanks for any advices in regards to this component!
Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Flash CS4 selecting library temporarily 'hangs' the computer

2009-03-12 Thread Glen Pike

Hi,

   The Adobe (definitely non-Macromedia) software all seems to have 
"preferences" files.  Different programs have them in different places.
   
http://www.google.co.uk/search?hl=en&q=cs4+corrupt+preferences&btnG=Google+Search&meta=


   I was messing around with our network shares and people kept 
complaining that PhotoShop / InDesign, etc. were hanging.  We worked out 
that me moving network shares caused the hang when people tried to open 
/ browse for files after I had renamed a share because the open / browse 
dialog always tries to connect to the last place browsed.  Because this 
path is stored in the prefs for "convenience", the only way to fix the 
problem was to delete the preferences files for the appropriate program 
- but each one has a different way of doing it:
  
   e.g.

   InDesign
   http://kb.adobe.com/selfservice/viewContent.do?externalId=kb408055
   PhotoShop
   
http://www.webdesign.org/web/photoshop/articles/replacing-the-preferences-file.5729.html
  
   I thought it might be a similar thing since Adobe have been d***ing 
around with Flash to help the "workflow" thing...  Some people mention 
Brigde having issues too.  This should be something that Adobe can fix 
because other people's software seems to deal with missing paths 
reasonably well, but because the issue is partly due to Windows 
networking rubbish, so it's not entirely Adobe's fault.


   http://kb.adobe.com/selfservice/viewContent.do?externalId=kb404905

   It might not be though, so apologies in advance.

   Glen

Meinte van't Kruis wrote:

Hmmm, well, everything does come from the network. But it doesnt really
lockup most of the time, it's just unreponsive/hanging for halve a minute.
I'm not sure what you mean by pref's files, you mean the local cache?

On Thu, Mar 12, 2009 at 2:24 PM, Glen Pike wrote:

  

Hi,

  It's not a network thing is it??
We keep having to reset our pref's files for various Adobe products
when a network share drops off... - when the program tries to open a browse
dialog at the last known location that is on a network share that has
disappeared, the program locks up.  Have seen this with PhotoShop / InDesign
so far - we have to keep deleting the prefs for each software.  I hope CS4
has not done this too...

  Glen


Meinte van't Kruis wrote:



Hi guys,

Does anyone share the experience when selecting the library in flash cs4,
it
stalls the computer for up to halve a minute? It's really annoying,
happens
alot and doesn't happen in Flash cs3, with the same files, so I guess it's
nothing to do with the size of the library.

At first I thought it was switching panels that made it happen, but it
only
happens while selecting the library. I cannot find any info on it in the
bug
database
of Adobe, nor with google. Should I try reinstalling cs4(gonna cost half
the
day...sigh), I've heard that helps in some cases, but frankly, if anyone
has
a
better solution that's be great.

Best regards,
Meinte



  

___
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] Flash CS4 selecting library temporarily 'hangs' the computer

2009-03-12 Thread Glen Pike

Hi,

   It's not a network thing is it??
  
   We keep having to reset our pref's files for various Adobe products 
when a network share drops off... - when the program tries to open a 
browse dialog at the last known location that is on a network share that 
has disappeared, the program locks up.  Have seen this with PhotoShop / 
InDesign so far - we have to keep deleting the prefs for each software.  
I hope CS4 has not done this too...


   Glen

Meinte van't Kruis wrote:

Hi guys,

Does anyone share the experience when selecting the library in flash cs4, it
stalls the computer for up to halve a minute? It's really annoying, happens
alot and doesn't happen in Flash cs3, with the same files, so I guess it's
nothing to do with the size of the library.

At first I thought it was switching panels that made it happen, but it only
happens while selecting the library. I cannot find any info on it in the bug
database
of Adobe, nor with google. Should I try reinstalling cs4(gonna cost half the
day...sigh), I've heard that helps in some cases, but frankly, if anyone has
a
better solution that's be great.

Best regards,
Meinte

  


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


Re: [Flashcoders] where did the mouseX go?

2009-03-11 Thread Glen Pike

import flash.display.Sprite.mouseX;
import flash.display.Sprite.mouseY;

???

import flash.display.Sprite;

:)

Gustavo Duenas wrote:



Hi Coders I have this code, is simple I want to move something using 
as3, but when I do the movie test with it, it gives me this error
1172: Definition flash.display.Sprite:mouseX could not be found.same 
for the mouseY, I don't understand since the code appears to be in the 
import  flash.display.Sprite.mouseX;
doers anyone has encountered this error, am I doing something wrong, 
and please if someone knows what is would you please point which is 
the error there.


I'd appreciate any help, here is the code


import fl.transitions.*;
import fl.transitions.easing.*;
import flash.ui.Mouse;

import flash.display.MovieClip;
import flash.net.*;
import flash.events.*;
import flash.display.Sprite.mouseX;
import flash.display.Sprite.mouseY;

var duration:Number = 3;
var cosilla:Sprite = new Sprite();
var cosillaLoader:Loader = new Loader();
cosillaLoader.load(new 
URLRequest("http://leftandrightsolutions.com/back1.jpg";));

cosilla.addChild(cosillaLoader);
addChild(cosilla);
addEventListener(Event.ENTER_FRAME, mousecords);
var xTween:Tween = new Tween(cosilla, "x", Regular.easeOut, cosilla.x, 
cosilla.x, duration, true);
var yTween:Tween = new Tween(cosilla, "y", Regular.easeOut, cosilla.y, 
cosilla.y, duration, true);


function mousecords(event:Event):void {
xTween.continueTo(event.mouseX, duration);
yTween.continueTo(event.mouseY, duration);
}




Gustavo


___
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] Check for Full Screen Availability

2009-03-11 Thread Glen Pike
Aha, I see - don't think you can read this for some strange reason.  I 
had problems trying to get it working, probably part of the security 
thing.  I could not even get a context menu to do the same...


Glen

John Giotta wrote:

Yes, Stage.displayState vs StageDisplayState.NORMAL or
StageDisplayState.FULL_SCREEN, but its always NORMAL and I can only
compare when full screen is the event for resize is called. Its a
reactionary condition; I need the event first.

I want to know if its possible from a security/capability stand point
before the end-user has the chance request full screen.

- John G

On Wed, Mar 11, 2009 at 10:20 AM, Glen Pike  wrote:
  

John Giotta wrote:


I want to render the UI based on availability of features. One of them
is a full screen Button/Sprite that I want to not appear if
allowFullScreen is false.

Does anyone know of a way to check for full screen availability? I've
been scouring the interwebs for an answer, but no luck so far. Is it
just not possible?

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



  

I think there is a property on the Stage instance to get the state - compare
to StageDisplayState constant values??
___
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] Check for Full Screen Availability

2009-03-11 Thread Glen Pike

John Giotta wrote:

I want to render the UI based on availability of features. One of them
is a full screen Button/Sprite that I want to not appear if
allowFullScreen is false.

Does anyone know of a way to check for full screen availability? I've
been scouring the interwebs for an answer, but no luck so far. Is it
just not possible?

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


  
I think there is a property on the Stage instance to get the state - 
compare to StageDisplayState constant values??

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


Re: [Flashcoders] Advice on creating random grid of pairs for a game

2009-03-11 Thread Glen Pike
Jobe Makar's book about Flash Games Demystified has a wordsearch that 
shuffles words in a grid - it will keep shuffling upto a point, then 
decide that it is getting nowhere and try again.  There may be some 
examples of this sort of thing online - I have the book at home if not :)


Paul Steven wrote:

I am trying to write the code to populate a 9 by 9 grid of tiles with 40
pairs of matching tiles.

I have 4 different types of tiles and I want to create a grid that has 40
matching pairs and 1 blank tile.

I do not want the pairs all to be next to each other but there needs to be
at least one solution that enables a player to match each and every pair. To
match a pair there needs to be a clear path between each member of the pair.

1,2,1
2,0,3
4,4,3

In this simple example, a user could clear all tiles by matching in the
following order:

4 - 4
3 - 3
2 - 2
1 - 1

Note that until they have matched the pair of 2's they cannot match the 1's
as there would be no clear path between them.

All my attempts so far to create this grid is resulting in script errors due
to my code being unable to find a solution. My code basically gets about 60%
of the board created then finds it cannot any more clear paths to create the
remainder of the grid.

I would really appreciate any help cracking this function.

Thanks

Paul


___
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] Tutorial for ASP.NET 2.0 using C# and AS3

2009-03-11 Thread Glen Pike
Try making the server side page use GET and POST, then debug your page 
in the browser with a normal query string to make sure that works first...


Then plug it into Flash - you can use LiveHTTPHeaders for get requests, 
or a debugging proxy for more serious stuff :)


Dave Watts wrote:

I can't seem to find a good tutorial using ASP.NET 2.0 using C# and AS3. I'm
trying to figure out how to POST vars to an .aspx page or rather I think my
Flash code is correct so I need the code to catch the vars in the .aspx
page. I'm totally familiar with PHP but, not the M$ way =8o)

...

This is the code I've currently got for the flash side of things.



Your Flash code looks fine, and in any case would be the same whether
you're using PHP or ASP.NET or whatever. Why don't you post the
ASP.NET code? Or are you saying you don't have that at all yet (rather
than having it, but it doesn't work yet)?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] Capture sound input in Flash as MP3?

2009-03-06 Thread Glen Pike

Not 100%, but I think ffmpeg might support this now.

Juan Pablo Califano wrote:

Cool, I thought ffmpeg didn't support the nelly moser codec used by the
player to publish audio data.

Cheers
Juan Pablo Califano


2009/3/6, BOYD SPEER :
  

After getting the oflaDemo to work one solution is to use ffmpeg to change
the file type from .flv to .mp3 using a php script that has a 'shell_exec()'
line. I placed the ffmpeg.exe in the same 'streams' folder as the .flv files
and then after the conversion has taken place the php script moves and
renames the .mp3 file to its final location.

-
Boyd
- Original Message -
From: Glen Pike 
Date: Friday, March 6, 2009 3:14 am
Subject: Re: [Flashcoders] Capture sound input in Flash as MP3?
To: Flash Coders List 



It's scary, but not that scary when you get into it...  ...
I posted a
rough outline for someone a week or so ago on the Osflash list -
there
is a basic recording application in the examples...

http://www.mail-archive.com/osfl...@osflash.org/msg15410.html

Don't forget to ask Red5 specific questions on the Red5 list -
Osflashers sometimes get a bee in their bonnet about this one :)

Glen

confustic...@gmail.com wrote:
  

Thanks for your reply Glen. That is really handy to know.

Now to plunge into what looks like the terrifying world of


Red5. *shiver*
  

Cheers,
CB.

On Thu, Mar 5, 2009 at 11:10 PM, Glen Pike


wrote:>
  

Hi,

  You can "capture" the microphone sound in Flash
  

by publishing it to a
  

server via a Netstream connected to Flash Media Server or
  

Red5 (OS media
  

server).

  You can't get the sound from the microphone and
  

save it to an mp3 on your
  

machine without sending it to be recorded by the server first...

  HTH

  Glen


confustic...@gmail.com wrote:


  

 Hello List,

I wonder if I could get this sorted out once and for all.

A colleague is convinced that you can capture a SWF's sound input
(possibly
through the Microphone class) and save it as an MP3.


However, said
  

colleague
has not yet provided any proof or examples.

I meanwhile have been trying to find examples / tutorials /


documentation>>> regarding this and have come up empty.
  

Would anyone know if this is / isn't possible? We would love


for our users
  

to be able to record their speech onto a server or their


local hard
  

drives.

Cheers,
CB.
___
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





___
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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Capture sound input in Flash as MP3?

2009-03-06 Thread Glen Pike
It's scary, but not that scary when you get into it...  ... I posted a 
rough outline for someone a week or so ago on the Osflash list - there 
is a basic recording application in the examples...


http://www.mail-archive.com/osfl...@osflash.org/msg15410.html

Don't forget to ask Red5 specific questions on the Red5 list - 
Osflashers sometimes get a bee in their bonnet about this one :)


Glen

confustic...@gmail.com wrote:

Thanks for your reply Glen. That is really handy to know.

Now to plunge into what looks like the terrifying world of Red5. *shiver*

Cheers,
CB.

On Thu, Mar 5, 2009 at 11:10 PM, Glen Pike wrote:

  

Hi,

  You can "capture" the microphone sound in Flash by publishing it to a
server via a Netstream connected to Flash Media Server or Red5 (OS media
server).

  You can't get the sound from the microphone and save it to an mp3 on your
machine without sending it to be recorded by the server first...

  HTH

  Glen


confustic...@gmail.com wrote:



 Hello List,

I wonder if I could get this sorted out once and for all.

A colleague is convinced that you can capture a SWF's sound input
(possibly
through the Microphone class) and save it as an MP3. However, said
colleague
has not yet provided any proof or examples.

I meanwhile have been trying to find examples / tutorials / documentation
regarding this and have come up empty.

Would anyone know if this is / isn't possible? We would love for our users
to be able to record their speech onto a server or their local hard
drives.

Cheers,
CB.
___
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


  


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


Re: [Flashcoders] RegExp headache

2009-03-05 Thread Glen Pike

Seriously, just play with RegExr / Regex Buddy, get the cheat sheets:

http://www.regexbuddy.com/
http://gskinner.com/RegExr/

http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/

Then spend some time dealing with Apache & Mod Rewrite which will 
stretch your regex muscles...


http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/
http://www.addedbytes.com/apache/url-rewriting-for-beginners/

That's what I did, now one day I will be able to do the mental 
gymnastics of the other people, but for now, I will just have to keep 
looking up the RegEx bits - RegExr is good for this - because I have too 
many other things to learn along with RegEx's...


If you want to hurt your brain whilst learning them inside out try this:

http://www.regular-expressions.info/

Glen


Merrill, Jason wrote:

/(((<|>)=?)|==)?(-?\d+)/
hot darn.
  


A side note.  I'm so in awe at the people who understand and can write
Regular Expressions on a whim - I have hacked a few from some examples
for projects, but it's nothing I really understand too much, a skill I
need to learn - they are so handy.



Jason Merrill 


Bank of  America   |  Learning Performance Solutions Instructional
Technology & Media   
Learn about the Adobe Flash platform for rich media experiences - join
the Bank of America Flash Platform Community 


Anyone can follow my nonsense on Twitter: jmerrill_2001.  If you know me
personally, follow more nonsense on Facebook. 





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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] RegExp headache

2009-03-05 Thread Glen Pike

Hi,

   How about:

   /([=><]+)([0-9]+)/

   Check out "RegExr" by Grant Skinner - it's lovely.

   The problem with <= and >= is that there is "look behind" in the 
regex controlled by these chars so the order of =>< seems to be important???
  
   Glen


Jiri wrote:

I would like some help on a regExp

I have a string and want to split it into the first character being a 
<|>|<=|>=|== the second part being an int.


so ">100"

would return
result[1] = '>'
result[2] = 100

so "100"

would return
result[1] = 'undefined'
result[2] = 100

Here is what I have so far, but it is killing me.

var pattern:RegExp = /^(\d)?(^\d+)|()/
var result:Object = pattern.exec(tConditionalString);

I tried another approach but i am still figuring out how to do it. It 
goes something like this

var pattern:RegExp = /^(>):((?(2)then|else))


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] Capture sound input in Flash as MP3?

2009-03-05 Thread Glen Pike

Hi,

   You can "capture" the microphone sound in Flash by publishing it to 
a server via a Netstream connected to Flash Media Server or Red5 (OS 
media server).


   You can't get the sound from the microphone and save it to an mp3 on 
your machine without sending it to be recorded by the server first...


   HTH

   Glen

  


confustic...@gmail.com wrote:

Hello List,

I wonder if I could get this sorted out once and for all.

A colleague is convinced that you can capture a SWF's sound input (possibly
through the Microphone class) and save it as an MP3. However, said colleague
has not yet provided any proof or examples.

I meanwhile have been trying to find examples / tutorials / documentation
regarding this and have come up empty.

Would anyone know if this is / isn't possible? We would love for our users
to be able to record their speech onto a server or their local hard drives.

Cheers,
CB.
___
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] SoundSpectrum on audio track of a video?

2009-03-05 Thread Glen Pike

Dunno, try it with the sound mixer which is controls global sound(s).

SoundMixer.computeSpectrum()

Matt S. wrote:

Hey,
do you guys know if its possible to use the AS3 Sound Spectrum
functionality on the audio track of a video that's playing via a
NetStream?

thx,

.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] MVC(S) Question

2009-03-01 Thread Glen Pike

Hi Dr Ache,

   Yes - the state machine idea was something I had for a kind of 
"screen manager" class to transition between the "screens" - View1 & 
View2 below.


   My screens contain 1 or more views depending on how complex the 
views are (trying to break stuff down), but to keep the loose coupling 
between views and controllers, I was trying to find a way of setting 
controllers on a view in a more dynamic way because I was using Events 
to communicate between view and controller and wanted to hookup the 
appropriate controller for it's corresponding events, e.g.


View1:
   (Do I put Button1 & Slider1 in their own view? - not just for 2 
components, maybe for many components with the same controller)

   Button1 (Plays music on the Jukebox device)
   Slider1 (changes volume on the Jukebox)
  
   Button2 (Plays video on the VideoPlayer device)

   Slider2 (changes colour on Lighting device #1)

View2:
   Sliders 1 - 4 (Lighting devices #1-#4)

Controller & Models:
   Jukebox
   VideoPlayer
   Lighting:Array =  [Light #1, ...]

   So being as my various buttons are linked up to different "device" 
instances, rather than wiring the controller into the individual buttons 
directly - my view still needs some control over the functionality of 
buttons under different circumstances - I wanted to wire the controllers 
up to the view.  As the things being controlled, hence controllers don't 
change for each screen, just what controls are "exposed", I wanted to 
create an API to attach my controllers in a more abstract way, which is 
why I thought about interrogating the controllers for the events they 
want - then they become more pluggable like the views...


   Hope this helps explain my ideas a bit more..

   Thanks

   Glen

  


dr.ache wrote:

Wait..i cannot really follow you ;-)
Just a guess: Try to implement a state machine with transitions 
between those states.
Your states have IDs and so the transitions do. Whenever you 
transition IN a new state you can
setup your controller, show your views and so forth. I expect you to 
have some kind of a rule, when
each view in combination with others is shown, right? Or do they popup 
individually every time?




Glen Pike schrieb:

Hi,

   Thanks for your answer.  I like the idea of loose coupling very 
much and the speed issue is important, but like you said, I need to 
test this out really.


   I still have an issue with how to do the "layout" of my M's, V's & 
C's because like I mentioned, my application "Screens" compose Views 
for various associated Controllers/Models and the screens are 
essentially what the application shows and switches between...


   I am thinking that because there are fairly fixed controllers + 
models in my application (to start with) these pairs should be 
somehow handled by the application.  Because of loose-coupling & 
there being screens with many views in, I don't think my controllers 
should be creating the individual view - there are a number of 
different views utilising a single controller so how does the 
controller know what to create?
   I am thinking about allowing the Application to some how wire in 
the controllers to my Screens - the composite of Views - dynamically 
and somehow allow this to wire up my event listeners according to 
what events the controller(s) respond to.  I don't know if this is a 
bad thing, so any critique is welcome, but my idea is somehow to 
implent the following:


IController::whatEventsDoYouHandle()

ICompositeView::addController(control:IController) {
   var desired:Array = control.whatEventsDoYouHandle();
   for each(evt in desired) {
  addEventListener(evt.type, evt.func...)
   }
}

Apart from making sure I remove all listeners, is this a sensible way 
of utilising the same controllers & models - for my same devices 
whilst just changing the button screens which interact with the 
devices???  When my system adds another device, I can add appropriate 
controllers and models then create my new screen(s) to utilise these 
as desired??


Any suggestions caveats, etc.

Glen

dr.ache wrote:

Hi Glen.
I would defenitively go with lose coupling and one controller by one 
device.
You mentioned one requirement being the scaleability what new views 
are concerned - so there is no others choice.
To proof the speed of that setup you need to implement a prototype 
of a likely application state. How should someone else know?
But as a general tip: Always go with the better architecture - the 
speed comes with better hardware (or flash player).


Glen Pike schrieb:

Hi,

   I am reworking an application we use for a touchscreen interface 
and am trying to design the architecture for all the right reasons.


   I am currently wrangled in MVC-ness and trying to work out the 
best way to move forward.  Having immersed myself in many books and 
texts, I still find myself going ar

Re: [Flashcoders] MVC(S) Question

2009-02-27 Thread Glen Pike

Hmmm,

   Just realising this looks an awful lot like the PureMVC 
GetNotificationInterest system...


   Glen





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


Re: [Flashcoders] MVC(S) Question

2009-02-27 Thread Glen Pike

Hi,

   Thanks for your answer.  I like the idea of loose coupling very much 
and the speed issue is important, but like you said, I need to test this 
out really.


   I still have an issue with how to do the "layout" of my M's, V's & 
C's because like I mentioned, my application "Screens" compose Views for 
various associated Controllers/Models and the screens are essentially 
what the application shows and switches between...


   I am thinking that because there are fairly fixed controllers + 
models in my application (to start with) these pairs should be somehow 
handled by the application.  Because of loose-coupling & there being 
screens with many views in, I don't think my controllers should be 
creating the individual view - there are a number of different views 
utilising a single controller so how does the controller know what to 
create?
   I am thinking about allowing the Application to some how wire in the 
controllers to my Screens - the composite of Views - dynamically and 
somehow allow this to wire up my event listeners according to what 
events the controller(s) respond to.  I don't know if this is a bad 
thing, so any critique is welcome, but my idea is somehow to implent the 
following:


IController::whatEventsDoYouHandle()

ICompositeView::addController(control:IController) {
   var desired:Array = control.whatEventsDoYouHandle();
   for each(evt in desired) {
  addEventListener(evt.type, evt.func...)
   }
}

Apart from making sure I remove all listeners, is this a sensible way of 
utilising the same controllers & models - for my same devices whilst 
just changing the button screens which interact with the devices???  
When my system adds another device, I can add appropriate controllers 
and models then create my new screen(s) to utilise these as desired??


Any suggestions caveats, etc.

Glen

dr.ache wrote:

Hi Glen.
I would defenitively go with lose coupling and one controller by one 
device.
You mentioned one requirement being the scaleability what new views 
are concerned - so there is no others choice.
To proof the speed of that setup you need to implement a prototype of 
a likely application state. How should someone else know?
But as a general tip: Always go with the better architecture - the 
speed comes with better hardware (or flash player).


Glen Pike schrieb:

Hi,

   I am reworking an application we use for a touchscreen interface 
and am trying to design the architecture for all the right reasons.


   I am currently wrangled in MVC-ness and trying to work out the 
best way to move forward.  Having immersed myself in many books and 
texts, I still find myself going around in circles some of the time 
and would like to make some choices with possible help from you guys...
 
   The app talks to a back end control system via an XML socket.  The 
system has a number of devices attached and the screen controls allow 
for changing stuff on the devices and monitoring them too along with 
the application navigation, etc.


   Requirements:
   It be easy to add new "screens" later on.
   The coupling of component interaction to back end needs to be 
fairly fast - we use sliders and trackpads to move devices in 
real-ish time.
   The application may use different languages which affect text and 
content.
 My "screens" are essentially composite views or possibly 
composites of views - one screen may have controls that interact with 
more than one device.


   I am trying to decide about "arrangment" of my Models Views and 
Controllers.
   Essentially my components will be grouped into Views, but I do not 
know whether it is a good or bad idea to mix controls for different 
devices within a single view.  Also, is it better to have a single 
controller responding to messages from all views to route these to 
the appropriate model, or should I create a controller for each 
view.  I am thinking the latter would be overkill possibly, but I am 
still not sure whether to create a composite of controllers, or 
separate them, use simple "commands" and some kind of factory / 
lookup, etc. - some component events will be routed to devices, some 
to the application, etc.
   At the other side of the controller, my models will be for 
instances of devices and will send updates to the backend & other 
bits of the app.  Is it better here to send these updates directly to 
all the views or a controller(s), or is this choice affected by 
others above?


   The other question is, do I lever the existing Flash event 
mechanism for communications across the app, or will this slow it 
down - is it better to use basic observer for the model updating 
other things???


   I have looked at a number of frameworks and the idea of PureMVC 
with it's very loosely coupled elements seems very sensible.  As most 
of the frameworks are constraining in some way and I need the 
experience, I am 

Re: [Flashcoders] Printing table receipt with Flex

2009-02-27 Thread Glen Pike

Skin a data grid?

Omar Fouad wrote:

Thanks everybody for the replies... I've been thinking about rendering an
HTML table into a TextField inside a sprite... But as far as I know,
TextFields in flash does not support HTML tables.

What else is recomended?

On Thu, Feb 26, 2009 at 7:52 PM, Anthony Pace wrote:

  

You beat me to it.  I was going to say that he could lat it out someway
like outputing it all as html inside an mc like eric said,  convert the mc
to a bitmap like you suggested, and then use printJob();

Here is a decent tutorial...


http://blog.tikikitchen.com/2008/04/18/printing-in-flash-in-10-simple-steps




Glen Pike wrote:



Omar Fouad wrote:

  

Hi all,I am working on a POS application in AIR and SQLite, and I am
stuck
with this little problem. I need to send to a printer, some data from an
array and create a table.. in other words, I need to print a receipt.

Is there any way to create dinamically a table and fill it with strings
and
print it out?

Thanks in advance





Hi,

  Not sure about the dynamic table, but you can use the PrintJob class in
ActionScript.  The best thing to do with this is to create a MovieClip the
size of the thing to print and put a Bitmap inside it.  Do a grab of your
Receipt table / MovieClip into the bitmap and use the PrintJob to print -
this gets around problems with vector vs bitmap in printing because you are
always printing a bitmap.  As long as you have a way of laying out your
"receipt" you can print it from AS if you like...

  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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Printing table receipt with Flex

2009-02-26 Thread Glen Pike

Omar Fouad wrote:

Hi all,I am working on a POS application in AIR and SQLite, and I am stuck
with this little problem. I need to send to a printer, some data from an
array and create a table.. in other words, I need to print a receipt.

Is there any way to create dinamically a table and fill it with strings and
print it out?

Thanks in advance

  

Hi,

   Not sure about the dynamic table, but you can use the PrintJob class 
in ActionScript.  The best thing to do with this is to create a 
MovieClip the size of the thing to print and put a Bitmap inside it.  Do 
a grab of your Receipt table / MovieClip into the bitmap and use the 
PrintJob to print - this gets around problems with vector vs bitmap in 
printing because you are always printing a bitmap.  As long as you have 
a way of laying out your "receipt" you can print it from AS if you like...


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


[Flashcoders] MVC(S) Question

2009-02-26 Thread Glen Pike

Hi,

   I am reworking an application we use for a touchscreen interface and 
am trying to design the architecture for all the right reasons.


   I am currently wrangled in MVC-ness and trying to work out the best 
way to move forward.  Having immersed myself in many books and texts, I 
still find myself going around in circles some of the time and would 
like to make some choices with possible help from you guys...
 
   The app talks to a back end control system via an XML socket.  The 
system has a number of devices attached and the screen controls allow 
for changing stuff on the devices and monitoring them too along with the 
application navigation, etc.


   Requirements:
   It be easy to add new "screens" later on.
   The coupling of component interaction to back end needs to be fairly 
fast - we use sliders and trackpads to move devices in real-ish time.
   The application may use different languages which affect text and 
content.
  
   My "screens" are essentially composite views or possibly composites 
of views - one screen may have controls that interact with more than one 
device.


   I am trying to decide about "arrangment" of my Models Views and 
Controllers. 

   Essentially my components will be grouped into Views, but I do not 
know whether it is a good or bad idea to mix controls for different 
devices within a single view.  Also, is it better to have a single 
controller responding to messages from all views to route these to the 
appropriate model, or should I create a controller for each view.  I am 
thinking the latter would be overkill possibly, but I am still not sure 
whether to create a composite of controllers, or separate them, use 
simple "commands" and some kind of factory / lookup, etc. - some 
component events will be routed to devices, some to the application, etc.
   At the other side of the controller, my models will be for instances 
of devices and will send updates to the backend & other bits of the 
app.  Is it better here to send these updates directly to all the views 
or a controller(s), or is this choice affected by others above?


   The other question is, do I lever the existing Flash event mechanism 
for communications across the app, or will this slow it down - is it 
better to use basic observer for the model updating other things???


   I have looked at a number of frameworks and the idea of PureMVC with 
it's very loosely coupled elements seems very sensible.  As most of the 
frameworks are constraining in some way and I need the experience, I am 
hedging towards designing my own "framework" here to fit in with the 
requirements above - mainly, getting component interaction to the back 
end as fast as possible.   In the current AS1 functional type code the 
button onRelease, etc. functions are pretty much wired directly to 
sending of data over the wire.  Whilst this is good (fast), the 
maintainability of the project is not.  Different wiring, change to 
spec's, etc. the bits I am trying to clean up along with porting to AS3 
/ AVM2.


   Does anyone have any advice here particularly with regard as to how 
to layout my MVC'ness - can I enclose entire MVC elements within another 
M, V or C, or do I nest M-in-M, etc???


   Thanks in advance.

   Glen
  
  
___

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


Re: [Flashcoders] drag along custom path

2009-02-26 Thread Glen Pike

http://keith-hair.net/blog/category/actionscript-3/

Might be a good place to start...

Tom Huynen wrote:

Hi guys,

I'm trying to drag a sprite along a rectangle with rounded corners. Does
anybody know an easy way to do this?

Kind regards,

Tom
___
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] is this the getURL bug?

2009-02-24 Thread Glen Pike

Or this maybe...

http://groups.google.com/group/macromedia.flash/browse_thread/thread/4a8f27962bab6a0e


Mattheis, Erik (MIN - WSW) wrote:

Yes, that sounds similar although these movies had been working as
expected for years and they still work everywhere except when served by
one particular server. Unfortunately, the server they're stored on.

It also is similar to this:
http://www.northcode.com/blog.php/2007/09/11/FSCommand-and-getURL-Bug-in
-Flash-Player-9 


--
Erik Mattheis
Senior Interactive Developer
Weber Shandwick Digital Minneapolis

ph: 952 346 6610 cell: 612 377 2272


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Tuesday, February 24, 2009 2:57 PM
To: Flash Coders List
Subject: Re: [Flashcoders] is this the getURL bug?

Don't know if this helps, but it sounds like it might be similar to your

problem??

http://www.sitepoint.com/forums/showthread.php?t=157581


Mattheis, Erik (MIN - WSW) wrote:
  

Yes, these are many AS 2 SWFs that suddenly stopped working when


served
  

from a particular. getURL fails without a _blank target consistently
with FP 8-10. Adding the _blank is a fine fix for all links other than
mailto: which leaves a new browser window open in IE.

--
Erik Mattheis
Senior Interactive Developer
Weber Shandwick Digital Minneapolis

ph: 952 346 6610 cell: 612 377 2272


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Tuesday, February 24, 2009 11:29 AM
To: Flash Coders List
Subject: Re: [Flashcoders] is this the getURL bug?

Think I fixed it by using a URLRequest rather than getURL - AS3
though...

I do remember this being a problem in IE before that.  (Apologies if


you
  

are still on AS2).

The other way maybe to try "_self" instead of "_blank"???

Mattheis, Erik (MIN - WSW) wrote:
  


Suddenly a few weeks ago, getURL actions in several dozen swfs began

  

to
  


fail consistently when served from a particular server. The SWFs will
work when viewed outside of HTML as well locally or on any other

  

server.
  


The content-length of the SWF is correct on the problematic server.

Adding a _blank target to the getURL fixes it, but

  nextFrame();
  getURL('mailto:em...@domain.org');

does not.

Two questions:

Is this the odd getURL/FSCommand bug or something else?

How can I work around this for getURL with mailto: without leaving a

  

new
  


browser window open in IE?

  

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


  



  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] is this the getURL bug?

2009-02-24 Thread Glen Pike

Hi,

   Do you have a URL that you can send??

   Is it IE7 / IE6 / both / +others??
  
   Glen


Mattheis, Erik (MIN - WSW) wrote:

Yes, that sounds similar although these movies had been working as
expected for years and they still work everywhere except when served by
one particular server. Unfortunately, the server they're stored on.

It also is similar to this:
http://www.northcode.com/blog.php/2007/09/11/FSCommand-and-getURL-Bug-in
-Flash-Player-9 


--
Erik Mattheis
Senior Interactive Developer
Weber Shandwick Digital Minneapolis

ph: 952 346 6610 cell: 612 377 2272


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Tuesday, February 24, 2009 2:57 PM
To: Flash Coders List
Subject: Re: [Flashcoders] is this the getURL bug?

Don't know if this helps, but it sounds like it might be similar to your

problem??

http://www.sitepoint.com/forums/showthread.php?t=157581


Mattheis, Erik (MIN - WSW) wrote:
  

Yes, these are many AS 2 SWFs that suddenly stopped working when


served
  

from a particular. getURL fails without a _blank target consistently
with FP 8-10. Adding the _blank is a fine fix for all links other than
mailto: which leaves a new browser window open in IE.

--
Erik Mattheis
Senior Interactive Developer
Weber Shandwick Digital Minneapolis

ph: 952 346 6610 cell: 612 377 2272


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Tuesday, February 24, 2009 11:29 AM
To: Flash Coders List
Subject: Re: [Flashcoders] is this the getURL bug?

Think I fixed it by using a URLRequest rather than getURL - AS3
though...

I do remember this being a problem in IE before that.  (Apologies if


you
  

are still on AS2).

The other way maybe to try "_self" instead of "_blank"???

Mattheis, Erik (MIN - WSW) wrote:
  


Suddenly a few weeks ago, getURL actions in several dozen swfs began

  

to
  


fail consistently when served from a particular server. The SWFs will
work when viewed outside of HTML as well locally or on any other

  

server.
  


The content-length of the SWF is correct on the problematic server.

Adding a _blank target to the getURL fixes it, but

  nextFrame();
  getURL('mailto:em...@domain.org');

does not.

Two questions:

Is this the odd getURL/FSCommand bug or something else?

How can I work around this for getURL with mailto: without leaving a

  

new
  


browser window open in IE?

  

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


  



  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] is this the getURL bug?

2009-02-24 Thread Glen Pike
Don't know if this helps, but it sounds like it might be similar to your 
problem??


http://www.sitepoint.com/forums/showthread.php?t=157581


Mattheis, Erik (MIN - WSW) wrote:

Yes, these are many AS 2 SWFs that suddenly stopped working when served
from a particular. getURL fails without a _blank target consistently
with FP 8-10. Adding the _blank is a fine fix for all links other than
mailto: which leaves a new browser window open in IE.

--
Erik Mattheis
Senior Interactive Developer
Weber Shandwick Digital Minneapolis

ph: 952 346 6610 cell: 612 377 2272


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Tuesday, February 24, 2009 11:29 AM
To: Flash Coders List
Subject: Re: [Flashcoders] is this the getURL bug?

Think I fixed it by using a URLRequest rather than getURL - AS3
though...

I do remember this being a problem in IE before that.  (Apologies if you

are still on AS2).

The other way maybe to try "_self" instead of "_blank"???

Mattheis, Erik (MIN - WSW) wrote:
  

Suddenly a few weeks ago, getURL actions in several dozen swfs began


to
  

fail consistently when served from a particular server. The SWFs will
work when viewed outside of HTML as well locally or on any other


server.
  

The content-length of the SWF is correct on the problematic server.

Adding a _blank target to the getURL fixes it, but

  nextFrame();
  getURL('mailto:em...@domain.org');

does not.

Two questions:

Is this the odd getURL/FSCommand bug or something else?

How can I work around this for getURL with mailto: without leaving a


new
  

browser window open in IE?




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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] is this the getURL bug?

2009-02-24 Thread Glen Pike

Think I fixed it by using a URLRequest rather than getURL - AS3 though...

I do remember this being a problem in IE before that.  (Apologies if you 
are still on AS2).


The other way maybe to try "_self" instead of "_blank"???

Mattheis, Erik (MIN - WSW) wrote:

Suddenly a few weeks ago, getURL actions in several dozen swfs began to
fail consistently when served from a particular server. The SWFs will
work when viewed outside of HTML as well locally or on any other server.
The content-length of the SWF is correct on the problematic server.

Adding a _blank target to the getURL fixes it, but

  nextFrame();
  getURL('mailto:em...@domain.org');

does not.

Two questions:

Is this the odd getURL/FSCommand bug or something else?

How can I work around this for getURL with mailto: without leaving a new
browser window open in IE?

Thanks.

--
Erik Mattheis
Senior Interactive Developer
Weber Shandwick Digital Minneapolis


___
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] How to know coordinates of letters in non fixed-width fonts

2009-02-24 Thread Glen Pike

Hi,

   Can you get text metrics for characters / lines in the text field???

   Glen

ali drongo wrote:

Thanks for all of your responses guys,I ended up using getCharBoundaries and
it works a treat.
FYI I created a text field at the position I wanted the letters to finally
go then stored the rectangle object for each char in an array and then
cycled through the array as Glen suggested.

Only thing is, when I use a multiline textfield my function will only gather
the char boundaries for the first line:
If anyone can suggest why it would be a help.
Cheers!
Ali




public static function letterPosAr(t:TextField):Array
{
trace("letterPosAr");
var retA:Array = new Array();
for (var i:int = 0; i < t.text.length; i++){
var rect:Rectangle = t.getCharBoundaries(i);
trace("---index"+i+"  char:"+t.text.substr(i, 1)+"  x:"+rect.x+"
y:"+rect.y+" w:"+rect.width);
retA[i] = rect;
}
return retA;
 }

On Tue, Feb 24, 2009 at 7:02 AM, Matt Gitchell wrote:

  

the AS2 one is a cool idea!

On Mon, Feb 23, 2009 at 10:16 PM, Hans Wichman <
j.c.wich...@objectpainters.com> wrote:



and for as2:
http://objectpainters.com/blog/2008/10/12/finding-character-positions/

On Tue, Feb 24, 2009 at 1:24 AM, Matt Gitchell   

wrote:

Is this AS3? you can use TextField.getCharBoundaries()


I used it in an experiment a while back here to pretty good effect:
http://www.moonbootmedia.com/interactive/m/textcompare.html

--Matt



On Mon, Feb 23, 2009 at 3:01 PM, Glen Pike 

wrote:
  
Hi,


  You should be able to get the width of each sprite with the single
  

letter


in???

  Maybe mask the stream area out.  Start each letter at x -
  

letterWidth,
  

increase the x after each interval, when the letter reaches x=0,
  

create


&
  

show the next one, add it to your array.
Loop through the array each timer increasing the x position of
  

the


letters, removing them when they reach the other side???
Something like that??/
Glen

ali drongo wrote:

  

Hi there, I'm animating some letters that are dynamically created in


their


own sprites across the screen as if they are being fired in a


stream.


Currently I am using a fixed width font so it's straight forward to


find
  

their final position. My problem is that I need to use a non


fixed-width
  

font and I don't know how to calculate the position of each letter.

Any ideas very gratefully received!

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






--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
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

  

___
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] How to know coordinates of letters in non fixed-width fonts

2009-02-23 Thread Glen Pike

Hi,

   You should be able to get the width of each sprite with the single 
letter in???


   Maybe mask the stream area out.  Start each letter at x - 
letterWidth, increase the x after each interval, when the letter reaches 
x=0, create & show the next one, add it to your array.
  
   Loop through the array each timer increasing the x position of the 
letters, removing them when they reach the other side???
  
   Something like that??/
  
   Glen


ali drongo wrote:

Hi there, I'm animating some letters that are dynamically created in their
own sprites across the screen as if they are being fired in a stream.
Currently I am using a fixed width font so it's straight forward to find
their final position. My problem is that I need to use a non fixed-width
font and I don't know how to calculate the position of each letter.

Any ideas very gratefully received!

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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] AS3 - Checking if root swf has completely loaded before executing script - Help?

2009-02-23 Thread Glen Pike

Carl Welch wrote:

Hi Guys.

I need to make sure that my swf has completely loaded in the page 
before I execute a particular script. Any suggestions on how to go 
about this? Point me in the direction... please?



Thanks & Cheers!



Hi,

   If you mean calling JavaScript, could you call this from inside your 
Flash using ExternalInterface.call or getURL("javascript:..."); from 
inside your Flash.  Then you can control when the JS is called - onInit, 
etc..


   Look at the allowScriptAccess param for the Flash object embedding 
to ensure this works.


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


Re: [Flashcoders] Fullscreen Mode with TWO projectors

2009-02-19 Thread Glen Pike

Hi,

   Have you tried with just the SWF versions of your apps?
  
   Hi, I tried this with 2 normal SWF's this morning on my Windows XP 
dual monitor setup and I can get both Flash apps to go full screen.


   One starts fullscreen anyway with fscommand, the other I can use 
CTRL+F to go  fullscreen and they both behave...


   The SWF's don't communicate though...

   Not sure this is really helpful though, here is my setup:

   NVidia Quadro NVS285
   Both monitors appear as P&P
   1280 x 1024 on both.

   Glen

Randy Tinfow wrote:

Doing a project which has two fullscreen projectors:

On monitor #1 is a touchscreen menu.
On monitor #2 is a content container. 
These two projectors communicate using the LocalConnection class.  Works great.


So I drag executable #2 to monitor #2, doubleclick and it starts fullscreen.  
The I doubleclick executable #1 on monitor #1 and it starts fullscreen, but the 
other projector leaves fullscreen.  Using Ctrl-F, I can checkerboard the two 
projectors between fullscreen mode, but can never get them both to run 
fullscreen at the same time.

Any advice??

TIA,

Randy Tinfow
IMAGE PLANT



  
___

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] Which way is best...

2009-02-18 Thread Glen Pike

Hi,

   I am looking into the architecture of an application where 
components are instanciated and configured generally at runtime, 
although some components maybe placed on the stage at author time and 
"wired up" runtime.  The application is pretty much an interface to 
control system which we talk to via an XML socket..  Most of the 
components are buttons which would send commands to the back end, but 
some would be navigational, etc.


   My question is: Would it be better to have my buttons themselves 
dispatch these commands themselves, or is it better to have the parent 
containers listen for button pushes and dispatch the appropriate commands?


   Thanks

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


Re: [Flashcoders] RE: How to set a TextFormat to the label of a TileList

2009-02-17 Thread Glen Pike

Bernice - visit
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

If you want to unsubscribe...

bernice guerrero wrote:

Stop email in me please

On Feb 17, 2009 12:27 PM, "Craig Bowman"  wrote:

1.  TileList uses the ImageCell cellrenderer so.
2.  Grab a copy of this from the component source and rename the file,
the class, and constructor function to something like TileCell.
3.  Remove the fl.controls.listClasses from the package name and place
it in your project source.
4.  Add   import flash.text.TextFormat; to your import statements in
the TileCell.as file.
5.  Create a variable in the file. Ie. protected var
myTextFormat:TextFormat;
6.  In the constructor instantiate the new format ie. myTextFormat=new
TextFormat(); myTextFormat.font="Univers 55"; myTextFormat.color=0xff;
etcetera.
7.  Go to the listData setter function and at the beginning add
setStyle("textFormat", myTextFormat);
8.  Finally on your tileList change the cellRenderer ie.
myTileList.setStyle("cellRenderer", TileCell);
9.  Enjoy!



cheers,

Craig Bowman

___
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


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] > Frame-based tween solution

2009-02-17 Thread Glen Pike

Hi,

   Does the TweenLite let you listen for "timer" events?  You could 
implement your own "counter" and trigger your anims in a listener - 
crude, but hey...


   Glen

Weyert de Boer wrote:

Hello,

I am currently working on a job where I need to convert a 
timeline-based animation to ActionScript only. The project is for 
Flash Lite 2.1 meaning ActionScript 2. I am currently using TweenLite 
for tween animations which seems to work fine. Only I am having a 
question regarding the timeline animation and how to get it converted 
to runtime tweens. As you might know TweenLite supports specifying a 
delay, the amount of time to wait, before the tween starts. The 
animation has a few fadeins of items in the following manner:


   Element 1: start
   Element 2 and 3: after 3 frames
   Element 4: after 6 frames (from start)


Anyone know a good way to do this using some tween class? My first 
trials of using 1/30 * 3=0.09s as a delay wasn't successful.

Thanks in advance.

Yours,
Weyert de Boer

___
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] Flash Text Engine

2009-02-17 Thread Glen Pike

Hi,

   I am using the flash.text.engine classes not the flashx.textLayout ones.

   All I want to do is put some text into the equivalent of a button 
text field and have it aligned to the right if my text is in Arabic - I 
don't need all the extra Text Layout Framework stuff for this (hopefully).


   Glen

Cedric Muller wrote:

Hello Glen,

Assuming you have a TextFlow instance called 'myTextFlow), you can 
tweak the paragraphFormat property:


var paragraphFormat = new ParagraphFormat(myTextFlow.paragraphFormat);
paragraphFormat.textAlign = "right"; // "left", "center", "justify", 
"start", "end" (start/end is useful for RTL + LTR multi language 
applications)

myTextFlow.paragraphFormat = paragraphFormat;
myTextFlow.flowComposer.updateAllContainers();

This applies the new paragraphFormat.align property to your whole 
textFlow object (ie: all the text).



hth,
Cedric



Hi,





   Quick question about the new text engine in Flash 10...

   I am using the "simple" text engine rather than the full on text 
layout framework, but can anyone tell me how I set the alignment of a 
TextElement / TextBlock / TextLine???


   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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash Text Engine

2009-02-17 Thread Glen Pike

Hi,

   Quick question about the new text engine in Flash 10...

   I am using the "simple" text engine rather than the full on text 
layout framework, but can anyone tell me how I set the alignment of a 
TextElement / TextBlock / TextLine???


   Thanks..

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


Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Glen Pike
That's what I thought - projector runs, AIR requires installing.  I 
don't want that possible barrier to use - why should I have to install 
something to run a CDROM???


Ian Thomas wrote:

It can autorun off a CD-ROM, but not standalone - you can package your
app with the AIR installer, but the AIR app (and your app) will
install themselves on your user's computer.

Ian

On Tue, Feb 17, 2009 at 9:33 AM, Glen Pike  wrote:
  

Hi,

  I did not use AIR because I was doing a DVD / CDROM project and projector
works out of the box.  Without lots of reading and extra work, I could not
have got AIR working and I am not sure it could autorun standalone off a
CDROM.  If it can, the documentation / marketing needs to be a bit more
clear on this.

  Glen

Nate Beck wrote:


Just out of curiosity... Why are you deploying your application as a
stand-alone projector when you could deploy it as an Adobe AIR
application?

On Mon, Feb 16, 2009 at 2:03 PM, Glen Pike
wrote:


  

Hi,

 I don't think that updating the FP updates the IDE one normally - I have
never worked out how to do this, even with Kewbee's Plugin Switcher.

 Not wishing to sound too cynical, but if everyone upgrades their FP so
easily, then content creators will have to keep up and they are the one's
who have to shell out for the Adobe products, so maybe that's the reason
behind this -or maybe it's the rush to keep the IDE on a high calorie
diet
of new features rather than concentrating on keeping it trim and mean by
fixing the important things that it might be nice to get fixed.  I guess
I
am just bitter because I have not had a chance to play with CS4 yet :(

 Glen


jonathan howe wrote:




Well, it doesn't disprove my theory - that is the packaged version prior
to
the security patch. The version of projectors that my IDE now creates is
9.0.151.0

So, the mystery remains.
Anyone with the unpatched version: Test your fullscreen projectors in
Vista.
Anyone with the patched version: Test your fullscreen (if it's called
outside a button event and is invoked by stage.displayState) to make
sure
it
actually works

Mystery #2: why doesn't the Adobe Updater apply the patches to the
"Players/" directory if this is such an important security fix?

-jonathan

(Glen, I think I beat your test score by 0.0.106. Booyah.)



On Mon, Feb 16, 2009 at 2:06 PM, Glen Pike   

wrote:


  

My IDE published to 9.0.45.0 for that projector.

HTH

Glen


jonathan howe wrote:






Glen, thanks for the response.

As an interesting (?) complication to this matter, I recently
installed
the
new versions of the players to CS3 Professional IDE:




http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659&sliceId=2

Before I updated, the stage.displayState =
StageDisplayState.FULL_SCREEN;
command worked but full screen was completely black on Vista.

After I updated, fullscreen wasn't black but the fullscreen didn't
work
anymore. Did adobe sneak in more stringent security? If so, why does
my
fscommand work?
Glen, would you mind telling me what player version shows up when you
export
a projector from your IDE?

-jonathan

On Sun, Feb 15, 2009 at 6:43 PM, Glen Pike   

wrote:




  

Hi,

 I have no problem with this when publishing a projector from CS3:

 this.stage.displayState = StageDisplayState.FULL_SCREEN;

 The projector I created is just a shell that loads in another SWF
containing the App.

 But I did run into problems with trying to make a non-projector SWF
go
full screen without using fscommand - (we were running flash player
from
the
command line in Linux because we are compiling the SWF on Windows and
it
is
virtually impossible to create a projector when you are running the
system
without a desktop manager.)

 I think keeping fingers crossed that fscommand does not get
deprecated
would be a good thing because there are cases where this would cause
serious
problems :)

 Glen



jonathan howe wrote:








Hello,

According to docs "Full-screen mode is always permitted in the
stand-alone
player or in a projector file."

Yet I get a "SecurityError: Error #2152" when I call
stage.displayState
=
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it
when
I
use the old fscommand method of going fullscreen.

For projectors, shouldn't the mouseevent-click security requirement
be
waived in order to automatically go fullscreen? Why would it work
with
fscommand but not the official way, displayState? Anyone do this
regularly
who has a hint? Should I just be glad fscommand works?

-jonathan









  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Glen Pike

Hi,

   I did not use AIR because I was doing a DVD / CDROM project and 
projector works out of the box.  Without lots of reading and extra work, 
I could not have got AIR working and I am not sure it could autorun 
standalone off a CDROM.  If it can, the documentation / marketing needs 
to be a bit more clear on this.


   Glen

Nate Beck wrote:

Just out of curiosity... Why are you deploying your application as a
stand-alone projector when you could deploy it as an Adobe AIR application?

On Mon, Feb 16, 2009 at 2:03 PM, Glen Pike wrote:

  

Hi,

  I don't think that updating the FP updates the IDE one normally - I have
never worked out how to do this, even with Kewbee's Plugin Switcher.

  Not wishing to sound too cynical, but if everyone upgrades their FP so
easily, then content creators will have to keep up and they are the one's
who have to shell out for the Adobe products, so maybe that's the reason
behind this -or maybe it's the rush to keep the IDE on a high calorie diet
of new features rather than concentrating on keeping it trim and mean by
fixing the important things that it might be nice to get fixed.  I guess I
am just bitter because I have not had a chance to play with CS4 yet :(

  Glen


jonathan howe wrote:



Well, it doesn't disprove my theory - that is the packaged version prior
to
the security patch. The version of projectors that my IDE now creates is
9.0.151.0

So, the mystery remains.
Anyone with the unpatched version: Test your fullscreen projectors in
Vista.
Anyone with the patched version: Test your fullscreen (if it's called
outside a button event and is invoked by stage.displayState) to make sure
it
actually works

Mystery #2: why doesn't the Adobe Updater apply the patches to the
"Players/" directory if this is such an important security fix?

-jonathan

(Glen, I think I beat your test score by 0.0.106. Booyah.)



On Mon, Feb 16, 2009 at 2:06 PM, Glen Pike   

wrote:



  

My IDE published to 9.0.45.0 for that projector.

HTH

Glen


jonathan howe wrote:





Glen, thanks for the response.

As an interesting (?) complication to this matter, I recently installed
the
new versions of the players to CS3 Professional IDE:



http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659&sliceId=2

Before I updated, the stage.displayState =
StageDisplayState.FULL_SCREEN;
command worked but full screen was completely black on Vista.

After I updated, fullscreen wasn't black but the fullscreen didn't work
anymore. Did adobe sneak in more stringent security? If so, why does my
fscommand work?
Glen, would you mind telling me what player version shows up when you
export
a projector from your IDE?

-jonathan

On Sun, Feb 15, 2009 at 6:43 PM, Glen Pike   

wrote:





  

Hi,

 I have no problem with this when publishing a projector from CS3:

 this.stage.displayState = StageDisplayState.FULL_SCREEN;

 The projector I created is just a shell that loads in another SWF
containing the App.

 But I did run into problems with trying to make a non-projector SWF go
full screen without using fscommand - (we were running flash player
from
the
command line in Linux because we are compiling the SWF on Windows and
it
is
virtually impossible to create a projector when you are running the
system
without a desktop manager.)

 I think keeping fingers crossed that fscommand does not get deprecated
would be a good thing because there are cases where this would cause
serious
problems :)

 Glen



jonathan howe wrote:







Hello,

According to docs "Full-screen mode is always permitted in the
stand-alone
player or in a projector file."

Yet I get a "SecurityError: Error #2152" when I call
stage.displayState
=
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it
when
I
use the old fscommand method of going fullscreen.

For projectors, shouldn't the mouseevent-click security requirement be
waived in order to automatically go fullscreen? Why would it work with
fscommand but not the official way, displayState? Anyone do this
regularly
who has a hint? Should I just be glad fscommand works?

-jonathan








  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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










  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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








  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
Flas

Re: [Flashcoders] RTL...

2009-02-16 Thread Glen Pike

Hmm,

   Need to mull that one over a bit and get my head around the logic... 
- need to test tomorrow, cheers.
  
   Glen


Weyert de Boer wrote:
I normally put the textfield in the movieclip and then flip this 
movieclip with like _xscale=-100. Easiest solution and people who are 
able to read Arabic say it's correct.

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




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Glen Pike

Hi,

   I don't think that updating the FP updates the IDE one normally - I 
have never worked out how to do this, even with Kewbee's Plugin Switcher.


   Not wishing to sound too cynical, but if everyone upgrades their FP 
so easily, then content creators will have to keep up and they are the 
one's who have to shell out for the Adobe products, so maybe that's the 
reason behind this -or maybe it's the rush to keep the IDE on a high 
calorie diet of new features rather than concentrating on keeping it 
trim and mean by fixing the important things that it might be nice to 
get fixed.  I guess I am just bitter because I have not had a chance to 
play with CS4 yet :(


   Glen

jonathan howe wrote:

Well, it doesn't disprove my theory - that is the packaged version prior to
the security patch. The version of projectors that my IDE now creates is
9.0.151.0

So, the mystery remains.
Anyone with the unpatched version: Test your fullscreen projectors in Vista.
Anyone with the patched version: Test your fullscreen (if it's called
outside a button event and is invoked by stage.displayState) to make sure it
actually works

Mystery #2: why doesn't the Adobe Updater apply the patches to the
"Players/" directory if this is such an important security fix?

-jonathan

(Glen, I think I beat your test score by 0.0.106. Booyah.)



On Mon, Feb 16, 2009 at 2:06 PM, Glen Pike wrote:

  

My IDE published to 9.0.45.0 for that projector.

HTH

Glen


jonathan howe wrote:



Glen, thanks for the response.

As an interesting (?) complication to this matter, I recently installed
the
new versions of the players to CS3 Professional IDE:


http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659&sliceId=2

Before I updated, the stage.displayState = StageDisplayState.FULL_SCREEN;
command worked but full screen was completely black on Vista.

After I updated, fullscreen wasn't black but the fullscreen didn't work
anymore. Did adobe sneak in more stringent security? If so, why does my
fscommand work?
Glen, would you mind telling me what player version shows up when you
export
a projector from your IDE?

-jonathan

On Sun, Feb 15, 2009 at 6:43 PM, Glen Pike   

wrote:



  

Hi,

 I have no problem with this when publishing a projector from CS3:

 this.stage.displayState = StageDisplayState.FULL_SCREEN;

 The projector I created is just a shell that loads in another SWF
containing the App.

 But I did run into problems with trying to make a non-projector SWF go
full screen without using fscommand - (we were running flash player from
the
command line in Linux because we are compiling the SWF on Windows and it
is
virtually impossible to create a projector when you are running the
system
without a desktop manager.)

 I think keeping fingers crossed that fscommand does not get deprecated
would be a good thing because there are cases where this would cause
serious
problems :)

 Glen



jonathan howe wrote:





Hello,

According to docs "Full-screen mode is always permitted in the
stand-alone
player or in a projector file."

Yet I get a "SecurityError: Error #2152" when I call stage.displayState
=
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it when
I
use the old fscommand method of going fullscreen.

For projectors, shouldn't the mouseevent-click security requirement be
waived in order to automatically go fullscreen? Why would it work with
fscommand but not the official way, displayState? Anyone do this
regularly
who has a hint? Should I just be glad fscommand works?

-jonathan






  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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








  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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






  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Glen Pike

My IDE published to 9.0.45.0 for that projector.

HTH

Glen

jonathan howe wrote:

Glen, thanks for the response.

As an interesting (?) complication to this matter, I recently installed the
new versions of the players to CS3 Professional IDE:

http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659&sliceId=2

Before I updated, the stage.displayState = StageDisplayState.FULL_SCREEN;
command worked but full screen was completely black on Vista.

After I updated, fullscreen wasn't black but the fullscreen didn't work
anymore. Did adobe sneak in more stringent security? If so, why does my
fscommand work?
Glen, would you mind telling me what player version shows up when you export
a projector from your IDE?

-jonathan

On Sun, Feb 15, 2009 at 6:43 PM, Glen Pike wrote:

  

Hi,

  I have no problem with this when publishing a projector from CS3:

  this.stage.displayState = StageDisplayState.FULL_SCREEN;

  The projector I created is just a shell that loads in another SWF
containing the App.

  But I did run into problems with trying to make a non-projector SWF go
full screen without using fscommand - (we were running flash player from the
command line in Linux because we are compiling the SWF on Windows and it is
virtually impossible to create a projector when you are running the system
without a desktop manager.)

  I think keeping fingers crossed that fscommand does not get deprecated
would be a good thing because there are cases where this would cause serious
problems :)

  Glen



jonathan howe wrote:



Hello,

According to docs "Full-screen mode is always permitted in the stand-alone
player or in a projector file."

Yet I get a "SecurityError: Error #2152" when I call stage.displayState =
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it when I
use the old fscommand method of going fullscreen.

For projectors, shouldn't the mouseevent-click security requirement be
waived in order to automatically go fullscreen? Why would it work with
fscommand but not the official way, displayState? Anyone do this regularly
who has a hint? Should I just be glad fscommand works?

-jonathan




  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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






  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Glen Pike

Hi,

   Will check later, but I don't think I ever upgraded the IDE.

   I am also not running Vista yet - testing in WinXP...

   Glen

jonathan howe wrote:

Glen, thanks for the response.

As an interesting (?) complication to this matter, I recently installed the
new versions of the players to CS3 Professional IDE:

http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659&sliceId=2

Before I updated, the stage.displayState = StageDisplayState.FULL_SCREEN;
command worked but full screen was completely black on Vista.

After I updated, fullscreen wasn't black but the fullscreen didn't work
anymore. Did adobe sneak in more stringent security? If so, why does my
fscommand work?
Glen, would you mind telling me what player version shows up when you export
a projector from your IDE?

-jonathan

On Sun, Feb 15, 2009 at 6:43 PM, Glen Pike wrote:

  

Hi,

  I have no problem with this when publishing a projector from CS3:

  this.stage.displayState = StageDisplayState.FULL_SCREEN;

  The projector I created is just a shell that loads in another SWF
containing the App.

  But I did run into problems with trying to make a non-projector SWF go
full screen without using fscommand - (we were running flash player from the
command line in Linux because we are compiling the SWF on Windows and it is
virtually impossible to create a projector when you are running the system
without a desktop manager.)

  I think keeping fingers crossed that fscommand does not get deprecated
would be a good thing because there are cases where this would cause serious
problems :)

  Glen



jonathan howe wrote:



Hello,

According to docs "Full-screen mode is always permitted in the stand-alone
player or in a projector file."

Yet I get a "SecurityError: Error #2152" when I call stage.displayState =
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it when I
use the old fscommand method of going fullscreen.

For projectors, shouldn't the mouseevent-click security requirement be
waived in order to automatically go fullscreen? Why would it work with
fscommand but not the official way, displayState? Anyone do this regularly
who has a hint? Should I just be glad fscommand works?

-jonathan




  

--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

___
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] RTL...

2009-02-16 Thread Glen Pike

Hi,
  
   (Using CS3 publishing to FP8 with Windoze).


   Slightly OT, but I am working with Arabic text in Flash and trying 
to paste from an XLS spreadsheet (viewing with OpenOffice) to an XML 
file.  I then load this file into Flash and extract some of the node 
contents to use as text in dynamic text fields.  Because Flash does not 
deal with RTL very well in older players, I am not embedding the font / 
turning it off for the Arabic language.


   When I view the spreadsheet, I am guessing that the word and letter 
order is correct (comparing to Google Translate it is), but when I paste 
from the spreadsheet to my XML file, the order of letters is reversed 
and subsequently appears incorrectly in Flash.  Checking the trace of 
the XML contents, the extracted text and looking at the text field on 
stage, all of these contain reversed text.  I opened my file in Notepad 
and saved as UTF-8, but still no joy.
  
   - with the text fields, I am turning off font embedding with AS and 
even creating a brand new text field - to no avail...
  
   Does anyone have any tips on what to use for creating the XML from 
my spreadsheet - via copy & paste etc.  I have tried Notepad, Notepad++, 
FlashDevelop and Bonodi XML editor so far all with the same results...


   Any ideas on what I am doing wrong?
  
   Thanks


   Glen
  
  
___

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


Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-15 Thread Glen Pike

Hi,

   I have no problem with this when publishing a projector from CS3:

   this.stage.displayState = StageDisplayState.FULL_SCREEN;

   The projector I created is just a shell that loads in another SWF 
containing the App.


   But I did run into problems with trying to make a non-projector SWF 
go full screen without using fscommand - (we were running flash player 
from the command line in Linux because we are compiling the SWF on 
Windows and it is virtually impossible to create a projector when you 
are running the system without a desktop manager.)


   I think keeping fingers crossed that fscommand does not get 
deprecated would be a good thing because there are cases where this 
would cause serious problems :)


   Glen


jonathan howe wrote:

Hello,

According to docs "Full-screen mode is always permitted in the stand-alone
player or in a projector file."

Yet I get a "SecurityError: Error #2152" when I call stage.displayState =
StageDisplayState.FULL_SCREEN; from a projector. But I don't get it when I
use the old fscommand method of going fullscreen.

For projectors, shouldn't the mouseevent-click security requirement be
waived in order to automatically go fullscreen? Why would it work with
fscommand but not the official way, displayState? Anyone do this regularly
who has a hint? Should I just be glad fscommand works?

-jonathan


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] FLV test streams

2009-02-13 Thread Glen Pike

Hi,

   Found a random stream now thanks.

   Glen

Glen Pike wrote:

Hi,

   Does anyone know of any test URL's which serve up FLV streams over 
HTTP.


   I am trying to track down a bug and want to eliminate problems with 
my streaming setup...


   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] FLV test streams

2009-02-13 Thread Glen Pike

Hi,

   Does anyone know of any test URL's which serve up FLV streams over HTTP.

   I am trying to track down a bug and want to eliminate problems with 
my streaming setup...


   Thanks

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


Re: [Flashcoders] FLV strangeness

2009-02-13 Thread Glen Pike

Hmmm,

   Restarting the IDE seemed to sort this out - g, crappy IDE.

   Glen

Glen Pike wrote:

Hi,

   I am trying to debug a problem with streaming an FLV using ffmpeg + 
ffserver and have run into something bizarre...


   Running from the IDE, I am playing an FLV from the server with the 
URL: http://192.168.0.55:8090/test2.flv


   The server is not running - I can try to load the stream url in a 
browser and I get a 404 error.


   Flash is still playing video from somewhere, but it is video of 
something that happened over an hour ago and it always plays the same 
chunk of video.  Is there some strange caching or something with video 
and how do I force Flash to update...


   Here is test code for a stripped down experiment:

var ipAddress:String = "192.168.0.55";

var videofile:String = "http://"; + ipAddress + ":8090/test.flv";
trace("will play video from " + videofile);
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_ns.onStatus = function(infoObject:Object) {
   trace("NetStream.onStatus called: ("+getTimer()+" ms)");
   for (var prop in infoObject) {
   trace("\t"+prop+":\t"+infoObject[prop]);
   }
   trace("");
};

//myVideo is on stage...
myVideo.attachVideo(my_ns);
trace("About to play netstream " + my_ns + " on " + my_nc);
my_ns.play(videofile);

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] FLV strangeness

2009-02-13 Thread Glen Pike

Hi,

   I am trying to debug a problem with streaming an FLV using ffmpeg + 
ffserver and have run into something bizarre...


   Running from the IDE, I am playing an FLV from the server with the 
URL: http://192.168.0.55:8090/test2.flv


   The server is not running - I can try to load the stream url in a 
browser and I get a 404 error.


   Flash is still playing video from somewhere, but it is video of 
something that happened over an hour ago and it always plays the same 
chunk of video.  Is there some strange caching or something with video 
and how do I force Flash to update...


   Here is test code for a stripped down experiment:

var ipAddress:String = "192.168.0.55";

var videofile:String = "http://"; + ipAddress + ":8090/test.flv";
trace("will play video from " + videofile);
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_ns.onStatus = function(infoObject:Object) {
   trace("NetStream.onStatus called: ("+getTimer()+" ms)");
   for (var prop in infoObject) {
   trace("\t"+prop+":\t"+infoObject[prop]);
   }
   trace("");
};

//myVideo is on stage...
myVideo.attachVideo(my_ns);
trace("About to play netstream " + my_ns + " on " + my_nc);
my_ns.play(videofile);

Thanks

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


Re: [Flashcoders] flash exe files & proxy ports.

2009-02-11 Thread Glen Pike

Hi,

   We have a linux equivalent of a Flash exe requesting files from 
http://127.0.0.1 which does not work without the crossdomain file, so I 
am guessing it may apply.  This just says what is allowed to load 
content from your server.  You may still have to publish the Flash exe 
with "Access Network Only" for the Local Playback Security settings - 
this will allow that Flash "SWF" to request things from the webserver.
  
   It's 2 things really, except you cannot use the crossdomain file to 
restrict access to only allow your desktop application unless you have a 
fixed IP address(es)


   Glen

Rodrigo Augusto Guerra wrote:

hi, thanks for the reply.

Today I don't have this file in my root domain, but I can put 
it.allowing all connections like:

 
 
 
 


my doubt is does this crossdomain apply when the content is beeing 
loaded by an flash exe from your desktop or only when you have flashes 
in different domains but both uploaded in a server?



- Original Message - From: "Glen Pike" 


To: "Flash Coders List" 
Sent: Wednesday, February 11, 2009 11:01 AM
Subject: Re: [Flashcoders] flash exe files & proxy ports.



Hi,

   The IDE usually does not place the restriction on you - it's just 
when you publish that you may get "sandboxed".


   Also, make sure that you have a crossdomain.xml in the root of 
your webserver - google "crossdomain.xml" for examples or look in the 
IDE help for this.


   Glen

Rodrigo Augusto Guerra wrote:

hi glen,

Unfortunately, I can't confirm which is the settings now (i don't 
have the fla here).


when running from the flash IDE I can access everything, does this 
means that it is network access?
if I put in local settings would I be able to access the content 
from flash IDE ? if not my settings is 'network access'.


rodrigo.

- Original Message - From: "Glen Pike" 


To: "Flash Coders List" 
Sent: Wednesday, February 11, 2009 9:34 AM
Subject: Re: [Flashcoders] flash exe files & proxy ports.



Hi,

   I think you may have a problem with Local access vs Network 
access - check your publish settings.


   Glen

Rodrigo Augusto Guerra wrote:

Hi all,
I'm having problems with an flash I did and exported to EXE. The 
exe is executed locally and loads some content (images, xml, swf) 
from specific sites let' s say

http://www.foo.com/a.swf
http://www.foo.com/a.jpg
http://www.foo.com/folder1/a.xml

the problem is that the communication is bloked at the proxy.
As far as I know when you execute a flash exe flie some of the 
"sandbox security" dosen't apply, since you are clicking on an exe 
file and should know the "risks" of doing that.


I need to know if the content is loaded thru port 80, or 8080 (an 
internet common port not blocked by proxies by default), or if it 
uses som less comom port (which?)


thanks,
rodrigo.
___
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




___
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] flash exe files & proxy ports.

2009-02-11 Thread Glen Pike

Hi,

   The IDE usually does not place the restriction on you - it's just 
when you publish that you may get "sandboxed".


   Also, make sure that you have a crossdomain.xml in the root of your 
webserver - google "crossdomain.xml" for examples or look in the IDE 
help for this.


   Glen

Rodrigo Augusto Guerra wrote:

hi glen,

Unfortunately, I can't confirm which is the settings now (i don't have 
the fla here).


when running from the flash IDE I can access everything, does this 
means that it is network access?
if I put in local settings would I be able to access the content from 
flash IDE ? if not my settings is 'network access'.


rodrigo.

- Original Message - From: "Glen Pike" 


To: "Flash Coders List" 
Sent: Wednesday, February 11, 2009 9:34 AM
Subject: Re: [Flashcoders] flash exe files & proxy ports.



Hi,

   I think you may have a problem with Local access vs Network access 
- check your publish settings.


   Glen

Rodrigo Augusto Guerra wrote:

Hi all,
I'm having problems with an flash I did and exported to EXE. The exe 
is executed locally and loads some content (images, xml, swf) from 
specific sites let' s say

http://www.foo.com/a.swf
http://www.foo.com/a.jpg
http://www.foo.com/folder1/a.xml

the problem is that the communication is bloked at the proxy.
As far as I know when you execute a flash exe flie some of the 
"sandbox security" dosen't apply, since you are clicking on an exe 
file and should know the "risks" of doing that.


I need to know if the content is loaded thru port 80, or 8080 (an 
internet common port not blocked by proxies by default), or if it 
uses som less comom port (which?)


thanks,
rodrigo.
___
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




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


Re: [Flashcoders] flash exe files & proxy ports.

2009-02-11 Thread Glen Pike

Hi,

   I think you may have a problem with Local access vs Network access - 
check your publish settings.


   Glen

Rodrigo Augusto Guerra wrote:
Hi all, 

I'm having problems with an flash I did and exported to EXE. The exe is executed locally and loads some content (images, xml, swf) from specific sites let' s say 


http://www.foo.com/a.swf
http://www.foo.com/a.jpg
http://www.foo.com/folder1/a.xml

the problem is that the communication is bloked at the proxy. 


As far as I know when you execute a flash exe flie some of the "sandbox security" dosen't 
apply, since you are clicking on an exe file and should know the "risks" of doing that.

I need to know if the content is loaded thru port 80, or 8080 (an internet 
common port not blocked by proxies by default), or if it uses som less comom 
port (which?)

thanks,
rodrigo.
___
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] php proxy

2009-02-06 Thread Glen Pike

http://xmlrpcflash.mattism.com/proxy_info.php

Hans Wichman wrote:

Hi list,

I'm looking for a good proxy solution to circumvent flash cross domain
policies.

Fact is I'm not a php geek and can't discern whether the google results I've
found open up major security holes in my server.

I;m looking for something that will allow me to proxy files from remote
server, allow me to specify which servers are allowed to be proxied, and
maybe implement some kind of token mechanism making it a little harder to
call the proxy from just anywhere.

Any ideas/resources would be appreciated.

regards
JC
___
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] maths query

2009-02-05 Thread Glen Pike

Hi,

   It looks better than my deadzone calc's which take up a lot more 
code (I have 2 directions and a deadzone area in the middle and around 
the outside of the "mouse area" controlling the velocity), but you are 
welcome to compare below - I think mine is a bit more verbose, but I was 
trying to make sure I could debug and come back to it in a few months 
time and understand.  Whatever works for you I guess.


   Glen


private function _mouseMoveHandler(event:MouseEvent):void {
   var tmpX:Number;
   var tmpY:Number;
   //Get x, y in relation to centre of stage - need to "clamp"
   tmpX = this.mouseX - WIDTH / 2;//event.stageX - 
this.stage.stageWidth / 2;
   tmpY = this.mouseY - HEIGHT / 2;//event.stageY - 
this.stage.stageHeight / 2;

   var absX:uint = Math.abs(tmpX);
   var absY:uint = Math.abs(tmpY);
   var dirX:int = tmpX / absX;
   var dirY:int = tmpY / absY;
   //clamp the movement to a maximum;
   tmpX = Math.min(_clampMax, absX) * dirX;
   tmpY = Math.min(_clampMax, absY) * dirY;
   //App.debug("mouse " + this.mouseX + ", " + this.mouseY + " 
tmp" + tmpX + ", " + tmpY + " abs " + absX + ", " + absY);
  
   //only respond to a minimum position from centre within our 
square..

   if (_clampMax <= absX || _clampMax <= absY) {
   _mouseClamp = true;
   return;
   }
   _mouseClamp = false;
   if(_clampMin < absY) {
   _velX = (absY * dirY) / _mouseDamping;
   } else {
   _velX = 0;
   }
  
   if(_clampMin < absX) {

   _velY = -((absX * dirX) / _mouseDamping);
   } else {
   _velY = 0;
   }
   //App.debug("mouse Move " + _velX + ", " + _velY);
   }


allandt bik-elliott (thefieldcomic.com) wrote:

hi guys

I'm working on a carousel and i have a quick question about adding a
non-active area in the middle

at the moment, the carousel will move forward and backward based on the
mouse's position in relation to the center of the carousel but I'd like to
widen that by nDeadzoneRadius

here is the way that i'm doing it at the moment - it seems very clunky to me
but it's doing the job

this is on the onMouseMove listener

private function adjustSpeed():Void
{
var nMousePos:Number = _root._xmouse - nCenterX;

// !HACK! this is the bit i'm querying
if (Math.abs(nMousePos) < nDeadzoneRadius) nMousePos = 0;
else nMousePos = (nMousePos > 0) ? nMousePos - nDeadzoneRadius :
nMousePos + nDeadzoneRadius;
// end of !HACK!

nSpeed = nMousePos / ((36 / _nNumberOfItems) * 1000); //4:800,
8:4000, 12:3000, 24:1500
}

so i guess my question is, is there a more elegant solution to this, please?

ta
a
_______
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

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


Re: [Flashcoders] Components for Touchscreen

2009-01-30 Thread Glen Pike

Hi,

Thanks for the links...

It was not so much the multi-touch bit I was looking for at the moment, 
but more about the interface buttons, etc.


Although we will probably be doing some multi-touch in the future, so 
it's always good to look around :)


Glen

Sidney de Koning wrote:

Hi Glen,

You can check out eyePoke, a multitouch api:
http://touchevent.riaforge.org/

This is from their docs:
-EyePoke provides access to the display list and calls up the 
callibrator when touched.
-TouchEvent extends MouseEvent and is designed to simultaneously 
support mice, pens, and multitouch displays.
-TouchListener attaches to the camera and is added to the display 
list. When it detects user input, it dispatches a TouchEvent.
-TouchFunctions contains static functions to implement things like 
startDrag in a multitouch-aware environment.


Some other stuff about multitouch and Flash:
http://wiki.nuigroup.com/Applications_and_libraries -- Libs in AS3
http://www.multitouching.nl/page.asp?page=148 -- Downloads and general 
info


Hope this helps you,

Sid


On Jan 30, 2009, at 10:58 AM, Glen Pike wrote:


Hi,

Whilst I am Googling, does anyone know of any Flash components that 
are specifically for touchscreen type applications?


Features I am looking for.

"rollover" / "rollout" are not very useful as you tend to be pressing 
a control when you rollover...


A bigger hit area for controls as my fingertips are bigger than my 
cursor.


Different component types - "drag / throw" type components, etc.

Thanks

Glen

___
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


[Flashcoders] Components for Touchscreen

2009-01-30 Thread Glen Pike

Hi,

  Whilst I am Googling, does anyone know of any Flash components that 
are specifically for touchscreen type applications?


  Features I am looking for.

  "rollover" / "rollout" are not very useful as you tend to be 
pressing a control when you rollover...


 A bigger hit area for controls as my fingertips are bigger than my 
cursor.


 Different component types - "drag / throw" type components, etc.

  Thanks

  Glen

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


Re: [Flashcoders] Missing Flashcoder archives?

2009-01-29 Thread Glen Pike
If you remove all the "which platform", "which editor" discussions that 
should halve the mailbox size,
Also, stripping the "out of office" replies and "job posts" will 
probably thin another 10% :)


Paul Andrews wrote:

Don't worry, I'll repost my flash mailbox back to the list..  ;-)

- Original Message - From: "Dave Watts" 
To: "Flash Coders List" 
Sent: Thursday, January 29, 2009 5:00 PM
Subject: Re: [Flashcoders] Missing Flashcoder archives?


Is there a new location where our mail is being stored, or is the 
archive

page just not working?


It's not working. It's on my (unfortunately extremely long) to-do list.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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


<    1   2   3   4   5   6   7   8   9   10   >