[flexcoders] Flex XML editor

2009-10-16 Thread primo411
Hi everyone,
I want to create an editor for XML files in Flex. Does anyone know if there
are already existing projects (open-source) that implement this ? I could
not find anything (excepted commercial apps), but I guess someone already
had the need to do that :)

Cheers


[flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-16 Thread seanmcmonahan

Using Flex Builder 3 I had to add the leading slash to Embeds when using Ant as 
well.  I'm pretty sure one of the previous posters is right: it's all about the 
paths and FB does some magic behind the scenes (adds a leading slash perhaps?) 
that Ant doesn't.
--- In flexcoders@yahoogroups.com, Josh On j...@... wrote:

 Thanks,
 
  
 
 I had the problem which prevented ant from seeing the asset files, and that
 was fixed by adding a slash to the front of the asset path.  That problem
 caused a compile error.  This error only happens at run-time and only after
 compiling with recent builds using ant. I also tried using flex tasks and it
 produced the same runtime errors. It all works perfectly when I compile
 using flex_sdk_4.0.0.7219, with ant or otherwise.
 
  
 
 Josh
 
  
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of ag_rcuren
 Sent: Thursday, October 15, 2009 5:57 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Does the Embed metatag still work in the latest
 versions of the SDK?
 
  
 
   
 
 I had this problem once and it turns out that when you are using Flex
 builder it does some magic to the build path. This does not happen when
 you build with ant and I had to move some files around so that mxmlc could
 find everything. I believe that mxmlc can only see the src path and its sub
 directories, someone correct me if I am wrong.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
 joshonemail josh@ wrote:
 
  It works when compiling using interface in flex - using all sdks. 
  I get the problem when I compile using ANT, so it is most likely my own
 doing.
  
  My build.properties file:
  SRC_DIR = ${basedir}
  DEPLOY_DIR = ../bin-debug
  # Flex 4-Beta 2 4.0.0.10485 Tue Sep 22 2009
  # Flex 4-Beta 1 4.0.0.7219 Wed May 13 2009
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10547
  # FLEX_HOME = C:\\flex_sdk_4.0.0.7219
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10485
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10988
  FLEX_HOME = C:\\flex_sdk_4.0.0.10963
  MXMLC_EXE = ${FLEX_HOME}\\bin\\mxmlc.exe
  FLASHPLAYER_EXE = ${FLEX_HOME}\\runtimes\\player\\10\\win\\FlashPlayer.exe
  FLEX_TASK_JAR = ${FLEX_HOME}\\ant\\lib\\flexTasks.jar 
  
  My build.xml:
  ?xml version=1.0 encoding=utf-8?
  project name=EmbedTest basedir=../src/
  property file=../build/build.properties /
  echoMXMLC_EXE: ${MXMLC_EXE}/echo
  !--
  - CLEAN
  - deletes all files from bin-debug
  --
  target name=clean
  delete includeemptydirs=true
  fileset dir=${DEPLOY_DIR} includes=**/*/
  /delete
  /target
  
  !-- COMPILE --
  target name=compile_embed_test
  echoCOMPILE/echo
  exec executable=${MXMLC_EXE} dir=${basedir} failonerror=true
  arg line='${SRC_DIR}\EmbedTest.as'  /
  arg line=-o '${DEPLOY_DIR}\EmbedTest.swf'  /
  arg line=-debug  /
  /exec
  /target
  
  !-- LAUNCH --
  target name=launch
  echoLAUNCH/echo
  exec executable=${FLASHPLAYER_EXE} errorproperty=trace.output
  arg line='${DEPLOY_DIR}\EmbedTest.swf' /
  /exec
  /target
  
  target name=clean compile launch
 depends=clean,compile_embed_test,launch/
  
  /project
  
  The source:
  package
  {
  import flash.display.Bitmap;
  import flash.display.Sprite;
  
  public class EmbedTest extends Sprite
  {
  
  [Embed(source='/image_assets/ui/arrow.gif')]
  private static var Arrow:Class;
  
  public function EmbedTest()
  {
  var arrow_bm:Bitmap = new Arrow();
  addChild(arrow_bm);
  }
  }
  }
  
  I still get the same results as below when using ant with these
 parameters. Any thoughts appreciated.
  
  Josh
  
  
  
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
 joshonemail josh@ wrote:
  
   Hi,
   I am embedding a graphic at compile using the Embed metatag in an AS3
   project using Flash Builder 4. It compiles in both Beta 1 (build
   4.0.0.7219) and Beta 2 (Flex 4-Beta 2 4.0.0.10485) - but in beta 2 it
   throw runtime errors.
   Here is how I embed:[Embed(source='/image_assets/ui/arrow.gif')] //the
   first slash is necessary for the compilerprivate static var Arrow:Class;
   Here is how I use the asset:new Scrollbar.Arrow() // as a Bitmap
   This is the runtime error I get after compiling with no errors in
   4.0.0.10485 and later:VerifyError: Error #1014: Class
   mx.core::BitmapAsset could not be found.ReferenceError: Error #1065:
   Variable Scrollbar_Arrow is not defined.
   Has the method for embedding assets changed in an Actionscript project?
   Or am I missing something? likely!
   Thanks,
   Josh
  
 





[flexcoders] Flex performance problem, pure MVC, AIR

2009-10-16 Thread Vladimir
I made Image Browser application. User can select any number of images and 
browse them in application.

I use Flex SDK 3.4
AIR framework
Pure MVC Framework

Main screen contains big container for images and one container that preview 
same images just smaller (thumbnails). For thumbs I used TileList controll with 
Simple Image item renderer. Each image is represented like PImage class value 
object that contains image ID and path.

When user select images that want to browse all images (PImage) are stored in 
ArrayCollection.

Problem:
When I select big number of images 50...200 or more and scroll in thumbnail 
container left-right I feel bad performance. User want to have smooth scroll 
but it's slow. I turned on live scroll on that container but still it's slow.

Is there any other way to solve this performance issue?

PS

Images must be storred in that ArrayCollection.



[flexcoders] popup window send event to main screen

2009-10-16 Thread markflex2007
Hi,

Do you think if it is possible for popup Flex window to send event to main 
Application screen?

Thanks

Mark



[flexcoders] Re: Help me name this eclipse feature so I can log a bug

2009-10-16 Thread dfalling
I was referring to the mac keyboard shortcuts.  The ones you pointed out are 
correct, but the behavior still isn't what I want- the cursor moves further 
than it should when doing ctr-left/right / alt-left/right.  It should stop at 
periods, not just at spaces, parentheses, and quotes.

--- In flexcoders@yahoogroups.com, primo411 primo...@... wrote:

 I don't think this is a bug, I will explain you why: ALT+LEFT/RIGHT is the
 shortcut for history navigation, ALT+LEFT brings you back to were you were.
 If you want to move word by word, try: CTRL+LEFT/RIGHT
 If you want to go to the beginning or the end of the line, just use the
 begin and end keys of your keyboard !
 
 Cheers
 
 2009/10/15 dfalling dfall...@...
 
 
 
  I'm trying to think of the name of this feature so I can log a Jira for
  it...
 
  When using Eclipse with Java, you can use alt/option to move intelligently
  through code.
 
  For example: assuming ^ is your insertion point in Java:
  Math.floor(^
  alt-left
  Math.^floor(
 
  In Flex though, the behavior is different:
  Math.floor(^
  alt-left
  ^Math.floor(
 
  I greatly prefer the Java way- I frequently will copy my selected line with
  command-option-up/down, then try to alt-arrow over to swap out the function.
  FB leaves me further away from where I want to be than vanilla Eclipse.
 
  Does anyone know how to describe this so I can log another Jira to be
  ignored? :P
 
  Thanks!
 
   
 





RE: [flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-16 Thread Josh On
Hi,

 

 I am using a leading slash in the path to the asset:

[Embed(source='/image_assets/ui/arrow.gif')]

 

Are you talking about a different path somewhere?

 

The thing is, it does compile, I would think if it couldn't find the class
at compile time then there would be a compile error (which there is when I
don't use a leading slash).  But I get a runtime error:

 

VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.

 

I have tried explicitly importing BitmapAsset in the code, and using
BitmapAsset as the cast of the instance when I create it, all to no avail.

Can anyone else compile an actionscript project against the latest builds
(Flex 4 Beta 2 and later) using ant, that employs the {Embed] metatag?

 

I would file a bug - but I am not sure exactly where the bug lies - in the
compiler or the SDK or the player, or indeed if there is actually a bug at
all - perhaps there has been a change in the way the [Embed] metatag works,
or a new compiler instruction, or something .

 

Josh

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of seanmcmonahan
Sent: Friday, October 16, 2009 7:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Does the Embed metatag still work in the latest
versions of the SDK?

 

  


Using Flex Builder 3 I had to add the leading slash to Embeds when using Ant
as well. I'm pretty sure one of the previous posters is right: it's all
about the paths and FB does some magic behind the scenes (adds a leading
slash perhaps?) that Ant doesn't.
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Josh On j...@... wrote:

 Thanks,
 
 
 
 I had the problem which prevented ant from seeing the asset files, and
that
 was fixed by adding a slash to the front of the asset path. That problem
 caused a compile error. This error only happens at run-time and only after
 compiling with recent builds using ant. I also tried using flex tasks and
it
 produced the same runtime errors. It all works perfectly when I compile
 using flex_sdk_4.0.0.7219, with ant or otherwise.
 
 
 
 Josh
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
 Behalf Of ag_rcuren
 Sent: Thursday, October 15, 2009 5:57 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Does the Embed metatag still work in the latest
 versions of the SDK?
 
 
 
 
 
 I had this problem once and it turns out that when you are using Flex
 builder it does some magic to the build path. This does not happen when
 you build with ant and I had to move some files around so that mxmlc could
 find everything. I believe that mxmlc can only see the src path and its
sub
 directories, someone correct me if I am wrong.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com ,
 joshonemail josh@ wrote:
 
  It works when compiling using interface in flex - using all sdks. 
  I get the problem when I compile using ANT, so it is most likely my own
 doing.
  
  My build.properties file:
  SRC_DIR = ${basedir}
  DEPLOY_DIR = ../bin-debug
  # Flex 4-Beta 2 4.0.0.10485 Tue Sep 22 2009
  # Flex 4-Beta 1 4.0.0.7219 Wed May 13 2009
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10547
  # FLEX_HOME = C:\\flex_sdk_4.0.0.7219
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10485
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10988
  FLEX_HOME = C:\\flex_sdk_4.0.0.10963
  MXMLC_EXE = ${FLEX_HOME}\\bin\\mxmlc.exe
  FLASHPLAYER_EXE =
${FLEX_HOME}\\runtimes\\player\\10\\win\\FlashPlayer.exe
  FLEX_TASK_JAR = ${FLEX_HOME}\\ant\\lib\\flexTasks.jar 
  
  My build.xml:
  ?xml version=1.0 encoding=utf-8?
  project name=EmbedTest basedir=../src/
  property file=../build/build.properties /
  echoMXMLC_EXE: ${MXMLC_EXE}/echo
  !--
  - CLEAN
  - deletes all files from bin-debug
  --
  target name=clean
  delete includeemptydirs=true
  fileset dir=${DEPLOY_DIR} includes=**/*/
  /delete
  /target
  
  !-- COMPILE --
  target name=compile_embed_test
  echoCOMPILE/echo
  exec executable=${MXMLC_EXE} dir=${basedir} failonerror=true
  arg line='${SRC_DIR}\EmbedTest.as'  /
  arg line=-o '${DEPLOY_DIR}\EmbedTest.swf'  /
  arg line=-debug  /
  /exec
  /target
  
  !-- LAUNCH --
  target name=launch
  echoLAUNCH/echo
  exec executable=${FLASHPLAYER_EXE} errorproperty=trace.output
  arg line='${DEPLOY_DIR}\EmbedTest.swf' /
  /exec
  /target
  
  target name=clean compile launch
 depends=clean,compile_embed_test,launch/
  
  /project
  
  The source:
  package
  {
  import flash.display.Bitmap;
  import flash.display.Sprite;
  
  public class EmbedTest extends Sprite
  {
  
  [Embed(source='/image_assets/ui/arrow.gif')]
  private static var Arrow:Class;
  
  public function EmbedTest()
  {
  var arrow_bm:Bitmap = new Arrow();
  addChild(arrow_bm);
  }
  }
  }
  
  I still get the same results as below when using ant with these
 parameters. Any 

[flexcoders] Strange DragDrop problem

2009-10-16 Thread reflexactions
I have a HBox with two VBox's in. 
Initial lets say the VBox1 is 300px wide, but I hide same controls and reduce 
its width to 30.

Now I am trying to drag and drop between two grids in VBox2.

The problem I am having is I can't drop into a grid if that grid is within 
300px of the edge i.e. where the edge of VBox1 was previously.

Specifically the drop feedback is indicating can't drop.

If I resize VBox1 back to 300px I can then drop into the grid in VBox2 without 
a problem as its now shifted over.

Any thoughts on what the issue is?





[flexcoders] Re: popup window send event to main screen

2009-10-16 Thread valdhor
Yes you can.

Add an event listener to the systemManager of the application. systemManager is 
the owner for popup windows.

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote:

 Hi,
 
 Do you think if it is possible for popup Flex window to send event to main 
 Application screen?
 
 Thanks
 
 Mark





[flexcoders] flex air custom chrome html control

2009-10-16 Thread deneme2010
Hi everyone,
I try to do some air app with custom chrome. I download sample project from 
web, changed config file to work with air 1.5, put one html control on app to 
load external htmla and create air file.

Everything works perfect, excluding one thing. when I try to load html page 
created by flex, it doesn't show anything. 

When I change transparency setting in config file it does show html page other 
wise it shows nothing.

in custom chrome with transparency it does show pages like youtube and msn 
which have swf content within but not mine flex generated html page

Does anyone have solution for this?

Thanks
Deniz



[flexcoders] Re: Flex XML editor

2009-10-16 Thread Tracy
I created one for an example.  It is in Flex 2, but maybe something in there 
will be useful to you.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=544

Tracy Spratt

--- In flexcoders@yahoogroups.com, primo411 primo...@... wrote:

 Hi everyone,
 I want to create an editor for XML files in Flex. Does anyone know if there
 are already existing projects (open-source) that implement this ? I could
 not find anything (excepted commercial apps), but I guess someone already
 had the need to do that :)
 
 Cheers





[flexcoders] onMouseOver buttons - how to ? as in Flex Store

2009-10-16 Thread tex_learning_flex
Can anyone point me to an explanation of how to achieve the effect of
buttons appearing onMouseOver as in the Flex Store
http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html
 app (
http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html
http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html
- Products page)

many, many thanks in advance,

Tex


[flexcoders] Re: defining more than one class in a simple .as file (ref)

2009-10-16 Thread Tracy
Please do not hijack threads.  Unless your post is directly applicable to 
another, start a new topic.

Do not just change the subject line.  It confuses some threaded readers, like 
yahoo's html version.

Tracy

--- In flexcoders@yahoogroups.com, dennis den...@... wrote:

 I want to create more than one class in a single .as file, but finally this
 is not allowed! 
 
  
 
 I read at
 http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_2.html the
 follow rule:
 
 In a single ActionScript file, you can define only one class in the
 package. To define more than one class in a file, define the additional
 classes outside of the package body.
 
  
 
 Implementing by this way, the additional classes doesn't belong to the
 package (specified in the .as), but belong in the default package
 something that I do not want it.
 
  
 
 Of course, the other way Is to implement the class in another .as of the
 same package but this will have as result so many .as files (doing nothing
 in particular).
 
  
 
 So, I just want to clear, there is no way to have more than one class of the
 same package in the same .as file???
 
  
 
 dennis
 
 ...we are what we are doing...  P Think! before you print.





[flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-16 Thread tkdave
--- In flexcoders@yahoogroups.com, joshonemail j...@... wrote:
 This is the runtime error I get after compiling with no errors in
 4.0.0.10485 and later:VerifyError: Error #1014: Class

I think your problem is that RSL's are now used by default, and when compiling 
outside Flex builder, you have not specified a factory class to load the RSL's.

Did you see an error like this when compiling?

Warning: This compilation unit did not have a factoryClass specified in Frame 
metadata to load the configured runtime shared libraries. To compile without 
runtime shared libraries either set the -static-link-runtime-shared-libraries 
option to true or remove the -runtime-shared-libraries option.

Try adding the -static-link-runtime-shared-libraries mxmlc option to your build 
script.  

-david knape







RE: [flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-16 Thread Josh On
Try adding the -static-link-runtime-shared-libraries mxmlc option to your
build script. 

Thank you David - that did the trick - I don't know if I ever would have
worked that out!

Josh

 



[flexcoders] inline item editor component grow when selected?

2009-10-16 Thread mr_william_clark
How can I make my inline component grow to a size larger than the datagrid cell 
when a user selects it?

Many thanks for any ideas.
Bill




RE: [flexcoders] Flex XML editor

2009-10-16 Thread Julian Tenney
Xerte 3.0:

 

http://www.nottingham.ac.uk/xerte/downloads/xerte3alpha.exe

 

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of primo411
Sent: Friday, October 16, 2009 9:29 AM
To: FlexCoders
Subject: [flexcoders] Flex XML editor

 

  

Hi everyone,
I want to create an editor for XML files in Flex. Does anyone know if
there are already existing projects (open-source) that implement this ?
I could not find anything (excepted commercial apps), but I guess
someone already had the need to do that :)

Cheers




This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

image001.jpgimage002.jpg

RE: [flexcoders] defining more than one class in a simple .as filem ref

2009-10-16 Thread dennis
Thank you for you reply. 

 

I am coming from .net and Delphi environments. There was pretty easy to have
many classes in a single file. 

 

For instance, support I have a small class (lets call it Item) with one or
two methods that will be used from only one class (lets call it Cart) where
will load the Item class several times in an array (the Items array). 

 

Now, implementing the Item class I have to create another .as (ok this is
not problem) but in practice this class is visible over the package's
domain, something not so good.

 

How can I avoid this class to be visible from other object users?

 

Take care Dennis