Re: [flexcoders] AMFPHP Security?

2010-08-12 Thread Clark Stevenson
Thanks everyone for your help on this.

I was hoping for some ideas but now i have loads of them!

We will look into these replies in more detail in the coming days. Its
interesting to know the different approaches available.

Im starring this!

Clark.

On 11 August 2010 14:57, Imap.gmail.com jmitchell@gmail.com wrote:



 Use a token system. Accessing the entry page, preferably by the submission
 and validation of a username and password, have the server randomly generate
 a token and store it in php (or whatever your server side language is
 written in) session variables. For any other data request of any kind, query
 the session token and validate it prior to accepting any data or executing
 any other code. This, of course, should be in addition to any sql injection
 correction you do on data received (side note).

 Happy coding!

 Jm

 Sent from my iPad
  



Re: [flexcoders] Re: flash builder: how to create an as3 project WITHOUT flex sdk

2010-08-12 Thread Clark Stevenson
Yeah mate.

You need the Flex SDK but if you start an Actionscript project you have no
access to the MXML stuff.

I dont use Flex as a MXML language... ie the framework. It reminds me of
boring forms and banking applications. But AS3 on the other hand. You
can do anything you want.

Clark.

On 12 August 2010 20:27, Oleg Sivokon olegsivo...@gmail.com wrote:



 The definition for Sprite is in playerglobals.swc. However, you are asking
 wrong question. You cannot compile an AS3 project w/o SDK, or you would need
 at least an alternative compiler, and only one that exists is the one
 developed by SWFTools few years ago. But it's outdated now... so,
 technically, for AS3 Flex SDK is your only option. On the other hand, having
 other libraries in your path won't harm because they aren't embedded in your
 project, unless you explicitly embed them.
  



Re: [flexcoders] Re: AMFPHP Security?

2010-08-11 Thread Clark Stevenson
Thanks for your help guys.


Oleg:

I didnt really understand what you meant. The server cant know about your
highscroe locally? IE: you score 13 points. You need to tell the server that
you got 13 points. How could the server know otherwise that you got 13
points?

Valdhor:

I think this is something we approached first. When the HTML page is
generated, a hash is created which must be passed along with the username
for anything to happen. Its just for my brain, whats to stop me using
charles to see the hash, then calling highscore(userID, hash,
39894809489048840984). Its for this reason i dont understand hashs, they
help but not really.

https was also another option but i think that this application uses
different networks

Game.swf comes from game.com
UserInfo comes from network1.com, network2.com

I believe this makes HTTPS impossible?

Anyways thanks again.

Cheers,

Clark.



On 11 August 2010 14:35, valdhor valdhorli...@embarqmail.com wrote:



 You could always use a secure connection via https. Also, you could send an
 encrypted username and password. For example, every thirty minutes generate
 a new password string. The server can use the same algorithm to generate a
 string and then you could compare them.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clark
 Stevenson a.scots...@... wrote:
 
  Hi all.
 
  I am new to AMFPHP. Lets say you have a class and a function:
 
  SomeClass.saveHighScore(304958);
 
  For me, the way i see it, is that anyone using Charles can call this
  method? Whats to stop anyone from calling it directly?
 
  SomeClass.saveHighScore(20394948548438484).
 
 
  Can any one advise me on ways i could secure this method?
 
  Thanks.
 
  Clark.
 

  



[flexcoders] Can i view the output panel in a stand alone swf? (like throw new error)

2010-07-26 Thread Clark Stevenson
Hi all,

I work remotely and sometimes the connecting part between myself and my
colleague is awkward since he must asked me to trace output and forward it
to him.

When you throw a new error and run it online, you see the error in a panel.

Is it possible to display output in this panel and not just catch errors? So
that my colleague can run the swf, and see the debug information. Just like
a trace statement outputs in dev environment?

Cheers,

Clark.


[flexcoders] FB4 / FP caching issue? What is causing it?

2010-07-16 Thread Clark Stevenson
I have an issue when loading SWFS into FB4.


Yesterday i uploaded SWFs and XML to the server and load it into Flex.
I had a couple of errors on some of these SWFs such as leaving old
artwork in. I fixed these issues then i uploaded the new swfs to the
server.

For 4 hours i have been looking through each SWF and i can swear in my
life that these SWFs are now identical, all errors have been fixed.
Theres no garbage children any more.

So i upload all the SWFs to the server again.


Rerun the application. The same thing...



So i though, ill take 6.swf, copy it and rename it to 7.swf and
uploaded that to the server.


Rerun the application. The same thing.


When i sent the SWF to a work mate today, he returned a screenshot of
exactly what i expected.. In other words, if i run the
application, i see yesterdays SWFs. If he runs it, he sees todays.



What is going on here? I work with loaded SWFS all the time and have
never had this issue. I dont debug in a browser but directly in the
debug player. I emptied caches on all my browsers anyway, i restarted,
i cleaned the project. I exported a release build, put it in my
c:windows folder just for a laugh. I deleted the bin-debug folder and
rebuilt.



Does anyone have any ideas?


Clark.


[flexcoders] Re: FB4 / FP caching issue? What is causing it?

2010-07-16 Thread Clark Stevenson
If i load up swfs with the following it works:

SWFLINK+?nocache=random

Although, i still have no idea why i need to do that.

On 16 July 2010 09:19, Clark Stevenson a.scots...@gmail.com wrote:
 I have an issue when loading SWFS into FB4.


 Yesterday i uploaded SWFs and XML to the server and load it into Flex.
 I had a couple of errors on some of these SWFs such as leaving old
 artwork in. I fixed these issues then i uploaded the new swfs to the
 server.

 For 4 hours i have been looking through each SWF and i can swear in my
 life that these SWFs are now identical, all errors have been fixed.
 Theres no garbage children any more.

 So i upload all the SWFs to the server again.


 Rerun the application. The same thing...



 So i though, ill take 6.swf, copy it and rename it to 7.swf and
 uploaded that to the server.


 Rerun the application. The same thing.


 When i sent the SWF to a work mate today, he returned a screenshot of
 exactly what i expected.. In other words, if i run the
 application, i see yesterdays SWFs. If he runs it, he sees todays.



 What is going on here? I work with loaded SWFS all the time and have
 never had this issue. I dont debug in a browser but directly in the
 debug player. I emptied caches on all my browsers anyway, i restarted,
 i cleaned the project. I exported a release build, put it in my
 c:windows folder just for a laugh. I deleted the bin-debug folder and
 rebuilt.



 Does anyone have any ideas?


 Clark.



Re: [flexcoders] Loaded SWF loses nested child instance name

2010-07-15 Thread Clark Stevenson
Thanks for your quick reply Oleg as always.

I have been looking for ways to make this happen over the last few hours.

My latest brainwave (pathetic guess attempt) was a Document class called
Main which looked something like this:

public var itemRef:MovieClip = MovieClip(this.item);
public var colorRef:MovieClip = MovieClip(itemRef.color);
public var overlayRef:MovieClip = MovieClip(itemRef.overlay);

I dont really understand the document class as Flash isnt really my working
tool. However, i assumed this would work. If Main.as is a flas document
class, then Main essentially becomes root ? In any case

loadedSWF.itemRef = undefined.

Usually we generate SWCs with Actionscript identifiers but since thats a
compile time process?, and this is a runtime process, im a little confused.
All of these swfs simply have:

root
-item
--color
--overlay


I might just be best to stick to depths as long as im clear to explain that
color must always be on the bottom depth. I still dont understand why names
break however.

Cheers,


Clark.



On 14 July 2010 12:50, Oleg Sivokon olegsivo...@gmail.com wrote:



 Well, that wasn't a good idea from the start, as instance name isn't a
 reliable identification (you can assign two identical names to different
 instances and that will compile, while the second instance will not
 be available). What I usually do in such case is: I prepare the class with
 the fields it should have, give it to designer and explain hot to link their
 library items to that class, and then when I compile, I use my own version
 of that class with the functionality added, this way we (me and designer)
 can work on the same class and I don't have problems using it in my project.
 Ah, important to note, this approach requires that the designer turn off
 the automatically declare stage instances in publish settings.
  



Re: [flexcoders] Loaded SWF loses nested child instance name

2010-07-15 Thread Clark Stevenson
Your a gentleman Oleg thanks for explaining.

Clark

On 15 July 2010 11:41, Oleg Sivokon olegsivo...@gmail.com wrote:



 Nope, not really, what happens is like this: the document class is a
 sprite, which has some code in it, which is called first in the application
 and this class is automatically added to stage, if it is not loaded.
 However, if the SWF is loaded, then the class isn't automatically added to
 stage, however, the constructor is executed before that.
 Now, Flash will create variables and assign the library instances to those
 variables if you put those instances on the stage, however, if you turn off
 the automatically declare stage instances, Flash will not create the
 corresponding variables for them (and so you will get an option to define
 them yourself in your class. You don't need to initialize those variables to
 anything, Flash will initialize them to the timeline placed instances of the
 same name.
  



[flexcoders] Loaded SWF loses nested child instance name

2010-07-14 Thread Clark Stevenson
Bit of a horrible title.

In Flash i have this as a SWF:

root
-item
--overlay
--color

Where root holds MovieClip with instance name item and item holds
moviclips with instance names color and overlay.

Loading this SWF is then converted into a MovieClip

var loadedSWF:MovieClip = //the loaded swf


For some reason, i cannot access overlay and color by instance name
but i can access item.


var item:MovieClip = MovieClip(loadedSWF.item)
// result [MovieClip]


But thats as far as i can reference any other item.

var overlay:MovieClip = MovieClip(loadedSWF.item.overlay)
//result undefined or null

var color:MovieClip = MovieClip(loadedSWF.item.color);
//result undefined or null



However

item.numChildren()
//returns 2 which is correct (overlay and color)

item.getChildByIndex(1);
//returns color



Because of the nature of this project, i really need to have access to
instance names as opposed to depths. Depths is going to get
complicated and cause mistakes between me and the designer.

Does anyone know why i cannot access the children of item? Yet i can
access the child of loadedSWF.


Thank you.


Re: [flexcoders] Uninstall Flash Player

2010-07-05 Thread Clark Stevenson
http://kb2.adobe.com/cps/141/tn_14157.html

Clark.

On 5 July 2010 16:17, Johannes Nel johannes@gmail.com wrote:



 there is also a flash version switcher for firefox


 http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php

 On Sun, Jul 4, 2010 at 11:13 AM, Christophe christophe_jacque...@yahoo.fr
  wrote:



 Hello,

 How to uninstall Flash Player 10.1 (on Firefox) to get back to Flash
 Player 10.0 ?

 Thx,
 Christophe,




 --
 j:pn
 \\no comment
  



Re: [flexcoders] Melbourne Flex User Group Tonight

2010-07-03 Thread Clark Stevenson
Hope it goes well.

I wish i lived there :(

On 1 July 2010 01:50, Dale Fraser d...@fraser.id.au wrote:



 Hi All,



 Sorry if I’m over promoting this, but it’s the first event.



 Venue: CogState
Level 2 / 255 Bourke Street
Melbourne Victoria

 When:  1st Thursday of the month (TONIGHT)

 Website:   http://mfug.groups.adobe.com

 Prizes:Twice a year we will draw a raffle for up to $2,100 USD
of Adobe software, each user group you attend gets you
one entry into the draw. So the more you come the more
chance you have.



 Agenda:6:30 – 7:00 Pizza  Drinks
7:00 – 8:30 Presentation
8:30 – 9:00 Questions  Discussion



 SPECIAL!! There will be a prize draw tonight, come along and have a chance
 to win Adobe Creative Suite Web Premium.

 IMPORTANT!! If you can sign up at the above link and RSVP this would be
 helpful for catering purposes.



 Regards

 Dale Fraser



 http://dale.fraser.id.au

 http://cfmldocs.com

 http://learncf.com

 http://flexcf.com


  



[flexcoders] ColorPicker loses swatch panel in form..

2010-07-02 Thread Clark Stevenson
Hi all,

I have a weird issue with the color picker in a form.

If you drag a color picker into the form and dont do anything, it works
perfectly.

However, if you disable the FormItem or remove the FormItem and then
reenabled it or add it...

The color picker swatch panel does not open again. Even when you call
explicitly: colorPicker.open

What is strange is that you can still click on the color picker, and use the
keyboard to navigate the swatch panel.
Any ideas?

Clark.


[flexcoders] Re: httpservice.lastresult completes but theres no data.

2010-07-01 Thread Clark Stevenson
It seems e4x is the problem.

If i change the httpservice class to xml

The lastResult property is shown.

There must be some special rule where this isnt acceptably in e4x:

data/data

It only shows under the xml format.

Why is this?

Clark.

On 1 July 2010 00:23, Clark Stevenson a.scots...@gmail.com wrote:


 Hi everyone.

 I have a nightmare problem.

 I am using httpservice with e4x.


 If i was to retrieve an XML file from the server in this simple format:

 data id=1
 item /
 data


 If i looked at my httpservice.lastResult i would see the above xml. This
 works perfect.


 However, in my case, the data may contain no items.

 data id=2
 /data


 Now my last result, loads without error, even charles tells me the page
 size etc. However, when i try to look at the result i see nothing... No data
 at all.


 I have ran out of ideas on what else to test. Is there anything obvious
 which i am missing? Maybe some rule where data id=2/data is converted
 to data id=2 / and flex simply does not like this format?


 Thanks for reading.

 Clark.



Re: [flexcoders] Re: httpservice.lastresult completes but theres no data.

2010-07-01 Thread Clark Stevenson
Thanks for your help Oleg, Appreciated.

I think your solution makes sense although i think i also may have been
uneducated with the root node.

The server returns data/data as data /

And since data is the root node, it appears to be ignored (or an empty
string like you say).

root
data id=1
 /data
/root


will turn into

root
data id=1 /
/root

And this solved the problem of the missing lastresult.

Clark.


On 1 July 2010 09:27, Oleg Sivokon olegsivo...@gmail.com wrote:



 E4X prints the content of self closing nodes as an empty string (if it's
 not the root node). You may want to use toXMLString() to print the structure
 of the node.
  



[flexcoders] httpservice.lastresult completes but theres no data.

2010-06-30 Thread Clark Stevenson
Hi everyone.

I have a nightmare problem.

I am using httpservice with e4x.


If i was to retrieve an XML file from the server in this simple format:

data id=1
item /
data


If i looked at my httpservice.lastResult i would see the above xml. This
works perfect.


However, in my case, the data may contain no items.

data id=2
/data


Now my last result, loads without error, even charles tells me the page size
etc. However, when i try to look at the result i see nothing... No data at
all.


I have ran out of ideas on what else to test. Is there anything obvious
which i am missing? Maybe some rule where data id=2/data is converted
to data id=2 / and flex simply does not like this format?


Thanks for reading.

Clark.


Re: [flexcoders] SecurityError: Error #2121

2010-06-29 Thread Clark Stevenson
I allowed every single combination i could think of:

domain.com http://domain.com; http://www.domain.com; www.domain.com
and so on, even *

Still the same error :(



On 29 June 2010 06:35, Alex Harui aha...@adobe.com wrote:



 In Flash, “domin” is not “domain” is not “domain.com”


 On 6/28/10 3:34 PM, Clark Stevenson a.scots...@gmail.com wrote:







 Hi everyone.

 My problem seems pretty simple. Im trying to load a SWF into a SWFLoader in
 FB4.

 I get this error in the debug view locally, but also when on the test
 server.

 SecurityError: Error #2121: Security sandbox violation: Loader.content:
 http://domin/dir/tool.swf/[[DYNAMIC]]/2http://domin/dir/tool.swf/%5B%5BDYNAMIC%5D%5D/2cannot
  access
 http://domain/dir/dir/2.swf. This may be worked around by calling
 Security.allowDomain.

 I am not trying to pull SWFs from any other swf.

 I have a * in my crossdomain.xml

 I have set:

 Security.allowDomain(domain.com http://domain.com );


 In the creation complete event.


 Hmm does anyone know how i can solve this? I googled it and went through
 the first 2 pages, tried loading a policy file, and a few other things.

 Its a new server, so maybe i have missed something in my setup as i have
 never run into this before.

 Thanks.







 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui
  



Re: [flexcoders] SecurityError: Error #2121

2010-06-29 Thread Clark Stevenson
Hey your right :)

If i goto http://domain.com/tool.html

It will throw errors when loading SWFs but if i goto:

http://www.domain.com/tool.html

It works perfectly.

Never seen that before so its new to me.

Thanks for your input.

Clark.

On 29 June 2010 09:09, Clark Stevenson a.scots...@gmail.com wrote:


 I allowed every single combination i could think of:

 domain.com http://domain.com; http://www.domain.com; www.domain.com
 and so on, even *

 Still the same error :(




 On 29 June 2010 06:35, Alex Harui aha...@adobe.com wrote:



 In Flash, “domin” is not “domain” is not “domain.com”


 On 6/28/10 3:34 PM, Clark Stevenson a.scots...@gmail.com wrote:







 Hi everyone.

 My problem seems pretty simple. Im trying to load a SWF into a SWFLoader
 in FB4.

 I get this error in the debug view locally, but also when on the test
 server.

 SecurityError: Error #2121: Security sandbox violation: Loader.content:
 http://domin/dir/tool.swf/[[DYNAMIC]]/2http://domin/dir/tool.swf/%5B%5BDYNAMIC%5D%5D/2cannot
  access
 http://domain/dir/dir/2.swf. This may be worked around by calling
 Security.allowDomain.

 I am not trying to pull SWFs from any other swf.

 I have a * in my crossdomain.xml

 I have set:

 Security.allowDomain(domain.com http://domain.com );


 In the creation complete event.


 Hmm does anyone know how i can solve this? I googled it and went through
 the first 2 pages, tried loading a policy file, and a few other things.

 Its a new server, so maybe i have missed something in my setup as i have
 never run into this before.

 Thanks.







 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui
  





[flexcoders] SecurityError: Error #2121

2010-06-28 Thread Clark Stevenson
Hi everyone.

My problem seems pretty simple. Im trying to load a SWF into a SWFLoader in
FB4.

I get this error in the debug view locally, but also when on the test
server.

SecurityError: Error #2121: Security sandbox violation: Loader.content:
http://domin/dir/tool.swf/[[DYNAMIC]]/2 cannot access
http://domain/dir/dir/2.swf. This may be worked around by calling
Security.allowDomain.

I am not trying to pull SWFs from any other swf.

I have a * in my crossdomain.xml

I have set:

Security.allowDomain(domain.com);

In the creation complete event.


Hmm does anyone know how i can solve this? I googled it and went through the
first 2 pages, tried loading a policy file, and a few other things.

Its a new server, so maybe i have missed something in my setup as i have
never run into this before.

Thanks.


[flexcoders] Debug button launching wrong file.

2010-06-25 Thread Clark Stevenson
Hey all,

I have a habit of hitting the debug tool button in FB4, lastnight i
right clicked on a MXML component and hit set as default
application.

However, i didnt mean to do that. I have set the default app back to
Main.mxml but when i click the debug button, Main.mxml never runs. I
need to select the arrow, select Main.mxml and click that.

This morning i have debugged 10 times and 6 of those times i used the
debug button by habit So incredibly frustrating.

Where i can stop this from happening? So i can set debug button back
to Main.mxml

Cheers,

Clark.


Re: [flexcoders] Debug button launching wrong file.

2010-06-25 Thread Clark Stevenson
Hey mate.

Thanks for your help!

I decided to go for the boring... copy and paste option but finally it works
:D

I wont be setting a new default application again any time soon!

Clark.

On 25 June 2010 10:05, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:



 You can go into your project properties and remove all the applications
 except the main one. You can add them back later. Also go into the menu Run
  Debug  Other. Remove or modify those as well. You may want to restart and
 clean as well. If it still persists post back. If you do post back I'd say
 go into the Flex project properties and check for rogue application
 references in the XML. I'd then say clean and restart. These files are in
 the project root and hidden. If it still persists post back. If you do post
 back I'd then say you're wasting too much time tracking down a project
 properties related problem. In that case create a NEW blank project and copy
 the original files (not folders) into it. Recreate any folders. If it's in
 SVN copy the files out and try reverting back to an earlier version. Then
 recheck out the project again. Then of course paste in your local files. DO
 NOT COPY or PASTE directories from your original project if it is using SVN.
 Doing so will copy the hidden svn folders.


 On Fri, Jun 25, 2010 at 3:31 AM, Clark Stevenson a.scots...@gmail.comwrote:



 Hey all,

 I have a habit of hitting the debug tool button in FB4, lastnight i
 right clicked on a MXML component and hit set as default
 application.

 However, i didnt mean to do that. I have set the default app back to
 Main.mxml but when i click the debug button, Main.mxml never runs. I
 need to select the arrow, select Main.mxml and click that.

 This morning i have debugged 10 times and 6 of those times i used the
 debug button by habit So incredibly frustrating.

 Where i can stop this from happening? So i can set debug button back
 to Main.mxml

 Cheers,

 Clark.


  



[flexcoders] Wheres my scrollbars gone? mx:Application to s:Application

2010-06-25 Thread Clark Stevenson
Hey everyone.

A second post in a single day!

I have been working with the Flex SDK again although i have only
really been experimenting this week.

I managed to finish off a current module and its working great but the
main thing concerning me is no scrollbars.

mx:Application would just created scrollbars if the content required
it. However Spark does not have this functionality.

I wrapped my component in a

s:Group clipAndEnableScrolling=true

And now i get a little 300x200ish window with scrollbars which has
destroyed my comonent layout..

Killed with frustration, i attempted to change back to mx:Application
but of course, s:DropDownList is a spark component and so if i go back
to mx:application then i break my component.


How does one simply make s:Application contain scrollbars for the
browser ala mx:Application style?

Thanks.

Clark.


[flexcoders] How do i embed a SWF in AS3?

2010-06-17 Thread Clark Stevenson
Hey all,

The title says it all. I know how to embed a symbol from a SWF, but
everything i try when trying to embed a complete SWF fails:


[Embed(source=assets/some.swf, mimeType=application/octet-stream)]
private var MySWF:Class;


var movie:MovieClip = new MySwf() as MovieClip


This does not work which is slightly obvious as its a octet stream.


So now i use a loader and try loadByes(new MySWF() as ByteArray)


This tells me .swf contains invalid data.


So i have no idea how to embed a SWF. Can anyone give me some help?


Cheers,

Clark.


[flexcoders] AS3/MXML Display list

2010-05-31 Thread Clark Stevenson
Hey all.

Can someone please help me understand how to work with the display list?

Im an AS3 developer and very fond of the freedom i have with AS3. MXML
has a great deal of useful components for connection to the backend
and so on. These components could be handy for me and thus i need to
use the MXML framework.

So you start a new MXML Project and under the Script tag you add this code:

fx:Script
![CDATA[
private var circle:Sprite;

circle = new Sprite();
circle.graphics.beginFill(0x00);
circle.graphics.drawCircle(100, 100, 100);
circle.graphics.endFill();
addChild(circle);
]]
/fx:Script


Everything from the begin fill is an error.

Can someone explain to me why Sprite() is AS3, why its available to
the Script tags but why its not really supported?

I just feel that MXML is screwing up my understanding of the player.
Main.as is a game and it extends Sprite So if MXML was AS3, id
simply add an instance of

 var main:Main = new Main(); --- this is my entire game.


So you think, well Main extends Canvas but the Script tags on
Canvas dont understand addChild either

Is what i am trying to do just impossible? I know that MXML is a time
saver and so on, but to be honest, i hate markup and i just cant find
a way to go back what what i know.

This is something which has bugged me for years... Id love to
understand flex more, but after investing so many years in AS3
development, its just another AS2  AS3 jump to start rewriting every
single project in MXML and to be honest, i cant be bothered right now.
If i cant use MXML i cant use them and that great, but theres
trillions of forum posts on google with a trillion views on this
subject and none of them really agree.

Cheers


Re: [flexcoders] How do i install the debug player?

2010-05-14 Thread Clark Stevenson
Thanks for your quick response Oleg.

For my workflow i code in AS3 projects and the assets from from a .fla
linked with a SWC. I still see people using nasty [embed] tags.

In any case, thanks for your reply. It made some sense to me. I decided id
get rid of every adobe product. I installed FB4 then FlashCS5 and everything
was ok. When you turn off the wrapper of the browser, FB will complain there
is no debug player available. As you said, the projector debugger does not
require any kind of install. You download the file called
flashplayer_10_sa_debug.exe from the debug page and then move this file
somewhere C:/dev/

Double click the file. When you go back to FB and hit debug, Flex
automatically knows the location of this directory magically. So if your
download folder is c:/downloads/ and you double click
flashplayer_10_sa_debug.exe, then FB will look in c:/downloads/ for the
debug player. If you move flashplayer_10_sa_debug the only way to get FB4 to
notice the new location is by running the flashplayer_10_sa_debug.exe file
first. There is no settings available to do this manually that im aware of
it.

So problem solved! Running the debug player directly lauches almost
instantly which is why i spent so long trying to solve the issue.

Cheers.


On 14 May 2010 00:13, Oleg Sivokon olegsivo...@gmail.com wrote:



 Sorry, this may upset you, but FB and Flash player aren't really related...
 also there's no need to install standalone player, it's just not a program
 that requires installation, after you run any copy of it it will create a
 file association to SWF files (will make itself a default program to open
 files with SWF extension). You may also do that from folder options
 dialog. It is true they may try to change that to whatever version of player
 they came bundled with right when you install them, but later they never try
 to change that.
 Silly thing about FB though is you cannot configure it to use the copy of
 the flash player that you want... it has no such setting... Regarding your
 other issue with unistaller, I personally never had it, but, this page seem
 to have some good info (although dated)
 http://kb.mozillazine.org/Flash#Windows_and_Mac . Some other adobe
 products may sometimes try to install their own versions of player. This
 issue was discussed several times and Adobe promised to do something about
 it in the future releases...
 Since I need multiple different versions of Flash player for testing, I
 first was switching the SDKs (every SDK comes with the set of debug players
 - find them in the runtimes folder), but that's not comfortable, so, I move
 them to the Program Files/Flash Player/version/{debug|release}. Could sound
 a little messy, but once I made it a habit any time I need to get a new
 standalone version I just put it there, it never gave me troubles.

 Best.

 Oleg
  



[flexcoders] How do i install the debug player?

2010-05-13 Thread Clark Stevenson
Hey guys.

I installed FB4 tonight for the 60 day trial and also Flash.

Everything was great but obviously i need a debug player as some .dll was
not found.

I downloaded the latest debug from here:

http://www.adobe.com/support/flashplayer/downloads.html


Firstly:

Active x wont install because it complains that i have a new version of the
flash player and i should goto the standard download of the player in order
to update.

The firefox plugin installed ok, but thats really slow from launching

I also downloaded a 5mb projector debugger... flashplayer_10_sa_debug   ---
this is what i want! So i dont need to wait for a browser to kick in.



So I headed over to the uninstaller page:

http://kb2.adobe.com/cps/141/tn_14157.html

Ran it, restarted Windows.


I tried to install the Active X plugin again and got the same deal It
informs me i have a newer version already installed.


I got rid of Flash and FB4, restarted, reinstalled both, then when i opened
FB4 i got You must install the flash player on the welcome tab.


I did an other hour of trying but then FB4 started giving me Java point
exception or something like that when i tried to hit Debug.


I then spent a while going through the preferences trying to find some
option to launch the debugger directly with flashplayer_10_sa_debug,exe but
i couldnt find an option.


So thats pretty much sapped my evening. Does everyone have a clue how i can
simply install FB4 and a Debug player? Is there some order i should install
CS5 FB4 Debug Players? Can i copy flashplayer_10_sa_debug to a folder where
FB4 will recognise it and if so where?

Trace() What a dear friend.

Thanks for your time on this.

Clark.


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-04 Thread Clark Stevenson
I just dont care.

I have never went out my way to support Mac, ever. I think i made a mac
screensaver once. Sorry guys im just not interested in it. Lets buy an apple
which doesnt run anything versus a pc which does everything you throw at it.

No thanks.

If iplatform wont support flash, then who really cares? We never have been
able to so whats the problem? Do people think you would be building a house
of gold bars just because you make some pod/pad/phone apps?

Have you even see the app store? 96% of it is total garbage. Even if you
could make a flash app, its almost invisible in a sea of garbage. As keith
peters once commented its like winning the lottery to get it right.

Leave him to it. When HTML5 has 3d libraries and physics engines then ill
consider the move, right now its not about technology. People will always
download the flash runtime because it has a healthy community and its not a
burden for the user. People are used to it.

If you make a good app, people will embrace the platform it runs on. A 2+mb
player or whatever isnt going to burden anyone in 2020. Its so far off that
its comical.



On 4 May 2010 17:42, Wally Kolcz wko...@isavepets.com wrote:



 I am failing to see what the issue is on having a proprietary player is
 anyways. If the company is as devoted to making it better (as adobe
 seems to be with the whole flash platform experience) what is the issue?
 Most companies I know that product web/software products are closed and
 proprietary. Ever seen the inner workings of MS Word or iPhoto? I am
 all about committee standard projects and open source projects. Keeps my
 budget down, but I am also just as ok with a company that makes a
 product that I enjoy both as a developer and as a user. (Insert Kool-Aid
 joke here).

 Also can't help but giggle when Steve talks about openness. This coming
 from the company that produces a phone where you can't even replace the
 battery or screen. Also, wasn't he the guy who tried to sue people for
 installing Mac OS on non Mac machines? Also, don't bitch about plugins
 when your Quicktime is a plug in too...

 If Steve Jobs doesn't want Flash Player on the iWhatever, so be it.
 Stick to your guns and call it a life. Stop beating it publicly. I am
 bored with it. Plenty of other Phones out there that will support it.
 Trick is to make them better and the mobile experience better so the
 iWhatever falls short. That is on us, the developers and designers of
 Flash media, to do.

 Committee standards are fine and there are a lot of things in the web
 universe that are governed by committee. BUT having some things are just
 fine when controlled by a company dedicated to improving and refining
 the product. Seems ever since Steve Jobs opened his iMouth there is a
 negative vibe about Abode solely owning a product thats its done a
 pretty good job at improving. Keep it closed, keep it proprietary, and
 keep it coming. (Even though they are opening a lot of it up).

 With our without the iWhatever support, Flash will continue along side
 of HTML5. I am still keen on Flash Player since I don't have to worry
 about if the browser supports JS or not. My stuff always renders the
 same as long as the plugin is there.

 Jingle...jingle...there is my 2 cents (which worth about half of that)

  



[flexcoders] Actionscript Project Flex Project How does the display list change?

2010-04-17 Thread Clark Stevenson
Hey guys.

Say your familiar with Flash document Class. Flash Develop or Flex
actionscript projects in that your not so familiar with MXML.

You take this class

package
{
 public class MyGraphic extends Sprite
 {

  private var customSprite:Sprite;

  public function MyGraphic()
  {
  super();
  }

 }
}



Ok heres the issue. If i start a new Flex Project because i want to combine
either an existing complex project or branch my application out to pure AS3
yet i want to retain the functionality of MXML for a form or a games room
etc.

How can i do this?

I remember last time i tried it was awkward.  MyGraphic needed to extend
UIComponent but then it got awkward because customSprite needed to also be a
UIComponent so i never found a way to combine them. Likewise, i read about a
rather obscure addRawChild() method but it seemed like a hack or frowned
apon.

That has something to do with the display list?

Is there any sources which i can read that deal with AS3 OOP TO Flex MXML
instead of treating you like you dont know what actionscript 3.0 is and
concentrating on MXML only?  I cannot find the relationship or common
functionality between the 2 different approaches. If i go with MXML im stuck
in modular tags with supporting actionscript, or if go with only AS3 i
have no access to the framework.

Cheers.

Clark.


Re: [flexcoders] From your own experience how long does it take to learn AS3?

2010-03-24 Thread Clark Stevenson
I started AS3 in a flex environment in 2007. I only currently code in AS3 as
its all i require for games and the type of stuff i do.

I found the journey difficult but all i knew was AS1 (and i didnt even
understand it back then).

Its not to much the syntax i struggle with but the structure and
architecture... how does changes in portion A of my code change portion B
elsewhere I still struggle with these issues but you start to find
easier ways of doing things.

Think of a project and break it into small pieces then build each piece.
Dont try to start something massive on the first attemp because i did this
and was always frustrated.

Good luck though mate!

If you enjoy what your doing (frustration aside) it will all work out.

I will say one thing, if i ever had to start out again, id do C++!

Cheers,

Clark

On 24 March 2010 19:51, ellistein52 ellistei...@yahoo.com wrote:



 I have no background in programming , I am close to 54.I am following some
 AS3 Lynda.com Essential Training. I seem to understand the material but when
 I try to make a simple program on my own I am lost , I have to refer back to
 the lesson to be able to write a simple line of code on my own.Also I
 started learning the material 4 weeks ago so maybe it is too early for me to
 write my own code? I would appreciate your comments regarding this issue.

  



[flexcoders] Updating Flash Client Runtime.

2010-03-23 Thread Clark Stevenson
Hey all,

Right now my project supports AS3 flash player 9.

I am hoping shortly to purchase FB4 and move onto Flash player 10.

How can i ensure a period where i can alert users to update thier flash
player for future content?

I seen things like this all the time back in Flash 5 days but not so much
any more.

Now it seems the only way to update the player is togo the tacky yahoo
badware bundle on the adobe website to get the latest player?

Thanks.

Clark.


[flexcoders] Scotland: Any Flash/Flex/AS3 conferences?

2010-02-27 Thread Clark Stevenson
Hey everyone.

Im in Scotland and dispite now employed as a AS3 developer, i still to this
day (since 2000 Flash 5) have never met a fellow developer face to face.

Is there any events on in Scotland or the North of England at any point
during the year which i could attend? It seems Flash on the Beach is the
only UK conference i have heard about, but lets face it, if im going to save
up to visit anywhere, its not going to be to Brighton for a few days of geek
speak!!!

I just thought id ask seeing i have asked on forums before and got no reply.

Cheers,

Clark.


Re: [flexcoders] Flash Templates

2010-02-19 Thread Clark Stevenson
Flash templates are almost always horrifically coded and because of that id
say you will never be able to import it into FB4.


On 19 February 2010 16:45, Dan Pride danielpr...@yahoo.com wrote:



 I have a customer who wants to upgrade a flash template website.

 How far off is it to program this for a Flex Developer, or are there
 facilities to import it so I can work it in Flex 4 ?
 Tips appreciated, including if I should pass this one off.

 Dan

  



Re: [flexcoders] Re: Steve Jobs on Flash .......

2010-02-08 Thread Clark Stevenson
I often get annoyed with performance.

Is it backward compatibilty that causes the issues?

Another thing which i was fairly irritated by was Alchemy in terms of how
Alchemy runs better in the Flash Runtime than native AS3. I dont
understand this. I would expect both to have atleast identical performance
but not so.

It would be cool to have some ultra optimied Flash Runtime 10.1+ which done
away with all the crappy AS1/2 support and paved the way for the future,
pixel bender, 3d, physics and all the rest of it.

How this could happen... i dont know.



On 8 February 2010 14:22, Battershall, Jeff
jeff.battersh...@dowjones.comwrote:



 I believe FP 10.1 is specifically designed to address the two biggest
 issues that affect the deployment of Flash on devices: Memory consumption
 and global error handling. So help is on the way and I would think that
 Adobe's actions in that regard are anything but lazy.

 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of
 reflexactions
 Sent: Monday, February 08, 2010 8:58 AM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Steve Jobs on Flash ...

 Its not a question of whether it was possible at some point to construct
 'something' on a device with a limited version of flash.

 Its a question of whether you can construct something like this for example
 http://www.extjs.com/deploy/dev/examples/grouptabs/grouptabs.html
 in flash with a comparable footprint and performance (a common complaint is
 cpu utilization for some reason flash soaks up a huge amount of the cpu
 compared to javascript).

 I was testing some regex code today and the same code ran 4 times faster in
 IE, 20 times faster in Safari and Chrome.

 Its not like these issues are anything new they've been around for years
 but they don't get fixed which I guess is what SJ was really meaning when he
 called Adobe lazy.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Guy
 Morton g...@... wrote:
 
  That's nuts. We built a flash app that ran on the pocket PC 5 years ago -
 it's mad to think flash couldn't run on something as powerful as an iPhone.
 
  On the other hand, if I was looking at a new project, I'd certainly be
 asking myself if something like the SVGWeb toolkit from google would allow
 me to build something that would run native in many browsers (and in the
 iPhone and iPad).
 
  I do think Adobe should have been looking prior to now for ways to
 leverage SVG and javascript - all that platform needs is a good development
 environment - that's something Adobe could be making money from right now.
 
  Anyway...it's all rather silly and the town hall thing is farcical. Steve
 should have spent some of that pent up energy doing something truly great
 with the iPad, instead of just scaling up an iPhone.
 
  Guy
 
 
  On 08/02/2010, at 10:20 PM, reflexactions wrote:
 
   Well after 10 years plus of AS development my feelings are that SJ
 isn't wrong.
  
   We have to fend of a constant stream of complaints from users that the
 app is a memory hog and slow. We tell them it will improve soon but it never
 does, we tell them flash is a million times better than the alternatives,
 but to be honest JavaScript has caught up and is ahead in many things.
  
   Our app starts up at around 130Mb and reaches 250Mb before it levels
 out, JavaScript apps are a fraction of that.
  
   I hope his rant finally has some impact at Adobe and they pull there
 finger out, becuase past experience has shown that years of
 complaining/requests/bug reports gets nowhere then finally a rant in the
 face of someone who matters gets them to shift, I have no idea why its like
 that but time and again thats what happens.
  
   For us it is probably too late as this week after SJ's rant we were
 told to start planning the move away flash, the argument has been lost so
 badly it wasn't even an argument this time.
  
   For us to stay with flash, the next release would have to perform a
 miracle in terms of memory and performace gains on Mac and PC.
  
   Personally I don't think they can do it, I think they would be better
 of making AS3 compile down to JavaScript. With maybe a lighterweight plugin
 for somethings like video or graphics.
  
   Whatever they really needed to realise all this a year ago with
 solutions to be released now, not just smelling the coffee today.
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim
 Romano tim.romano@ wrote:
   
If the rumors about Bing are true, then this panning could also have
something to do with Silverlight. If I were at MSFT and my role was
 to
ensure that Silverlight succeeded in knocking Flash off (as Word
 knocked
off WordPerfect back in the day, e.g.) then I'd be looking for chinks
 in
Adobe's armor wherever they may be.
   
On 2/1/2010 2:26 PM, Paul Andrews 

Re: [flexcoders] Flex Builder 3 - A little to be desired [1 Attachment]

2010-02-06 Thread Clark Stevenson
I have not filed a bug yet because i dont really think im good enough to
technically describe the issue. When i went to help  new bug i just got a
page saying the module is missing or deactive on jira.

The best way i can describe it in both FB3 and FB4 is that the actionscript
editor does not notify FB that a change in the editor has been made.

I dont know if i can attach images to this mailing list but the attached
screenshot shows the issue. Joint2 is invalid so i got a runtime error in
red. I then commented out the offending line and resaved it but still the
problem persists. The screenshot shows the offending line of code along with
its error AFTER i have hit save.

Note that this is a completely seperate project to my first email.

Running FB2 and FB3 under 32x never gave me any problems, and if it did, not
with enough frequency to be noticible in the 2 years i used them.
Running FB3 under VISTA Home 64x AMD 64  has this issue
Running FB4 under 7 Ultimate 64x Intel i7, i5 has this issue

It seems there is an inherited bug somewhere which effects 64x OS Windows or
architecture..

When googling this i found little so if you do experience this issue and can
let describe it well, please reply with details.

As far as im concerned even an option to tick to force a clean on save would
save alot of hassle.

Also is there any keyboard shortcut to clean?

Cheers.









On 5 February 2010 03:24, Lee Jenkins l...@datatrakpos.com wrote:



 Clark Stevenson wrote:
 
 
 
  Ugh i can totally appreciate your email.
 
  I have struggled pretty much constantly over the last 2 years with all
  kinds of problems.
 

 The more I work with this product, the more I'm convinced that it is a very

 buggy piece product in very core areas. All kinds of mysterious compiler
 issues
 with fragments of code not getting linked in all the time, having to
 perform a
 clean every few changes of code ,which itself takes forever if there is
 more
 than one project involved.

 --
 Warm Regards,

 Lee

  



[flexcoders] How to navigate up when dealing with the class path?

2010-02-06 Thread Clark Stevenson
This might be a stupid question.

I have an /assets/ folder which contains a Fla. In this scenario i need to
hookup a package

/assets/assets.fla
/assets/assets.swc
/assets/assets.swf

/src/code/SomeCode.as


If assets.fla needs to extend SomeCode.as then how can i set the class path
or is this not possible?

Both my Actionscript project and my assets.fla need to reference SomeCode.as
but i tend to use a folder outside of my src folder for the purposes of
non-as files. The reasoning behind this escapes me.

Cheers,


Re: [flexcoders] Flex Builder 3 - A little to be desired

2010-02-02 Thread Clark Stevenson
Ugh i can totally appreciate your email.

I have struggled pretty much constantly over the last 2 years with all kinds
of problems.

My favorite one is the one that you describe. For no reason what so ever,
pressing save all of a sudden does not work and you need to goto Project 
Clean. The first time this happened to me i lost out on a job interview
purely because no matter what i did, flex wouldnt refresh and i didnt know
about project  Clean.

Another classic, is that my Project  Settings dialoge on x64 systems does
not work, none of the buttons exist, you need to drag the dialogue box to
make it tiny, select a new option, and resize the dialogue box again to see
what is actually under, say, the class path or add SWC options.

Updating the flex SDK: The whole wrapper issue. This is particulaly poor
because its like Adove decided, lets make flex 3 a nightmare to update so
you run out and buy FB4

Dragging a class into your Flex Project source path is often not found. If i
drag zoo.birds.Eagle.as, it is entirely possible that Eagle wont be
available dispite it being in the correct package and folder system.

Flash player cannot be found, please install a debug version (fails at 49%
build)

And many more.

I was particulaly depressed the other day when i tried FB4 under an I5 64bit
system and ran into the whole forced clean after each build, its not
filled me with alot of confidence.

Cheers,

Clark.



On 2 February 2010 00:43, Gordon Smith gosm...@adobe.com wrote:



  Have you tried the beta of FlashBuilder 4? (FlexBuilder was renamed to
 FlashBuilder.)



 http://labs.adobe.com/technologies/flashbuilder4/



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Lee Jenkins
 *Sent:* Monday, February 01, 2010 11:10 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex Builder 3 - A little to be desired






 Hi all,

 Just getting started with Flex and FlexBuilder and I am unimpressed with
 the FB
 IDE (though flex and actionscript are nice to me) and was hoping someone
 could
 help me out with a couple of annoyances.

 1. After working in the editor, I ALWAYS have to highlight the project node
 in
 the Flex Navigator before Run, Debug, etc buttons work or say CTRL-F11 to
 run my
 project will work.

 2. My projects (different ones I've noticed this with) required that I
 perform a
 Clean from the Project  Clean menu before changes will take effect many
 times. I've wasted literally hours trying to figure why my code is not
 working
 correctly, until a light bulb goes off and I try the Clean option at
 which the
 compiler finally links in the changes.

 After working with the likes of Delphi and Visual Studio, I'm very
 disappointed
 in the product if I have to in fact take these annoying steps consistently
 just
 to get my projects to compile and build correctly :-)

 Thanks for suggestions.

 --
 Warm Regards,

 Lee