simple string operation should solve your problem

var data = "data =" + "your file name"

var pathFile:String= "<html> <body> <object id='PDFObj' " + data +
"type='application/pdf' width='100%' height='100%' "/></body>";

Saurabh


On Fri, Dec 4, 2009 at 12:31 PM, Prakash <[email protected]>wrote:

> Hi,
> Am having one flex component in that project am inserting one html
> page in string format.
>
> var pathFile:String= "<html> <body> <object id='PDFObj' data='20090807
> - Batch 628.pdf' type='application/pdf' width='100%' height='100%'/></
> body>";
>
> In this i want give different file name in the DATA field. i have many
> pdf files so it is not possible to change manually each time.
> Could you please help me in it. thanks
> with regards
> Prakash philip
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to