[Flashcoders] Getting Data into my SWF

2011-03-10 Thread Kevin Holleran
Hello, I am very new to implementing Flash and ActionScript so forgive me if I am way off base. I have an application that utilizes the date and time. It is imperative that this is correct and not from the client's machine. To get the server date/time, I can pass it in as a FlashVars or I can

Re: [Flashcoders] Getting Data into my SWF

2011-03-10 Thread Henrik Andersson
Kevin Holleran skriver: I am not concerned with the user SEEING the data, I just don't want them to be able to load the SWF in a way that they would be able to pass in their own values. Then you need to provide each user with a computer controlled by you and a competent guard to prevent the

Re: [Flashcoders] Getting Data into my SWF

2011-03-10 Thread Kevin Holleran
I'll explain further so I get valuable responses and avoid the sarcasm. My goal is to pass in the date from the server, the application counts down, and when the date hits a certain time, the application does something. This something that the application does will also be loaded by calling a

[Flashcoders] htmlText im src

2011-03-10 Thread Ktu
Hey List, I've been googling for an hour and haven't found a solution. My google fu is weak, I concede defeat. Pure AS3 AIR No Library No FLA I am dynamically building a TextField. In it I would like to place some instances of Sprites. What should the src attribute of the img tag be if I want

Re: [Flashcoders] htmlText im src

2011-03-10 Thread Karl DeSaulniers
You probably want to use flashVars to talk with some javascript that then calls the image and that, you put as the src? Best, Karl On Mar 10, 2011, at 9:10 PM, Ktu wrote: Hey List, I've been googling for an hour and haven't found a solution. My google fu is weak, I concede defeat. Pure

Re: [Flashcoders] htmlText im src

2011-03-10 Thread Karl DeSaulniers
Or Are you talking about displaying HTML in flash? I did that once in AS2. Don't know about AIR, hopefully it is much better at it than the flash player. Best, Karl On Mar 10, 2011, at 9:25 PM, Karl DeSaulniers wrote: You probably want to use flashVars to talk with some javascript that

Re: [Flashcoders] htmlText im src

2011-03-10 Thread Ktu
Thanks for the responses Karl. Yes, I meant displaying html inside Flash. I am using Keith Peters' tiny components. I want to instantiate an instance of the NumericStepper inside an instance of a TextField. I know that you can use htmlText with an img tag to place Library Items, image files and

Re: [Flashcoders] htmlText im src

2011-03-10 Thread Karl DeSaulniers
Hi Ktu, I believe you want it to be a function return. txt.htmlText = age: img src='getNumericStepper()'/ getNumericStepper could be a call to a createimage php file for example. when returning the image, php will send the data and content type of the image and the img tag interprets it as an

Re: [Flashcoders] htmlText im src

2011-03-10 Thread Ktu
well, I'm not trying to embed an image. I want to use a MovieClip. maybe this 'ideal scenario' will help var numStep:NumericStepper = new NumericStepper (); var txt:TextField = new TextField (); txt.htmlText = age: img src=' + numStep + '/; (I know that will not work. I am just trying to get

Re: [Flashcoders] htmlText im src

2011-03-10 Thread Karl DeSaulniers
Ah I see. Something along these lines? http://stackoverflow.com/questions/203969/how-do-i-get-from-an- instance-of-a-class-to-a-class-object-in-actionscript-3 I googled:: AS3 return instance as image HTH, Best, Karl On Mar 10, 2011, at 10:08 PM, Ktu wrote: well, I'm not trying to embed