[flexcoders] Saving a swf file

2010-02-02 Thread flexlearner
Hi,

I am creating a application which will allow users to drag n drop few 
stuffs(rect, circle, images) on some drawing board say canvas.
After that user will like to save this drawing board(canvas containg whatevr he 
has dropped on canvas)as swf file so that he/she can deploy it anywhere.

Kindly let me know how to achieve it.
It's urgent.

Thanks,
Saket 



[flexcoders] save as swf

2010-01-31 Thread flexlearner
Hi,
I have a flex application in which I draw a simple rectangle and circle.
Now I want to save this as swf file.

Kindly let me know how to achieve this.

Thanks.



[flexcoders] saving drawings as xml file

2010-01-29 Thread flexlearner
Hi,

I have created few shapes and have connected them using lines.
Now I want to save these drawings(shapes, lines, co-ordinates) in one xml file.
And when I load this xml file I should get the exact drawing which was saved.

Can anyone let me know how to achieve this.

Thanks,
Saket



[flexcoders] Re: Read svg file in FLEX

2010-01-22 Thread flexlearner
I have some attributes in my svg file which I am not able to read using flex 
builder. Can you help me out in this regard ? Actually I have one svg file 
which I want to load it then parse it and get the x,y coordinates of path or 
rectangle which is there in svg file.

--- In flexcoders@yahoogroups.com, Aaron Hardy aaronius...@... wrote:

 Hey flexlearner,
 
 What's your question exactly?  How to parse XML?  After you parse the XML
 (you can use e4x) you'll convert SVG attributes into actionscript graphics
 functions like graphics.lineTo().  Are you having trouble with something in
 particular?
 
 Aaron
 
 On Thu, Jan 21, 2010 at 3:30 AM, flexlearner flexlear...@... wrote:
 
 
 
  Hi,
 
  I am new to flex and am using svg file for one of my application which
  basically contains 2-3 rectangles and few paths.
  Now I want to parse this svg file in my application and get rect
  coordinates.
 
  Kindly let me know how to achieve this.
 
   
 





[flexcoders] Creating control logic diagram

2010-01-21 Thread flexlearner
Hi,
I am new to flex and trying to create a network diagram type
application.These are the things which I am trying to achieve : 1.Create
a library of  'SVG' files which will contain different images for
different things such as AND gate, NAND gate, etc.2.Drag n Drop those
items on canvas from library.3.These items should have ports\connectors
on them which can be used to connect them with other images using line.
Kindly let me know what should be the best approach for achieving this.



[flexcoders] Read svg file in FLEX

2010-01-21 Thread flexlearner
Hi,

I am new to flex and am using svg file for one of my application which 
basically contains 2-3 rectangles and few paths.
Now I want to parse this svg file in my application and get rect coordinates.

Kindly let me know how to achieve this.



[flexcoders] Re: sprites in MXML

2006-10-11 Thread flexlearner
Yes, Thanks Dan. I perfectly understand that Sprite class should 
extend UIComponent class to get added in UIcomponent by AddChild 
method. But its actually vice versa. But then How should try all 
those samples which comes in Flex builder help and extends the class 
sprite.
What I believe is if they have given example there should be some way 
to use it also... How should I try all those code samples that is 
given in flex builder help.

Regards
fl
--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] 
wrote:

 Containers require all children to be a UIComponent (or maybe it's 
implement
 IUIComponent).  I think all other objects that can have children 
require
 chlidren to be DisplayObjects.  So you can add a DisplayObject as a 
child to
 a Sprite, UIComponent, DisplayObjectContainer, etc.  I mostly work 
with
 Actionscript so I don't know about puting Sprites in MXML, but if 
you can,
 the Sprite would need to be the child of a UIComponent.
 
 - Dan
 
 On 10/10/06, flexlearner [EMAIL PROTECTED] wrote:
 
  No not in canvas only..
 
  My general question is if at all we have to use sprites in our 
mxml
  file..how should we do it.. what will the approach
 
  Regards,
  fl
 
  --- In flexcoders@yahoogroups.com, flex-guitar flex@ wrote:
  
   I've had trouble with this as well. I ended up putting a
  UIComponent in the
   Canvas and adding children to it instead of to the Canvas.
  
   I don't know why Canvas throws an error, since it is a subclass 
of
   UIComponent, but it does.
  
   HTH,
   Derek
  
 -Original Message-
 From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
   Behalf Of newLearner learner
 Sent: Tuesday, October 10, 2006 8:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] sprites in MXML
  
  
  
 Hello ,
 I have a very basic question
 Please can somebody tell me how should I use sprites in my
  mxmlfile
 i get errors everytime i try to something like:
  
  Canvas_instance.addChild(spriteInstace)
  
 Please tell me the way out
  
  
  
   

  
   --
 Find out what India is talking about on - Yahoo! Answers India
 Send FREE SMS to your friend's mobile from Yahoo! Messenger
  Version 8. Get
   it NOW
  
  
  
 __ NOD32 1.1796 (20061010) Information __
  
 This message was checked by NOD32 antivirus system.
 http://www.eset.com
  
 
 
 
 
 
 
 
  --
  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

* 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/
 




[flexcoders] Re: sprites in MXML

2006-10-11 Thread flexlearner
Yes, Thanks Dan. I perfectly understand that Sprite class should 
extend UIComponent class to get added in UIcomponent by AddChild 
method. But its actually vice versa. But then How should try all 
those samples which comes in Flex builder help and extends the class 
sprite.
What I believe is if they have given example there should be some way 
to use it also... How should I try all those code samples that is 
given in flex builder help.

Regards
fl

--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] 
wrote:

 Containers require all children to be a UIComponent (or maybe it's 
implement
 IUIComponent).  I think all other objects that can have children 
require
 chlidren to be DisplayObjects.  So you can add a DisplayObject as a 
child to
 a Sprite, UIComponent, DisplayObjectContainer, etc.  I mostly work 
with
 Actionscript so I don't know about puting Sprites in MXML, but if 
you can,
 the Sprite would need to be the child of a UIComponent.
 
 - Dan
 
 On 10/10/06, flexlearner [EMAIL PROTECTED] wrote:
 
  No not in canvas only..
 
  My general question is if at all we have to use sprites in our 
mxml
  file..how should we do it.. what will the approach
 
  Regards,
  fl
 
  --- In flexcoders@yahoogroups.com, flex-guitar flex@ wrote:
  
   I've had trouble with this as well. I ended up putting a
  UIComponent in the
   Canvas and adding children to it instead of to the Canvas.
  
   I don't know why Canvas throws an error, since it is a subclass 
of
   UIComponent, but it does.
  
   HTH,
   Derek
  
 -Original Message-
 From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
   Behalf Of newLearner learner
 Sent: Tuesday, October 10, 2006 8:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] sprites in MXML
  
  
  
 Hello ,
 I have a very basic question
 Please can somebody tell me how should I use sprites in my
  mxmlfile
 i get errors everytime i try to something like:
  
  Canvas_instance.addChild(spriteInstace)
  
 Please tell me the way out
  
  
  
   

  
   --
 Find out what India is talking about on - Yahoo! Answers India
 Send FREE SMS to your friend's mobile from Yahoo! Messenger
  Version 8. Get
   it NOW
  
  
  
 __ NOD32 1.1796 (20061010) Information __
  
 This message was checked by NOD32 antivirus system.
 http://www.eset.com
  
 
 
 
 
 
 
 
  --
  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

* 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/
 




[flexcoders] Re: sprites in MXML

2006-10-10 Thread flexlearner
No not in canvas only..

My general question is if at all we have to use sprites in our mxml 
file..how should we do it.. what will the approach

Regards,
fl

--- In flexcoders@yahoogroups.com, flex-guitar [EMAIL PROTECTED] wrote:

 I've had trouble with this as well. I ended up putting a 
UIComponent in the
 Canvas and adding children to it instead of to the Canvas.
 
 I don't know why Canvas throws an error, since it is a subclass of
 UIComponent, but it does.
 
 HTH,
 Derek
 
   -Original Message-
   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
 Behalf Of newLearner learner
   Sent: Tuesday, October 10, 2006 8:10 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] sprites in MXML
 
 
 
   Hello ,
   I have a very basic question
   Please can somebody tell me how should I use sprites in my 
mxmlfile
   i get errors everytime i try to something like:
 
Canvas_instance.addChild(spriteInstace)
 
   Please tell me the way out
 
   
 
 

 --
   Find out what India is talking about on - Yahoo! Answers India
   Send FREE SMS to your friend's mobile from Yahoo! Messenger 
Version 8. Get
 it NOW
 
   
 
   __ NOD32 1.1796 (20061010) Information __
 
   This message was checked by NOD32 antivirus system.
   http://www.eset.com








--
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/
 




[flexcoders] var in loop

2006-10-09 Thread flexlearner



hello all,I have a action script class which is bindable and instantiates objects of other classas : 
quote:

[Bindable]public class Templateobjects{public var template1 = new sampleTemplate1();public var template2 = new sampleTemplate2();public function Templateobjects(){// constructor function }}


and in my mxml file i import this class as and trying to access this variables in this class, as:import Templateobjects;public var templatelistObject:Templateobjects = new Templateobjects();for(var i:Objects in Templateobjects){trace(" found objects");}i am not getting the trace...please tell me how should i go about this.

Regards
Flex Learner

__._,_.___





--
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 
   
 

  




__,_._,___



[flexcoders] var in Loop

2006-10-09 Thread flexlearner
hello all,
I have a action script class which is bindable and instantiates 
objects of other class
as : 


--
--

[Bindable]
public class Templateobjects
{

public var template1 = new sampleTemplate1();

public var template2 = new sampleTemplate2();

public function Templateobjects(){

// constructor function 
}

}


--
--




and in my mxml file i import this class as and trying to access this 
variables in this class, as:

import Templateobjects;
public var templatelistObject:Templateobjects = new Templateobjects();

for(var i:Objects in Templateobjects){
trace( found objects);
}


i am not getting the trace...
please tell me how should i go about this.

Regards
Flex Learner







--
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/
 




[flexcoders] Re: player 8.5 difficulty

2006-04-28 Thread flexlearner



I solved the issue by downloading and installing the Flash Player 
UNINSTALLER and REMOVING the Flash Player completely. Then, after 
installing Flash Player 8.5, Apparently, installing over existing 
implementations is buggy. 

Flex Learner 
( Here no one have comment on this ? )

--- In flexcoders@yahoogroups.com, flexlearner [EMAIL PROTECTED] 
wrote:

 I downloaded and installed flash 8.5 player active X from 
macromedia 
 labs site after this when right click on any flash content from any 
 website.
 Its not showing me flash player 8.5 in settings 
 
 I needed 8.5 to run my flex application 
 When I run application from flexbulider 2 I get the error as the 
flash 
 player found is of lower version and player 8.5 and above is needed 
 
 Please please help .. I am not able to move forward because of this 
 problem












--
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] Re: sandbox issue

2006-04-26 Thread flexlearner



thanks Matt , 
i did that ..and worked ! and also i exported the swf as png and 
imported it dynamically and it worked too..

there is one more problem i wanted to bring to notice and tring to 
find the soultion for the same...

is it the problem of flash player??

i downloaded and installed the flash player 8.5 and can see its 
entry in the window/system32/macromed/flash/  folder as 
flash85b.ocx and flash85.ocx
still when i try to run the mxml file from flexbuilder too its giving 
me the error prompt of lower version found and required version 8.5

can u please suggest me something ! 

thanks in advance 
Flex Learner 

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 We may be looking into bugs on this front, I'm not entirely sure. 
Only
 thing I can think of is that something in the SWF is trying to 
access
 _root or _level0 or something like that which wouldn't be allowed.
 Otherwise if it's really just a graphic I think it should work. 
Can you
 try embedding it for now as a workaround?
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of flexlearner
 Sent: Monday, April 24, 2006 9:38 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: sandbox issue
 
 No ! 
 the swf contains just a graphic
 and i have not used any effects in flash 8 like shadow or blur..etc.
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Does your Flash 8 SWF have AS code that is trying to execute? 
That
  unfortunately is not allowed (we don't allow cross-VM AS).
  
  Matt
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of flexlearner
  Sent: Monday, April 24, 2006 3:50 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] sandbox issue
  
  hello,
  
  
  I have simple mxml file in which I am importing a swf publish in 
  flash8
  I can see the output in flex builder in design mode also get 
  successful compilation result when I compile it by mxmlc command 
 line 
  complier 
  but when I open a sand alone swf i get a dialogue box with these 
  error :
  
  
  SecurityError: Error #2047: Security sandbox 
  violation: 'content': 'file:///D|/flexPractice/flextry.swf' may 
not 
  access 'file:///D|/flexPractice/verticalbar.swf'.
   at mx.controls::Loader/get Loader$404
  $private::contentHolderWidth()
   at mx.controls::Loader/Loader$404$private::contentLoaded()
   at mx.controls::Loader/completeEventHandler()
   at mx.controls::Image/completeEventHandler()
  
  Please help 
  Thanks in advance 
  
  Regards,
  Flex Learner 
  
  
  
  
  
  
  
  --
  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












--
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] player 8.5 difficulty

2006-04-26 Thread flexlearner



I downloaded and installed flash 8.5 player active X from macromedia 
labs site after this when right click on any flash content from any 
website.
Its not showing me flash player 8.5 in settings 

I needed 8.5 to run my flex application 
When I run application from flexbulider 2 I get the error as the flash 
player found is of lower version and player 8.5 and above is needed 

Please please help .. I am not able to move forward because of this 
problem 
 









--
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] Re: Attaching component dynamically

2006-04-25 Thread flexlearner



yeah understood! 
thanks a lot 
Regards
Flex Learner

--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] 
wrote:

 No, the Repeater is not a container; you will need to place a 
 repeater object within a container (I used VBox in the sample, but 
 any container should do).
 
 You can use createClassObject() to create child objects at runtime 
 in AS. MovieClip.attachMovie() should be there as well, although I 
 can't remember ever seeing it used in a Flex app. Typically, 
you'll 
 see createClassObject() used in custom controls that extend an 
 existing class, or for specific applications where child objects 
 need to be created dynamically in actionscript as opposed to mxml.
 
 Hope that helps!
 Doug
 
 --- In flexcoders@yahoogroups.com, flexlearner flexlearner@ 
 wrote:
 
  Cool!
  thanks a lot
  yes i have the variables in my component file 
  and also the xml and component mxml is available to mail 
  application I could import one instance of custom component
  just the information on repeater component(which in the hirarchy 
 of 
  container class ..am i right? ) was missing 
  my problem is solved 
  but just asking for curiosity that 
  can we have run time asset assembling in flex as we do
  attachmovie() or creatClassobject() in flash -actionscript
  
  Thanks once again 
  Regards
  Flex Learner
  
  --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
  wrote:
  
   Hello,
   
   You could use a Model tag for accessing the xml within your 
app, 
  and 
   a Repeater tag to loop through the items and pass their values 
 to 
   your custom component. I'm assuming your component has 
 variables 
   for the category, notes, and date_day xml fields, so code would 
 be 
   something like the following (Flex 1.5, but should be very 
 similar 
   in 2.0). Make sure your app can find the xml file and 
   CustomComponent.mxml (or whatever you chose to name your custom 
   component).
   
   ?xml version=1.0 encoding=utf-8?
   
   mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml 
   width=100% height=100%
   
   mx:Model id=xmlFromFile source=xml_file.xml/
   
   mx:VBox height=100% width=100%
   mx:Repeater 
   id=rp
   dataProvider={xmlFromFile.dailly_learning}
   CustomComponent 
   category={rp.currentItem.category}
   notes={rp.currentItem.notes}
   date_day={rp.currentItem.date_day} /
   /CustomComponent
   /mx:Repeater
   /mx:VBox
   
   /mx:Application
   
   
   --- In flexcoders@yahoogroups.com, flexlearner flexlearner@ 
   wrote:
   


I created a custom component there are some text Areas in 
 that 
component 
This component will be imported in main application 

My final and simple goal is :
To load a xml file -- loop thru the array of 
node dailly_learning 
And attach the custom component as many as dailly_learning 
  nodes 
are and fill the data into it 
I could have easily done flash using attachmovie but how to 
do 
  it 
   in 
Flex
I could load the xml and could retrieve the value from it 

Some one please guide me ! 




Structure of xml files is something like : 

! Xml file --

dailly_learning

  category  flex /category 
 notes some text /notes
 date_day date date_day

/dailly_learning

dailly_learning

  category  flash /category 
 notes some text /notes
 date_day date date_day

/dailly_learning

dailly_learning

  category  Misc /category 
 notes some text /notes
 date_day date date_day

/dailly_learning

Regards,
Flex Learner
   
  
 












--
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] sandbox issue

2006-04-24 Thread flexlearner



hello,


I have simple mxml file in which I am importing a swf publish in 
flash8
I can see the output in flex builder in design mode also get 
successful compilation result when I compile it by mxmlc command line 
complier 
but when I open a sand alone swf i get a dialogue box with these 
error :


SecurityError: Error #2047: Security sandbox 
violation: 'content': 'file:///D|/flexPractice/flextry.swf' may not 
access 'file:///D|/flexPractice/verticalbar.swf'.
 at mx.controls::Loader/get Loader$404
$private::contentHolderWidth()
 at mx.controls::Loader/Loader$404$private::contentLoaded()
 at mx.controls::Loader/completeEventHandler()
 at mx.controls::Image/completeEventHandler()

Please help 
Thanks in advance 

Regards,
Flex Learner 











--
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] sandbox issue

2006-04-24 Thread flexlearner



hello,


I have simple mxml file in which I am importing a swf publish in 
flash8
I can see the output in flex builder in design mode also get 
successful compilation result when I compile it by mxmlc command line 
complier 
but when I open a sand alone swf i get a dialogue box with these 
error :


SecurityError: Error #2047: Security sandbox 
violation: 'content': 'file:///D|/flexPractice/flextry.swf' may not 
access 'file:///D|/flexPractice/verticalbar.swf'.
 at mx.controls::Loader/get Loader$404
$private::contentHolderWidth()
 at mx.controls::Loader/Loader$404$private::contentLoaded()
 at mx.controls::Loader/completeEventHandler()
 at mx.controls::Image/completeEventHandler()

Please help 
Thanks in advance 

Regards,
Flex Learner 











--
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] Attaching component dynamically

2006-04-24 Thread flexlearner





 I created a custom component there are some text Areas in that 
component 
 This component will be imported in main application 

My final and simple goal is :
 To load a xml file -- loop thru the array of 
node dailly_learning 
 And attach the custom component as many as dailly_learning nodes 
are and fill the data into it 
I could have easily done flash using attachmovie but how to do it in 
Flex
I could load the xml and could retrieve the value from it 

Some one please guide me ! 




 Structure of xml files is something like : 

! Xml file --

 dailly_learning

   category  flex /category 
  notes some text /notes
  date_day date date_day
 
/dailly_learning

dailly_learning

   category  flash /category 
  notes some text /notes
  date_day date date_day
 
/dailly_learning

dailly_learning

   category  Misc /category 
  notes some text /notes
  date_day date date_day
 
/dailly_learning

Regards,
Flex Learner 










--
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] Re: Attaching component dynamically

2006-04-24 Thread flexlearner



Cool!
thanks a lot
yes i have the variables in my component file 
and also the xml and component mxml is available to mail 
application I could import one instance of custom component
just the information on repeater component(which in the hirarchy of 
container class ..am i right? ) was missing 
my problem is solved 
but just asking for curiosity that 
can we have run time asset assembling in flex as we do
 attachmovie() or creatClassobject() in flash -actionscript

Thanks once again 
Regards
Flex Learner

--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] 
wrote:

 Hello,
 
 You could use a Model tag for accessing the xml within your app, 
and 
 a Repeater tag to loop through the items and pass their values to 
 your custom component. I'm assuming your component has variables 
 for the category, notes, and date_day xml fields, so code would be 
 something like the following (Flex 1.5, but should be very similar 
 in 2.0). Make sure your app can find the xml file and 
 CustomComponent.mxml (or whatever you chose to name your custom 
 component).
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml 
 width=100% height=100%
 
 mx:Model id=xmlFromFile source=xml_file.xml/
 
 mx:VBox height=100% width=100%
 mx:Repeater 
 id=rp
 dataProvider={xmlFromFile.dailly_learning}
 CustomComponent 
 category={rp.currentItem.category}
 notes={rp.currentItem.notes}
 date_day={rp.currentItem.date_day} /
 /CustomComponent
 /mx:Repeater
 /mx:VBox
 
 /mx:Application
 
 
 --- In flexcoders@yahoogroups.com, flexlearner flexlearner@ 
 wrote:
 
  
  
  I created a custom component there are some text Areas in that 
  component 
  This component will be imported in main application 
  
  My final and simple goal is :
  To load a xml file -- loop thru the array of 
  node dailly_learning 
  And attach the custom component as many as dailly_learning 
nodes 
  are and fill the data into it 
  I could have easily done flash using attachmovie but how to do 
it 
 in 
  Flex
  I could load the xml and could retrieve the value from it 
  
  Some one please guide me ! 
  
  
  
  
  Structure of xml files is something like : 
  
  ! Xml file --
  
  dailly_learning
  
category  flex /category 
   notes some text /notes
   date_day date date_day
  
  /dailly_learning
  
  dailly_learning
  
category  flash /category 
   notes some text /notes
   date_day date date_day
  
  /dailly_learning
  
  dailly_learning
  
category  Misc /category 
   notes some text /notes
   date_day date date_day
  
  /dailly_learning
  
  Regards,
  Flex Learner
 











--
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.