Re: [Flashcoders] htmlText src
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 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: "; (I know that will not work. I am just trying to get the point across that I don't want an image or linkage id, but I want an instance of class) On Thu, Mar 10, 2011 at 10:56 PM, Karl DeSaulniers wrote: Hi Ktu, I believe you want it to be a function return. txt.htmlText = "age: " 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 tag interprets it as an image. like ... return imagepng($image); //the last line in my createimage.php file I did this with a captcha box I made. Made one in flash and html. both call on that php file for the image. That way if a user was viewing with flash or a non-flash user, both had to submit this captcha to register for instance. Hope im not too off. *:) Best, Karl On Mar 10, 2011, at 9:41 PM, Ktu wrote: 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 tag to place Library Items, image files and external SWF, but I want to instantiate just a random class in there (in this case NumericStepper). vat txt:TextField = new TextField (); txt.htmlText = "age: " does that make more sense? On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers wrote: 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 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 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 tag be if I want it to instantiate an object? ex. If you can't do it, are there any workarounds? thanks guys. -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] htmlText src
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: "; (I know that will not work. I am just trying to get the point across that I don't want an image or linkage id, but I want an instance of class) On Thu, Mar 10, 2011 at 10:56 PM, Karl DeSaulniers wrote: > Hi Ktu, > I believe you want it to be a function return. > > txt.htmlText = "age: " > > 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 tag interprets it as an image. > > like ... > > return imagepng($image); //the last line in my createimage.php file > > I did this with a captcha box I made. > Made one in flash and html. both call on that php file for the image. > That way if a user was viewing with flash or a non-flash user, both had to > submit this captcha to register for instance. > > Hope im not too off. *:) > > Best, > Karl > > > > On Mar 10, 2011, at 9:41 PM, Ktu wrote: > > 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 tag to place >> Library Items, image files and external SWF, but I want to instantiate just >> a random class in there (in this case NumericStepper). >> >> vat txt:TextField = new TextField (); >> txt.htmlText = "age: " >> >> does that make more sense? >> >> >> >> On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers >> wrote: >> 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 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 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 tag be if >> I >> want it to instantiate an object? >> >> ex. >> >> If you can't do it, are there any workarounds? >> >> thanks guys. >> >> -- >> Ktu; >> >> The information contained in this message may be privileged and/or >> confidential. If you are NOT the intended recipient, please notify the >> sender immediately and destroy this message. >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Karl DeSaulniers >> Design Drumm >> http://designdrumm.com >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Karl DeSaulniers >> Design Drumm >> http://designdrumm.com >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> >> -- >> Ktu; >> >> The information contained in this message may be privileged and/or >> confidential. If you are NOT the intended recipient, please notify the >> sender immediately and destroy this message. >> > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] htmlText src
Hi Ktu, I believe you want it to be a function return. txt.htmlText = "age: " 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 tag interprets it as an image. like ... return imagepng($image); //the last line in my createimage.php file I did this with a captcha box I made. Made one in flash and html. both call on that php file for the image. That way if a user was viewing with flash or a non-flash user, both had to submit this captcha to register for instance. Hope im not too off. *:) Best, Karl On Mar 10, 2011, at 9:41 PM, Ktu wrote: 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 tag to place Library Items, image files and external SWF, but I want to instantiate just a random class in there (in this case NumericStepper). vat txt:TextField = new TextField (); txt.htmlText = "age: " does that make more sense? On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers wrote: 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 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 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 tag be if I want it to instantiate an object? ex. If you can't do it, are there any workarounds? thanks guys. -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] htmlText src
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 tag to place Library Items, image files and external SWF, but I want to instantiate just a random class in there (in this case NumericStepper). vat txt:TextField = new TextField (); txt.htmlText = "age: " does that make more sense? On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers wrote: > 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 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 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 tag be >>> if I >>> want it to instantiate an object? >>> >>> ex. >>> >>> If you can't do it, are there any workarounds? >>> >>> thanks guys. >>> >>> -- >>> Ktu; >>> >>> The information contained in this message may be privileged and/or >>> confidential. If you are NOT the intended recipient, please notify the >>> sender immediately and destroy this message. >>> ___ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >> Karl DeSaulniers >> Design Drumm >> http://designdrumm.com >> >> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] htmlText src
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 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 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 tag be if I want it to instantiate an object? ex. If you can't do it, are there any workarounds? thanks guys. -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] htmlText src
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 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 tag be if I want it to instantiate an object? ex. If you can't do it, are there any workarounds? thanks guys. -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] htmlText src
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 tag be if I want it to instantiate an object? ex. If you can't do it, are there any workarounds? thanks guys. -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting Data into my SWF
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 PHP script that will load from a backend DB. My concern is someone being able to launch the SWF passing in an incorrect date that will trigger this something early. Thanks for your help. Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting Data into my SWF
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 user from tampering with the hardware. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Getting Data into my SWF
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 call a PHP script from within Flash and load the date as returned data from the call. Is there another way? Is one way more secure than another? I have read FlashVars is not "safe" but it always referenced passing passwords in. 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. Also, in a similiar fashion, I want to load some data from a database. I am using a MySQL backend and figure to use a PHP script to do the data manipulation I need then call the data from within my ActionScript. (Essentially, I am going to be loading some images from the database based on criteria, then I want to be able to use those in my flash application). Thanks for your patience and help. Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders