Re: [Flashcoders] Pulling data from social media

2014-08-27 Thread Peter Ginneberge

Both have API's, so should be documented how to get the data you're after.

http://instagram.com/developer/
https://developers.pinterest.com/


On 27/08/2014 22:15, John R. Sweeney Jr. wrote:

I’m sorry I didn’t state my need better. I know that is what I’ll have to do 
with Twitter, but I’m not find how to access Pinterest and Instagram to pull 
the followers of a specific person on each site.

I really appreciate your comments…

Thanks,


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Aug 27, 2014, at 3:01 PM, Peter Ginneberge  wrote:


where jsonData is a JSON formatted string.

regards,
Peter


___
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] Pulling data from social media

2014-08-27 Thread Peter Ginneberge

> Have you considered using PHP to fetch the data you need, and then convert
> it from JSON to XML? It may be easier to deal with.

Not really, JSON support is built into the Flash player, so can you convert 
from JSON to AS and back.


var data:Object = JSON.parse(jsonData);

where jsonData is a JSON formatted string.

regards,
Peter


On 27/08/2014 19:36, James Merrill wrote:

Instagram uses JSON formatting for their API too. Depending on the data you
want to retrieve, you may need to use OAuth. Fortunately they make it
pretty easy.

Have you considered using PHP to fetch the data you need, and then convert
it from JSON to XML? It may be easier to deal with.

http://stackoverflow.com/questions/856833/is-there-some-way-to-convert-json-to-xml-in-php


On Tue, Aug 26, 2014 at 5:59 PM, John R. Sweeney Jr. 
wrote:



Hi,

So one else has any experience with Pinterest or Instagram?

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169


___
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] Air Windows installed app

2014-02-24 Thread Peter Ginneberge

Easiest way is probably the "app with runtime embedded" option.
And if that is similar to how it works in Flash Builder (Flex), you'll then 
need installer software to create a custom executable.


As stated in the article:

The resulting set of files is a complete AIR application, including a captive 
copy of the AIR runtime. It can then be packaged as an installer using several 
different approaches.



The different approaches are further explained in the article.

On 24/02/2014 8:02, natalia Vikhtinskaya wrote:

Not sure I understand how I can use this information in Flash Cs6. I
created app in this program as Air 3.2 for Desktop. I have only two options
- Windows Installer and App with runtime embedded.


2014-02-23 16:42 GMT+04:00 Peter Ginneberge :


You can apply for a license to (re)distribute the Air runtime and then
package it with your application.
http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-
70d979a8124ef20a34b-8000.html

Or you can include a captive copy of the Air runtime with your application.
http://www.adobe.com/devnet/air/articles/air3-install-and-
deployment-options.html

The first option will install the Air runtime with your application, as if
the user installed it himself, so it's separated from your application,
meaning both your application and the Air Runtime can be uninstalled
separately.

The second options installs both as a bundle. When a user uninstalls your
app, the runtime gets uninstalled with it.

regards,
Peter

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


Re: [Flashcoders] Air Windows installed app

2014-02-23 Thread Peter Ginneberge
You can apply for a license to (re)distribute the Air runtime and then package 
it with your application.

http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b-8000.html

Or you can include a captive copy of the Air runtime with your application.
http://www.adobe.com/devnet/air/articles/air3-install-and-deployment-options.html

The first option will install the Air runtime with your application, as if the 
user installed it himself, so it's separated from your application, meaning 
both your application and the Air Runtime can be uninstalled separately.


The second options installs both as a bundle. When a user uninstalls your app, 
the runtime gets uninstalled with it.


regards,
Peter


On 23/02/2014 7:28, natalia Vikhtinskaya wrote:

Thank you for help.
  I try to describe situation better. When I publish app as Windows
installer the user can take my exe file and install app on his pc. On
desktop he has icon after clicking on it he runs app. It plays well but
function "write" nothing do. I use

newFileStream.openAsync (appFile, FileMode.WRITE);
newFileStream.writeUTFBytes(xmlSets);
newFileStream.close ();

Yes, the user does not have Air and function that works only in Air does
not work for him. The same installation on my pc works well.
Okay. Next I created Application with runtime embedded. I gave the user
folder with all files that was created by Flash. He puts this folder on his
pc and run exe file. This works well. Everything writes well. But he wants
to have installation process that allow him to install this app as usual
new program. This second way does not give him that. Maybe I can combine
these two ways somehow? This is the first problem.
And additional question. Exe file shows information "Unknown publisher".
How I can change that?

Thank you for any help. Not much places in net now where we can find help
for Flash questions.


2014-02-20 16:26 GMT+04:00 David Benman :


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


Re: [Flashcoders] Video question

2014-01-31 Thread Peter Ginneberge

YouTube has a flash API that you can use:
https://developers.google.com/youtube/flash_api_reference


On 1/02/2014 0:46, John R. Sweeney Jr. wrote:

Hello again,

Has anyone used Youtube or Vimeo videos in their Flash app? My client will 
produce the video's and post them, then want a Flash based game that will play 
those videos on demand from within the game.

I've always had the videos either next to the .swfs or on another server, using 
a crossdomain.xml. Can a YouTube or Vimeo be embedded into my app to look like 
part of the game or do you end up with pop-up video windows?

Thanks,


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169



___
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] static const singleton & GC?

2013-09-20 Thread Peter Ginneberge

That's not a singleton, as every time you call the public static constant, it 
creates a new instance.

The static var should be private and the class needs an access point method, 
usually called getInstance();

 private static var INSTANCE:AppApi;

 public function AppApi():void {
  if (INSTANCE != null ) {
   throw new Error("Only one instance allowed. " +
"To access the Singleton instance, use getInstance()."); 
  }

 }
 
 public static function getInstance():AppApi{

  if(!INSTANCE) INSTANCE = new AppApi();
  return INSTANCE;
 }
 


Then elsewhere in your app you refer to the singleton with:
AppApi.getInstance();


- Original Message - 
From: "ktu" 

To: "Flash Coders" 
Sent: Friday, September 20, 2013 3:18 PM
Subject: Re: [Flashcoders] static const singleton & GC?



anybody have any ideas?
this is still shaking my boots.

thanks :)


On Mon, Sep 16, 2013 at 5:53 PM, ktu wrote:


hey all!

I'm faced with an interesting question.

in my codebase, we made the decision to use a few singletons. to implement
those singletons we used the static const trick:

package com.example {
public static const API:AppAPI = new AppAPI();
}

package com.example {
public class AppAPI {
public function AppAPI () {
if (API) throw new Error();
}
}

this works fine in the normal environment we run in. that is, we run in a
scheduler system that loads the flash player, runs our swf, then shuts down
the flash player, doing that over and over again based off the schedule of
content. the problem now is that a new client uses a scheduler that is
built on AIR, so the flash player instance never shuts down. whenever our
app comes up in the scheduler, memory jumps and never goes down causing the
AIR app to crash every couple of hours. If, they load my application only
once, and leave it running, it lasts for days without any major memory
leaks.

any idea how i could test whether GC does pick this up or could? or any
known issues with this trick and GC? maybe you just have tricks in general
to finding out what GC isn't getting?

thanks!!!

--
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient,
congratulations, you got mail!





--
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient,
congratulations, you got mail!
___
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] AIR

2013-05-20 Thread Peter Ginneberge

content created today will still run in the future, independent of where
air itself is going.


Unless you're using the HTML component to load external (http) content which 
you have no control  over.
Webkit (the browser engine AIR uses) currently doesn't support HTML 5 very well.

For instance, I was trying to load a web IRC client (https://kiwiirc.com/), which simply doesn't work because it uses HTML 5 
features.

Another app I had just finished - and worked perfectly - suddenly broke, 
because an html page I was loading upgraded to HTML 5.

If you have full control over the things you're creating, you're good to go, just be careful when relying on things you have no 
control over.

Moving forward, we'll see more and more HTML 5 content out there. AIR (webkit) 
needs to catch up, fast.. like.. yesterday.

regards
Peter



On 19 May 2013 15:08, Hans Wichman  wrote:


Hi John,

content created today will still run in the future, independent of where
air itself is going. I wouldnt worry too much bout it, but that might be
just me :)

best
h

Sent from my iPad

On 19 mei 2013, at 14:39, John McCormack  wrote:

> Hi there.
>
> I would like to produce some educational material using AIR but am
feeling very insecure about its future.
>
> Could you possibly let me know how active you are in producing content
deliverable through AIR.
>
> Thanks
>
> John


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


RE: [Flashcoders] Adobe Flash future

2013-05-08 Thread Liu, Peter
Why can't Adobe make HTML5 as one of the publishing options, then we can 
continue to use Flash without the need to learn another program?

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman
Sent: Wednesday, May 08, 2013 11:24 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Adobe Flash future

I think of Flash the way I think of Shockwave. There is still work out there, 
but not much, and less every minute.

Kevin N.



On 5/8/13 10:40 AM, natalia Vikhtinskaya wrote:
> Hi
> What do you think about Flash technology in the near future? It is a 
> pity but it seems that almost all clients have no interest in Flash 
> projects.
> Do you think Adobe Flash has no future? Where to move from Flash?
>
> Thanks
> ___
> 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

This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient, please
destroy all paper and electronic copies of the original message.


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


Re: [Flashcoders] AS3

2012-10-27 Thread Peter Ginneberge

AS4 is on the way, including a new VM to support it.


- Original Message - 
From: "Kerry Thompson" 

To: "Flash Coders List" 
Sent: Friday, October 26, 2012 8:28 PM
Subject: Re: [Flashcoders] AS3



I don't think there is going to be an AS4. The ECMA Script committee was
working on a new standard at one point, but they disbanded 2-3 years ago
without issuing a standard for ECMA Script 4.

Adobe have been adding capabilities, such as sort, and I expect they will
continue to add capabilities. They might even call a new release
ActionScript 4, but it won't meet any ECMA standard.

I don't think that's necessarily a bad thing. AS3 is a mature, robust
language that has most of the features found in Java, JavaScript, and even
C++. To go much beyond what they already have, it would almost mean a whole
new programming paradigm.

Cordially,

Kerry Thompson



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


Re: [Flashcoders] Accessing FlashVars

2012-04-30 Thread Peter Ginneberge

Not sure it matters, but there's quotes missing in the HTML:

   

probably should be: 


   

- Original Message - 
From: "Kerry Thompson" 

To: "FlashCoders" 
Sent: Tuesday, May 01, 2012 12:46 AM
Subject: [Flashcoders] Accessing FlashVars



Flash Builder 4 AS3 project, Windows 7, Firefox 12.0.

I can't access the FlashVars in the HTML file. I've been working on this
all day, and it's driving me crazy (crazier). Do you see anything in the
following code?

In the constructor of my default AS3 file, I have this:

  this.loaderInfo.addEventListener(Event.COMPLETE, init);

and in the init() function:

   var flashVars:Object;

   flashVars = this.loaderInfo.parameters;

When I look at it in the debugger, flashVars is an object, but it has no
parameters. The relevant HTML is pretty straightforward:

   
   
   
   
   
   
   
   
   
  
   
   
   
   
   
   
   
   Either scripts and active content are not permitted
to run or Adobe Flash Player version
   10.0.0 or greater is not installed.
   
   
   http://www.adobe.com/go/getflashplayer";>
   http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif";
alt="Get Adobe Flash Player" />
   
   
   
   
   


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


Re: [Flashcoders] Re: odd request: as1 flash remoting components!

2012-03-30 Thread Peter Ginneberge

Can't tell if these are AS1 or AS2, as I can't install them (requires Flash MX 
to be installed, which I don't).

First installer is from a Studio MX installer CD
http://dl.dropbox.com/u/58645452/Flash%20Remoting%20Components.exe

Second installer I found on my (very) old laptop. It was sitting in a folder called "Remoting MX" next to another installer called 
"flashremoting_comp_as20-win-en.exe" so hopefully this is the as1.0 version, but again, I can't tell.

http://dl.dropbox.com/u/58645452/FlashRemotingComponents-win-en.exe

Looked on a bunch of very old CD's (ran into Flash 3, Director and Generator 
!!), but nothing that really screamed Remoting AS1.
Hopefully one of the above installers does the trick.
Fingers crossed...

regards,
Peter

- Original Message - 
From: "tom rhodes" 

To: "flashcoders" 
Sent: Friday, March 30, 2012 4:06 PM
Subject: [Flashcoders] Re: odd request: as1 flash remoting components!



i know it was a long time ago, but surely someone has these somewhere :(

On 29 March 2012 20:41, tom rhodes  wrote:


hi,

i'm going through some really old work to add to a portfolio site, one old
site in particular i used to really like uses the original as1 amfphp style
remoting :D

only thing is, i can't compile it anymore as i lack the necessary
NetServices.as, NetDebug.as files which i neglected to pop in the source 8
years ago ;)

hopefully i'm bringing back happy memories of first configuring flash
remoting in AS1 for some people and they might still have these files
kicking about? can't find them online anywhere... :(

cheers,

tom.


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


Re: [Flashcoders] MVC - ScreenManager

2012-03-27 Thread Peter Ginneberge

I have Command classes for that in combination with a ServiceLocator (Singleton) that 
holds all the "services".
Commands are instantiated (only when needed) and executed by the Controller.
Commands, when executed, fetch the required service (RemoteService/WebService/HTTPService) from the ServiceLocater, listens for 
events on the service and executes it.

When data returns it is stored in the Model, which then dispatches a change 
event.

regards,
Peter

- Original Message - 
From: "Creighton, Gerry" 

To: "Flash Coders List" 
Sent: Monday, March 26, 2012 7:07 PM
Subject: Re: [Flashcoders] MVC - ScreenManager



If I'm loading XML would that be done in the model or the controller?




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


Re: [Flashcoders] Dispatching events from V to C

2012-03-15 Thread Peter Ginneberge

How does the controller know about each command class? Is each instantiated by 
the controller?


Yup, controller knows about command classes.

This is the FrontController (part of my MVC framework), which the AppController 
extends.
Might be able to view it in my repository, allthough i'm not sure if you have 
access as a non-assembla member
http://www.assembla.com/code/muzakdeezign/subversion/nodes/trunk/AirMVC/src/be/gip/mvc/control/FrontController.as?rev=67

=

 private var commands:Dictionary = new Dictionary();

 public function addCommand(eventType:String, commandRef:Class):void {
  if(commands[eventType] != null) {
   throw new MVCError("The command has already been registered: "+eventType);
  }
  this.commands[eventType] = commandRef;
  MVCEventDispatcher.getInstance().addEventListener(eventType, 
this.executeCommand, false, 0, true);
 }

 protected function executeCommand(event:MVCEvent):void {
  var commandToInitialise:Class = this.getCommand(event.type);
  var commandToExecute:ICommand = new commandToInitialise();
  commandToExecute.execute(event);
 }

 protected function getCommand(commandName:String):Class {
  var command:Class = this.commands[commandName];
  if (command == null) {
   throw new MVCError("A command with the given name does not exist: " + 
commandName);
  }
  return command;
 }



So in each project i have 1 AppController (that extends FrontController) which 
maps Events to Commands.


Do the command classes talk directly to the model or view or back through the 
controller?


Command classes talk directly to the model, so they know the model, they don't 
know about views.
Changes in the Model trigger an event, which a View may (or may not) listen to.

Only the Controller knows about commands.. and it doesn't "really know" them. All it 
knows is they have an "execute" method.

So basically,
   - view triggers event
   - controller listens for event, looks up command mapped to that event
   - if command is found, an instance of that command is created and its 
execute() method is invoked.
   - command does whatever it needs doing (like fetch data from server)
   - command stores data in model, which triggers a change event
   - view listens for model change event(s)

Event broadcasting/listening is done through an EventDispatcher Singleton:
http://www.assembla.com/code/muzakdeezign/subversion/nodes/trunk/AirMVC/src/be/gip/mvc/events/MVCEventDispatcher.as?rev=67

All of this is basically a mixture of ARP and Cairngorm.

regards,
Muzak

- Original Message - 
From: "Mattheis, Erik (MIN-WSW)" 

To: "Flash Coders List" 
Sent: Thursday, March 15, 2012 11:10 PM
Subject: Re: [Flashcoders] Dispatching events from V to C


How does the controller know about each command class? Is each instantiated by the controller? Do the command classes talk directly 
to the model or view or back through the controller?


On 3/15/12 4:44 PM, "Peter Ginneberge"  wrote:


==

The controller then maps the different event types to Commands:
// AppController:

 private function initCommands():void {
  addCommand(NewsEvent.GET_NEWS, GetNewsCommand);
  addCommand(NewsEvent.UPDATE_NEWS, UpdateNewsCommand);

  addCommand(NewsEvent.ADD_NEWS, AddNewsCommand);
  addCommand(NewsEvent.DELETE_NEWS, DeleteNewsCommand);
  // etc..
 }

==

addCommand (not included) does an addEventListener and maps it to the command 
class for later execution (when the event is
triggered).


_ _ _
Erik Mattheis | Weber Shandwick
P: (952) 346.6610
M: (612) 377.2272
___
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] Dispatching events from V to C

2012-03-15 Thread Peter Ginneberge

I usually have Events that match the "data" (for lack of a better word) they 
are related with.

eg: NewsEvent, UserEvent, etc..

Events then contain one or more static constants representing different event 
types.

eg: NewsEvent.GET_NEWS, NewsEvent.UPDATE_NEWS, UserEvent.LOGIN, 
UserEvent.LOGOUT, etc..

Here's one I'm actually using right now:
=

public class NewsEvent extends MVCEvent {

 public static const GET_NEWS:String = "getNews";
 public static const UPDATE_NEWS:String = "updateNews";
 public static const ADD_NEWS:String = "addNews";
 public static const DELETE_NEWS:String = "deleteNews";

 public var data:NewsDTO;

 public function NewsEvent(type:String, dto:NewsDTO=null) {
  super(type);
  data = dto;
 }

 override public function clone():Event {
  return new NewsEvent(type, data);
 }

}

==

The controller then maps the different event types to Commands:
// AppController:

 private function initCommands():void {
  addCommand(NewsEvent.GET_NEWS, GetNewsCommand);
  addCommand(NewsEvent.UPDATE_NEWS, UpdateNewsCommand);

  addCommand(NewsEvent.ADD_NEWS, AddNewsCommand);
  addCommand(NewsEvent.DELETE_NEWS, DeleteNewsCommand);
  // etc..
 }

==

addCommand (not included) does an addEventListener and maps it to the command class for later execution (when the event is 
triggered).


That's about all the controller does really, listen for events, which are 
mapped to commands.
I do reduce the number of event classes by grouping them (NewsEvent has: get, 
add, update, delete),
instead of having an AddNewsEvent, GetNewsEvent, UpdateNewsEvent and so on.

Hope that helps.. do let us know if it doesn't :)

regards,
Muzak


- Original Message - 
From: "Mattheis, Erik (MIN-WSW)" 

To: "Flash Coders List" 
Sent: Thursday, March 15, 2012 10:25 PM
Subject: [Flashcoders] Dispatching events from V to C


Say I have  a "save" button that can exist in multiple views and can save multiple things. What's the best way to do this? Dispatch 
a different custom event from each type of button? Send one type of custom event  with different parameters? I have a controller 
that listens for 28 different custom events. I'd like to make the controller class smaller.


_ _ _
Erik Mattheis | Weber Shandwick

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


Re: [Flashcoders] Should I use BlazeDS for this?

2012-03-09 Thread Peter Ginneberge

WebOrb seems to have RTMP in all their editions (including the free one).
http://www.themidnightcoders.com/products/weborb-for-java/product-editions.html

regards,
Muzak

- Original Message - 
From: "Dave Watts" 

To: "Steven Loe" ; "Flash Coders List" 

Sent: Friday, March 09, 2012 6:08 PM
Subject: Re: [Flashcoders] Should I use BlazeDS for this?



When we have network slowdowns, polling sometimes fails and the
project hangs. Is Blaze/LiveCycle well behaved on thin networks? Is it
more robust than polling under these conditions?


To add to Henrik's answer, LiveCycle supports async (push) via RTMP,
but BlazeDS doesn't include RTMP support. It does support HTTP
"long-polling", which is about as efficient as you get without actual
async communication:

https://en.wikipedia.org/wiki/Push_technology#Long_polling

Dave Watts, CTO, Fig Leaf Software


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


Re: [Flashcoders] MVC style Correction

2012-03-07 Thread Peter Ginneberge
What he was asking was where does certain logic go, such as: 
   where do you check whether an email address is valid.


So if only the view cares about the valid email address, you can do so in the 
view, otherwise move the logic to the controller.
It also depends on how strict you are about what a view can / cannot do.

Some people (and frameworks) prefer to have no logic whatsoever in the view (dumb view) 
and have all the logic in the controller or in a go-between pattern: Observer / Mediator / Presenter - whichever fits their need.

For instance PureMVC and RobotLegs use Mediators:
http://puremvc.org/component/option,com_wrapper/Itemid,34/
http://www.robotlegs.org/diagram/

regards,
Muzak

- Original Message - 
From: "Karl DeSaulniers" 

To: "Flash Coders List" 
Sent: Wednesday, March 07, 2012 9:15 PM
Subject: Re: [Flashcoders] MVC style Correction


So a view can possibly have its own MVC within it? As long as the view  
is the only one using the data?


View Controller
View Model
View View

Or am I interp. this incorrectly?

Best,
Karl


On Mar 7, 2012, at 10:29 AM, John McCormack wrote:

Issues which have not been resolved has to do with how the logic is  
distributed amongst MVC partners.


So if anyone comes across an example in which they are uncertain,  
please let us hear about it.


On that subject, the book by Joel Hooks' and Lindsey Fallow:  
"ActionScript Developers Guide to RobotLegs":

http://shop.oreilly.com/product/0636920021216.do

says...

"As to whether checking an email address is valid view logic or  
application logic, there's no fixed answer.
A good filter is that if only the view classes care about this  
logic, it belongs in your view layer.
If other parts of the application need to be checked or informed,  
it's controller code."


John


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


Re: [Flashcoders] MVC style Correction

2012-03-06 Thread Peter Ginneberge
I guess I am looking to the controller to do the event dispatching to  
the model the model to listening for the result.



You don't normally do that. The controller "talks" to the model directly, so the 
controller "knows" the model.
The model doesn't "know" neither view nor controller and dispatches events when 
it changes.

There's some more explaning here on MSDN (1/3 down the page, under Solution):
http://msdn.microsoft.com/en-us/library/ff649643.aspx

Note that they refer to this page I posted earlier:
http://st-www.cs.illinois.edu/users/smarch/st-docs/mvc.html



- Original Message - 
From: "Karl DeSaulniers" 

To: "Flash Coders List" 
Sent: Tuesday, March 06, 2012 11:35 AM
Subject: Re: [Flashcoders] MVC style Correction



I kind of like that.

I guess I am looking to the controller to do the event dispatching to  
the model
the model to listening for the result. the view listening for changes  
to the model.


On Mar 6, 2012, at 4:26 AM, Cor wrote:


You could ofcourse take another approach:
In the view:
dispatchEvent(new Event(View.YOURVIEWEVENT));

and in the Contoller:

View.addEventListener(View.YOURVIEWEVENT, callback);

So there is a loose coupling as Paul wrote.




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


Re: [Flashcoders] MVC style Correction

2012-03-05 Thread Peter Ginneberge
I'm guessing we're now into nuancing the model to hold view states and the presenter is controlling multiple views, or is that 
wrong?




Not in GWT, no.
There's one Presenter (or Controller) for the whole app.
And then there's an MVP triad for every view.

The app controller would then for instance listen to navigation events and be responsible for displaying the view matching the nav 
event.

It would do that by creating a presenter and view instance, passing the view to 
the presenter, e.g.

   var p:HomePresenter = new HomePresenter(new HomeView());
   // you could store "p" for later use, so to only create the presenter 
(+view) once


The presenter's constructor argument is an interface:

   public function HomePresenter(view:IHomeView) {}

By using a presenter and view interface, you're able to have very dumb views, swap them out, as long as they implement the required 
interface.

This also allows for easier unit testing, in GWT even without the view 
implementations at all.

=

@Ross:


I also loathe Interfaces.
the only time i use interfaces is to allow objects with two different class 
lineages to be used interchangeably.


That's the whole point of the view interface and why I brought it up, as you can then swap views and your presenter is none the 
wiser.
I admit, interfaces aren't used very often in Actionscript, in Java however, 99% of the time you're programming against interfaces 
or abstract classes.


==

Anyway.. hope I'm not confusing people who are just getting into the whole 
design pattern thing too much.

If you like reading, google:
   mvc vs mvp vs mvvm

MVVM: http://en.wikipedia.org/wiki/Model_View_ViewModel

Martin Fowler on PresentationModel:
http://martinfowler.com/eaaDev/PresentationModel.html

regards,
Muzak

- Original Message - 
From: "Paul Andrews" 

To: "Flash Coders List" 
Sent: Monday, March 05, 2012 5:00 PM
Subject: Re: [Flashcoders] MVC style Correction


I'm guessing we're now into nuancing the model to hold view states and the presenter is controlling multiple views, or is that 
wrong?


On 05/03/2012 15:33, Peter Ginneberge wrote:
The dependency with this is that any changes to the UI - additional views being added or removed, requires that the controller 
be changed too. Any change to a view could cause the controller to become broken.


For this reason, I would say it's bad practice.


Not necessarily so.
But.. you'd use an interface, which the view implements.
In which case you'd probably be talking about a Presenter rather than a 
Controller :)

pseudo code:

// PRESENTER
private var view:IView;
public function ViewPresenter(v:IView) {
   view = v;
   // add listeners and whatnot..
}

onSomeEventHandler(event:SomeEvent):void {
   view.update();
}



// VIEW
public class MyView implements IView {
   public function update()(// do stuff);
}



// VIEW INTERFACE
public interface IView {
   public function update();
}

GWT uses this kind of architecture:
http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture.html
http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture.html#binding

http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture-2.html

http://www.google.com/intl/nl/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

So in GWT I usually have:

(only 1) AppController
(several) Presenter + View + Model triads

A view dispatches events to which the presenter listens.
Presenter talks to view via its interface.

View doesn't know the presenter, Presenter doesn't know the view, only its 
interface.

regards,
Muzak



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


Re: [Flashcoders] MVC style Correction

2012-03-05 Thread Peter Ginneberge
The dependency with this is that any changes to the UI - additional 
views being added or removed, requires that the controller be changed 
too. Any change to a view could cause the controller to become broken.


For this reason, I would say it's bad practice.


Not necessarily so.
But.. you'd use an interface, which the view implements.
In which case you'd probably be talking about a Presenter rather than a 
Controller :)

pseudo code:

// PRESENTER
private var view:IView;
public function ViewPresenter(v:IView) {
   view = v;
   // add listeners and whatnot..
}

onSomeEventHandler(event:SomeEvent):void {
   view.update();
}



// VIEW
public class MyView implements IView {
   public function update()(// do stuff);
}



// VIEW INTERFACE
public interface IView {
   public function update();
}

GWT uses this kind of architecture:
http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture.html
http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture.html#binding

http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture-2.html

http://www.google.com/intl/nl/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

So in GWT I usually have:

(only 1) AppController
(several) Presenter + View + Model triads

A view dispatches events to which the presenter listens.
Presenter talks to view via its interface.

View doesn't know the presenter, 
Presenter doesn't know the view, only its interface.


regards,
Muzak

- Original Message - 
From: "Paul Andrews" 

To: 
Sent: Monday, March 05, 2012 3:11 PM
Subject: Re: [Flashcoders] MVC style Correction


The dependency with this is that any changes to the UI - additional 
views being added or removed, requires that the controller be changed 
too. Any change to a view could cause the controller to become broken.


For this reason, I would say it's bad practice.


On 05/03/2012 13:57, Merrill, Jason wrote:

tutor mentions Controller can update View, but that example is not included.
If anyone can give me a little example of how that is done in MVC, don't 
hasitate

In about the simplest form:


//In the controller:

onSomeEventHandler(event:SomeEvent):void
{
_someViewInstance.update();
}


//In the view:

public function update():void
{
//Do stuff to change the view
}

Hope that helps.


  Jason Merrill


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


Re: [Flashcoders] MVC style Correction

2012-03-01 Thread Peter Ginneberge

Found this FlashPaper swf that explains the ARP Pizza sample app:
http://aralbalkan.com/downloads/FlashToFlex.swf

The sample app is included in this download:
http://osflash.org/downloads/arp/ARP_2.02.zip



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


Re: [Flashcoders] MVC style Correction

2012-03-01 Thread Peter Ginneberge

Wanted to add that I use my own custom MVC micro-architecture which is based on 
(a mixture of) ARP and Cairngorm.

Back when I was still developing in Flash (before I moved to Flex) I used ARP by Aral Balkan, which as far as I know was the first 
real MVC framework for Flash.

Not even sure if there is another :)

Unfortunatly ARP no longer exists, well at least it's no longer being 
developed/updated.
There's still some info up on the osflash.org site:
http://osflash.org/projects/arp

But, the most important thing about ARP - at least to me - was the documentation that came with it and I can't seem to be able to 
get my hands on a working copy.
The online version is down and the downloadable version (exe) for some reason doesn't work properly (I'm guessing it's hooked up to 
the online html version or something).

http://osflash.org/downloads/arp/ARP_2.02_Manual.exe

If someone can get it to work, I'd love to hear about it.

The thing is, it contained a great explanation of how MVC applies to Flash. It explained all the relevant design patterns very well, 
including Model, View, Controller, Command and ServiceLocator.


If you download the ARP sources + samples, you can still see how it works (and 
use it if you like).
http://osflash.org/downloads/arp/ARP_2.02.zip

regards,
Muzak

----- Original Message - 
From: "Peter Ginneberge" 

To: "Flash Coders List" 
Sent: Wednesday, February 29, 2012 4:25 PM
Subject: Re: [Flashcoders] MVC style Correction



Here's what I use.

packages:

- business
   Contains singleton with services (RemoteObject, WebService, HTTPService, 
SQLite), used by Command classes.

- commands
   Contains commands that are executed by the Controller when a matching event 
is triggered.
   Commands are responsible for fetching data from server and storing it in the 
model.

- control
   Contains AppController (singleton) that wires custom events to commands.

- dto
   Date Transfer Objects (aka Value Objects). These get passed around with 
custom events and are stored in Model, etc.

- events
   Custom events, usually dispatched by views. Controller listens for these 
events and executes matching command.

- model
   App models. Dispatches change event when data changes.

- view
   App views.

==


Where would you expect transfer object class

   dto package


Where would you expect a custom event class?

   events package


Where would you put a class that reads from and writes to the file system?

   commands package

What about a class that holds string values to display ion dialog boxes, on buttons, etc? Is that part of the view or should it 
be defined in the model?


Not in the view and certainly not in the model.
Most likely a static utility class -> package: utils

regards,
Muzak




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


Re: [Flashcoders] MVC style Correction

2012-02-29 Thread Peter Ginneberge

Here's what I use.

packages:

- business
   Contains singleton with services (RemoteObject, WebService, HTTPService, 
SQLite), used by Command classes.

- commands
   Contains commands that are executed by the Controller when a matching event 
is triggered.
   Commands are responsible for fetching data from server and storing it in the 
model.

- control
   Contains AppController (singleton) that wires custom events to commands.

- dto
   Date Transfer Objects (aka Value Objects). These get passed around with 
custom events and are stored in Model, etc.

- events
   Custom events, usually dispatched by views. Controller listens for these 
events and executes matching command.

- model
   App models. Dispatches change event when data changes.

- view
   App views.

==


Where would you expect transfer object class

   dto package


Where would you expect a custom event class?

   events package


Where would you put a class that reads from and writes to the file system?

   commands package

What about a class that holds string values to display ion dialog boxes, on buttons, etc? Is that part of the view or should it be 
defined in the model?


Not in the view and certainly not in the model.
Most likely a static utility class -> package: utils

regards,
Muzak


- Original Message - 
From: "Mattheis, Erik (MIN-WSW)" 

To: "Flash Coders List" 
Sent: Monday, February 27, 2012 10:19 PM
Subject: Re: [Flashcoders] MVC style Correction


I've been putting all my class files in one of three folders, model, view, controller. I'm mostly concerned with making the code as 
easy to understand as possible.


Where would you expect transfer object class - a class that just defines a set 
of values to pass as a group?

Where would you expect a custom event class?

Where would you put a class that reads from and writes to the file system? Air.File has methods that produce UI elements. What are 
benefits/drawbacks to writing the extra code to get File.browseForOpen() somewhere in the View?


What about a class that holds string values to display ion dialog boxes, on buttons, etc? Is that part of the view or should it be 
defined in the model?




_ _ _

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


Re: [Flashcoders] Fwd: MVC

2012-02-17 Thread Peter Ginneberge



Main problem that I see with the code that was posted is that it breaks
a major MVC rule and teaches a real bad habit: Views shouldn't have any
knowledge of Models


Not sure where you get the idea that a View shouldn't communictate with the 
Model directly:

This states otherwise: 
http://st-www.cs.illinois.edu/users/smarch/st-docs/mvc.html


Unlike the model, which may be loosely connected to multiple MVC triads, Each view is associated with a unique controller and vice 
versa. Instance variables in each maintain this tight coupling. A view's instance variable controller points at its controller, and 
a controller's instance variable view points at its associated view. And, because both must communicate with their model, each has 
an instance variable model which points to the model object. So, although the model is limited to sending self changed:, both the 
view and the controller can send messages directly to each other and to their model.



For those wondering why I quote the above article:
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller#History

regards,
Muzak


- Original Message - 
From: 

To: "Flash Coders List" 
Sent: Thursday, February 16, 2012 3:07 PM
Subject: RE: [Flashcoders] Fwd: MVC



Main problem that I see with the code that was posted is that it breaks
a major MVC rule and teaches a real bad habit: Views shouldn't have any
knowledge of Models and Models shouldn't care who's using them
(Controllers are just conduits between Views and Models). On a larger
scale, this would present itself to be a huge maintenance nightmare and
dependencies have now been created. Everything should be independent of
each other enough that I could replace one section without affecting the
operation of anything else in the application. In this case. the
controller should be passing either Value or Transfer Objects back and
forth between the View and Model. This way, I could change models on the
fly and the controller and view wouldn't suspect a thing.

RobotLegs is an excellent example for learning about MVC.



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


Re: [Flashcoders] Updating to 10.3 or 11 External player in cs5.5?

2012-02-08 Thread Peter Ginneberge

Cos then you're not really debugging.
In order to get trace output you'd have to start a Remote Debug Session.

So instead of just doing "CTRL+Enter" you'd have to:

- Publish (ALT+SHIFT+F12)
- start Remote Debug Session (no shortcut)
- switch to browser and hit F5

It's certainly doable, but a real PITA if you're doing extensive 
testing/debugging.

Might be easier switching to Flash Builder..

I just tested hooking up FlashBuilder to an fla and can debug in FP 11 :)

In FB:
   File > New Flash Professional Project.
   Point to the target Flash .fla file

In the Flash Builder preferences, under FlashBuilder -> Debug, specify the path to the Standalone Debug player to be used for 
debugging.

In my case that is: C:\Program Files (x86)\Adobe\Adobe Flash Builder 
4.5\player\win\11.1\FlashPlayerDebugger.exe

I also had to add the playerglobal.swc to to project's classpath.
Once that's done, you're all set.. hit CTRL+SHIFT+ENTER and off you go.

Same fla as previous post now has this output (in Flash IDE):

Attempting to launch and connect to Player using URL 
C:\Users\Peter\Desktop\fp-test.swf
[SWF] C:\Users\Peter\Desktop\fp-test.swf - 2247 bytes after decompression
WIN 11,1,102,55

regards,
Peter

- Original Message - 
From: "Chris Foster" 

To: "Flash Coders List" 
Sent: Wednesday, February 08, 2012 10:36 PM
Subject: RE: [Flashcoders] Updating to 10.3 or 11 External player in cs5.5?



Maybe I'm missing something here - what is stopping you from keeping
your SWF open in a browser window (with the debug Player of your choice)
and simply hitting F5 after you've republished?

C:




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


Re: [Flashcoders] Updating to 10.3 or 11 External player in cs5.5?

2012-02-08 Thread Peter Ginneberge

Just looked it up real quick:
The IDE "player" dll is located in:

   {FLASH DIR}\Common\Configuration

and is called: authplay.dll

If you look at the file's properties you'll notice it says: Adobe Flash Player 
10.2 r153

Doing a trace inside the IDE gives: WIN 10,2,153,2

   import flash.system.Capabilities;
   trace(Capabilities.version);


In short, you're screwed :(

regards,
Peter


- Original Message - 
From: "Peter Ginneberge" 

To: "Flash Coders List" 
Sent: Wednesday, February 08, 2012 8:24 PM
Subject: Re: [Flashcoders] Updating to 10.3 or 11 External player in cs5.5?



Is there any way to fix this?

Have you installed the FP11 debug player?

If not, download and install it!


If I remember correctly, installing FP11 won't change a thing.
The Flash IDE uses a .dll (on windows) for preview/testing inside the IDE.
The only way to update that player dll is to actually wait for Adobe to release 
an updated version.

I haven't used Flash in a long time, so things may have changed, but that's how 
it used to be.

regards,
Peter




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


Re: [Flashcoders] Updating to 10.3 or 11 External player in cs5.5?

2012-02-08 Thread Peter Ginneberge

Is there any way to fix this?

Have you installed the FP11 debug player?

If not, download and install it!


If I remember correctly, installing FP11 won't change a thing.
The Flash IDE uses a .dll (on windows) for preview/testing inside the IDE.
The only way to update that player dll is to actually wait for Adobe to release 
an updated version.

I haven't used Flash in a long time, so things may have changed, but that's how 
it used to be.

regards,
Peter


- Original Message - 
From: "Paul Andrews" 

To: "Flash Coders List" 
Sent: Wednesday, February 08, 2012 8:01 PM
Subject: Re: [Flashcoders] Updating to 10.3 or 11 External player in cs5.5?



On 08/02/2012 18:38, Steven Hargrove wrote:

Hi all,

I've configured my cs5.5 IDE to compile to FP 10.3&  11. The problem is,
when I test movie and run my SWF in the External test player - its still
using 10.2. It compiles the SWF to the proper version, but it just makes it
more difficult to test.

Is there any way to fix this?

Have you installed the FP11 debug player?

If not, download and install it!



Thanks,
Steve
___
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] Confirmation succeeded?

2012-01-30 Thread Peter Ginneberge

If you're going the java route, look into GWT and SmartGWT.

http://code.google.com/intl/en/webtoolkit/
http://gwt.google.com/samples/Showcase/Showcase.html

http://code.google.com/p/smartgwt/
http://www.smartclient.com/smartgwtee/showcase/#main




Well Glen you kidda open the door so let me ask:

Can a guy with decent OOP knowledge, not great but decent. Who has a 
passion for AS3 but is not a graphic person make a modest, modest income 
off the Internet these days without HTML5.


Let's add to that equation the passion for learning new languages.

My plan was to nail down AS3, and make a transition to Java.

Thanks ahead for any advice. I know the conventional wisdom is to make a 
transition but not sure.

___


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


Re: [Flashcoders] Adobe is my down-ass chick

2011-12-31 Thread Peter Ginneberge
With "easily" I was meaning that you do not have to teach yourself another programming language: more than that, I'm not scared by 
learning something new, I'm scared by the fact that I will lose all my long experience on Flash and I do not want to!


I understand what you're saying.
When I started learning Java (not so very long ago) I got frustrated by the 
mess that is JSP and Servlets.
That is why I'm so glad I finally found something like GWT to make web apps more or less the way I'm used to in Flex (I stopped 
using Flash around v8).

Meaning, OOP, MVP, etc..
http://code.google.com/intl/nl/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
http://code.google.com/intl/nl/webtoolkit/articles/mvp-architecture.html

If you look at this project structure: 
http://code.google.com/intl/nl/webtoolkit/images/contacts-project-hierarchy.png
That's almost exactly what it would look like in Flex when using Cairngorm for 
instance, but without the Command pattern.
There's libraries out there that do have a Command implementation.

And with GWT you can use a declarative xml like structure for layout, close to 
Flex' MXML:
http://code.google.com/intl/nl/webtoolkit/doc/latest/DevGuideUiBinder.html


So why must I dismiss such a powerful thing like Flash?
Just because it's fancy to say "Flash is dead"?
What wil happen when softwarehouses that right now are focusing on html 5 (or other things) will finally realize that with flash 
you can export to iPhone, iPad and Android with a simple click and for this reason the developing process is faster than any other 
thing done in another programming language?




I hear ya !
I just love Flex, I really do. The thing is, in a few years time (I'm guessing) 
plugins will be a thing of the past.
Windows 8 is already moving in that direction. So it will simply be a matter of: "we 
don't have a choice."

I mentioned this on FlexCoders already. If Adobe - moving away from the Flash plugin - would make FlashBuilder into something that 
spits out HTML/JS web apps much like GWT now does with Java, I'd be all over it. And I'm sure I'm not the only one :)


The power and beauty of ActionScript+MXML to build the apps we're used to and 
not having to touch the ugliness that is JS/HTML.
That'd be my wish for 2012 :)

regards,
Muzak



- Original Message - 
From: "Ima Newsletta" 

To: "Flash Coders List" 
Sent: Saturday, December 31, 2011 10:12 AM
Subject: Re: [Flashcoders] Adobe is my down-ass chick



Thanks Muzak,
Very interesting links!

However I said "easily" :-)
With "easily" I was meaning that you do not have to teach yourself another programming language: more than that, I'm not scared by 
learning something new, I'm scared by the fact that I will lose all my long experience on Flash and I do not want to!


In some time, performance won't be a trouble at all seen the power of the new 
devices.

So why must I dismiss such a powerful thing like Flash?
Just because it's fancy to say "Flash is dead"?
What wil happen when softwarehouses that right now are focusing on html 5 (or other things) will finally realize that with flash 
you can export to iPhone, iPad and Android with a simple click and for this reason the developing process is faster than any other 
thing done in another programming language?


So right now, I stay with Flash.

Happy new year to everyone.


Il 31/12/2011 03:27, Peter Ginneberge ha scritto:

Sorry for the late reply..


With your new chicks can you easily make web apps, desktop apps, android apps 
and ios apps?


Yup, except for desktop.

Once compiled, they're plain HTML/JS apps.
Mind you, I haven't done any Android and/or iOS apps  with GWT yet.

Just goodle "GTW ios" for instance and you'll find the stuff you need.

Here's a "how-to" - note the date --> 2007.
http://code.google.com/intl/en/webtoolkit/articles/gwt-iphone.html
The article is for GWT 1.4. The current version is 2.4 and alot has changed 
(improved) since then.

And there's all sorts of additional libraries available for all kinds of 
development.
Smart GWT: http://code.google.com/p/smartgwt/
GWT Mobile: http://code.google.com/p/gwt-mobile-webkit/
Ext GWT: http://www.sencha.com/products/extgwt/
etc..

As for desktop apps, you could wrap your GWT with AIR :)

regards,
Muzak





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


Re: [Flashcoders] Adobe is my down-ass chick

2011-12-30 Thread Peter Ginneberge

Sorry for the late reply..

With your new chicks can you easily make web apps, desktop apps, android 
apps and ios apps?


Yup, except for desktop.

Once compiled, they're plain HTML/JS apps.
Mind you, I haven't done any Android and/or iOS apps  with GWT yet.

Just goodle "GTW ios" for instance and you'll find the stuff you need.

Here's a "how-to" - note the date --> 2007.
http://code.google.com/intl/en/webtoolkit/articles/gwt-iphone.html
The article is for GWT 1.4. The current version is 2.4 and alot has changed 
(improved) since then.

And there's all sorts of additional libraries available for all kinds of 
development.
Smart GWT: http://code.google.com/p/smartgwt/
GWT Mobile: http://code.google.com/p/gwt-mobile-webkit/
Ext GWT: http://www.sencha.com/products/extgwt/
etc..

As for desktop apps, you could wrap your GWT with AIR :)

regards,
Muzak


- Original Message - 
From: "Ima Newsletta" 

To: "Flash Coders List" 
Sent: Thursday, December 29, 2011 8:29 AM
Subject: Re: [Flashcoders] Adobe is my down-ass chick



If you leave that chick, she can be all mine then.
With your new chicks can you easily make web apps, desktop apps, android 
apps and ios apps?



Il 29/12/2011 05:32, Peter Ginneberge ha scritto:
Sure, we're never getting back in an exclusive relationship, but as 
long as she's willing to party, I'll keep her around until I find my 
next true love.




Already found mine. She's called GWT and she rocks. Still a bit rough 
around the edges, but she's getting there.
Now if Flex (FlashBuilder) would do the things GWT does, I'd be 
willing to take her back.


And oh yeah, if you wanna hang with GWT, you have to get in bed with 
Java as well.. but I don't mind that at all :)


Muzak

ps: GWT -> Google Web Toolkit
http://code.google.com/intl/en/webtoolkit/


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


Re: [Flashcoders] Adobe is my down-ass chick

2011-12-28 Thread Peter Ginneberge
Sure, we're never getting back in an exclusive relationship, but as long as she's willing to party, I'll keep her around until I 
find my next true love.




Already found mine. She's called GWT and she rocks. Still a bit rough around 
the edges, but she's getting there.
Now if Flex (FlashBuilder) would do the things GWT does, I'd be willing to take 
her back.

And oh yeah, if you wanna hang with GWT, you have to get in bed with Java as 
well.. but I don't mind that at all :)

Muzak

ps: GWT -> Google Web Toolkit
http://code.google.com/intl/en/webtoolkit/


- Original Message - 
From: "Ross Sclafani" 

To: "Flash Coders List" 
Sent: Wednesday, December 28, 2011 7:11 PM
Subject: [Flashcoders] Adobe is my down-ass chick


Every time I get an email from Adobe, it's like a booty call from that sexy chick I used to go out with. She may not be perfect, 
but she was usually good to go and was always willing to try new things. Now she has this hot new friend I've been messing with, 
and I can tell they're just about to ménage, so still I take the calls now and then just to make sure she's keeping herself in 
good shape and getting on with my new chick.
Sure, we're never getting back in an exclusive relationship, but as long as she's willing to party, I'll keep her around until I 
find my next true love.


Ross P. Sclafani

On Dec 28, 2011, at 12:18 PM, "Merrill, Jason" 
 wrote:

I asked myself something today. Why does it feel like whenever I get marketing e-mails from Adobe, it feels like an 
out-of-the-blue friendly text message from an ex-girlfriend. One who I used to love and was awesome, but now I want nothing to do 
with other than the occasional stalking on Facebook to see if she married some loser and has let herself go.


Oh wait, I know why.

Jason Merrill


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


Re: [Flashcoders] XMLList & Namespace Madness

2011-04-29 Thread Peter Ginneberge

The following works for me:

===

var myXMLList:XMLList = XMLList(xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


 
  HelloWorld 1

 
  HelloWorld 2
 
 
);

var pnNs:Namespace=new 
Namespace("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService";);
var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

for each (var node:XML in myXMLList2.pnNs::PropertyData) {
trace("- PropertyData: ", node.toXMLString());
}

===

regards,
Muzak

- Original Message - 
From: "Merrill, Jason" 

To: "Flash Coders List" 
Sent: Friday, April 29, 2011 4:32 AM
Subject: [Flashcoders] XMLList & Namespace Madness


I'm going crazy trying to drill down into a XMLList which has namespaces declared. I have been able to go into a few layers of the 
original XML with namespaces using namespace definitions in AS3, but now I am stuck at the last level.


The XMLList I have pared it down to has a length of 1 and has namespaces declared, which is throwing things off.  How can I get to 
the  nodes given that namespaces are involved?


The following code can be copied and pasted into a fresh .fla as a test case:

/*TEST CASE-*/

var myXMLList:XMLList = XMLList(xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

 
   
   HelloWorld 1
   
   
   HelloWorld 1
   
 
);

var pnNs:Namespace = new 
Namespace("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService";);

var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult;

trace("myXMLList2: "+myXMLList2)//Traces fine, except more namespaces (xmlns) 
appear as attributes in first node.

for each (var propertyDataXML:XML in myXMLList2..PropertyData)
{
   //WHY DOES THIS NOT TRACE?
   trace("propertyDataXML: "+propertyDataXML);
}
/*--*/

I also tried this for the loop as well:

/*--*/

for each (var propertyDataXML2:XML in 
myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData)
{
   //WHY DOES THIS NOT TRACE?
   trace("propertyDataXML: "+propertyDataXML2);
}
/*--*/

And why does the trace on myXMLList2 show an XML list where there is more namespace applied: "xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService..."; ??


Any help is MUCH appreciated.

Jason Merrill



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


Re: [Flashcoders] flash.filesystem not in Flash?

2011-02-23 Thread Peter Ginneberge


Because it is much easier to get a random wrapper approved than AIR. Oh wait, 
it shouldn't be.



Especially since AIR apps need to be digitally signed (requires certificate).
Granted, you can build an AIR app with a developer certificate, but during install that is being displayed as "Publisher: UNKNOWN" 
and some security warnings. It's pretty hard to miss.



- Original Message - 
From: "Henrik Andersson" 

To: "Flash Coders List" 
Sent: Wednesday, February 23, 2011 6:58 PM
Subject: Re: [Flashcoders] flash.filesystem not in Flash?



Merrill, Jason skriver:

i think AIR has negated the need for these windowless flash wrappers - are 
these still in production?


Yes, the tools are still out there. AIR requires installation of the AIR runtime first.  The wrappers do not, they are standalone 
.exes.  For first time user, it would be a two-step installation to run an AIR app. So it depends on what your client needs/wants 
and what the user can do.  For example, AIR is not an approved tech in our environment, so if this were us, we'd have to look at 
other options.




Because it is much easier to get a random wrapper approved than AIR. Oh wait, 
it shouldn't be.



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


Re: [Flashcoders] flash.filesystem not in Flash?

2011-02-23 Thread Peter Ginneberge

AIR 2.0 has OS native installers (.exe, dmg).


For first time user, it would be a two-step installation to run an AIR app.


This is pretty much automated from what I remember. Haven't installed the 
runtime in a while though.
There's also the option to use your own installer (e.g. NSIS) as a wrapper for an AIR app and with that you can silently install the 
runtime.

I've done that before, easy-peasy.

In case you don't know NSIS:
http://nsis.sourceforge.net/Main_Page

There's an Eclipse plugin (EclipseNSIS) so you can install it right into 
FlashBuilder/Eclipse.


- Original Message - 
From: "Merrill, Jason" 

To: "Flash Coders List" 
Sent: Wednesday, February 23, 2011 6:47 PM
Subject: RE: [Flashcoders] flash.filesystem not in Flash?



i think AIR has negated the need for these windowless flash wrappers - are 
these still in production?


Yes, the tools are still out there. AIR requires installation of the AIR runtime first.  The wrappers do not, they are standalone 
.exes.  For first time user, it would be a two-step installation to run an AIR app. So it depends on what your client needs/wants 
and what the user can do.  For example, AIR is not an approved tech in our environment, so if this were us, we'd have to look at 
other options.


Jason Merrill


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


Re: [Flashcoders] Re: OTish MP3 files for a piano scale

2011-02-08 Thread Peter B
This is why I love Flashcoders, and still lurk here despite not being
actively involved in Flash development anymore. Great discussion :)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox label issue

2011-01-24 Thread Peter Ginneberge

If you want to display both the fontName and fontStyle, define a labelFunction 
for the combobox.

function setLabel(item:Object):String {
var fnt:Font = item as Font;
return fnt.fontName + " (" + fnt.fontStyle + ")";
}

font_cb.labelFunction = setLabel;


- Original Message - 
From: "Creighton, Gerry" 

To: 
Sent: Monday, January 24, 2011 4:11 PM
Subject: [Flashcoders] ComboBox label issue


I�m having a problem properly displaying the font name and variant in a 
combobox.
I have fonts embedded in my swf and am exporting for AS.
I have a ComboBox that I�m populating from an enumerated font array like so...


fontArray = Font.enumerateFonts(false);//using false only enumerates embedded 
fonts
fontArray.sortOn("fontName",Array.CASEINSENSITIVE);
_fontDP = new DataProvider(fontArray);

FontCB.dataProvider = _fontDP;

//when I set up the FontCB I set the labelField like so...
FontCB.labelField = "fontName";


When the ComboBox is opened the display names for the fonts only show the main 
name of the font and not
each variant (shown below). When I publish and select to �Generate Size Report� I 
get all of the proper font names & variants.
How can I get the proper font names to display properly.
Ie
Arial
Arial
Arial
Arial
Book Antiqua
Book Antiqua
Book Antiqua
Book Antiqua
Helvetica
Helvetica
Helvetica
Helvetica

___

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


Re: [Flashcoders] How to utilize this code:public staticconst: Needhelp understanding...

2011-01-12 Thread Peter Ginneberge

so I guess


Yes, right - we're really just guessing


Well, it was a bit more than just a guess :)
http://www.matthijskamstra.nl/blog/index.php/2008/07/23/from-as2-to-as3-where-did-it-go-setrgb/


   So a little as2 update.


You're right that they serve no code-purpose in that class, but they could in theory be used outside the class from an interface 
perspective.

Erhm, no.. just.. no :)

regards,
Muzak

- Original Message - 
From: "Merrill, Jason" 

To: "Flash Coders List" 
Sent: Wednesday, January 12, 2011 9:01 PM
Subject: RE: [Flashcoders] How to utilize this code:public staticconst: 
Needhelp understanding...



those constants serve no purpose, as to get to them you have to know their 
package anyway.


OK, but one of those constants DOES contain the package name.  And how do you know they serve no purpose? You're right that they 
serve no code-purpose in that class, but they could in theory be used outside the class from an interface perspective.


I'm not suggesting they use getDefinitionByName() with the constant, as I said, that may just be odd metadata.  I was just 
answering the question about what values like that can be used for.



so I guess


Yes, right - we're really just guessing what they put those constants in for, since they don't serve a purpose inside the method 
implementations internally in the class.



Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning



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


Re: [Flashcoders] How to utilize this code: public staticconst: Needhelp understanding...

2011-01-12 Thread Peter Ginneberge

The class is a rewrite from AS2, so I guess they just left it in there.

In AS3 - for use with getDefinitionByName() or getQualifiedClassName() - those constants serve no purpose, as to get to them you 
have to know their package anyway.


- Original Message - 
From: "Merrill, Jason" 

To: "Flash Coders List" 
Sent: Wednesday, January 12, 2011 4:38 PM
Subject: RE: [Flashcoders] How to utilize this code: public staticconst: 
Needhelp understanding...



but if I'm not mistaken, those were used in the AS2 days to attach a class to a 
MovieClip


Not necessarily in this case though. In AS3 you can use things like getDefinitionByName() or getQualifiedClassName() to 
dynamically reference or dynamically instantiate an instance of a class.  Since this is AS3 code, the use would not be related to 
AS2.  It could be used like that with dynamic class referencing, or they may just be doing it as available metadata for some odd 
reason.


An example of how I have used dynamically generated class instances is if I have some external XML that describes an application 
or solution of some kind, and I want to have the XML describewhat objects (and therefore what classes) are created, at runtime in 
the Flash player. For example:


var aCoolSpriteClass:Class = getDefinitionByName("aCoolSprite") as Class;
var obj:DisplayObject = new aCoolSpriteClass() as DisplayObject;


Note: Among other things, I changed var to const; I assume "const" was
a better pick... No?


Yes, those would be constants, so I would declare them as const so they cannot be modified.  Constants do never change in value at 
runtime.


Jason Merrill
Instructional Technology Architect
Bank of America  Global Learning



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


Re: [Flashcoders] How to utilize this code: public static const: Needhelp understanding...

2011-01-12 Thread Peter Ginneberge
I don't remember all the details, but if I'm not mistaken, those were used in the AS2 days to attach a class to a MovieClip, without 
them being linked in the Library (through the Symbol properties).


Google: Object.registerClass and/or __packages

Muzak


- Original Message - 
From: "Micky Hulse" 

To: "Flash Coders List" 
Sent: Wednesday, January 12, 2011 10:08 AM
Subject: [Flashcoders] How to utilize this code: public static const: Needhelp 
understanding...



Hello,

Surfing around the net, I found this class:



The code I would like some help with:



public class MyClass {

// Public static constants:
public static const CLASS_REF = com.foo.util.MyClass;
public static const CLASS_NAME:String = 'MyClass';
public static const LINKAGE_ID:String = 'com.foo.util.MyClass';



Note: Among other things, I changed var to const; I assume "const" was
a better pick... No?

So, I understand that a public static const can be accessed from
another class without class initialization, but I don't understand how
the above code could be helpful (other than for meta/documentation
purposes?).

Could someone post an example that shows how/why/when the above
constants could (or, can) be used in the workflow of a project/app?

I hope my question makes sense...

Thanks!
Micky


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


Re: [Flashcoders] Automagically create an interface from a given AS3class?

2010-12-20 Thread Peter Ginneberge

Just did a quick google and this turned up:
http://flashfocus.nl/forum/showthread.php?t=38705

It's a Dutch forum, but you should be able to get the tool here:
http://flashfocus.nl/forum/attachment.php?attachmentid=6488&d=1196363980

Haven't tried/tested it, just a quick google search.

regards;
Muzak


- Original Message - 
From: "Matt Perkins" 

To: "Flash Coders List" 
Sent: Monday, December 20, 2010 3:12 PM
Subject: [Flashcoders] Automagically create an interface from a given AS3class?



So this is me being extremely lazy - is there a tool or a feature of a tool
that'll automatically create an interface from a class file?

I'm learning DI and implementing it in a framework that I have and to
"properly" follow DI principals, I need to make heavy use of interfaces as
types rather than the classes. I have a good list of interfaces to create.

Thanks!

Matt Perkins
-
http://www.nudoru.com
http://udon.nudoru.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] (From a PDF?) Getting bitmap data

2010-12-03 Thread Peter Ginneberge

Not sure what you mean with swc only. All sources can be found here:

http://code.google.com/p/purepdf/source/browse/
http://code.google.com/p/fxpdf/source/browse/
http://code.google.com/p/pavo/source/browse/


- Original Message - 
From: 

To: 
Sent: Friday, December 03, 2010 7:07 PM
Subject: [Flashcoders] (From a PDF?) Getting bitmap data



Thank you everyone, for the thoughts on how to pull images from PDFs.

I did find some other tools (just to mention them) but they are .swc-only; no source, and the customer needs to at least have the 
source available.


They are:

fxpdf
http://code.google.com/p/fxpdf/downloads/list
.swc-only
.write-only?

pavo
http://code.google.com/p/pavo/
. questionabe docs
. swc-only

purePDF
http://code.google.com/p/purepdf/downloads/detail?name=purePDF_0.74.20100527.zip&can=2&q=
. reads pdf from .swf...
 .swc-only
  http://code.google.com/u/@VBhTQ1BRDxRGXQJ5/


I’ll see what I can come up with AS3 –wise.

thanks

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


Re: [Flashcoders] Fwd: Looking for Flash/Web Designer! Great

2010-09-07 Thread Peter B
Nice to see such a measured, mature response from the president of an LCC.
If the crappy salary didn't warn people off the job, this kind of response
certainly should.




On 8 September 2010 12:05,  wrote:

> Such drama queens. Grow up.
> Sent from my Verizon Wireless BlackBerry
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Photo-realistic 3d in as3

2010-08-16 Thread Peter B
On 17 August 2010 07:31, Karl DeSaulniers  wrote:

> I believe it will let you, in swift, create an interactive animation
> utilizing the vectors
> of your polys and integrate AS code to control it,
>
>
Swift is just generating the polygon ,odel and textures. In order to add
interactivity you're still going to need a 3D engine like Papervision. imho
if you're going to take this approach you'd be better to use a 'real' 3D
modeller, asJason has suggested.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Smokescreen: Flash without the plugin

2010-06-01 Thread Peter B
"Smokescreen currently supports a sizeable subset of Flash 8 animation
capabilities, streaming sound, sound effects, some input and basic
ActionScript"

On 2 June 2010 03:40, Matt S.  wrote:

> Interesting. Does it only work with timeliner flash? Or can it handle
> something entirely code-built?
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] another flash without flash library

2010-06-01 Thread Peter B
Shame it doesn't supporet anu of the really ineteresting stuff Flash does
though.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Hello Everyone!!

2010-04-20 Thread Peter B
>
> if you just moved from a third-world country and promised the client a huge
> ecommerce flash site and usually hire russian flash devs but don't have any
> contacts now and don't have money for a book then i would advise against
> posting.
>
>
>
heh heh
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] import documents into flash

2010-02-15 Thread Peter B
"just to show what a great tool director used to be..."

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


Re: [Flashcoders] [beno's eyes only] I Must Be Asking This Question Wrong...

2010-02-05 Thread Peter B
+1
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-03 Thread Peter B
> Could you kindly translate that into Mac lingo?
>


Seriously? You couldn't even look up / work out that for yourself? Hmm
- not a good SNR.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] WIRED hates Flash

2010-02-02 Thread Peter B
Now this is interesting too. Wired, through their 'Top Stories' feed (
http://feeds.wired.com/wired/index ) say this:

"A Swiss startup has created a sleek video player that looks like
Flash Player and works in multiple browsers, but uses only HTML5 and
web standards."

They then link to a Webmonkey article:

http://www.webmonkey.com/blog/SublimeVideo_Hopes_to_Simplify_HTML5_Web_Video

Which give s a pretty fair round-up of the current issues with video
in HTML5. But still,
Wired are singing the praises of this barely viable solution. So yes,
Wired do seem to hate Flash...

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


Re: [Flashcoders] Any suggestion for texting

2010-01-28 Thread Peter B
Or more generically, Google for: http to sms
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Browser levels??

2010-01-26 Thread Peter B
>> Karl DeSaulniers wrote:

>>> Is there a JSFL out there that would do that? Flash Javascript?

Hey Karl. For the record JSFL is for performing tasks (think sorting
library items, building / extending tools etc etc) inside the Flash
authoring environment rather than in the FlashPlayer.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Colour Matching

2009-12-16 Thread Peter B
You say it's more noticeable on one Mac than another, which is
interesting. Are both displays set to the same colour depth? It's
common to see this type of issue when viewing in 16 bit. Do you have a
URL we could take a look at?

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


Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-12 Thread Peter B
To be fair Karl, just because it played well well for *you* doesn't
mean it's a good idea, and doesn't mean it will play well for
others...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Peter B
Spent some time looking into this years ago. Though it is possible to
do (as Karl suggested, you can store the SWF somewhere on-line and
embed via an HTML email), I would suggest it's not wise to.

The main consideration for me is that I *hate* being forced to
download something in my email, no matter how great it may be. Give
your users the choice as to whether they want to see the content or
not. Also, some email clients automatically block the display of
images - I'm assuming SWFs will be the same? What if the user has
downloaded their emails and is viewing then offline? What if they
don;t have FlashPlayer (or the right version of it) installed...So
many variables, so much potential to alienate your target market.
Better to provide a link and leave it to your user's discretion...imho

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


Re: [Flashcoders] Drag and drop from desktop to browser

2009-11-03 Thread Peter B
You can drag images from your local drive to Google Wave already -
does need gears too though...

2009/10/31 Pedro Kostelec :
> Hm...as far as i know they are trying to integrate the drag and drop
> technology in Google Wave, but i think it is only a feature of HTML5.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] monitor outgoing http requests

2009-10-11 Thread Peter B
IMHO Wireshark is overkill for simple HTTP sniffing. You can use
Firebug extension for Firefox, and I also like Fiddler2:
http://www.fiddler2.com/fiddler2/

Charles is ace, but not free...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RE: Pricing a Freelance Project

2009-10-11 Thread Peter B
I'd say £40 to £50 p/h is entirely reasonable for this kind of freelance work.

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


Re: [Flashcoders] Searching all ActionScript in an FLA

2009-09-29 Thread Peter B
Did you try the Movie Explorer window? You can configure it to just
show movieclips with AS attached...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-27 Thread Peter B
I don't object to job postings here in general, or this one
specifically. I was amused by the redundancy of asking if it was OK to
post it at the same time as posting.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Job Fair - CIM (Comcast Interactive Media)

2009-08-26 Thread Peter B
> Hi, can I post this ad?

Is it too late to say 'no'?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FLV export - size(w, h) vs data rate

2009-08-25 Thread Peter B
I did a lot of work around optimising videos about a year and a half
back. For my money, I'd say you get better results by encoding at a
smaller resolution and scaling up i Flash than by trying to squeeze
the data rate down, so I'd say No.2.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.

2009-08-18 Thread Peter B
2009/8/19 Leandro Ferreira :
> A good CODER must go beyond a good CODE be fast when needed. That's MHO, and
> It gets clear when we compare the number of lines we use to express
> ourselves.
>

Indeed. And you unintentionally help to illustrate the point. Paul's
post, though long, is clear in what it communicates. Your post is
brief, but I am finding it difficult to extract any meaning from it.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Sending 2 HTTP requests from a webchat-like app

2009-08-18 Thread Peter B
> Yes, a socket server would make my app easier to program,
> but it would also make it unusable for too many users
> (those behind corporate firewalls).


Does this help wrt tunnelling through firewalls? Seems to allow a
socket to be established on Port 80

http://www.blog.lessrain.com/as3-java-socket-connections-to-ports-below-1024/#comments
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] mac vs pc

2009-08-10 Thread peter

Allandt,

99% Mac, website development, Flash IDE and Flash/Flex Builder,  
(intermediate complex) dynamic websites (ARP/AFMPHP, SWX, PHP, MySQL),  
testing in mainstream browser(s).


1% PC, mainly testing in IE.

Additional 2 cents: I'll also do 95% of teaching software engineering  
on a Mac. Unfortunately 3D programming (currently VRML although  
Papervision3d is in the picture) and streaming media are the  
bottlenecks.


Would be nice to know some results of your research. Thanks.

Succes,
Peter

Citeren "Allandt Bik-Elliott (Receptacle)" :


[...]
So the question I'm really getting to is, how many people use osX
(using windows in boot camp doesn't count) and how many are using
windows for their main work machine and what kind of software setup are
you using?

thanks for your time guys
Allandt



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


Re: [Flashcoders] Seek bar not working with FLVPlayback Component?

2009-07-30 Thread Peter B
Sure Barry, that's the first type of cue point described in the
article. You can't seek to an event cue point though.

Cheers Karl ;)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Seek bar not working with FLVPlayback Component?

2009-07-30 Thread Peter B
You can't. Setting cue points for time based navigation inserts a key
frame. You can only seek to key frames. It's all covered in that
article, specifically:

"Specify the type of cue point you want to embed. You can embed either
a navigation or event cue point.

 * Event cue points are used to trigger ActionScript methods when the
cue point is reached, and let you synchronize the video playback to
other events within the Flash presentation.


 * Navigation cue points are used for navigation and seeking, and to
trigger ActionScript methods when the cue point is reached. Embedding
a navigation cue point inserts a keyframe at that point in the video
clip to enable viewers to seek to that point in the video.

Note: Adding additional keyframes can lower the overall quality of a
video clip. For this reason, navigation cue points should only be used
when users will need to seek to a particular point within the video."
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Seek bar not working with FLVPlayback Component?

2009-07-30 Thread Peter B
>From the article Sam links to:

"Navigation cue points are used for navigation and seeking, and to
trigger ActionScript methods when the cue point is reached. Embedding
a navigation cue point inserts a keyframe at that point in the video
clip to enable viewers to seek to that point in the video."

As I said, it's an issue with keyframes, not cue points.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Seek bar not working with FLVPlayback Component?

2009-07-29 Thread Peter B
>From what I can see TS the issue isn't cue points but keyframes. As
in, there are none in your FLV except one at the start and one at the
end. FlashPlayer can only seek to an actual key frame, hence the
behaviour you are seeing. AFAIK, the only solution to the issue is to
re-encode the video, this time setting your encode settings to create
more keyframes. When I've done work encoding video that needed
reasonably accurate seeking, I explicitly set keyframes at half second
intervals. Makes the file a little larger but...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reach a single attribute value on a XML node with xpath AS3

2009-06-26 Thread Peter Hall
Hi Davide,
I assume the asterisks are just for our benefit. And I think the path
you are looking for is "root/ancestor/someElement/@someAttribute".

You need the / before the @.


Peter


On Fri, Jun 26, 2009 at 6:17 PM, Dave Watts wrote:
>> I'm parsing a huge xml file, and i'm using xpath (as3 version) with
>> memorphic package (http://code.google.com/p/xpath-as3/)
>> but I cannot reach a single attribute value on a node:
>> ex:
>> 
>> ...
>> ...
>> 
>> and i need this value to build a menu.
>> I'm trying to reach this value with this path:
>> "root/ancestor/someelem...@*someattribute*"
>>
>> But i get this error:
>> "/Error: Some parsing went awry
>>   at memorphic.parser::SyntaxTree/verifyTree()
>>   at memorphic.xpath.parser::XPathParser/parseXPath()
>>   at memorphic.xpath::XPathQuery/set path()
>>   at memorphic.xpath::XPathQuery$iinit()/"
>>
>> Does anyone fixed this issue?
>>
>> Thanks for your answers (and sorry for my english)!
>
> There's no need to apologize for your English, it's certainly better
> than my Italian (or anything else).
>
> Are there actually asterisks (*) around the attribute and its value?
> While you can use asterisks within an attribute name, you can't have
> one after the quoted value. I'm also not sure if you can use an
> asterisk for the first character of the attribute name.
>
> 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] How can i asign an action to a loaded swf from the mainTimeLine?

2009-05-26 Thread Peter B
Are you perhaps trying to assign the event listener before the SWF has
loaded fully?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Batch wrapping a bunch of FLV files in SWFs

2009-05-01 Thread Peter B
The accuracy is pretty much dependant on the density of keyframes in
your FLV, as you can only seek to a timecode with a keyframe. This
though is absolutely accurate.

If your FLVs are of any lenght, and if they have audio, you are likely
to run into difficulties wrapping them in a SWF.

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


Re: [Flashcoders] flickr api as3

2009-04-19 Thread Peter B
*Steven
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flickr api as3

2009-04-19 Thread Peter B
Ha! Know what's crazy there? Your post Stephen, and the OP are now the
number 3 & 4 results from that search...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea? SUMMARIZED

2009-04-01 Thread Peter vdr Post


First of all: thanks to all who replied! This is a great list.

Various solutions were proposed, from overlays (graphics, movieclip  
or invisible button) to TextField with scrollbar.
However, the best solution in my case, was from Muzak, with his  
specialized TextArea class. Man, thanks, you saved my day:  text  
cannot be copied and yet, URL's embedded in the text, can still be  
activated.



Sample code and Muzaks'  class MyTextArea are provided to whom it may  
need:

(hopefully still readable despite the format of the list)

Peter van der Post

// class MyTextArea - a read-only TextArea:
package {

import fl.controls.TextArea;
import flash.text.TextFieldType;

public class MyTextArea extends TextArea {

private var _selectable:Boolean = true;

public function MyTextArea(){
super();
}

override protected function updateTextFieldType():void {
			textField.type = (enabled && _editable) ? TextFieldType.INPUT :  
TextFieldType.DYNAMIC;

textField.selectable = _selectable;
textField.wordWrap = _wordWrap;
textField.multiline = true;
}

public function get selectable():Boolean {
  return _selectable;
}

public function set selectable(value:Boolean):void {
  _selectable = value;
  super.textField.selectable = value;
  updateTextFieldType()
}

} // endof class
} // endof package


// Document class for a TestTextArea.fla - Read-Only TextArea
// FLA-file does contain TextArea component in Library, but none at  
the stage


package {
import flash.display.Sprite;

public class TestTextArea extends Sprite {
public var details2_ta:MyTextArea;
public function TestTextArea () {
super ();
details2_ta = new MyTextArea();
details2_ta.editable = false;
details2_ta.selectable = false; // this does the trick!
details2_ta.width = 200;
details2_ta.height = 200;
details2_ta.x = 200;
details2_ta.y = 200;
addChild (details2_ta);
showSample2 ();
}

private function showSample2 () {
var blueColorFont:String = "";
var BREAK:String = "";
var endFont:String = "";
			var msg:String = "Lorem ipsum dolor sit amet, consectetuer  
adipiscing elit.";

var webURL:String = "www.macnn.com/";
			var details:String = " " +  
blueColorFont + webURL + endFont + "";

details2_ta.htmlText = msg + BREAK + details;
}
}
}


On Fri, Mar 27, 2009 at 4:38 PM,   wrote:


I'll have to prevent users to copy text from a TextArea. In Flex I  
saw you
do that bij setting a selectable attribute of the  
mx.controls.TextArea to

false.

However, this seems not possible with the fl.controls.TextArea,  
which is

used in Flash CS4 / AS3.

Does someone has a tip or hint.
Thanks.

PS. setting editable of the TextArea to false doesn't help, and  
setting the
enabled attribute of the TextArea to false gives a disabled look  
and is

not the intention.

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


Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread peter

Taka and Anthony,

Wooohaa, very nice working around which I will try definitely. Thanks.

Peter

Citeren Taka Kojima :

public function DistributorsForm () :void{
[...]
   var details_ta_overlay:Sprite = new Sprite();

[ rest skipped ...]


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


Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread peter
I quickly made a standalone example which shows that the preferred way  
does not work (text can be copied):


package prototypes {

import flash.display.Sprite;
import fl.controls.TextArea;

public class TestTextArea extends Sprite {
public var details_ta:TextArea;

public function TestTextArea() {
super();
details_ta.editable=false;
details_ta.textField.selectable=false;
//
showSample();
}

private function showSample() {
			var msg:String = "Lorem ipsum dolor sit amet, consectetuer  
adipiscing elit.";

details_ta.htmlText = msg;
}

}
}

I put above code in an actionscript file (TestTextArea.as) which is  
the Document file of a Flash FLA-file. On the stage is a TextArea  
component instance from the Component panel, and the instance has the  
name details_ta. No additional formatting of changes to attributes of  
component is done.


Test movie, and copy the text from the textarea :(


Sorry for the extended code of previous mail. It was easier to come up  
with above sample than I thought.


Peter


Citeren pe...@pepo.nl:


Joel, Ian,

I agree with you, because I thought I was doing it "by the book" (=AS3
Reference).

Thanks, you are willing to look at the code. Code is included however
it is extracted from the source files and not a working standalone
example. [...]






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


Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread peter

Joel, Ian,

I agree with you, because I thought I was doing it "by the book" (=AS3  
Reference).


Thanks, you are willing to look at the code. Code is included however  
it is extracted from the source files and not a working standalone  
example.


I extracted everything what is done with the details_ta  
TextArea-instance. The details_ta is on the stage before the code is  
exectued. I compile all code in Flex Builder 3 in a SWC-file which I  
link in as Library in Flash FLA (Flash CS4), if that matters.


Text in the details_ta, when Test movie is executed, can be selected  
and copied. I'll hope the code can help.


Code:

package {

  import fl.controls.TextArea;
  import flash.display.*;
  import flash.events.*;
  import flash.text.TextField;

  public class DistributorsForm extends ModuleTemplate  {
 public var details_ta:TextArea; // for displaying the list
 public function DistributorsForm () :void {
// sets styles ... set size =14 instead of default 16...
StyleFlair.snapOnTextArea(details_ta, {size:14});
details_ta.textField.selectable = false;
 }

 // MUTATOR for the information GUI widget...
 public function set detailsWidget(s:String):void {
details_ta.htmlText = s;
 };

private function showDetails(distributors:Array) : void {
var s:String = "";
for each (var d:Distributor in distributors) {
   s = s.concat( htmlFormat(d), "");
}
detailsWidget = s; // display the data
}

private function htmlFormat(d:Distributor):String {
  var blueColorFont:String = "";
  var BREAK:String = "";
  var endFont:String = "";

  // format details ...
  var details:String;
details  = "" + d.companyname + "";
details += d.contactperson + BREAK;
details += d.address + BREAK;
details += d.city + BREAK;
details += d.telephone + BREAK;
return details;
}

   } // endof class
} // endof package



class StyleFlair {

   public static function snapOnTextArea(ta:TextArea,
  formatObj:Object=null):void {
   // set default format values, or have them override with formatObj
   var size:uint = 16;
var color:String = "0xFF";
if (formatObj != null) {
   if (formatObj.size != null) size = formatObj.size;
   if (formatObj.color != null) color = formatObj.color;
   if (formatObj.font != null) font = formatObj.font;
}
ta.editable = false;
ta.enabled  = false;
ta.setStyle("marginRight", 1);
ta.setStyle("marginLeft", 1);
var format:TextFormat = new TextFormat();
format.font = font ;
format.color = color;
format.size = size;
ta.setStyle("textFormat", format);
}
}

class moduleTemplate is not shown but does do anything with  
details_ta, or formatting components.


Peter

Citeren Joel Stransky :


Somehow I doubt that.
How about posting your code so there's no confusion.

On Fri, Mar 27, 2009 at 3:36 PM,  wrote:


Joel,

Thanks, however that didn't work.
(sorry if I was not clear in my response on Ian's hint, because what you
wrote was exactly what I did)

Still no joy ...

Peter

Citeren Joel Stransky :


 Target the TextArea's TextField


details_ta.textField.selectable = false;

On Fri, Mar 27, 2009 at 2:39 PM,  wrote:

 Ian,


thanks for replying. Unfortunately noop.

I use the htmlText property of the TextArea instance instead of the text
prioperty to display text (such as details_ta.htmlText = "text
sample"; and details_ta is an TextArea instance on the stage).

Could that something have to do with it?

Peter

Citeren Ian Thomas :


 Try:


 textArea.textField.selectable=false;

HTH,
 Ian

On Fri, Mar 27, 2009 at 4:38 PM,   wrote:



I'll have to prevent users to copy text from a TextArea. In Flex I saw
you
do that bij setting a selectable attribute of the mx.controls.TextArea
to
false.

However, this seems not possible with the fl.controls.TextArea, which
is
used in Flash CS4 / AS3.

Does someone has a tip or hint.
Thanks.

PS. setting editable of the TextArea to false doesn't help, and setting
the
enabled attribute of the TextArea to false gives a disabled look and is
not
the intention.

Peter van der Post



___
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

Re: [Flashcoders] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread peter

Joel,

Thanks, however that didn't work.
(sorry if I was not clear in my response on Ian's hint, because what  
you wrote was exactly what I did)


Still no joy ...

Peter

Citeren Joel Stransky :


Target the TextArea's TextField

details_ta.textField.selectable = false;

On Fri, Mar 27, 2009 at 2:39 PM,  wrote:


Ian,

thanks for replying. Unfortunately noop.

I use the htmlText property of the TextArea instance instead of the text
prioperty to display text (such as details_ta.htmlText = "text
sample"; and details_ta is an TextArea instance on the stage).

Could that something have to do with it?

Peter

Citeren Ian Thomas :


 Try:

 textArea.textField.selectable=false;

HTH,
  Ian

On Fri, Mar 27, 2009 at 4:38 PM,   wrote:



I'll have to prevent users to copy text from a TextArea. In Flex I saw
you
do that bij setting a selectable attribute of the mx.controls.TextArea to
false.

However, this seems not possible with the fl.controls.TextArea, which is
used in Flash CS4 / AS3.

Does someone has a tip or hint.
Thanks.

PS. setting editable of the TextArea to false doesn't help, and setting
the
enabled attribute of the TextArea to false gives a disabled look and is
not
the intention.

Peter van der Post



___
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





--
--Joel Stransky
stranskydesign.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] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread peter

Ian,

thanks for replying. Unfortunately noop.

I use the htmlText property of the TextArea instance instead of the  
text prioperty to display text (such as details_ta.htmlText = "text  
sample"; and details_ta is an TextArea instance on the stage).


Could that something have to do with it?

Peter

Citeren Ian Thomas :


Try:
  textArea.textField.selectable=false;

HTH,
   Ian

On Fri, Mar 27, 2009 at 4:38 PM,   wrote:


I'll have to prevent users to copy text from a TextArea. In Flex I saw you
do that bij setting a selectable attribute of the mx.controls.TextArea to
false.

However, this seems not possible with the fl.controls.TextArea, which is
used in Flash CS4 / AS3.

Does someone has a tip or hint.
Thanks.

PS. setting editable of the TextArea to false doesn't help, and setting the
enabled attribute of the TextArea to false gives a disabled look and is not
the intention.

Peter van der Post



___
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] ?: how to prevent users to copy text from a TextArea?

2009-03-27 Thread peter


I'll have to prevent users to copy text from a TextArea. In Flex I saw  
you do that bij setting a selectable attribute of the  
mx.controls.TextArea to false.


However, this seems not possible with the fl.controls.TextArea, which  
is used in Flash CS4 / AS3.


Does someone has a tip or hint.
Thanks.

PS. setting editable of the TextArea to false doesn't help, and  
setting the enabled attribute of the TextArea to false gives a  
disabled look and is not the intention.


Peter van der Post



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


[Flashcoders] Replacing Colors?

2009-01-13 Thread peter ginsberg
Is there any way to do color swaps in AS3?

What I'm looking to do is:
Take a given DisplayObject (MovieClip or Sprite to be specific), look for
particular colors (specific RGB values) and replace those colors with other
specific RGB values, all without touching any other colors.

Sort of like something you would do with an indexed color image.

Currently I'm doing this in a far more tedious way (making each colored area
I want to swap into a named movie clip and iterating through all the
children then tossing a color transform on the clips).

I thought maybe I could work soemthing out with a ColorMatrixFilter, but it
doesn't seem like it will work.   Maybe dealing with the whole image as bit
map data?  Although would that be a performance concern?

Thanks in advance for any advice!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Peter Hall
Oh yes sorry, it's Flex.

Peter


On Wed, Nov 12, 2008 at 1:26 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote:
> Did not find it in Docs, so googled it - and it's a Flex thing no?...
>
> Using flash CS3...
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall
> Sent: 12 November 2008 13:01
> To: Flash Coders List
> Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
>
> Are you using CursorManager or adding the cursor in some other way?
>
> Peter
>
>
> On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote:
>> Hello All -
>>
>> I am a little stumped by this one.
>>
>> I am using a custom cursor ( added to the stage ),
>> one of my loaded SWF's has a drop down comboBox -
>>
>> The problem:
>>
>> The List gets added to the stage and goes over the custom mouse cursor.
>> Do you guys know of any fixes for this one?
>>
>>
>> Regards
>>
>>
>> Karim Beyrouti
>>
>> ___
>> 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] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Peter Hall
Are you using CursorManager or adding the cursor in some other way?

Peter


On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote:
> Hello All -
>
> I am a little stumped by this one.
>
> I am using a custom cursor ( added to the stage ),
> one of my loaded SWF's has a drop down comboBox -
>
> The problem:
>
> The List gets added to the stage and goes over the custom mouse cursor.
> Do you guys know of any fixes for this one?
>
>
> Regards
>
>
> Karim Beyrouti
>
> ___
> 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] What is the ActionScript equiv. to HTML ?

2008-11-01 Thread Peter Witham
Hi,
  Can you not just put a stop(); on the last frame to stop it from starting
over?

Regards,

*Peter Witham*

http://www.evolutiondata.com


On Sat, Nov 1, 2008 at 2:05 PM, William Adams <[EMAIL PROTECTED]>wrote:

> I'm loading a Flash file in a MovieClip and I want it to play once and then
> stop, but it keeps looping. Endlessly. How can it be set to play once and
> then stop / not loop?
>
> Thanks!
>
> William
>
> --
> William Adams
> senior graphic designer
> Fry Communications
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Peter Witham
http://www.evolutiondata.com
Internet and Multimedia developer
Certified Flash Designer.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] attachMovie() with non-library-symbols

2008-10-23 Thread Peter Hall
The code on my old blog works for content published with Flash
authoring. However, it works because Flash inserts the export tags in
the swf automatically. If you have a swf that has a working
attachMovie, but no export tags, then it must be attaching the symbol
from another swf. An RSL perhaps?

Peter


On Thu, Oct 23, 2008 at 9:31 AM, strk <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 23, 2008 at 10:01:37AM +0200, Matthias Dittgen wrote:
>
>> if you mean EXPORT tags in the swf bytecode,
>> I am not aware of the tags that are written by the compiler when using
>> the code explained by Peter Joel, but I could imagine, that when using
>> MTASC for compiling only DOACTION tags are written and no EXPORT tags.
>> But I usually don't read SWF bytecode after comiling. ;)
>
> I've seen a few compilers automatically adding non-action tags as
> a side effect of AS interpretation...
>
>> > My problem with the dmplayer.swf above is that it ends up
>> > looking for symbols like 'video_frame':
>> >  ERROR: No export symbol video_frame found in movie dmplayer.swf.
>> > Which do NOT appear in any EXPORT tag.
>> How do you know?
>> Where does the SWF come from?
>> Do you do some kind of reverse engineering?
>
> The SWF comes from the web. I know by using an SWF dumper
> (listswf from Ming - libming.org).
>
>> >> This way you can attach classes that don't have a library symbol but
>> >> extend MovieClip.
>> > You mean it is possible to add entries to the 'symbols library'
>> > trough DOACTION blocks only ? I mean, not something automatically
>> > done by the AS *compiler* but something done by the actual VM/player ?
>> I think so, but I am not sure about the bytecode/tags written by the
>> compiler interpreting the code.
>
> Could you send me (a private attachment if the list doesn't let you) a small
> SWF produced as a proof of concept ? If it contains no EXPORT tags
> but has a working attachMovie('symbol',..) I'll go on with the research.
>
> This is for eventual compatibility fixes in Gnash (The GNU SWF Player).
>
> --strk;
> ___
> 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] SWC catalog XML file format documentation?

2008-10-06 Thread Peter Nicolai
Hi,

There are a couple of posts on this list from April discussing using
nochump's ziplib to open & read SWC files. I'm looking to do something
along those lines. Is anyone aware of any documentation from Adobe on
the SWC catalog's XML file format? thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Sound/Music

2008-08-25 Thread Peter B
I like this one:

http://www.sound-effects-library.com/

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


Re: [Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread peter ginsberg
On Wed, Aug 13, 2008 at 10:04 AM, Ashim D'Silva <[EMAIL PROTECTED]>wrote:

> Hey, thanks for all the feedback.
> I'd like to think we've tested on a large enough amount of machines to
> eliminate differences in power, and I hate to say it but PC's are
> performing
> better than Macs.
> Any more information would be highly appreciated. Is this a problem more
> people are facing though? It really can't be that rare, can it?
>


Flash has been slower on Macs as long as I have been developing for it (8
years), just a simple fact of life.  It's got nothing to do with the
relative merits of the platforms, just something to do with the way Flash
was developed.

That said, things have improved considerably in recent versions of the Flash
Player, believe it or not the difference used to be much more dramatic.

It's hard to say what might be causing your particular issue without seeing
the code.  I will say that the ending animation seemed to run slow on my PC
as well, and I don't see anything going on on the screen to justify that
performance hit.  Makes me think there's something in your code that is more
intensive than it needs to be, regardless of platform.  Not very helpful
advice, I know, but I'd consider trying to approach this as a general
performance issue not necessarily a platform specific one.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Flash - cross-platform? really?

2008-08-13 Thread Peter B
FYI the massive GIF of the guy falling onto the goat at the end seems
to be a massive performance bottleneck...

Also, you may find some useful information here:

http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/

HTH

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


Re: [Flashcoders] Does anyone want to sell Zinc 2.5?

2008-08-08 Thread Peter B
> I here that the 3.0 version is unreliable.

Well, it has that in common with 1.0, 2.0 and 2.5 then...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] CS3: "Test Movie" vs. published swf (or, how to update test player?)

2008-07-20 Thread peter ginsberg
This isn't precisely related to AS3, but it's definitely something in my
code in particular causing this issue.  I'm working on an application (a
game) that contains some pretty complicated AS3 code.  It's a CS3 project,
with a main .fla file and several sub .flas with their own classes.  I don't
think the details are too important to my question, at least not right now.

Here's what happened:
-Publish the FLA into a SWF, open swf in standalone player or browser --
works fine, good frame rate, etc.
-Built the FLA using "Test Movie", the swf is extremely slow to load, frame
rate is terrible, and the application eventually crashes and brings flash
CS3 down with it.

I tried another system I had CS3 installed on and got a similar effect, only
this time the game wouldn't even start.  It would choke on one of the loaded
swfs.  On this system as well, hitting publish resulted in a perfectly swell
working swf.

I've noticed some differences in the past, but this is pretty over the top.

My best theory so far is that this is a version problem.  On the first
computer (winXP), I noticed the version of Flash Player installed as a
standalone and browser plugin was 9,0,124,0 BUT the version in CS3 Test
Movie was 9.0.45.0.  On the second computer (Vista64), also 9,0,124,0 in the
browser, but the version CS3 Test Movie was 9.0.115.0.

Operating on this theory, I grabbed the debug players from:
http://www.adobe.com/support/flashplayer/downloads.html then removed flash
player using the uninstall utility.  I installed the new debug players
(including copying from the Debug folder of the download into my
\Adobe\Adobe Flash CS3\Players folder.  Rebooted.  I tried this process
several times, but:
trace(flash.system.Capabilities.version);
Continues to report "WIN 9,0,115,0" as the version when I test movie.

So, my questions:
1. How do I really update the player flash CS3 uses with test movie?
2. Is there anything else different about the player used in test movie that
I should be considering when figuring out the problem here?
3. Assuming I have done something in my code that caused a bug which was
fixed between flash player microversions, does anyone have any ideas where
to start looking to pinpoint exactly what the root cause is?

Apologies for the length of my question, I'm trying to anticipate what
people will want to know.  Thanks in advance.

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


Re: [Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread peter ginsberg
On Thu, Jul 3, 2008 at 12:07 PM, Allandt Bik-Elliott (Receptacle) <
[EMAIL PROTECTED]> wrote:

> are the masks rendered as bitmaps?
>

Yay, thank you!

I'm not sure why I didn't try this before, but you're right -- if I set
cacheAsBitmap to true on the mask and the masked clip, the issue disappears.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Strange Masking Bug in Flash

2008-07-03 Thread peter ginsberg
Hoping to get some help with a bizarre bug that has been haunting
development of the current game we're working on.

The situation is this:
We have character animations where we swap in dynamic clothing.  We
developed a system where we add patterns dynamically to the clothing by
doing the following with code:
1. Dupe the movieclip/sprite which is going to get a pattern
2. Use the dupe as a mask on a big square sprite that has the graphic
pattern in it.
3. Put the resulting masked element as a MULTIPLY overlay on the underlying
original clip.

It works great in most cases EXCEPT for this bizarre issue we keep running
into where in some clips the mask is partially broken -- seemingly random
parts of the movieclip are not masked, or in other parts weird extra lines
appear, or even big blocks.

*Sometimes* you can fix this by going into the movieclip and grouping
ungrouped graphical elements.  It gets really messed up if there are more
complicated graphical elements in there (like a gradient).  In these cases,
even attempts to group elements, or make them movieclips, or whatever,
doesn't seem to help much.

I was able to create a super simple demonstration of this bug, and posted
here:
http://www.thup.com/maskbug.zip

Surprisingly, I was able to replicate the error without any code, just
using  CS3.   The movieclips on the left and right are both the same, but
the one on the right has the lines and fills inside the movieclip groups
*separately*.  You'll note both of these look just fine in preview, but when
you build the swf, the one on the left has a big block of the masked object
showing for no reason.

Someone is probably going to tell me to just group items as I've done in
this example, but like I said above that doesn't always work.  For some
elements nothing works at all.

This is sort of a bug in flash, but I can't have been the first person to
notice it.  Does anyone have any idea how we caused it?  Is it just that
flash can only support masks that are simple flat color fills?

If it's the latter, I have a follow up question, can anyone think of a
clever way to take the movieclips we are using and convert them into
monotone fills of the same exact dimensions (some kind of bitmapdata
conversion maybe?).

Thanks in advance for any advice!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash Player security hole

2008-05-28 Thread Peter B
> you are only vulnerable if your site is hackable

No no - you are vulnerable if you *visit* a site that has been hacked.

2008/5/28 Gerrit Grobbelaar <[EMAIL PROTECTED]>:
> The UPDATE section here:
> http://www.securityfocus.com/bid/29386/exploit
>
> states that website hacks let the pages forward to the malicious Flash files.
>
> So unless you haven't compiled a malicious SWF yourself (which I'm not up to
> speed yet how to do) you are only vulnerable if your site is hackable,
> forcing code onto your site, e.g. via SQL injection, to redirect to malicious
> SWF files hosted elsewhere.
>
> Thanks,
> Gerrit
>
>> -Original Message-
>> From: "Bob Wohl" <[EMAIL PROTECTED]>
>> Sent: Wednesday 28 May 2008 00:22
>> To: "Flash Coders List" 
>> CC:
>> Subject: Re: [Flashcoders] Flash Player security hole
>>
>>
>> egads! My apologies, I quickly skimmed over it and figured it was the same
>> as last month.
>>
>>
>> B.
>>
>> On Tue, May 27, 2008 at 3:09 PM, Merrill, Jason <
>>
>> [EMAIL PROTECTED]> wrote:
>> > >>have them upgrade to 9.0.124.
>> >
>> > Bob, the article states,  "the flaw affects both the recently released
>> > Flash Player version 9.0.124 .0 and version 9.0.115.0"
>> >
>> > Jason Merrill
>> > Bank of America
>> > Global Technology & Operations & Global Risk L&LD
>> > eTools & Multimedia
>> >
>> > Join the Bank of America Flash Platform Developer Community
>> >
>> > Are you a Bank of America associate interested in innovative learning
>> > ideas and technologies?
>> > Check out our internal  GT&O Innovative Learning Blog & subscribe.
>> >
>> >
>> > ___
>> > 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] XPath

2008-04-30 Thread Peter Hall
Well, anyway, thanks for pointing this out because I think it's a bug
and the same bug is present in Xpath-as3.

The spec is quite confusing because it defines 4 different node types:
"node", "processing-instruction", "comment" and "text". Attribute is
actually of type "node", but  you have to read between the lines to
get that, especially as attributes have special treatment elsewhere.

Peter


On Wed, Apr 30, 2008 at 12:23 PM, Glen Pike <[EMAIL PROTECTED]> wrote:
> But hey, it works now right and I won't be upgrading XFactorStudio for this
> site, so all I do is learn a small bad habit, which I will remember for
> future stuff anyway :)
>
>
>
>  Peter Hall wrote:
>
> > On Tue, Apr 29, 2008 at 7:11 PM, Peter Hall <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > > In XPath 1.0, an attribute is an axis, not a node, and so cannot be
> > >  used as a context node. (ie the self axis that you are attempting to
> > >  access with "." does not exist). I could be wrong on this,
> > >
> > >
> >
> > Actually, I might be talking crap about that. It was a year ago that I
> > worked on the library and, well, you know... I'm looking at the spec
> > again now and it's quite confusing, so I'm still not completely sure.
> >
> > Peter
> >
> >
> >
> >
> > >  I wonder if the test site that you mention is completely compliant.
> > >  For example certain XPath 2.0 features such as "a/(b | c)" work in
> > >  there, but are not valid in XPath 1.0, so it's possible that they
> > >  support more than is required.
> > >
> > >  Anyway, the following will work instead:
> > >
> > >  //*[contains(@file, '.swf')]/@file
> > >
> > >
> > >  Peter
> > >
> > >
> > >
> > >
> > >  On Tue, Apr 29, 2008 at 6:06 PM, Glen Pike <[EMAIL PROTECTED]>
> wrote:
> > >  > Hmmm,
> > >  >
> > >  >Seems my original reply did not go to the list:
> > >  >
> > >  >Here is the email again, but don't worry too much about it, as I
> have a
> > >  > workaround...
> > >  >
> > >  >(The sitemap snippet is also missing some  file="activity1.swf"
> > >  > type="SWF"/> entries too - I can't just search for
> "//animation/@file[...]"
> > >  > )
> > >  >
> > >  >It's a bit of a sneaky one, but I have a workaround - I just
> wanted to
> > >  > flag it up...
> > >  >
> > >  >  Here is the email I sent back to Pete...
> > >  >
> > >  >  I am trying to find all nodes with an attribute called "file" which
> ends in
> > >  > (can't do this in XPath 1.0 so contains will have to do) ".swf".
> > >  >
> > >  >  Here is my XPath string;
> > >  >
> > >  >  //@file[contains(., ".swf")]
> > >  >
> > >  >  I am comparing the AS XPath implementation with this online testbed
> - which
> > >  > is also very useful :)
> > >  >
> > >  >  http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm
> > >  >
> > >  >  My workaround is to pull out all nodes with an attribute called
> file, then
> > >  > compare the values with ".swf" myself.
> > >  >
> > >  >  //@file
> > >  >
> > >  >  Below is a snippet of the XML I am using...
> > >  >
> > >  >  
> > >  >  
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  > > >  > file="geo-1-duffys-oceans.pdf"/>
> > >  > > >  > file="geo-2-duffys-coasts.pdf"/>
> > >  > > >  > file="geo-glossary.pdf"/>
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  >
> > >  > > >  > file="eng-1-home-for-duffy.pdf"/>
> > >  > > >  > file="eng-2-a-sad-story.pdf"/>
> > >  > > >  > file="eng-3-duffys-day.pdf"/>
> > >  > > >  > file="eng-4-duffy-rap.pdf"/>
> > >  > > >  > file="eng-glossary.pdf"/>
> > >  >
> > >  >  
> > >  >  
> > >  >
> > >  >
> > >  >  --
> > >  >
> > >  >  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
> >
> >
> >
> >
>
>  --
>
>
>  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


Re: [Flashcoders] XPath

2008-04-30 Thread Peter Hall
On Tue, Apr 29, 2008 at 7:11 PM, Peter Hall <[EMAIL PROTECTED]> wrote:
> In XPath 1.0, an attribute is an axis, not a node, and so cannot be
>  used as a context node. (ie the self axis that you are attempting to
>  access with "." does not exist). I could be wrong on this,

Actually, I might be talking crap about that. It was a year ago that I
worked on the library and, well, you know... I'm looking at the spec
again now and it's quite confusing, so I'm still not completely sure.

Peter


>
>  I wonder if the test site that you mention is completely compliant.
>  For example certain XPath 2.0 features such as "a/(b | c)" work in
>  there, but are not valid in XPath 1.0, so it's possible that they
>  support more than is required.
>
>  Anyway, the following will work instead:
>
>  //*[contains(@file, '.swf')]/@file
>
>
>  Peter
>
>
>
>
>  On Tue, Apr 29, 2008 at 6:06 PM, Glen Pike <[EMAIL PROTECTED]> wrote:
>  > Hmmm,
>  >
>  >Seems my original reply did not go to the list:
>  >
>  >Here is the email again, but don't worry too much about it, as I have a
>  > workaround...
>  >
>  >(The sitemap snippet is also missing some   > type="SWF"/> entries too - I can't just search for "//animation/@file[...]"
>  > )
>  >
>  >It's a bit of a sneaky one, but I have a workaround - I just wanted to
>  > flag it up...
>  >
>  >  Here is the email I sent back to Pete...
>  >
>  >  I am trying to find all nodes with an attribute called "file" which ends 
> in
>  > (can't do this in XPath 1.0 so contains will have to do) ".swf".
>  >
>  >  Here is my XPath string;
>  >
>  >  //@file[contains(., ".swf")]
>  >
>  >  I am comparing the AS XPath implementation with this online testbed - 
> which
>  > is also very useful :)
>  >
>  >  http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm
>  >
>  >  My workaround is to pull out all nodes with an attribute called file, then
>  > compare the values with ".swf" myself.
>  >
>  >  //@file
>  >
>  >  Below is a snippet of the XML I am using...
>  >
>  >  
>  >  
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >  > file="geo-1-duffys-oceans.pdf"/>
>  >  > file="geo-2-duffys-coasts.pdf"/>
>  >  > file="geo-glossary.pdf"/>
>  >
>  >
>  >
>  >
>  >
>  >
>  >  > file="eng-1-home-for-duffy.pdf"/>
>  >  > file="eng-2-a-sad-story.pdf"/>
>  >  > file="eng-3-duffys-day.pdf"/>
>  >  > file="eng-4-duffy-rap.pdf"/>
>  >  > file="eng-glossary.pdf"/>
>  >
>  >  
>  >  
>  >
>  >
>  >  --
>  >
>  >  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


Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
In XPath 1.0, an attribute is an axis, not a node, and so cannot be
used as a context node. (ie the self axis that you are attempting to
access with "." does not exist). I could be wrong on this, but I
implemented my own xpath library for AS3 from the w3c spec, without
referencing the xfactorstudio code, and it does not work either
(actually it throws an error).

I wonder if the test site that you mention is completely compliant.
For example certain XPath 2.0 features such as "a/(b | c)" work in
there, but are not valid in XPath 1.0, so it's possible that they
support more than is required.

Anyway, the following will work instead:

//*[contains(@file, '.swf')]/@file


Peter


On Tue, Apr 29, 2008 at 6:06 PM, Glen Pike <[EMAIL PROTECTED]> wrote:
> Hmmm,
>
>Seems my original reply did not go to the list:
>
>Here is the email again, but don't worry too much about it, as I have a
> workaround...
>
>(The sitemap snippet is also missing some  type="SWF"/> entries too - I can't just search for "//animation/@file[...]"
> )
>
>It's a bit of a sneaky one, but I have a workaround - I just wanted to
> flag it up...
>
>  Here is the email I sent back to Pete...
>
>  I am trying to find all nodes with an attribute called "file" which ends in
> (can't do this in XPath 1.0 so contains will have to do) ".swf".
>
>  Here is my XPath string;
>
>  //@file[contains(., ".swf")]
>
>  I am comparing the AS XPath implementation with this online testbed - which
> is also very useful :)
>
>  http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm
>
>  My workaround is to pull out all nodes with an attribute called file, then
> compare the values with ".swf" myself.
>
>  //@file
>
>  Below is a snippet of the XML I am using...
>
>  
>  
>
>
>
>
>
>
>
>
>
>
>
>
> file="geo-1-duffys-oceans.pdf"/>
> file="geo-2-duffys-coasts.pdf"/>
> file="geo-glossary.pdf"/>
>
>
>
>
>
>
> file="eng-1-home-for-duffy.pdf"/>
> file="eng-2-a-sad-story.pdf"/>
> file="eng-3-duffys-day.pdf"/>
> file="eng-4-duffy-rap.pdf"/>
> file="eng-glossary.pdf"/>
>
>  
>  
>
>
>  --
>
>  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


Re: [Flashcoders] XPath

2008-04-29 Thread Peter Hall
I was about to reply the same thing. But I don't think it is being
developed any more, so it might be a matter of fixing it yourself...

Peter


On Tue, Apr 29, 2008 at 4:52 PM, Pete Hotchkiss
<[EMAIL PROTECTED]> wrote:
> Bugs - interesting I've used this extensively for some time now and
>  never had a problem with it
>
>  What specifically are you seeing Glen ?
>
>  Pete
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash + Air

2008-04-25 Thread Peter B
The easiest way? Put the name of the SWF in the filename node of the
AIR application descriptor file. See
http://livedocs.adobe.com/air/1/devappshtml/help.html?content=HTMLHelloWorld_1.html
Note - this example is an HTML based 'hello world' but the information
about the application descriptor file applies to SWF based AIR apps
too

2008/4/24 Helmut Granda <[EMAIL PROTECTED]>:
> Does anyone knows the best way to embed Flash into an adobe Air application?
>  The standard way of doing it (using SWFObject, FUO, Adobe AC_R) doesnt seem
>  to work when testing the air applications. I have done some research but
>  nothing substantial that proves the best (or working) method.
>
>  TIA...
>  ___
>  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] Question about the AIR security model...

2008-04-24 Thread Peter B
Could sandbox bridging help here?

http://www.adobe.com/devnet/air/ajax/quickstart/sandbox_bridge.html

This example descibes loading local HTML files, but the same rules apply...

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


  1   2   3   >