Invoke SWF files in Forms 6i
hi, i like to invoke my flash animated file in a form runtime is any one have any idea about.
Khurram Kazmi
hi
1) create OCX in ur form then right click on OCX and invoke shockwave flash object
2) call these packages
ShockwaveFlashObject_CONSTANTS
ShockwaveFlash_IShockwa_0
ShockwaveFlash_IShockwa_0
ShockwaveFlash_Shockwav_EVENTS
ShockwaveFlash_Shockwav_EVENTS
3)write code when-new-form-instance trigger on form level
ShockwaveFlash_IShockwa_0.Movie(:item('FLASH').interface, 'd:\FORMS\CLOCK.swf');
ShockwaveFlash_IShockwa_0.Play(:item('FLASH').interface);
Rizwan
Similar Messages
-
We had a requirement in Oracle 10iDS to invoke PDF file from the Application form .I am trying to do that using client_host('AcroRd32.exe D:\temp\abc.pdf') which is not working ..
I have webutil configured as well ..
Can you some one suggest me on this
Many thanks
SareenSareen,
If the PDF is on the client:
web.show_document('file://D:\temp\abc.pdf', '_BLANK');
If on the Application Server, then create a virtual directory (for instance docs/):
web.show_document('http://server.com:7778/docs/abc.pdf', '_BLANK');
Regards,
Martin Malmstrom -
Embed Animated Flash Objects (*.swf file) in Oracle Forms.
Hello All,
To Embed Animated Flash Object (Shockwave *.swf File) in Oracle Forms, Please Follow the Steps Below.
1. Draw "ActiveX Control" Item on Canvas with the Name "OCXITM".
2. Select "ActiveX Control" Item & Go to its Properties (By Pressing F4).
3. Select "ShockwaveFlash.ShockwaveFlash" in "OLE Class" Property of "ActiveX Control" Item.
4. Come again to the Canvas.
5. Right Click on "ActiveX Control" Item, Select "Insert Object...".
6. In Control Type List, Select "Sockwave Flash Object" and Press "OK".
7. On Canvas, Select "ActiveX Control" Item, Go to "Program" Menu, Select "Import OLE Library Interfaces...".
8. Select All "Method Package(s)" & "Event Package(s)" for "ShockwaveFlash.ShockwaveFlash.X" & Press "OK".
9. Go to "Object Nevigator" (By Pressing F3) & Expand "Program Unit" to verify that the Packages are Successfully Imported.
10. Compile All the Objects (By Pressing "Ctrl+Shift+K").
11. In "WHEN-NEW-FORM-INSTANCE" Trigger Write the Below Code.
** Author : Muhammad Waseem Haroon *
** Dated : 07-Apr-2005 *
** Purpose : To Call Macromedia Flash Object (*.swf File) *
** Module : Logo *
DECLARE
oleitm OLEOBJ;
BEGIN
oleitm := :item('OCXITM').INTERFACE;
ShockwaveFlash_IShockwa_0.Movie(oleitm,'d:\movie.swf');--it can be dynamic.
END;12. Compile, Save & Run Your Form.... and... See the Beauty.
Thanks & Regards
Muhammad Waseem Haroon
[email protected]
[email protected]
[email protected]Mark Striekwold did an effort to put flash into forms
http://mark-oradev.blogspot.com/2010/02/flash-inside-oracle-forms.html
http://mark-oradev.blogspot.com/2010/02/flash-test-inside-oracle-forms-part-2.html
http://mark-oradev.blogspot.com/2010/04/flash-test-inside-oracle-forms.html -
Invoking a function in a loaded swf file
Hi,
I have a SWF file which loads an additional SWF file, in the following method:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
var request:URLRequest = new URLRequest(swf);
loader.load(request);
I want the parent (containing) SWF to call a "boot" function on the child SWF, so it will tell it what is the name of the LocalConnection that the parent is "connected" to. (The reason that the name of the LocalConnection is not fixed, is because I need to support multiple instances).
Any ideas?
TIA,
Vincefunction onCompleteHandler(event:Event):void
callLater(callBoot);
Function callBoot():void
Object(loader.content).boot();
Note that you'll need to keep a reference to the loader in an instance variable and not a local variable
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Android kitkat issue in loading swf file from device. URL found but not working
Hi,
I am facing one issue from a very long time regarding file access in Android Kitkat version 4.4.*. I have developed Adobe Air player application for android and it is working as expected below kitkat version but not on kitkat.
I am following this methods -
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
public function onInvoke(event:InvokeEvent):void
var newFile:String = String(event.arguments[0]);
trace("Received new file from Android: "+newFile)
Received URL form device in Android Kitkat -
/storage/emulated/0/.iProfData/swf/playListFiles/ContentCreation/Ma_V2_522/en/Animation/27 031_1_Welcome screen.swf
file:////storage/emulated/0/.iProfData/swf/playListFiles/ContentCreation/Ma_V2_522/en/Anim ation/27031_1_Welcome screen.swf
- Loading this URL using loader class in AS3 AIR but not working.
file%3A///storage/emulated/0/.iProfData/swf/playListFiles/ContentCreation/Ma_V2_522/en/Ani mation/27031_1_Welcome%20screen.swf
- Have used also by doing escape character but still it is not working showing file not found both SWF and mp4 case. (Mp4 case NetStream.Play.FileNotFound)
By using the above methods I can have swf or mp4 video url but when I am loading it, It is not working giving error message "File not found/ IO Error". I have read that if use escape character then it will work but I have used escape character also but it is not working.
Humble request you to please advise how can I solve this issue.
Best regards,
Sunil KumarStarting in KitKat, Google requires that applications have permission to access files on the system. You must specifically add either the READ_EXTERNAL_STORAGE or WRITE_EXTERNAL_STORAGE permissions in order to access files. Adding either one of those permissions should let you read/access files on the device. Prior to KitKat, you didnt have to have these permissions listed in the manifest to access files.
-
Swf files appearing in preview (D8) but not n browser after uploading - frustrated!
Hello,
I have worked with Flash and Dreamweaver on the side for a
number of years. We all know that after the recent changes, the way
it handles object and embed tags has changed to favor Java
actionscripts instead.
This code I am about to paste was created using Dreamweaver
8.02, with transitional (x) html. Now mind you, this is not the
prettiest piece of code you've ever seen. I now am learning to use
CSS layouts instead of layers/tables, with php and flash
integrated. This one example is not the only time I have had this
problem however.
I made a silly flash banner (its actually a placeholder for a
better one I have to develop) for testing purposes and sizing. It
appears fine in Firefox, and IE6 in the preview mode via
Dreamweaver. When I upload it all to the site, the flash banner
does not appear.
I have tried copying the FLA and SWF files to the root folder
(the fla, swf, and html files generated are all present), and tried
a number of variations in the code and parameters to no avail. The
darn thing just won't appear now. Similarly older pages I have
created that Dreamweaver now prompts you to "fix the object tag
that may not work in IE7...etc" have the same issue. If I select
"go ahead and fix them for me", they are visible in production, but
gone after uploading.
Now to remove the possibility that this was a layering or
parent tag issue of visibility, I created a blank HTML page and
"insert/media/flash" and stuck the banner in there, then uploaded
it to my server. It doesn't appear.
I need help. I have been scouring the web for a few days now
to no avail and have become quite frustrated with what used to be a
really easy integration of Flash and html.
Here is the top chunk of code from the page in question: (the
page is live with the missing banner here:
http://www.aeonsolutions.net/shirtworks/Shrtwrks_Homepage.html)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Shirtworks custom T shirts, silk screening,
inkjet printing, embroidery, event, club, sport, organization,
holiday, humor, clothing</title>
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:999px;
height:690px;
z-index:1;
left: 4px;
top: 3px;
margin: 0 auto;
overflow: hidden;
background-image: url(Shrtwrks_bkgrnd5.jpg);
visibility: visible;
-->
</style>
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4
resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ||
innerHeight!=document.MM_pgH) location.reload();
MM_reloadPage(true);
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers
.document);
if(!x && d.getElementById) x=d.getElementById(n);
return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
</script>
<link href="CSS/shirtworks.css" rel="stylesheet"
type="text/css" media="all" />
<style type="text/css">
<!--
#Layer2 {
position:absolute;
width:128px;
height:309px;
z-index:2;
left: 8px;
top: 197px;
visibility: visible;
#Layer3 {
position:absolute;
width:804px;
height:457px;
z-index:3;
left: 179px;
top: 215px;
visibility: visible;
#Layer4 {
position:absolute;
width:1000px;
height:27px;
z-index:4;
left: 4px;
top: 697px;
visibility: visible;
#Layer5 {
position:absolute;
width:528px;
height:150px;
z-index:5;
left: 214px;
top: 11px;
visibility: visible;
-->
</style>
</head>
<body
onload="MM_preloadImages('MenuText/HomePage_over.jpg','MenuText/Artwork_over.jpg','MenuTe xt/Apparel_over.jpg','MenuText/Embroidery_over.jpg','MenuText/Custom_over.jpg','MenuText/D irections_over.jpg','MenuText/AboutUs_over.jpg','MenuText/Contact_over.jpg')">
<div id="Layer5">
<table width="533" height="141" border="0">
<tr>
<td><script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','dat a','Banner1.html','width','525','height','143','hspace','0','vspace','0','align','middle', 'border','0','title','Banner1','src','Banner1','pluginspage','http://www.macromedia.com/go /getflashplayer','scale','noborder','movie','Banner1'
); //end AC code
</script><noscript><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
data="Banner1.html" width="525" height="143" hspace="0" vspace="0"
align="middle" border="0" title="Banner1">
<param name="movie" value="Banner1.swf" />
<param name="SCALE" value="noborder" />
<embed src="Banner1.swf" width="525" height="143"
hspace="0" vspace="0" align="middle" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"
scale="noborder"></embed>
</object></noscript></td>
</tr>
</table>
Understanding this change is fundamental in my developing
process as a designer, and will save my sanity. I appreciate any
help.
MikeDid you upload this folder?
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"MalikyeMoon" <[email protected]> wrote in
message
news:[email protected]...
> Hello,
>
> I have worked with Flash and Dreamweaver on the side for
a number of
> years.
> We all know that after the recent changes, the way it
handles object and
> embed
> tags has changed to favor Java actionscripts instead.
>
> This code I am about to paste was created using
Dreamweaver 8.02, with
> transitional (x) html. Now mind you, this is not the
prettiest piece of
> code
> you've ever seen. I now am learning to use CSS layouts
instead of
> layers/tables, with php and flash integrated. This one
example is not the
> only
> time I have had this problem however.
>
> I made a silly flash banner (its actually a placeholder
for a better one I
> have to develop) for testing purposes and sizing. It
appears fine in
> Firefox,
> and IE6 in the preview mode via Dreamweaver. When I
upload it all to the
> site,
> the flash banner does not appear.
>
> I have tried copying the FLA and SWF files to the root
folder (the fla,
> swf,
> and html files generated are all present), and tried a
number of
> variations in
> the code and parameters to no avail. The darn thing just
won't appear
> now.
> Similarly older pages I have created that Dreamweaver
now prompts you to
> "fix
> the object tag that may not work in IE7...etc" have the
same issue. If I
> select "go ahead and fix them for me", they are visible
in production, but
> gone
> after uploading.
>
> Now to remove the possibility that this was a layering
or parent tag issue
> of
> visibility, I created a blank HTML page and
"insert/media/flash" and stuck
> the
> banner in there, then uploaded it to my server. It
doesn't appear.
>
> I need help. I have been scouring the web for a few days
now to no avail
> and
> have become quite frustrated with what used to be a
really easy
> integration of
> Flash and html.
>
> Here is the top chunk of code from the page in question:
(the page is
> live
> with the missing banner here:
>
http://www.aeonsolutions.net/shirtworks/Shrtwrks_Homepage.html)
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <title>Shirtworks custom T shirts, silk screening,
inkjet printing,
> embroidery, event, club, sport, organization, holiday,
humor,
> clothing</title>
> <script src="Scripts/AC_RunActiveContent.js"
> type="text/javascript"></script>
> <style type="text/css">
> <!--
> #Layer1 {
> position:absolute;
> width:999px;
> height:690px;
> z-index:1;
> left: 4px;
> top: 3px;
> margin: 0 auto;
> overflow: hidden;
> background-image: url(Shrtwrks_bkgrnd5.jpg);
> visibility: visible;
> }
> -->
> </style>
> <script type="text/javascript">
> <!--
> function MM_reloadPage(init) { //reloads the window if
Nav4 resized
> if (init==true) with (navigator) {if
>
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
> document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
> onresize=MM_reloadPage; }}
> else if (innerWidth!=document.MM_pgW ||
innerHeight!=document.MM_pgH)
> location.reload();
> }
> MM_reloadPage(true);
>
> function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++)
> x.src=x.oSrc;
> }
>
> function MM_preloadImages() { //v3.0
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array();
> var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
for(i=0;
> i<a.length;
> i++)
> if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
> d.MM_p[j++].src=a
> }
>
> function MM_findObj(n, d) { //v4.01
> var p,i,x; if(!d) d=document;
>
if((p=n.indexOf("?"))>0&&parent.frames.length) {
> d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++)
> x=d.forms[n];
>
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> x=MM_findObj(n,d.layers
.document);
> if(!x && d.getElementById)
x=d.getElementById(n); return x;
> }
>
> function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
Array;
> for(i=0;i<(a.length-2);i+=3)
> if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc)
> x.oSrc=x.src; x.src=a[i+2];}
> }
> //-->
> </script>
> <link href="CSS/shirtworks.css" rel="stylesheet"
type="text/css"
> media="all" />
> <style type="text/css">
> <!--
> #Layer2 {
> position:absolute;
> width:128px;
> height:309px;
> z-index:2;
> left: 8px;
> top: 197px;
> visibility: visible;
> }
> #Layer3 {
> position:absolute;
> width:804px;
> height:457px;
> z-index:3;
> left: 179px;
> top: 215px;
> visibility: visible;
> }
> #Layer4 {
> position:absolute;
> width:1000px;
> height:27px;
> z-index:4;
> left: 4px;
> top: 697px;
> visibility: visible;
> }
> #Layer5 {
> position:absolute;
> width:528px;
> height:150px;
> z-index:5;
> left: 214px;
> top: 11px;
> visibility: visible;
> }
> -->
> </style>
>
> </head>
>
> <body
>
onload="MM_preloadImages('MenuText/HomePage_over.jpg','MenuText/Artwork_over.jpg
>
','MenuText/Apparel_over.jpg','MenuText/Embroidery_over.jpg','MenuText/Custom_ov
>
er.jpg','MenuText/Directions_over.jpg','MenuText/AboutUs_over.jpg','MenuText/Con
> tact_over.jpg')">
> <div id="Layer5">
> <table width="533" height="141" border="0">
> <tr>
> <td><script type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=7,0,19,0','data','Banner1.html','width','525','height','143','hspace','0
>
','vspace','0','align','middle','border','0','title','Banner1','src','Banner1','
> pluginspage','
http://www.macromedia.com/go/getflashplayer','scale','noborder','m
> ovie','Banner1' ); //end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=7,0,19,0" data="Banner1.html" width="525"
height="143" hspace="0"
> vspace="0" align="middle" border="0" title="Banner1">
> <param name="movie" value="Banner1.swf" />
> <param name="SCALE" value="noborder" />
> <embed src="Banner1.swf" width="525" height="143"
hspace="0"
> vspace="0" align="middle"
> pluginspage="
http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash"
scale="noborder"></embed>
> </object></noscript></td>
> </tr>
> </table>
>
> Understanding this change is fundamental in my
developing process as a
> designer, and will save my sanity. I appreciate any
help.
>
> Mike
> -
I am unable to execute swf file present in server on local machine.
Hi all,
I am a newbie to Flash and ActionScript 3.0 platform. I don't know whether this is the correct place to post this kind of queries/problems/issues here. Till now, I had posted only basic flash issues here in this forum. I feel this is the most powerful issue which created head-ache to me till now. I spent nearly 4 hours working with this issue. But, I don't find any solution even in google.
I have created a swf file, which when gets executed, gets data from backend database and displays as items in Combo-box. In swf file, if we select an item from Combo-box, collects data from database and gets back to flash and displays them as items in Combo-box. Each item has a specific image(.jpg file)associated,which gets displayed on stage of flash file(.swf file) upon selected from combo-box.
I am calling/invoking the flash file, When I click on a Button/select a tab created within my Java application.But,when the button gets clicked/tab gets selected, Combo-box is visible in flash file, but with no elements when we try to click upon it and the following error is getting displayed in a dialog-box:
Title of the error is: An action-script error has occured.
The error messsage is:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost:8888/com.mymdworld.Application/DynaAccess.swf cannot load data from http://www.example.com:8080/servlet/getviews.
at DynaAccess_fla::MainTimeline/DynaAccess_fla::frame1()
Also, the dialog-box contains two buttons namely, "Dismiss All" & "Continue" buttons.
Please, I request anyone to help me regarding this.
Actually, What is going on internaly? & Why for is this error?
Please, spend 2 minutes of your valuable time in filling the reply to this thread.
I will be waiting for your replies...
Thanks in advance...
Srihari.Chhttp://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
Check the docs and google "crossdomain policy" -
Playing SWF files in FLV Player
Hi,
I would like to know whether swf files can play in an FLV Player or not. If not possible, is there any option for developing an independent swf player. If so, please tell me the technique that can be used to develop swf player.
Regards,
Sreelash.Thank for your reply friend. I understood what u said. Actually the requirement for the client is to stream swf file as streaming flv file. So I think, in the server side we have to use converter. I meant, if the client put the swf files in the server, the server side program calls the converter before streaming to the client side.
The functionality what I meant is following:
1) The client request for an swf file.
2) In the server side, it is placed as swf files.
3) Then, programmatically the server side code invokes the converter and convert the swf file to flv file before streaming.
4) This is what I meant the use of converter.
I hope you understood what I meant. Can I have your mail id please. Because in forum not everyone reply for the doubts. Also I am the only action script programmer in my company and I have only 5 months experience. My mail id is [email protected]
Thanks and Regards,
Sreelash.S. -
How to load a pdf/xls/swf files in to a adf:popup
hi
my requirement is to open a pdf/xls/swf in a popup. howcan i get a poup with pdf/xls/swf files . presently i am using a servlet.I set the content type in the servlet as application/pdf and so on..
I am getting data as byte stream from the data base.know how to give this bytestream/response object of the servlet to the panel window.
In a popup i placed panel window.the struture is:
<af:popup>
<af:panelwindow>
</af:panelwindow>
</af:popup>
thanks in advance
Srikanth.V
Message was edited by:
user631950Hi,
I have a similar requirement where I need to show the preview of a document in a popup.
I have a button and I added "af:fileDownloadActionListener" into the button, then I wrote the following code in my bean for the downloadactionlistener:
public void showPreviewDownloadListener(FacesContext facesContext,
java.io.OutputStream outputStream) throws IOException{
DCIteratorBinding agr = getBindingsForDCB().findIteratorBinding("xyz");
Row row = ag.getRowSetIterator().getCurrentRow();
String fileName = (String)row.getAttribute("FileName");
String fileType = (String)row.getAttribute("FileType");
BlobDomain file = (BlobDomain)row.getAttribute("FileData");
try {
InputStream inputStream = file.getBinaryStream();
byte[] buf = new byte[1024];
int count;
while ((count = inputStream.read(buf)) >= 0) {
outputStream.write(buf, 0, count);
inputStream.close();
outputStream.flush();
outputStream.close();
file.closeInputStream();
docPreviewInlineFrame.setSource(fileName);
//ADFUtils.setEL("#{pageFlowScope.docSource}", "../"+fileName);
ADFUtils.invokePopup(docPreviewPopup,true);
catch(IOException ioex) {
ioex.printStackTrace();
when I'm clicking my button, all it does is open a popup to view/download the while.
My own popup (with a dialog and an internalFram in it) does not get invoked at all.
Also the file that I'm referring is from DB, can anyone also suggest me how to set the source for the inline frame if the file is from DB?
Thanks in advance,
Swapna -
Creating IPA file with Multiple SWF files using ADT
Iam successfully able to create ipa files using the ADT package but my next requirement is to create an IPA file with multiple swf files.I think it might be easy if your SWF files are regular the tough part is my swf file has lot of action script in it so the only option is to through the command prompt and using the ADT package of Adobe AIR.So now i have 10 SWF files like this and iam creating ipa file for each swf seperatly but now I want to put all of the swf files into one ipa file.Please let me know if i was not clear in my description
I think you are trying to explain how to load two swf's one with action
script and loading an other swf file which should be non action script.If
you read my requirement carefully.I have all the same type of swf's and
these swf are automatically created as a form of output for xcelsius dash
board software.Iam capable of creating individialu ipa files from these swf
files.So when I try to combine the same kind of swf files the first error
its giving is the file name which I have used in the xml.in the main file
name for the swf file its not considering the two swf file name in the
initial window.so the adt package in the command line is not understanding
the file name from the xml and the command prompt and giving error this swf
file does not exist.So please consider how to combine two swf files with AS3
into one ipa file.These swf files are not editable,Let me know if you find
any idea to achieve this -
Window.print() not working for swf file in webpage?
I have used the javascript window.print() function to print a webpage. But when i click a button to invoke this function the swf file stops then the screenshot is taken and then it resumes playing,, thus resulting in a blank page to be printed... What to do??
Since it is not clear what your intentions are for wanting to print the screen, you could try just using the Print Screen of your keyboard (pc) and then paste the resulting screen capture into an image using Photoshop or Fireworks.
-
i need to resize a swf file thats 800 x 300 down to 600 x 226
how can i do this without having to set the new parameters in
the embed tag like this <embed src="banner.swf" height="226"
width="600"> ..??
is there a way to resize the whole project when i export the
swf file or something.
i made my project a lil to bigger than i needed and have
already imported a few other swf files into this main banner swf
project so i need to resize everything down now..
How can i do this..??What format is the file in before you export to SWF?
What program are you using to convert your file from its
current form to SWF? -
I am creating an interactive document in InDesign and exporting it as a SWF file. I would like the text in the SWF file to be searchable text. Do I need to set up the document a certain way to achieve this? Can I create a search button within InDesign that will allow this to happen? Is there an add-on you can use to have the search option available within the flash player? I would greatly appreciate any knowledge and help regarding this issue. Thanks!
No, there´s no such feature in InDesign. Actually the text InDesign exports, if use SWF as a format, is quite a mess. Words are splitted to separate characters and it´s not even closely in searchable form.
3rd party finalizing tool for SWF files exported from InDesign - eDocker - can however create a simple keyword search for you document. Search is still in beta feature but it works if you just need to have a textfield where end-user can write a word or phrase to search for. After clicking search button, he/she will receive a list of search results, which are also links pointing to those pages where actual results are.
Check for instance this link:
http://www.nypa.gov/AR09/annualReport09.html
Try word empire and you will get few results to pages where that word can be found.....
You will find eDocker here>> -
Swf file causing rollover images not to work
I've inserted a Flash file into my webpage in Dreamweaver and it broke all my rollover images. Even deleting the swf file and reinserting the rollover images doesn't work. I've read a few threads on this but can't quite find exactly what I'm looking for. I think it's something in the <head> code but I'm not sure. Any help would be much appreciated!
<head>
<title>Matt Relstab | Still Photography | Moving Pictures | Sound Design</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
<meta name="keywords" content="natural light photography, media producer boston, online media, photographs, sound design, audio for film, web video, video production,
boston production, portable recorder, digital photography, digital media production">
</script>
<style type="text/css">
<!--
body {
background-color: #3f4450;
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>For starters, look at the first line on your errant page, it starts out:
<meta name="keywords" content="audio reel, foley artist, sound effects mixer, audio mixer
boston, sound engineer, post production">
<html>
Thats not good. If you look at your other pages, the <html> tag is first, the way it should be.
Switch them around, then try this, remove your <html> tag (the very first tag is where is should be) and replace it with this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
See what that does for you.
Gary
On Edit: I just noticed that you have
<meta name="keywords" content="natural light photography, media producer boston,
online media, photographs, sound design, audio for film, web video, video production,
boston production, portable recorder, digital photography, digital media production">
inside your js for the rollovers...Move them out of the script.
GAry -
Protecting EXE, PDF and SWF files from piracy
I am hoping others in the community have some experience with protecting their Captivate output (EXE and SWF files) from piracy. We will be selling our eLearning products developed with Captivate through our online store and want to protect them against file sharing and other forms of piracy. I have found several companies online offering DRM (digital rights management) and SAS (software activation services) that require users to enter a license key to use the products. I am looking for any recommendations from users who have implemented these types of services. What provider did you use and what issues did you encounter. Any insights would be greatly appreciated!
Thanks,
JasonMost of the tools I have seen are geared towards extracting
resources from swf's. I use one myself (eltima.com) for
"harvesting" manufacturers content for my motorcycle dealers. They
are authorized to use this content, but finding someone at Yamaha
of Kawasaki or any of the majors who even knows where to find these
resources is next to impossible. I have also used it to learn from
by viewing scripts, but as you say, at the end of the day, I think
the concepts and best practices are about the only thing worth
taking away from others efforts, not the code.
Unlocking a protected file can be done as well and I remember
using a product over a year ago to get at the scripts within an swf
(I wanted the URL's that pointed to media - it was legal for me to
do this). It ran from the command line and output the scripts.
There aren't too many of these types of programs to be found, but
they exist.
My personal opinion is that it's not worth the effort. My
java classes can be decompiled and if someone wants to go to that
trouble, more power to them. To my knowledge, there isn't anything
out there yet that is perfect for backwards engineering an swf into
an MXML file, but a competitor of FLASH Decompiler says that they
can decompile Adobe 9 PLAYER swf's. For what it's worth, I plan on
posting the majority of my code on my flexdev.org site once I get
it established.
For people who make components for sale, this could be an
issue of stolen revenue if the decompilers get sophisticated enough
to reverse engineer the swc into a usable MXML file. I would be
against anyone who stole code for this purpose, for sure.
Maybe you are looking for
-
Are there more loops in Garageband 09 compared to Garageband 06
Are there more loops to use in GB 09 compared to 06. I'm not as interested in SFX as just making them for royalty free soundtracks Thanks
-
Special Characters and spaces in Tablenames and Column Names are allowed ?
Hi I have created two tables in Oracle10g as follows SQL> create table test(columna number,columnb varchar2(20),primary key(columna)); Table created. SQL> insert into test values(1,'test'); 1 row created. SQL> commit; COMMIT är utfört. SQL> create ta
-
Help, I am under attack.
Today I have discovered some data in a database that makes me think that some is trying an sql injection attack on one of my websites. I use SP's and Cfqueryparam to protect myself against this type of attack and as a general rule before doing anythi
-
Looking for addition articles for the Arch Linux Press Review wikipage
Good day all, I recently updated the Arch Linux Press Review wikipage, found here: http://wiki.archlinux.org/index.php/Arc - ess_Review If you know of any additional reviews or articles about Arch Linux, please edit the wiki page or post the info as
-
I have Photoshop Elements 8 and I just recently started shooting in RAW, but when I try to download the files in Bridge (I have a Mac), the thumbnails don't show up. I went ahead and tried to download the files, even though I couldn't see what they