Re: [flexcoders] Best practices with modular applications

2010-05-06 Thread Hilary Bridel
HI Jeff,
I am not surprised that there are no replies to your post.
I have been researching this question for a project just about to start, and
I cant find much information.

I am struggling with  the decision about if/should we go with modules or
sub-applications, because there are so many issues with GC and unloading
modules.

I would be interested to learn which way you went with this.

Regards

Hilary

--


On Fri, Apr 2, 2010 at 2:10 AM, Jeff britton.j...@gmail.com wrote:



 We are building an application to create many types of diagrams. The intent
 is to have a main application that acts as a general loader for many diagram
 types implemented as modules. The dilemma is whether to break the modules
 out into separate flex projects or to include them as subdirectories of the
 main application's project. I've seen some of the adobe documentation but
 I'm hoping that someone has some experience/insights as to which is the
 better approach. Thanks.

  




-- 
Hilary

--


Re: [flexcoders] http://www.adobe.com/2006/mxml is down!!

2007-06-09 Thread Hilary Bridel

Is it April 1st?

On 6/9/07, gambit_755 [EMAIL PROTECTED] wrote:


  What the heck all flex apps are downhttp://www.adobe.com/2006/mxml
is missing.

how can we prevent this is the future







--
Hilary

--


Re: [flexcoders] Preview in Standalone Player

2007-05-27 Thread Hilary Bridel

Hi Adam,
In Flexbuilder right click your project folder and select Properties
Then click Flex Compiler then uncheck Generate HTML wrapper file
Press Apply then Ok

HTH
Hilary

www.bridel.org





On 5/26/07, Adam Pasztory [EMAIL PROTECTED] wrote:


  How do I configure Flexbuilder to preview an application in the
standalone Flash debug player instead of a web browser?

thanks,
Adam






--
Hilary

--


Re: [flexcoders] Help with my first Flex App...

2007-05-25 Thread Hilary Bridel

Brad,
Can you enable show source in the application so we can help you?

Regards
Hilary
www.bridel.org



On 5/26/07, bmelendy [EMAIL PROTECTED] wrote:


  This has got to be a simple one. I am writing the tiny app given in
a video tutorial by Sho Kuwamoto. The tutorial is on displaying
flickr pictures in a basic tilelist control and is located here:

http://labs.adobe.com/technologies/flexbuilder2/tutorials/sho_kuwamoto
/

I have identified these KEY points:

1. An HTTPService call, of which mine looks like this:

mx:HTTPService id=service
url=http://api.flickr.com/services/rest/?
method=flickr.photos.searchamp;api_key=f09abdbe2fada94609244a5de3f4b8
deamp;per_page=9amp;tags={input.text}/

2. I call the web request with a button click like so:

mx:Button x=262 y=18 label=Find id=button1
click=currentState='Results'; service.send()/

3. Finally, the data provider for the TileList control in the
tutorial is:

dataProvider={service.result.rsp.photos.photo}

However, while watching the video, as he types services. he gets
two options, result and resultFormat, however, I am only getting
an option for resultFormat? This is leading me to believe that
maybe the .result property has been removed??? And that is why my
application fails?

The end result is that I have this thing setup identical to the
tutorial but it just won't do anything on the results display. The
only thing that is different is that I went to Flickr and created my
own account and search feed at
http://www.flickr.com/services/api/explore/.http://www.flickr.com/services/api/explore/(This
 is exactly the
method used to create a feed in the tutorial)

I have uploaded the project bin folder here:

http://brad.melendy.com/code/flex/flickr/Flickr.html

I'd love to see this work and it looks so easy in the video (15
minutes!) but I've spent several hours on this now to no avail.
Thanks for any help out there







--
Hilary

--


Re: [flexcoders] Deploying Flex Applications

2007-04-30 Thread Hilary Bridel

Hi DW,
Looks like the reference to headerAnimData.xml is an absolute path rather
than a relative path.


Hilary

--


On 4/30/07, dexsense [EMAIL PROTECTED] wrote:


  Hi,

How are all of you? Many thanks for past answers. Wel thanks God, I
have completed my first application. Now I just want to know how to
deploy it on my remote server. I try to copy the bin folder and run
the application but it gave me error. I also try to copy the whole
project folder to my remote server. Nothing works. It keeps giving the
following error:

Error #2148: SWF file
file:///C|/phpdev/www/healthinn/MyFirstProject.swf cannot access local
resource file:///C|/phpdev/www/healthinn/Data/headerAnimData.xml. Only
local-with-filesystem and trusted local SWF files may access local
resources.

Although the error definition is too long. But I think that the above
given error is enough. If you need further information, pleae let me
know. But kindly help me with this. I badly need it.

I shall be very thankful to you.

Best Regards
..::DW







--
Hilary

--


Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Hilary Bridel

Hi Bjorn,
I don't think it will allow you to do this for a remote domain.
See Docs for BitMapData:

The source object and (in the case of a Sprite or MovieClip object) all of
its child objects must come from the same domain as the caller, or must be
in a SWF file that is accessible to the caller by having called the
Security.allowDomain() method. If these conditions are not met, the
draw()method does not draw anything

I tried to do the same with a remote .flv file but the player wouldn't let
me :-(

Hilary

On 4/23/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


  Hey,

I'm getting an annoying error when i try to do a bitmap draw of an image
loaded via a remote domain.
**Error: A policy file is required, but the checkPolicyFile flag was not
set when this media was loaded**

To confirm i have a breakpoint where i set the source of the image tag,
and i can confirm checkPolicyFile is set to true ( i do so when i
instantiate it ).

This is a major pain for me.
Any help?



regards,

Bjorn



 ((This transmission is confidential and intended solely for
the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in reliance on
it. If you believe you received this transmission in error, please notify
the sender.---))

 





--
Hilary

--


Re: [flexcoders] Sandbox errors in Flex when using BitmapData.draw();

2007-04-22 Thread Hilary Bridel

In my case I dont have control of the remote domain, so I cant do nuffink
about it!
Would just have been nice to do effects on a live streaming video ;-)

Hilary

--


On 4/23/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


  Hey Hilary,

The guys at cynergy claimed they had a solution

http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors


But this is 101, i mean the only difference i can see with my
implementation is that they're using mxml and binding for the loaderContext
reference.


I'm also loading flv + images and swfs, so i guess the best solution is to
deploy a 'previewer' component swf on the remote domain the the main
application loads that contains the allowDomain() call.




B

 On 23/04/2007, at 2:42 PM, Hilary Bridel wrote:

  Hi Bjorn,
I don't think it will allow you to do this for a remote domain.
See Docs for BitMapData:

The source object and (in the case of a Sprite or MovieClip object) all
of its child objects must come from the same domain as the caller, or must
be in a SWF file that is accessible to the caller by having called the
Security.allowDomain()method. If these conditions are not met, the draw()method does 
not draw anything

I tried to do the same with a remote .flv file but the player wouldn't let
me :-(

Hilary

On 4/23/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:



 Hey,

 I'm getting an annoying error when i try to do a bitmap draw of an image
 loaded via a remote domain.
 **Error: A policy file is required, but the checkPolicyFile flag was not
 set when this media was loaded**

 To confirm i have a breakpoint where i set the source of the image tag,
 and i can confirm checkPolicyFile is set to true ( i do so when i
 instantiate it ).

 This is a major pain for me.
 Any help?



 regards,

 Bjorn



 ((This transmission is confidential and intended solely for
 the person or organization to whom it is addressed. It may contain
 privileged and confidential information. If you are not the intended
 recipient, you should not copy, distribute or take any action in reliance on
 it. If you believe you received this transmission in error, please notify
 the sender.---))







--
Hilary

--



 Regards,

Bjorn Schultheiss
Senior Developer
[image: QDC]
Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T: �+61 3 9674 7400
F: �+61 3 9645 9160
W: �http://www.qdc.net.au

((This transmission is confidential and intended solely for
the person or organization to whom it is addressed. It may contain
privileged and confidential information. If you are not the intended
recipient, you should not copy, distribute or take any action in reliance on
it. If you believe you received this transmission in error, please notify
the sender.---))








--
Hilary

--


Re: [flexcoders] Call by value instead of Call by reference when copying ArrayCollection

2007-04-19 Thread Hilary Bridel

We had this question on the flexaussie mailing list a couple of days ago.
There is an example in the docs that works:

import mx.collections.ArrayCollection;
   import flash.utils.ByteArray;

   private function clone(source:Object):*
   {
   var myBA:ByteArray = new ByteArray();
   myBA.writeObject(source);
   myBA.position = 0;
   return(myBA.readObject());
   }


   private function init():void{
   var data:Array = [{name:one,value:1},{name:two,value:2}];
   var a:ArrayCollection = new ArrayCollection(data);

   var b:ArrayCollection = clone(a);

   b.getItemAt(0).value = foo;
   trace(a.getItemAt (0).value);
   trace(b.getItemAt(0).value);
   }

Seems to work ok.

Hilary

--

On 4/20/07, Gordon Smith [EMAIL PROTECTED] wrote:


   I think that will give you two ArrayCollections which share the same
data items. For example, if you do

arrayCollection.setItemAt(foo, 0);
trace(arrayCollection2.getItemAt(0));

you'll probably get foo.

- Gordon

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Brian Holmes
*Sent:* Thursday, April 19, 2007 8:34 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Call by value instead of Call by reference
when copying ArrayCollection



 No loop required. Just create a new array collection with the source of
the old array collection.

arrayColletion2 = new ArrayCollection(arrayCollection1.source);

b..

 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *manfred.maierhofer
*Sent:* Wednesday, April 18, 2007 11:30 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Call by value instead of Call by reference when
copying ArrayCollection

  Hey guys,
is there a way to copy an ArrayCollection instead of referencing it
by ArrayCollection1 = ArrayCollection2;???

I can't believe that there is no way to do this, except cophying each
value in a loop.

Thanks,
Mane

 --
***
The information in this e-mail is confidential and intended solely for the
individual or entity to whom it is addressed. If you have received this
e-mail in error please notify the sender by return e-mail delete this e-mail
and refrain from any disclosure or action based on the information.
***

  





--
Hilary

--


Re: [flexcoders] Is it possible to embed font into the compiled CSS for runtime use?

2007-04-18 Thread Hilary Bridel

Hi Sergey,
I have embeded fonts into compiled css files to use at runtime and it works
ok.

Do you get an error when you use MXMLC to compile the css?

Hilary

www.bridel.org



On 18 Apr 2007 06:31:10 -0700, Sergey Kovalyov 
[EMAIL PROTECTED] wrote:


   Hi All!

I have tried to embed font into the compiled CSS for runtime use without
any luck. Everything works well, when I embed it into CSS that is included
into application mxml via mx:Style tag, though it seems there is no way to
compile font into the separate CSS. Am I right?

Sergey.







--
Hilary

--


Re: [flexcoders] boolean not casting ok from string

2007-04-18 Thread Hilary Bridel

try:
   var btest:Boolean;
   var testValue:String = true;
   btest = testValue == true ? true : false;
   trace(btest = +btest);

Hilary

--

On 4/19/07, Luis Eduardo [EMAIL PROTECTED] wrote:



hi,

this simple code dont work.

var btest:Boolean = new Boolean();
btest = true;
trace(btest = +btest);

btest = false;
trace(btest = : +btest);

there are a compile warning telling me that: 3590: String used were a
Boolean value was expected. The expression will be type coerced to
Boolean
but it is not.

even if i do typecast it wont work:

btest = Boolean(true);
trace(btest = : +btest);

or if i typecast with as.
btest = (true as Boolean);
btest = (false as Boolean);

so i ask: how to cast String true to Boolean true ?
what am i missing???

Luís Eduardo.

 





--
Hilary

--


Re: [flexcoders] Control of SWF in SWFLoader

2007-04-10 Thread Hilary Bridel

Hi,
This may help a little...
http://www.bridel.org/?p=9

Hilary

--


On 10 Apr 2007 13:11:02 -0700, nowak_petr [EMAIL PROTECTED] wrote:


  Hi,
I have a flash SWF (9 or older version) and I play it with SWFLoader.
I'm able to play, stop. But how to know the number of frames ? Control
the speed of play ? And others .. Is it possible ?
The flash SWF file is not my own, it's external, so no under control
(version, local connection, ...).







--
Hilary

--


Re: [flexcoders] Retrieving an item in an xml.

2007-04-01 Thread Hilary Bridel

Hi Ivan,
Take a look here:
http://tech.groups.yahoo.com/group/flexcoders/message/67928

Hilary

--


On 01 Apr 2007 17:14:05 -0700, ivansebastiansurya 
[EMAIL PROTECTED] wrote:


  Hi everyone,

I'm a newbie programmer in Flex and I need your help to fix an issue
that I face regarding XML reading.

It seems that I've got a problem accessing an element from XML if the
XML only has one item.

For example:

if the xml is as follows:
?xml version=1.0 encoding=utf-8?
iteration
iteration_noiteration12/iteration_no
iteration_duedate2007-04-17/iteration_duedate

burn_down_rec
record_date2007-04-01 10:28:49/record_date
remaining830.0/remaining
work_done5.10/work_done

/burn_down_rec
/iteration

That xml is retrieved through an HTTPService object
called burnDataRequest
Then I'd like to go through the burn_down_rec element in the xml
using:

for each(var itemXML:Object in
burnDataRequest.lastResult.iteration.burn_down_rec){
trace(itemXML:  + itemXML.record_date);
}

The above code will only work if the returned xml has more than 1
burn_down_rec elements, but it doesn't work if it has only one
element.

I'd be great if anyone can help me sort out this problem so that my
code will work even if the xml only has one element.

Thanks in advance for reading my post,

Ivan.







--
Hilary

--


Re: [flexcoders] Can I get the icon in cornflower blue?

2007-03-26 Thread Hilary Bridel

Hey Carson,
Clever ad !
Shame I live in Sydney Australia. You guys do some awesome work!

Regards

Hilary

www.bridel.org


On 26 Mar 2007 09:57:13 -0700, Carson Hager [EMAIL PROTECTED]
wrote:


   Of course you can.

If that got your attention because you love that scene as much as I do
then chances are you'll  probably want to keep reading.

You're curiosity is piqued. That's a good sign.

So why an obscure Fight Club reference in the middle of a slew of boring
job ads? Bluntly  put...we're not boring and we're not interested in you if
you're boring. If you love your cube  and you live to fill out your TPS
reports talking about prioritizing one action item over  another, you'd be
miserable working with us...you likely assumed this was spam and deleted it
anyway. Perfect.

Let me get to the point because I know you're busy. You're a Flex
developer otherwise you  wouldn't be getting this. That means you likely
already know about Cynergy...unless of course  you live under a rock. When
someone calls your work a web site you get irritated because web  sites
are for monkeys and you build applications. You're a developer and a damn
good one.  You're convinced you know the lines to Anchor Man better than
anyone else and you're willing to  prove it at any time. Most importantly,
you want to build RIAs alongside the best people in the  industry.

Welcome to Cynergy. We're the undisputed heavy weight champion of RIA
development and we're  growing like crazy because the world has finally
woken up and realized that traditional web  applications are garbage and
that RIAs are the future. Forward thinking companies and  organizations are
kicking our doors down daily asking us to build their next great idea. That
means we need to grow. That means we need you. We realize you're probably
happy where you  are...hell you're building Flex apps and life is good. We
get that. But if you saw some of  yourself in my description above, you're
among friends and we truly believe life can be even  better than it is
today. We want a shot to prove it to you.

So how do you get in touch? Well if you like boring aliases you can drop
us a line at  [EMAIL PROTECTED] or you can email me directly at
[EMAIL PROTECTED] If  you're really bold, pick up the phone
and call my cell. You'll find the number below.

Boring details which you should know given the high demand for your skills
but I'll include  them anyway...

We pay well.
We provide all of the benefits you're used to...health dental, 401k, blah,
blah.
We're open to remote developers but would always prefer you were in one of
our offices -  preferably Washington, DC or San Diego, CA.

You already legally work in the US.

Looking forward to hearing from you.

Carson



Carson Hager
Cynergy Systems, Inc.
*http://www.cynergysystems.com* http://www.cynergysystems.com

Email:  [EMAIL PROTECTED][EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466

 





--
Hilary

--


Re: [flexcoders] Combobox will not display (only) one item

2007-03-13 Thread Hilary Bridel

Hi,
Try changing:

myAC = event.result.states.state;

to

myAC = event.result.states;

Hilary

--

On 13 Mar 2007 19:36:50 -0700, pdenys [EMAIL PROTECTED] wrote:


  I have a simple example where my ComboBox has a dataProvider that is
an ArrayCollection. This ArrayCollection is assigned to the results
of an HTTPService that retrieves an xml file of US States. The XML
file is just sitting on a local web server.

Why is it that when there is only 1 entry (State) in my XML file, the
ComboBox does not populate correctly (it is blank)?

Here is my XML:
--
?xml version=1.0 encoding=utf-8?
states

state
labelMO/label
dataJefferson City/data
/state

/states

Here is my code:
---
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:HTTPService
id=serviceTest
url=http://localhost:8080/states.xml;
result=resultHandler(event)
/

mx:ComboBox id=cmbTest labelField=label width=300
dataProvider={myAC}/
mx:TextArea width=292 id=txtTest1/
mx:TextArea width=290 id=txtTest2/
mx:Button label=Feed from file width=285 id=btnFeed
click=serviceTest.send()/

mx:Script
![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
public var myAC:ArrayCollection = new ArrayCollection();
public function resultHandler(event:ResultEvent):void
{
myAC = event.result.states.state;
}
]]
/mx:Script
/mx:Application







--
Hilary

--


Re: [flexcoders] Re: swf control

2007-02-22 Thread Hilary Bridel

Hi,
This might help a little:
http://www.bridel.org/?p=9

Hilary

www.bridel.org



On 2/23/07, wwwpl [EMAIL PROTECTED] wrote:


  Do you mind adding a small code snippet here as an example. I
searched help for Embed metadata. I found some help there, but I
have been unsuccessful rewinding a movie clip in an swf file that I
loaded with SWFLoader.

Thanks

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian
Deitte [EMAIL PROTECTED] wrote:

 For compile-time embedding, look for messages or documentation on
Embed metadata. For runtime loading, looking for info on the Loader
component. -Brian

 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Tom Fitzpatrick
 Sent: Friday, July 29, 2005 1:48 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] swf control

 I have a number of small .swfs created in Flash that each have a
motion
 tween and an embedded sound.

 What would be the best way to load them into a Flex app and use
 actionscript to control them - actions such as play, pause, rewind?

 - Tom






 --
 Flexcoders Mailing List
 FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
http://www.mail-archive.com/flexcoders%http://www.mail-archive.com/flexcoders%25
40yahoogroups.com
 Yahoo! Groups Links








--
Hilary

--


[flexcoders] Runtime CSS and embeded fonts not working

2007-02-22 Thread Hilary Bridel

Hi All,
I have a css file with embeded fonts that when loaded at compile time works
ok, but when compiled into a .swf runtime css file (with no errors), does
not render the embeded fonts.

Is there a trick to runtime css and embeded fonts, or possibly a bug?

--
Hilary

--


Re: [flexcoders] Runtime CSS and embeded fonts not working

2007-02-22 Thread Hilary Bridel

Hi Bjorn,
No.

All I am doing is swapping a compile time css to a runtime css.

Hilary

--
On 2/23/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


  Hi Hilary,

Does your app make use of Modules?




regards,


Bjorn



 On 23/02/2007, at 1:28 PM, Hilary Bridel wrote:



Hi All,
I have a css file with embeded fonts that when loaded at compile time
works ok, but when compiled into a .swf runtime css file (with no errors),
does not render the embeded fonts.

Is there a trick to runtime css and embeded fonts, or possibly a bug?

--
Hilary

--











--
Hilary

--


Re: [flexcoders] fyi : Apollo Camp San Francisco, March 16th 2007

2007-02-20 Thread Hilary Bridel

So Apollo Beta is being released when? ;-)

Hilary

www.bridel.org


On 2/21/07, Shannon Hicks [EMAIL PROTECTED] wrote:


   Any plans for other Apollo Camp cities in the future?



Shan



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mike Chambers
*Sent:* Tuesday, February 20, 2007 3:13 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] fyi : Apollo Camp San Francisco, March 16th 2007



fyi

We just announced Apollo Camp in San Francisco for March 16th, 2007.
ApolloCamp is a one night, single track conference hosted by Adobe
covering everything you need to know about getting started with building
Apollo applications using Flex.

http://apollocamp.eventbrite.com/

I also blogged info on it here:

http://weblogs.macromedia.com/mesh/archives/2007/02/announcing_apol.html
Details

Who : Anyone interested in using Flex to build Apollo Applications

What : ApolloCamp - one night mini conference for Flash and Flex
developers interested in getting started with Apollo

When : March 16th, 2007. 5 PM PST - 11:30 PM PST

Where : Adobe San Francisco Office. 601 Townsend St, San Francisco, CA
94103

Why : Why not?

How Much : Free and open to the public (Limited space and Registration
required)

What to Bring : Yourself, Laptop, any Flex apps you might want to get
running within Apollo. We will provide the Beer, Red Bull, Coffee,
Pizza, Wii, the getting started guide, knowledge, venue and bits.

mike chambers

[EMAIL PROTECTED] mesh%40adobe.com







--
Hilary

--


Re: [flexcoders] Controlling embedded SWF files, within Flex Application

2007-02-13 Thread Hilary Bridel

Hi Mike,
This might help a bit:
http://www.bridel.org/?p=9

Hilary

--


On 2/13/07, Mike Anderson [EMAIL PROTECTED] wrote:


  Hello All,

I am presently using SWFLoader, to bring in my Vector Maps, but now the
time has come where these compiled SWF Files, will be multi-framed, as
well as containing Properties and Methods, visible layers (which can be
toggled), etc. - for added functionality.

How can I access properties  execute functions that are embedded in the
SWF Files, from within Flex? I am not trying to remote control these
SWF's in another browser window, what I need to do is talk to them
directly from within the same application.

I've seen the LocalConnection topic come up a few times, as that's the
method 1.5 version of Yahoo Maps uses, to allow the API to work from
inside of Flex (this will of course, go away when the 2.0 version of the
Yahoo Maps API comes out).

Must I use the LocalConnection method, in order to simply speak to my
Embedded SWF Files? Or is there a more direct approach?

Just for a quick example, I was hoping to use something to this effect:

mySWFLoader.content.gotoAndPlay(10);

Well, you get the idea...

Any suggestions, would be greatly appreciated.

Mike






--
Hilary

--


Re: [flexcoders] PHP FLEX Login Component Free Source

2007-02-09 Thread Hilary Bridel

Thank you Anthony,
This will be useful to many.

Hilary

www.bridel.org



On 2/10/07, omnipotencezennou [EMAIL PROTECTED] wrote:


  I have just publish a working PHP / Flex login/Registration component
to my blog. You can right click to view the source. It is fully
commented and includes lots of features like client side validation
and a remember username feature for creating cookies on the client
computer.
Hope that this helps someone comments and suggestions welcome.

Link to the site:
;http://www.betadesigns.co.uk/index.php/blog/

Enjoy
Anthony







--
Hilary

--


Re: [flexcoders] Escaping textArea HTML to pass back to WebService...

2006-11-05 Thread Hilary Bridel
Hi Jamie,
Not sure if I understand what you require, but did you know you can
get a plain text representation of the html in the textarea using
myTextArea.text

Hilary

--

On 11/5/06, jamiebadman [EMAIL PROTECTED] wrote:
 Hi,

 I need to 'escape' the html text from a textArea to pass back to a
 WebService. I wondered if anyone out there has already written a
 convenient function to accomplish this in its entirety ? If you have
 and you're willing to share, please let me know. If no one's done this
 yet (and I'm not barking up the wrong tree entirely!) then I'll share
 when I've done it.

 Anyway, let me know if you can help (or if I'm going in a wrong/stupid
 direction).

 Cheers,

 Jamie.




 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links







-- 
Hilary

--


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Calling functions on loaded SWF

2006-09-23 Thread Hilary Bridel



Hi Tom,
Here is an example of Play() etc...
http://www.bridel.org/?p=9

Hilary
www.bridel.org

On 9/24/06, Tom Krcha [EMAIL PROTECTED] wrote:



Hi,

Does anybody know how to call functions on loaded SWF?

E.g.: I create my own animation in Flash IDE.
Then I load this swf with the animation into the flex swf using SWFLoader or Image.
How to call on that swf functions like play(), gotoAndPlay(), stop() … or my defined functions.

Thanks

Tom -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] asfunction in flex 2

2006-09-14 Thread Hilary Bridel
Ashish,
The following is from the docs:

++
The following code shows that the link event is dispatched when a user
clicks the hypertext link:
import flash.text.TextField;
 import flash.events.TextEvent;

 var tf:TextField = new TextField();
 tf.htmlText = a href='event:myEvent'Click Me./a;
 tf.addEventListener(link, clickHandler);
 addChild(tf);

 function clickHandler(e:TextEvent):void {
  trace(e.type); // link
  trace(e.text); // myEvent
 }

Hilary
www.bridel.org


On 9/14/06, ashishpatel2007 [EMAIL PROTECTED] wrote:
 I am trying to make this work in Flex 2 and looked at Nahuel's code.
 However, I do not see in his example where he is using a href or
 something similar when a user clicks text WITHIN htmlText.  Please
 correct me if I am wrong, but I think Nahuel uses the full text when
 the user clicks the enter key or presses the search button.  I am
 trying to do the following:

 textRange1.htmlText=unclickableText a
 href='asfunction:callfunction'clickableText/a
 I want to a call a function within the same .mxml file when the user
 clicks on 'clickableText'.  The function will eventually do a pop-up
 based on the text the user clicked.

 I don't think asfunction is available in Flex2.

 Any help would be appreciated.

 Thanks in advance,
 ashish
 --- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] wrote:
 
  I need this to work in Flex 1.5, is there a similar way to get it to
  work?  Basically I just need to know when the link was clicked or
  for that matter the marker was clicked.
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Learn from the master.  Nahuel's app won in his category in the
  Flex Derby.
   As a judge, I gave him mad props for getting this to work.  Here's
  how he
   did it:
  
   http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex-
  2-application
  
   - Original Message -
   From: jgraham_us jason_graham@
   To: flexcoders@yahoogroups.com
   Sent: Tuesday, July 18, 2006 1:32 AM
   Subject: [flexcoders] Yahoo Maps questions
  
  
   1)  I have a marker CustomPOIMarker, I want to embed a link and
  call
   an actionscript function in my flex code.  I have tried this with
   and without _parent,parent and it never works.  If I put a link to
   an HTML page it works fine.  But I need to notify my application
   when the click has occured.  Any ideas?  or a better way to do
  this?
  
   Example.
  
   var markerArgs = {index:marker 1,description:a
   href='asfunction:parent.cpiClicked'print something/a,
   title:a
   href='asfunction:_parent.cpiClicked'print something/a,
   markerColor:0x990099, strokeColor:0x00};
   .
   .
   .
   function cpiClicked() : Void
   {
 Echo.debug(Marker 1 clicked);
   }
  
  
  
  
  
  
  
  
  
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: http://www.mail-archive.com/flexcoders%
  40yahoogroups.com
   Yahoo! Groups Links
  
 







 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links













-- 
Hilary

--


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] ADOBE: Version of Distributable Player is Incorrect

2006-09-07 Thread Hilary Bridel



Tariq,
Can you share your experiences with this?
I have to convert from anything below version 9 on our novell network;-)
On 9/2/06, Tariq Ahmed [EMAIL PROTECTED] wrote:
Adobe,- I'm working with my customer to get Flash 9 installed on all theirdesktops.- It took our 
I.T dept days to get a push package going that silentlyuninstalled Flash 8 and installed Flash 9The problem now is the distributable version of the Flash Player is9.0.0.296, and Flex requires 
9.0.16.0.Can you update that?Thanks.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Help on coldfusion wizards

2006-08-18 Thread Hilary Bridel



Hi There,
I found it in :
C:\WINDOWS\Downloaded Installations

Hilary

www.bridel.org

On 8/18/06, Igor Costa [EMAIL PROTECTED] wrote:


Hi guysAccording to this site 
http://www.dcooper.org/blog/client/index.cfm?mode=entryentry=3A035639-4E22-1671-53EDEEE1CAA496A4 in the step 5 he said that has in the extras folder of CF mx7.2 the file CF_FBExtensions_b3. Where I can find this extention?
I cant find it5. Select the CF_FBExtensions_B3_0515.zip file, and then click Open. The file is located in the Extras folder if you installed ColdFusion MX 7.0.2 using the default values.
Thanks-- Igor Costawww.igorcosta.com 
 -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Duplicate function error using setters

2006-08-14 Thread Hilary Bridel



Are you extending a Flex component?
Maybe you are using avariable name already used by that component?

Hilary

www.bridel.org

On 8/14/06, Oriol Gual [EMAIL PROTECTED] wrote:


Hi,I'm getting a 1021 Duplicate function definition. when I declare the setters of to variables, there's no problem with the getters. The class is marked as Bindable, has a remote alias and both vars are private, and I'm using Flex 2 
What I'm doing wrong?Thank you,Oriol. -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Inspectable properties

2006-08-07 Thread Hilary Bridel



Hi There,
They only show when you compile to a SWC and select Category View in the flex properties window. Enumerable values are the same...

Hilary

www.bridel.org

On 8/8/06, dmandrio [EMAIL PROTECTED] wrote:
I'm testing custom component developpement.Why the component below don't show 'myString' propertie in Design mode ?
Thanks.--package{ import mx.core.UIComponent; public class MyCustomComponent extends UIComponent { [Inspectable(category=General, defaultValue=hello)]
 public var myString:String; public function MyCustomComponent() { super(); } }}
--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Initialization of MXML components

2006-08-07 Thread Hilary Bridel



We probably need a little more code to see what is going on, but I'll take a stab in the dark ;-)

Have you tried using creationComplete on the Canvas Class and calling a function from there?
mx:Canvas creationComplete=init() 

private function init():void{
myText.x = 50;
//or what ever...
}

Hilary

www.bridel.org

On 8/8/06, Lachlan Cotter [EMAIL PROTECTED] wrote:



Hi List,

I have a question about the initialisation rules for MXML components. My situation is as follows:

I have defined a custom MXML component that extends the Canvas class (myComponent).

MXML root node of the file, I put a Text element, assigning it an ID (myText).

I define a setter method on this class (myProperty) that takes a String argument and passes it to myText.text.

I use the custom component in the application, with a tag like this:

local:MyComponent myProperty=a value /

Sure enough the instance is created and the setter method is called. However, an error results when I try to access the property of the child Text object. Apparently it has not been initialised when the method is called. This results in an error (setting a property on a null object).


My question is if this is the expected behaviour and if there is a way to achieve this with MXML (setting properties of child objects from a setter method called at init time).

Thanks for any insights.

Cheers,
Lach


 -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] List and ViewStack Problem

2006-07-20 Thread Hilary Bridel



Hi Sal,
You are calling a method/function that does not exist.
Try replacing:
itemClick=panelVS.selectedIndex=ItemClickEvent(event).index

with:

itemClick=panelVS.selectedIndex=myList.selectedIndex

that should work...

Regards

Hilary

--
On 7/21/06, s_hernandez01 [EMAIL PROTECTED] wrote:
Hey FlexersI am trying to use the ViewStack to switch Panels from a ListComponent, but I am having no luck because I get an error saying Call
to possibly undefined method ItemClickEvent.Could someone help me,please?mx:Canvas x=0 y=0 width=100% height=100%mx:HBox x=0 y=0 width=100% height=100%
horizontalAlign=center verticalAlign=middlemx:List x=0 y=0 width=10% height=10% id=myListitemClick=panelVS.selectedIndex=ItemClickEvent
(event).indexmx:dataProvider mx:Arraymx:Object label = Panel 1/mx:Object label = Panel 2/ /mx:Array
/mx:dataProvider/mx:Listmx:ViewStack id=panelVS width=50% height=50% mx:Panel width=100% height=100% id=panelOne title=Panel One/
 mx:Panel width=100% height=100% id=panelTwo title=Panel Two//mx:ViewStack/mx:HBox/mx:CanvasThanksSal
 Yahoo! Groups Sponsor ~--See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] SWFLoader Issues

2006-07-12 Thread Hilary Bridel



Hi,
I have an example on my site with downloadable code.
http://www.bridel.org/

Hilary

--
On 7/12/06, flexnewbie06 [EMAIL PROTECTED] wrote:
Does anyone have any experience using SWFLoader to load SWF in FlexAPP?Specifically, maniputlating the SWF.
Thanks. Yahoo! Groups Sponsor ~--Great things are happening at Yahoo! Groups.See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] SWF Loader

2006-07-12 Thread Hilary Bridel



Hi,
There is an example on my site with a Flash 9 SWF.
http://www.bridel.org/

Hilary

--
On 7/12/06, flexnewbie06 [EMAIL PROTECTED] wrote:
I am trying to cast swf as MovieClip in Flex 2.0.The SWF wascreated with Flash 8...I get an coercion error...is this something
that can not be done or maybe I am doing it incorrectly.I have posted the error and my code.Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::[EMAIL PROTECTED]
 to flash.display.MovieClip. at EPlayer/::test() at EPlayer/___Button1_click()CODE:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=
http://www.adobe.com/2006/mxmllayout=absolutemx:Script ![CDATA[ import mx.core.FlexMovieClip; import mx.controls.SWFLoader
; function test():void{ var myMovieClip:MovieClip = MovieClip(mySWF.content); myMovieClip.gotoAndPlay(1); } ]]/mx:Script
mx:Panel height=406 width=525paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10y=10 x=10
mx:SWFLoader id=mySWF source=RFP intro.swf height=338width=459//mx:Panelmx:Button label=test x=300 y=424 click=test();/
/mx:Application Yahoo! Groups Sponsor ~--Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: SWF Loader

2006-07-12 Thread Hilary Bridel



Here is great example (by Peter Ent) of localconnection applied between Flex and SWF v8
http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm
Hilary

--
On 7/13/06, Derek Vadneau [EMAIL PROTECTED] wrote:


You could use ExternalInterface to communicate between the two. It's as easy to setup as LocalConnection (maybe easier).Check out this example:
http://tracethis.com/wp-content/playground/SWF9_SWF8_Comms/SWF9_SWF8_Comms.htmlThe content on the left is created by the SWF9 and the content on the right is a version 8 SWF. Typing in the top textfield of one side updates text in the lower textfield of the other side. And no _javascript_ involved.
With this you could communicate synchronously, even create Proxy/__resolve functionality to make most calls transparent.

On 7/12/06, JesterXL 
[EMAIL PROTECTED]  wrote: 






Yeah, basically. It's asynchronus communication. It's not as cool as myLoadedSWF.gotoAndPlay(2), but those are the breaks.
- Original Message - From: flexnewbie06 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.com

Sent: Wednesday, July 12, 2006 9:37 AMSubject: [flexcoders] Re: SWF LoaderThank you for your response...I am not very familiar withLocalConnection, however I have a general understanding...would I
need to create a sender lc in my Flex app and add a receiver lcin my SWF to make the two communicate?--- In 
flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: It's an AVM1Movie, not a MovieClip. Unfortunately, this preventsyou from talking to the SWF; you have to use LocalConnection, or some other
binary socket way. Have you tried with Flash 9 Alpha yet? I haven't had time but Ibet this'd work. - Original Message -  From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 8:48 AM
 Subject: [flexcoders] SWF Loader I am trying to cast swf as MovieClip in Flex 2.0. The SWF was created with Flash 8...I get an coercion error...is this something that can not be done or maybe I am doing it incorrectly.
 I have posted the error and my code. Any Suggestions? TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to flash.display.MovieClip
. at EPlayer/::test() at EPlayer/___Button1_click() CODE: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml layout=absolute
 mx:Script ![CDATA[ import mx.core.FlexMovieClip; import mx.controls.SWFLoader; function test():void{ var myMovieClip:MovieClip = MovieClip(mySWF.content
); myMovieClip.gotoAndPlay(1); } ]] /mx:Script mx:Panel height=406 width=525 paddingTop=10 paddingBottom=10 paddingLeft=10
paddingRight=10 y=10 x=10 mx:SWFLoader id=mySWF source=RFP intro.swf height=338 width=459/
 /mx:Panel mx:Button label=test x=300 y=424 click=test();/ /mx:Application
 -- Flexcoders Mailing List FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links

-- 
Derek Vadneau  -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] SWF's not unloading

2006-07-11 Thread Hilary Bridel



Not a problem Angus,
I seem to remember seeing this as an issue somewhere. Streams are not killed when the application is unloaded.
Other than your possible solution, I am not aware of a workaround at this time.

Hilary

--
On 7/10/06, Angus Johnson [EMAIL PROTECTED] wrote:


Gotcha. Thanks Hilary. I'm pretty happy with the way swf's are loading now. Looks like garbage collection destroys unused swf's after I made sure the references were deleted.I still have an issue unloading swf's that are not movies but applications. For example, an application written by someone else which uses the sound class and streams music to the client. It continues to play even when unloaded and removed. 
I guess the best way to deal with this is get other developers to implement a hook or interface which can be called by the parent application, something like onTerminate(). That method then tidies up the sub application and in this case closes the sound stream. Might need to spec out an interface or something similar. 
CheersAngus 

On 07/07/06, Hilary Bridel 
[EMAIL PROTECTED] wrote:









Hi Angus,
swfContent is a reference to the actual SWF file which isthe child of Loader.
swfContent.loaderInfo.loader.unload() will remove the SWF file.
You are right to say that removeChild(myLoader) would completely remove the Loader, but in this case I need it to load the SWF again.

Hilary


--On 7/7/06, Angus Johnson [EMAIL PROTECTED] 
 wrote:



Thank you both for the reply. Hilary, your example has been very helpful. Correct me if I'm wrong (very likely) but even though you unload the swfContent wouldn't it still be in memory? From my very brief read up of garbage collection wouldn't it still exist unless you removed myLoader references, probably with myLoader = null, then removed it from the application with 
this.removeChild('myLoader')?I'll keep on eye on that blog for future tips.Cheers
Angus

On 07/07/06, Jeremy Lu  [EMAIL PROTECTED] wrote: 







Resource management and garbage collection is a lot different then it used to be, here's a great post on it (from Grant Skinner's blog):
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html The point is, you should stop all playing sound, remove all listeners from EventDispatcher and nullified the Display Object or loaded swfs. 
I believe in the years to come, this issue will be brought up again and again :-)Jeremy.

On 7/6/06, Angus Johnson  [EMAIL PROTECTED] 
 wrote:







Hi,I have a canvas called parentView into which I add SWF child objects via...parentView.addChild(mySWF);mySWF.load();No problems loading. When I want to change the contents of parentView and swap out the loaded SWF I run... 
parentView.removeAllChildren();// get new mySWFparentView.addChild(mySWF);mySWF.load();Now I have noticed that the previous SWF's don't seem to unload. I have an example that runs a sound clip and I can still hear that playing even if I have replaced mySWF content in the parent several times. I also noticed that flash memory usage continues to increase with each load so something is wrong. Debug correctly shows only one child loaded. 
SWFLoader class does't have an unload() method. removeAllChildren() should work right?CheersAngus





-- Hilary-- 

 
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error

2006-07-10 Thread Hilary Bridel



Thanks Carson, that works now.
Is this documented as a change between B3 and the final release somewhere?
Hilary

--
On 7/10/06, Carson Hager [EMAIL PROTECTED] wrote:



You likely need to add an import for flash.net.* to your code so the compiler can know what class you're referring to. As a note, Flex adds a number of implicit imports to mxml applications including 
flash.net.* which would take care of this issue had the code been in an application but does not add them to mxml components or AS files. The import should do the trick.


Carson

Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com
Email: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466




From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Hilary BridelSent: Sunday, July 09, 2006 8:18 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error




Hi People,
This worked ok in Flex 2B3, but not in the final release of Flex 2.
The code below produces the compile time error:
1120: Access of undefined property URLRequestMethod.
public function DataLoadingTest (){var request:URLRequest = new URLRequest (urlString);request.contentType = text/xml;request.data = "">request.method = URLRequestMethod.POST
 ; //This is the offending linetrace(request.data);dataLoader = new URLLoader ();dataLoader.addEventListener (complete, onDataLoad);dataLoader.addEventListener (securityError, onSecurityError); 
dataLoader.load (request);}
Any ideas?-- Hilary-- 


 -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error

2006-07-09 Thread Hilary Bridel



Hi People,
This worked ok in Flex 2B3, but not in the final release of Flex 2.
The code below produces the compile time error:
1120: Access of undefined property URLRequestMethod.
public function DataLoadingTest (){var request:URLRequest = new URLRequest (urlString);request.contentType = text/xml;request.data = "">request.method = URLRequestMethod.POST
; //This is the offending linetrace(request.data);dataLoader = new URLLoader ();dataLoader.addEventListener (complete, onDataLoad);dataLoader.addEventListener (securityError, onSecurityError);
dataLoader.load (request);}
Any ideas?-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] SWF's not unloading

2006-07-07 Thread Hilary Bridel



Hi Angus,
swfContent is a reference to the actual SWF file which isthe child of Loader.
swfContent.loaderInfo.loader.unload() will remove the SWF file.
You are right to say that removeChild(myLoader) would completely remove the Loader, but in this case I need it to load the SWF again.

Hilary

--On 7/7/06, Angus Johnson [EMAIL PROTECTED] wrote:



Thank you both for the reply. Hilary, your example has been very helpful. Correct me if I'm wrong (very likely) but even though you unload the swfContent wouldn't it still be in memory? From my very brief read up of garbage collection wouldn't it still exist unless you removed myLoader references, probably with myLoader = null, then removed it from the application with 
this.removeChild('myLoader')?I'll keep on eye on that blog for future tips.Cheers
Angus

On 07/07/06, Jeremy Lu  [EMAIL PROTECTED] wrote:
 






Resource management and garbage collection is a lot different then it used to be, here's a great post on it (from Grant Skinner's blog):
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html The point is, you should stop all playing sound, remove all listeners from EventDispatcher and nullified the Display Object or loaded swfs.
I believe in the years to come, this issue will be brought up again and again :-)Jeremy.

On 7/6/06, Angus Johnson  [EMAIL PROTECTED]
 wrote:







Hi,I have a canvas called parentView into which I add SWF child objects via...parentView.addChild(mySWF);mySWF.load();No problems loading. When I want to change the contents of parentView and swap out the loaded SWF I run... 
parentView.removeAllChildren();// get new mySWFparentView.addChild(mySWF);mySWF.load();Now I have noticed that the previous SWF's don't seem to unload. I have an example that runs a sound clip and I can still hear that playing even if I have replaced mySWF content in the parent several times. I also noticed that flash memory usage continues to increase with each load so something is wrong. Debug correctly shows only one child loaded. 
SWFLoader class does't have an unload() method. removeAllChildren() should work right?CheersAngus


 
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] SWF's not unloading

2006-07-06 Thread Hilary Bridel



Hi Angus
I have an example of loading a swf in Flex 2 with code on my site.

http://www.bridel.org/

Let me know if it helps...

Hilary

--
On 7/6/06, Angus Johnson [EMAIL PROTECTED] wrote:


Hi,I have a canvas called parentView into which I add SWF child objects via...parentView.addChild(mySWF);mySWF.load();No problems loading. When I want to change the contents of parentView and swap out the loaded SWF I run... 
parentView.removeAllChildren();// get new mySWFparentView.addChild(mySWF);mySWF.load();Now I have noticed that the previous SWF's don't seem to unload. I have an example that runs a sound clip and I can still hear that playing even if I have replaced mySWF content in the parent several times. I also noticed that flash memory usage continues to increase with each load so something is wrong. Debug correctly shows only one child loaded. 
SWFLoader class does't have an unload() method. removeAllChildren() should work right?CheersAngus -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] FLEX 2B3 - After installing Flash 9 IDE Alpha, Debug player in FB does not work

2006-06-28 Thread Hilary Bridel



Hi people,
After installing Flash 9 IDE Alpha for AS3, the Debug player in FB does not work.

I have reinstalled both apps, but cant get the debug player in FB to work.

Can I download just the debug player from somewhere?
Does the Flash 9 IDE Alpha use the same debug player as FB?

Regards-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Using Eclipse to create a central library

2006-06-24 Thread Hilary Bridel



I would be interested in the answer...
On 6/24/06, hank williams [EMAIL PROTECTED] wrote:


Ignore this one. Figured it out.
Hank

On 6/24/06, hank williams [EMAIL PROTECTED]
 wrote: 

I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? 

Hank 
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Using Eclipse to create a central library

2006-06-24 Thread Hilary Bridel



Thanks for that Hank,
That should help anyone looking for a solution to this issue.

Hilary

--
On 6/24/06, hank williams [EMAIL PROTECTED] wrote:


Here's how you include other directories as part of source code in a project in eclipse1. right click on the folder that is your flex project.2. select properties down at the bottom of the menu
3. in the panel on the left side, select Flex Build Path 4. in the source path tab, press on the button add folder5. Navigate to the folder *containing the folder or folders that you want to include. For my structure I had a directory called src that contained folders like com. So in my case I selected src. This is necessary so that you can find fully qualified package paths. 
RegardsHank

On 6/24/06, Hilary Bridel [EMAIL PROTECTED]
 wrote:




I would be interested in the answer...

On 6/24/06, hank williams [EMAIL PROTECTED]
  wrote: 


Ignore this one. Figured it out.
Hank

On 6/24/06, hank williams [EMAIL PROTECTED]
  wrote: 

I have several projects in eclipse. I have a library of code that I want to be able to use in multiple projects including flex. How do I tell a flex app or eclipse, to look in another project in my workspace for the code? I dont want to change the path of my code for each project. I want my package path to remain the same for each new package that needs access to my common code. Any ideas on how to do this? 

Hank


-- Hilary-- 

 
-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] MovieClips in AS3

2006-06-18 Thread Hilary Bridel



Weyert, that's correct.
If I cant do it with a flash 8 swf, how can I make a flash 9/AS3 movieclip so I can use it in Flex with gotoAndPlay etc.
The AS3 docos say that you can only manipulate AS3 movieclips.

Hil

--
On 6/18/06, Weyert de Boer [EMAIL PROTECTED] wrote:
I think he wants to import a Flash 8 SWF and use gotoAndPlay() commandson a movieclip of the loaded flash 8 movie.
 What I want to do is import/load a flash 8 SWF and manipulate it with gotoAndPlay etc, but you can only do that with AS3 MC's. I don't really understand what you mean? IE only do that with AS3 MC's.
 Import  load into a Flex Application? Yahoo! Groups Sponsor ~--Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM~---
Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] MovieClips in AS3

2006-06-18 Thread Hilary Bridel



Ok,
I did some more research.
You cannot programmatically make AS3 movieclips.
Ali Mills has a blog post with a workaround using localconnection until Blaze is available

http://www.asserttrue.com/articles/2006/05/16/library-type-assets-in-actionscript-3-0-using-assets-created-with-current-releases-of-flash-authoring


Thanks Ali...

Hil

--
On 6/18/06, Hilary Bridel [EMAIL PROTECTED] wrote:


Weyert, that's correct.
If I cant do it with a flash 8 swf, how can I make a flash 9/AS3 movieclip so I can use it in Flex with gotoAndPlay etc.
The AS3 docos say that you can only manipulate AS3 movieclips.

Hil

--


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] MovieClips in AS3

2006-06-17 Thread Hilary Bridel



Hi all,
Is it possible to programmatically build an AS3 movieclip complete with frame names and content on each frameetc?
If not, does that meanwe have to wait for the next version of the Flash IDE?-- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] MovieClips in AS3

2006-06-17 Thread Hilary Bridel



Thanks Mike,
What I want to do is import/load a flash 8SWF and manipulate it with gotoAndPlay etc, but you can only do that with AS3 MC's.

How do I get on the new Flash IDE Beta ;-)

Hil

--
On 6/18/06, Michael Schmalle [EMAIL PROTECTED] wrote:


Hi,As far as I know it isn't;You can manipulate the MovieClip object but;The new FlashIDE will incorperate this stuff. FlexBuilder == code/developmentFlash == design/graphics
You can still use Flash8 swfs in AS3, all the code is stripped out so you would have to use The loader object to access the content swf and control the MovieClip object from there.Peace, Mike

On 6/17/06, Hilary Bridel [EMAIL PROTECTED]
 wrote: 







Hi all,
Is it possible to programmatically build an AS3 movieclip complete with frame names and content on each frameetc?
If not, does that meanwe have to wait for the next version of the Flash IDE?-- Hilary-- 

-- What goes up, does come down.  -- Hilary-- 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___