[flexcoders] SWC not getting updated everytime

2010-03-07 Thread akhter.fahim
Hi,

Whenever I compile my SWC it doesn't get compiled with the project itself. In 
project Properties I delete the swc and then add it again only then it compiles 
again.

How do I get flex to get the changes automatically?



[flexcoders] somethind wrong with air2.0

2010-03-07 Thread zhang_yi19850...@yahoo.cn
I use air2.0 communicate with nativeProcess

when i read something from nativeProcess the right value is 2

but i get the value is Invalid keyboard code specified 2, Invalid keyboard 
code specified is not i hope.

i don't know what happed ?help me please!

c code


#include stdio.h

int main(void)

{

int a;

scanf(%d,a);

printf(%d,a+100);

 return 0; 

}


 
flex:


public override function getParmeter():void

{

var str:String = 
nativeProcess.standardOutput.readUTFBytes((nativeProcess.standardOutput.bytesAv 
ailable));

trace(getParmeter= +str);

}

 
public override function putParmeter():void

{

trace(putParmeter=+Number(super.putParmeters));

nativeProcess.standardInput.writeUTFBytes(Number(super.putParmeters)+\n);

}




[flexcoders] AIR mx:HTML htmlText problem

2010-03-07 Thread plucka70
Im using a mx:HTML component in an AIR application. 

Its working fine, however. If I manually set the html content using 


htmlPage.htmlText = '' 


The page renders, but it doesn't style it using the included CSS link 


A flat html page of the same content works, has anyone seen this or 
have a solution? 






[flexcoders] Importing fla and transiitions from flash?

2010-03-07 Thread Dan Pride
I am taking over a client who has a .fla site with several fancy 
Ribbon,Bubbles, and Stripes transitions I want to import.

Is it easier to just edit it in Flash or to Bring it into Flash builder?

I would like to at least bring in the original parts into Flash Builder beta 2.

Working in Flash Beta 2 until the release.

Dan Pride


  


Re: [flexcoders] SWC not getting updated everytime

2010-03-07 Thread Peeyush Tuli
are you compiling a library project and then unable to get the updated swc?
- must be an access problem in the output directory

or is your flex project dependent one of your library projects?
- why did you add the swc as a reference, if you are also coding the lib
project. A better practice would be to add a project reference on the lib
project instead. If you have already done that, your build order in the
workspace might be a problem.


On Sun, Mar 7, 2010 at 1:52 PM, akhter.fahim akhter.fa...@gmail.com wrote:



 Hi,

 Whenever I compile my SWC it doesn't get compiled with the project itself.
 In project Properties I delete the swc and then add it again only then it
 compiles again.

 How do I get flex to get the changes automatically?

  



[flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-07 Thread Michael
Hey there,

I've successfully integrated FlexUnit tests into my continuous integration 
environment (in my case, CruiseControl.rb).

I did things a little differently than most people:

1) I don't use Ant to drive the tests.  We have our own build scripts in Ruby, 
and don't make much use of Ant.

2) The test runner in my case is an AIR application.  This sidesteps several 
problems inherent with FlexUnit, one of them (as you noted) the need to open a 
web browser.

I wrote this all up on my blog:

http://digitaldumptruck.jotabout.com/?p=26

Hope you find some of this useful.

Regards,
Michael Portuesi

--- In flexcoders@yahoogroups.com, M. Fernanda Gioiosa fgioi...@... wrote:

 Hello,
  I'm working in a project with FlexUnit, Ant and Bamboo as continuos
 integration tool, have you ever try to do this? How is the ant tasks that
 you need to Run? How the FlexUnitTestRunner works in the servers (because
 always open the browser for running the tests)? Do you have any example of
 this working?
 I would appreciate any information about this, there isn't much information
 about this in the websites!
 
 Thanks a lot,
 Fer
 
 this is the part that runs the test in the ant file.
 
 !-- Run unit test --
 target name=unit-tests depends=init description=Compiles and runs
 the tests
 mxmlc file=${flex.unit.runner}
 output=${flex.unit.swf}
 actionscript-file-encoding=${ENCODING}
 keep-generated-actionscript=false
 incremental=false
 load-config filename=${FLEX_HOME}/frameworks/flex-config.xml
 /
 source-path path-element=${FLEX_HOME}/frameworks /
 compiler.source-path path-element=${src.dir} /
 compiler.include-libraries dir=${lib.dir}
 append=true
 include name=**/*.swc /
 /compiler.include-libraries
 /mxmlc
 echoRunning Test Runner SWF/echo
 flexunit swf=${flex.unit.swf}
 toDir=${report.dir}
 haltonfailure=false
 verbose=true
 localTrusted=true
 timeout=9/
 echoRan Test Runner SWF/echo
 
 echoGenerate Readable Tests/echo
 junitreport todir=${report.dir}
 fileset dir=${report.dir}
 include name=Test-*.xml/
 /fileset
 report format=frames todir=${report.dir}/html/
 /junitreport
 echoGenerated Readable Tests/echo
 /target





Re: [flexcoders] SWC not getting updated everytime

2010-03-07 Thread Fahim Akhter
My swf has sprites (classes) which are used to extend other classes in my
project e.g

BodyView is a movieclip in my swc
BodyModel is a class in my main project extended through BodyView

When I was using flash develop everytime I compiled the swc it automatically
got updated in the project on compilation. This does not happen in flex
Builder.

The only way I get the flex Develop to update is when I goto project options
change the options of SWC to merge code click ok. Go back and then click on
runtime press ok and compile.

On Sun, Mar 7, 2010 at 10:22 PM, Peeyush Tuli peeyus...@gmail.com wrote:



 are you compiling a library project and then unable to get the updated swc?
 - must be an access problem in the output directory

 or is your flex project dependent one of your library projects?
 - why did you add the swc as a reference, if you are also coding the lib
 project. A better practice would be to add a project reference on the lib
 project instead. If you have already done that, your build order in the
 workspace might be a problem.


 On Sun, Mar 7, 2010 at 1:52 PM, akhter.fahim akhter.fa...@gmail.comwrote:



 Hi,

 Whenever I compile my SWC it doesn't get compiled with the project itself.
 In project Properties I delete the swc and then add it again only then it
 compiles again.

 How do I get flex to get the changes automatically?