Output from Flash to session cookies
Hi,
I'm a newbie as far as Flash is concerned. My background is
coding dynamic ASP 3.0 with ODBC connection to Access databases. I
have a number of educational programmes written in Flash that I
want to be able to track the progress of the student through each
scene so I can provide advanced reporting.
I am hoping the simplest solution ( not necessarily the best)
is to get each scene to write to the session cookie. I can use the
Global.asa file Session.end event to capture the output to write to
a database. I would like to write several variables for each scene
- course name, scene number, date & time.
All help appreciated
Hi Kglad,
Good news
- that sounds like an answer....
Did I say I was a newbie??!!
I really appreciate you help though. Is it possible to get a
paint by numbers answer?
I am hoping that I can add the needed action script at the
beginning of each scene.
Merry Christmas
Similar Messages
-
How to Strip Extraneous Output from SQL*Plus Session
We are running Oracle Database 11g on Solaris 10, and I am trying to use SQL*Plus to create a temporary .sql file that I can execute in a later step of a Korn shell script. Here is the code:
$ORACLE_HOME/bin/sqlplus / as sysdba <<EOF
--whenever oserror exit failure;
--whenever sqlerror exit sql.sqlcode;
set serveroutput on
set termout off
set trimspool on
set verify off
set heading off
set feedback off
set echo off
spool /usr/oracle/temp/apply_site_security_for_oracle_database_11g.ksh.tmp
declare
Value_DSC varchar2(2000);
CommandLine_DSC varchar2(4000);
begin
select v\$parameter.value into Value_DSC from v\$parameter where lower(name)='diagnostic_dest';
CommandLine_DSC := 'host chmod 751 ' || Value_DSC;
dbms_output.put_line('--Ready to execute: ' || CommandLine_DSC);
dbms_output.put_line(CommandLine_DSC);
CommandLine_DSC := 'host ls -ld ' || Value_DSC;
dbms_output.put_line('--Ready to execute: ' || CommandLine_DSC);
dbms_output.put_line(CommandLine_DSC);
end;
spool off;
exit;
EOF
I've tried to turn off everything I don't need, but I am missing something. When I run the script, I get the following in the temporary file:
SQL>
SQL> declare
2 Value_DSC varchar2(2000);
3 CommandLine_DSC varchar2(4000);
4
5 begin
6 select v$parameter.value into Value_DSC from v$parameter where lower(name)='diagnostic_dest';
7
8 CommandLine_DSC := 'host chmod 751 ' || Value_DSC;
9 dbms_output.put_line('--Ready to execute: ' || CommandLine_DSC);
10 dbms_output.put_line(CommandLine_DSC);
11
12 CommandLine_DSC := 'host ls -ld ' || Value_DSC;
13 dbms_output.put_line('--Ready to execute: ' || CommandLine_DSC);
14 dbms_output.put_line(CommandLine_DSC);
15 end;
16 /
--Ready to execute: host chmod 751 /s01/app/oracle
host chmod 751 /s01/app/oracle
--Ready to execute: host ls -ld /s01/app/oracle
host ls -ld /s01/app/oracle
SQL>
SQL> spool off;
I am hoping to whittle this down to just the following lines so I can execute them as a script.
--Ready to execute: host chmod 751 /s01/app/oracle
host chmod 751 /s01/app/oracle
--Ready to execute: host ls -ld /s01/app/oracle
host ls -ld /s01/app/oracle
Any ideas?
Edited by: shew01 on Jan 19, 2010 10:51 AMI just found it. Just add "-S" to the sqlplus command. Argh... I hunted for that a while back. Why didn't I remember it??????????
This works:
$ORACLE_HOME/bin/sqlplus -S / as sysdba <<EOF
whenever oserror exit failure;
whenever sqlerror exit sql.sqlcode;
set serveroutput on
set linesize 2000
set pagesize 0
set termout off
set trimspool on
set feedback off
spool /usr/oracle/temp/apply_site_security_for_oracle_database_11g.ksh.tmp
declare
Value_DSC varchar2(2000);
CommandLine_DSC varchar2(4000);
begin
select v\$parameter.value into Value_DSC from v\$parameter where lower(name)='diagnostic_dest';
CommandLine_DSC := 'host chmod 751 ' || Value_DSC;
dbms_output.put_line('--Ready to execute: ' || CommandLine_DSC);
dbms_output.put_line(CommandLine_DSC);
CommandLine_DSC := 'host ls -ld ' || Value_DSC;
dbms_output.put_line('--Ready to execute: ' || CommandLine_DSC);
dbms_output.put_line(CommandLine_DSC);
end;
spool off;
exit;
EOF
Edited by: shew01 on Jan 19, 2010 11:02 AM -
Is it possible to output multiple clips from a multitrack session, at the same time?
I'm using Audition CC 2014.2
on Windows 7 Pro x64
I am trying to figure out how to output several clips from a multitrack session, at the same time.
A session like this:
Is it possible to output 5 files right now?
I can select each one (or even multiple) and use File > Export > Multitrack Mixdown > Selected Clips to do one at a time only.
I'm hoping for a way to give each clip (or group of clips) a predefined filename, by perhaps using markers or something like that, which would then allow me to faster "automate" the exporting of each section into a different sound file.
This ability would be really helpful when using a single multitrack session to generate multiple sounds and a change to globally applied effects is made and all sounds now need to be updated.
Any ideas?They are, yes, but I'm also working with multitrack sessions using clips made from various different sound files.
Ahh ok, use markers?
So, this sort of thing isn't possible in multitrack mode then?
If not, it sounds I'll have to "mix down" my multitrack session into a single file and set up the markers in Waveform Edit view.
That's an extra step I'd have to do, and after editing the multitrack session, surely some markers . . . oh wait, no . . . every time I output the new mix down file from the multitrack I'd need to redo all the markers. Drat . . .
Honestly, I am very new to Audition, but I'm about to plow into it, big-time, and I'm hoping for a nice non-destructive and fast workflow that'll enable me to output sets of sounds from the same multitrack session.
But, it seems like this functionality is currently missing. -
Session Cookies Being Overwritten Browsing From SSL to Non SSL
I have created a bug report for this issue as well.
Please note I am using J2EE session variables so keep that in mind.
I am seeing session cookies being overwritten when browsing from an SSL connection to a non SSL connection.
For example:
Visiting https://www.domain.com/ results in a JSESSIONID cookie being set with details being send for "Encrypted connections only".
Visiting http://www.domain.com/ results in a JSESSIONID cookie being set with details being send for "Any type of connection".
Here's the problem:
Say for example, you're logging into an admin module located at https://www.domain.com/admin/. Once authenticated and some session variables are set, you browse to http://www.domain.com/. When that happens your session cookie (JSESSIONID) is overwritten with a new value and you instantly lose your authentication in the admin module.
Obviously this is causing massive problems for my clients that bounce back and forth from SSL to non SSL connections which is common for e-commerce websites.
Steps to Reproduce:
1. Clear your cookies.
2. Visit a web page such as https://www.domain.com/. Note the JSESSIONID cookie value.
3. Visit a web page such as http://www.domain.com/. Note the JSESSIONID cookie value and how it was overwritten.
This behavior changed in ColdFusion 10. ColdFusion 9 did not overwrite the session cookie.
Has anyone else experience this?Deleting and re-adding my account seems to have fixed it. I think when I initially added my Google Talk account, it was by using the "Add Jabber Account" under 10.6 or something. Now, when I re-added my account, I notice both "Google Talk" and "Jabber" are options, so my thought here is that Jabber and Google Talk options are no longer quite the same thing.
-
CFID and CFTOKEN Being Deleted from Session Cookie
I can't believe that no one else has run into this - but I
have found nothing on the internet.
When I copy a piece from a web page that is generated by my
coldfusion server, and paste it into a word document, the session
cookie is altered, and the CFID and CFTOKEN information is deleted,
so I lose my login. Recently, I've developed a problem on a
different application - when I open a word document that is stored
on the server, using CFCONTENT, same thing happens - the cookie is
altered, CFID and CFTOKEN are deleted, and I lose my login.
I'm tearing my hair out. Has anyone seen this behaviour, any
ideas as to why this would occur? Any ideas as to how to get around
it?Here's my CFAPPLICATION tag:
<cfapplication name="DashBoard"
clientmanagement="Yes"
sessionmanagement="Yes"
setclientcookies="Yes"
clientstorage="cookie"
loginstorage="session"
sessiontimeout="#CreateTimeSpan(0, 0, 30, 0)#">
Not sure what you mean by application sections. It's one
application.
I don't refer to the cookie in any other way. It's there only
to do what CF does with it - maintain the information that's used
to find the session. -
Standalone Projector won't work on a Mac when output from Mac Flash 8 Pro
Standalone Projector won't work on a Mac when output from Mac Flash 8 Pro
I'm outputting a Mac projector file that will work on my mac computer. However, when I upload it to FTP and download it my mac or another mac, it won't work! What's going on? I've tried adding ".app" to my file and it still won't work. Help!
Here's my set up: Flash 8 Pro on Mac Intel with Mac OS 10.4.11Hi,
Does it work if you .zip up the projector and FTP the .zip and then unzip the projector on the other Mac's? A projector is basically an application. Applications in Mac's have package contents and resource bundles. When copying files over the network on Mac's, symbolic links inside the package contents and bundles can get messed up.
Thanks,
Nivesh -
Export an image from flash, the output color not same as original from flash
i try to create my logo from flash
i use export function in gif format.
the output color is not same as what i saw at flash.
may i know why? below is the screenshot.
flash
outputhi
i have export in png. but it have a black part at the background.
do you have idea? -
Cant sign in to Macy's account. Site says, "Please enable session cookies". Checked Safari (Safari 7.0/9537.71) Preferences on OSX 10.9 - Under Privacy > Block Cookies and other website data > is set to "Never". I'm seeing the same problem in my iPad Mini (1st Gen) too. Please Advise.
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test. -
How to Set up HTTPOnly and SECURE FLAG for session cookies
Hi All,
To fix some vulnerability issues (found in the ethical hacking , penetration testing) I need to set up the session cookies (CFID , CFTOKEN , JSESSIONID) with "HTTPOnly" (so not to access by other non HTTP APIs like Javascript). Also I need to set up a "secure flag" for those session cookies.
I have found the below solutions.
For setting up the HTTPOnly for the session cookies.
1] In application.cfc we can do this by using the below code. Or we can do this in CF admin side under Server Settings » Memory Variables
this.sessioncookie.httponly = true;
For setting up the secure flag for the session cookies.
2] In application.cfc we can do this by using the below code. Or we can do this in CF admin side under Server Settings » Memory Variables
this.sessioncookie.secure = "true"
Here my question is how we can do the same thing in Application.cfm?. (I am using ColdFusion version 10). I know we can do this using the below code , incase of HTTPOnly (for example).
<cfapplication setclientcookies="false" sessionmanagement="true" name="test">
<cfif NOT IsDefined("cookie.cfid") OR NOT IsDefined("cookie.cftoken") OR cookie.cftoken IS NOT session.CFToken>
<cfheader name="Set-Cookie" value="CFID=#session.CFID#;path=/;HTTPOnly">
<cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;path=/;HTTPOnly">
</cfif>
But in the above code "setclientcookies" has been set to "false". In my application (it is an existing application) this has already been set to "true". If I change this to "false" as mentioned in the above code then ColdFusion will not automatically send CFID and CFTOKEN cookies to client browser and we need to manually code CFID and CFTOKEN on the URL for every page that uses Session. Right???. And this will be headache.Right???. Or any other way to do this.
Your timely help is well appreciated.
Thanks in advance.BKBK wrote:
Abdul L Koyappayil wrote:
BKBK wrote:
You can switch httponly / secure on and off, as we have done, for CFID and CFToken. However, Tomcat automatically switches JsessionID to 'secure' when it detects that the protocol is secure, that is, HTTPS.
I couldnt understand this. I mean how are you relating this with my question.
When Tomcat detects that the communication protocol is secure (that is, HTTPS), it automatically switches on the 'secure' flag for the J2EE session cookie, JsessionID. Tomcat is configured to do that. Coldfusion has no say in it. So, for JsessionID, 'secure' is automatically set to 'false' when HTTP is detected and automatically set to 'true' when HTTPS is detected.
If this is the case then why I am getting below info for jsessionid (As you mentioned it should set with SECURE flag . Right???). Note that we are using web server - Apache vFabric .And the application that we are using is in https and there is no hit is going from https to http.
Name:
JSESSIONID
Content:
782BF97F50AEC00B1EBBF1C2DBBBB92F.xyz
Domain:
xyz.abc.pqr.com
Path:
Send for:
Any kind of connection
Accessible to script:
No (HttpOnly)
Created:
Wednesday, September 3, 2014 2:25:10 AM
Expires:
When the browsing session ends
BKBK wrote:
2]When I checked CF Admin->Server Settings->Memory Variables I found that J2EE SESSION has been set to YES. So does this mean that do we need to set HTTPOnly and SECURE flag for JSESSIONID only or for CF session cookies (CFID AND CFTOKEN ) as well ?.
Set HTTPOnly / Secure for the session cookies that you wish to use. Each cookie has its pros and cons. For example, the JsessionID cookie is more secure and more Java-interoperable than CFID/CFToken but, from the explanation above, it forbids the sharing of sessions between HTTP and HTTPS.
I understood that setting thos flags (httponly/secure) is as per my wish. But my question was , is it necessary to set those flags forcf session cookies (cfid and cftoken) as we have enabled J2EE session in CF admin?. Or in other way as the session management is J2EE based do we need to set those flags for CF session cookies?.
BKBK wrote:
3]If I need to set HTTPOnly and SECURE flag for JSESSIONID , how can I do that.
It is sufficient to set the HTTPOnly only. As I explained above, Tomcat will automatically set 'secure' to 'true' when necessary, that is, when the protocol is HTTPS.
I understood that it is sufficient to set httponly only.but how we will set it for jsessionid?. This is my question. Apache vFabric will alos set secure to true automatically. Any idea?? -
(How can we) Export FXG from Flash Professional using JSFL
How can we export a selection from Flash Professional as .FXG using JSFL? It appears that this is not possible... just yet! I have added this as a feature request within the Adobe Labs site for Flash Professional. Someone at Adobe suggested that I also explore the forums, so here we are. If you would also like to have this feature added, please let Adobe know by promoting the idea.
Our use case is this: we have a large Flash file with a library of over one thousand skins and assets that were built in Flash with Adobe's Flex Skins Templates. These stateful, graphical skins were used within a custom theme by several Flex 3 projects. Our ultimate goal is to bring these through Catalyst, maintaining their vectors, and use them to create Spark skins.
We've got a JSFL that can export each linked library asset, as well as any frame-labeled 'state' within these clips. However, currently we are using exportPNG, which is not ideal as it flattens our vector art into raster images. We are about to try the exportSWF option, and see what Flash Catalyst does with this. Our early attemps with importing swf's haven't been too amazing.
I'm starting to imagine some cross-product scripting in which we export symbols at a state-by-state level as .swf from Flash, then rebuild these onto layers in Illustrator, and THEN import these into Catalyst...yikes!
Anyone have a better solution?Follow-up:
Out of pure wishful thinking I decided I would just see what happened if I pretended 'exportFXG' was already a part of JSFL. Based on the signature of 'exportPNG', i tried the following lines:
var success = fl.getDocumentDOM().exportFXG("file:///C:/mySymbol.fxg");
fl.trace("success:"+success); // output: success:true
It worked! Fantastic! I'm not sure if exportFXG is considered still in "beta" and therefore intentionally excluded from the docs, or if it was just an oversight. But at least it gives us something to experiment with. -
Quicktime movie export from Flash CS3 is skipping frame.
When I try to export Quicktime movie from Flash CS3, the
resulting mov file is skipping frames. i.e.: The movie is showing
frame number 1, 2, 3, 4, 5, 6, 7, 7, 7, 10, 11, 12, 12, 12, 15
etc...
As you can see the frame number 7 is repeated 3 times and
frame 8 and 9 are nowhere to be found.
The last configuration I used is 960x540, Sorenson video 3
medium quality, 25 fps, keyframe every 25 frames. 6400 kbits/s.
I tried various configurations,with different codecs and even
with keyframe all frames and I always get simillar problems.
Anyone have an idea what is going on, and how to fix this?
Thank you,
Olivier.The QT exporter in Flash is honestly my least favorite
feature - not the feature itself but how it
works (or how it doesn't work in some cases). For me it is
almost unusable unless you have a very
short timeline, small stage, lower frame rate - like AS
generated effects or something - otherwise,
for true frame accuracy to video output - it is not reliable
enough and not fast enough for any real
world production environment.
So typically for me - I love SWF2Video (www.flashants.com) as
it takes any SWF and makes it into an
AVI that is frame accurate no matter what the frame rate is -
quite incredible - enough so that I
always felt it should have been bundled with Flash (as well
as Wacom tablets).
Harmony is an incredible product - as is SOLO and TBS (Toon
Boom mStudio) - each of those programs
are dedicated animation programs designed for output to video
- Flash has a lot of hats to fill and
it was never really designed for animation to video even
though many of us have found it suitable
for all intents and purposes as an animation program for full
production.
But all in all - the quicktime exporter doesn't really
deliver how we would expect it too I am sorry
to say - I only hope it works as well as it does on the Mac
(Mac users could always choose to export
to Quicktime Video but not PC users).
For now if I am exporting to video I keep it all on the
timeline or nested in Graphic symbols or use
the SWF2Video tool.
hope this helps.
-chris
Chris Georgenes / mudbubble.com / keyframer.com / Adobe
Community Expert
OBastien wrote:
> Thank you for your reply Chris.
>
> I tried different possible solutions you listed but it's
not working.
> Disabling sound had no effects. Changing the FPS is not
an option, it has to be
> 25 FPS. I lowered the resolution to 300 something, it
seemed to be a little bit
> better, but it still dropped some frame, and the image
quality was horrible.
>
> I think it is really sad that we have to try different
settings in the hope
> that flash will grab all the frames. I'm really
disapointed in Adobe. I'm
> pretty sure it is the fault of Adobe and not Apple,
because I don't have does
> problems with Quicktime in ToonBoom Harmony. What is
strange is when I do an
> AVI export I never noticed a dropped frame. I'm not
using AVI video right now
> because I can not find a codec that gives me small size,
fast encoding times,
> the ability to seek in the movie by dragging the
timeline progress bar, and the
> possibility to edit in After Effects. If you know an AVI
codec that does all
> that it would be really great news.
>
> Thank you again,
> Olivier.
> -
I want to disable the use of cookies in WLS 4.5, and set the following
weblogic.httpd.session.cookies.enable=false
In WLS 4.5 sp7, this correctly prevents the server from using cookies
for session-tracking, forcing the extraction of the session id from a
rewritten URL.
However, for WLS 4.5 sp11 cookies are still sent from the server
Is this a known issue ?
joI want to disable the use of cookies in WLS 4.5, and set the following
weblogic.httpd.session.cookies.enable=false
In WLS 4.5 sp7, this correctly prevents the server from using cookies
for session-tracking, forcing the extraction of the session id from a
rewritten URL.
However, for WLS 4.5 sp11 cookies are still sent from the server
Is this a known issue ?
jo -
Opening an HTML popup from Flash, not as tab
Hi
I need to open an HTML popup from Flash (using ActionScript in
Flex 4).
Thus far I found a solution, and it does work in Safari - a new
and separate HTML window is popped up (with a new web page).
private function popUpTheHtmlEditor():void {
var url:String = "http://www.adobe.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
But in (my) Firefox (with my settings), when I click on the Flash
(Flex) button, the page is being opened in a new tab.
I need a solution which pops up the HTML page in a new/separate
window, as far as possible regardless of the browser (and browser
settings).
I found an example where a popup is opened from HTML, and it opens a
separate window (a real popup) in my Firefox:
http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
-> "Open a requested popup"
The JavaScript code seems to be:
OpenRequestedPopup(this.href, this.target); return false;
with this function def:
function OpenRequestedPopup(strUrl, strTarget)
if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
else
if(WindowObjectReferenceOfRequestedPopup.focus)
WindowObjectReferenceOfRequestedPopup.focus();
How could I call such code from ActionScript? Should this work through
ExternalInterface? I couldn't even get this to work:
ExternalInterface.call('alert', 'foo');
Should I use swfobject.js for embedding the .swf in the HTML wrapper?
Any other ideas?
The two files are pasted below.
Here's the compiler command I'm using:
mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
I'm running the examples locally (as files, not over http). Would it
help to place the files on a server?
Tobi
<?xml version="1.0" encoding="UTF-8"?>
<mx:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
horizontalAlign="center" verticalAlign="middle">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.external.ExternalInterface;
import flash.net.URLRequest;
// This 'http://www.adobe.com' is just an example URL.
// Works but opens tab in FF (not a separate window):
private function popUpTheHtmlEditor():void {
var url:String = "http://www.adobe.com";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
// Doesn't work:
// var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
// navigateToURL(url, "_self");
// How to get this to work?
private function popUpTheHtmlEditor():void {
ExternalInterface.call('alert', 'foo');
// How to get this to work?
private function popUpTheHtmlEditor():void {
ExternalInterface.call('launch','http://www.adobe.com');
// Or
// ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
// Perhaps it's necessary to try different approaches:
// (As soon as I get two approaches to work.)
private function popUpTheHtmlEditor():void {
var s:String;
if (ExternalInterface.available) {
// Necessary? Safe?:
// Security.allowDomain('*');
s = ExternalInterface.call('launch','http://www.adobe.com');
} else {
// TODO: Then try URLRequest?
s = "Wrapper not available";
Alert.show(s);
]]>
</fx:Script>
<s:Panel title="One way to open the HTML editor"
width="75%" height="75%">
<s:Button id="button" label="Open the HTML editor"
click="this.popUpTheHtmlEditor();"
horizontalCenter="0" verticalCenter="0"/>
</s:Panel>
</mx:Application>
<html
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<title>html_around_swf.html</title>
<script type="text/javascript">
function launch(url) {
alert(url);
// OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
</script>
</head>
<body>
<object id="button" name="button" width="550" height="400"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param name="movie" value="button.swf" />
<param name="allowScriptAccess" value="always" />
<embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
</object>
</body>
</html>Hi,
Here's a solution.
1. Make ExternalInterface work when files are loaded as local files:
Go to
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
In tab Global Security Settings: Edit Locations -> Add Location ->
browse to the .swf file, add it. Make sure it's in the list (under the
Edit Locations drop down, with a green check mark.)
Now open the HTML wrapper in a browser (eg Firefox).
Now this works (ActionScript):
private function popUpTheHtmlEditor():void {
ExternalInterface.call('alert', 'foo');
On Windows: perhaps:
http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
"In order for external interface functions to be called, you must also
specify the folder/file where the swf file is located."
The above setup isn't necessary when the files are on a server.
Also see:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
""ExternalInterface" "
"call() method"
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
"About ExternalInterface API security in Flex"
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
"Using the ExternalInterface API to access JavaScript"
2. Open a real popup: Example:
ActionScript:
private function popUpSomething():void {
var editorPathOrUrl:String =
'wrapper.html';
var windowName:String =
"SomeNameSeeDocs";
var windowFeatures:String =
"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
ExternalInterface.call(
'launch',editorPathOrUrl,windowName,windowFeatures
JavaScript:
function launch(editorPathOrUrl,windowName,windowFeatures) {
windowRef = window.open(
editorPathOrUrl,windowName,windowFeatures
Works in all browser I tested except Opera.
Tobi -
How to Edit Web Gallery Output from CS5?
Hello! I just upgraded from Photoshop CS3 to CS5. (Got some scrambling to do to catch up!) I had been using the old File>Automate>Web Photo Gallery to create galleries for my Web site. Massaged a little in Dreamweaver MX (I know, I know...) they look something like this:
http://www.techno-imaging.com/gal10spring/alden_b2/index.html
I found out how to add the old Web Photo Gallery back into Photoshop CS5, but was curious to find out what Bridge CS5 would do with Output>Web Gallery. I experimented with the Standard template and was mostly happy with the result. Here's what I got:
http://www.techno-imaging.com/gal10spring/alden_b2_test1/index.html
Trouble is I'd like to be able to customize the output a little more than allowed within the template itself. It looks like the output has Flash, JavaScript, XML, HTML and maybe other programming resources. I'm fairly familiar with HTML 3 and CSS, but am not a programmer. Can anybody recommend what high-level editing tools (example: Microsoft Word for fancy text editing) I could use to make some modest tweaks? The default modules are fine, but I'd at least like to be able to add a link back to my main gallery page like you see at the top right of my old Web Photo Gallery pages.
Also- are there 3rd party templates for Bridge CS5 Web Gallery?
Thanks, - DaveHi i7nvd
Oh my, I missed that completely! Thanks very much for bringing that to my attention. In the meantime I found that ACDSee would do a Web gallery that works OK for me. However I will go back to Bridge Output Web Gallery this afternoon and five it a whirl. Again, many thanks for jumping in and pointing that out to me. I appreciate it a lot!
BTW, thanks for the link to your site built with the Bridge plug-in. And congratulations on the wedding!
- Dave -
No Sound Output from Logic Pro 9
I recorded a 4-track performance in Logic Pro 9, but when I play it back the displays show that the sound is there but no sound comes out of my computer. Other files that I have recorded in Logic Pro 9 play fine. Any Suggestions?
My Preferences Core Audio is set to Built-in Output, with an I/O Buffer Size of 256, 24-Bit Recording, Unversal Track Mode and Software Monitoring. Audio Settings specify Automatic Management of Channel Strip Objects, Automatic Naming of Channel Strip Objects and Playback Pre-roll, with a sample rate of 44.100 kHz. My Apple Sounds System Preferences are set for Built-In/Internal Speakers, the output volume is all the way up, and the mute is off. I cannot figure out what is keeping the sound from coming out. Again, any ideas would be appreciated...Here are some things to try.
You said you have core audio set to built in outout , yet you have an Apogee ensemble. Can you hear audio coming from the computer output?
Can you play other audio files from this session?
In the lower right hand corner of Logic in the arrange window there is a volume control, did you turn that down without realizing it?
Can you hear audio from another Logic Session?
Can you hear Audio From Itunes?
Maybe you are looking for
-
Locks getting created with lock owner field ##
Hi We are using ECC 6.0 system. We are facing a typical pronblem. Locks are getting created with ## in the user name field. Because of which updates are not happening. I solved this problenm by applying note 857439 but the problem again occurs after
-
Strange rendering all the time - not only on Firefox.
The image has strange strypes all over it and they look a little like normal screen for a short time. It happend after I sent my laptop Acer Aspire 4745 Z - 4754. Thanks for your attention.
-
To check the checkbox dynamically used in thmlb tag
Hi all, I am new to crm 2007, I have added a thtmlb tab to create a checkbox. I am able to get checkbox event to get value of the check box and process. But when reopen the view the check box should be checked dynamically depending on the conditi
-
Make iphoto NOT duplicate images?
Hi, I like almost everything about iPhoto, except that it duplicates your images when you import them into your library (at least that's my understanding of what happens). With thousands of images (most of which are about 2 Mb each), that can get to
-
Hi, I'm trying to paste some MS WORD text into dreamweaver. It's a biograpy sort of document. It had some resume type formatting earlier with boxes. I told the creator of the document to remove this formatting and resend with less formatting (bold, i