ActionScript 3.0 :: Get Lightwindow To Launch From Script?
Jan 22, 2009
i am trying to get lightwindow to launch from my script in as3
i have some thumbnails that are generated via xml - and when clicked the thumbnail opens a url in a new window.
i want it to open in the lightwindow box instead.
this is the as that i have on my thumbnails
[Code]....
i am really struggling with this - i have also dropped the swf into html doc for lightwindow and the html links - open the lightwindow up perfectly but the swf doesn't want to know.
has anyone managed to get this working before? or know of good points of reference to make it work from a flash button/xml.
there is no support on the stickman site - lots of config info - but not for flash?
in summary how do i trigger lightwindow from an as3 button???
View 14 Replies
Similar Posts:
Jan 22, 2009
i am trying to get lightwindow to launch from my script in as3. i have some thumbnails that are generated via xml - and when clicked the thumbnail opens a url in a new window.i want it to open in the lightwindow box instead.this is the as that i have on my thumbnails
PHP Code:
function p_click(me:MouseEvent)
{
var loader : Loader = new Loader (); [code].....
i am really struggling with this - i have also dropped the swf into html doc for lightwindow and the html links - open the lightwindow up perfectly but the swf doesn't want to know.has anyone managed to get this working before? or know of good points of reference to make it work from a flash button/xml.there is no support on the stickman site - lots of config info - but not for flash?
View 21 Replies
Mar 2, 2009
I'd like to replace my current functionality of just launching a new url in a new window to loading a .swf in lightwindow. I've seen a previous post on this but I was having trouble following it.
My current function looks like this:
protected function clickHandler(me:MouseEvent):void {
trace("PortfolioItem::click ");
var request:URLRequest = new URLRequest("http://" + _url);
[Code]....
I think I am supposed to add the ExternalInterface class to help adapt the lightwindow javascript to work within flash.
View 2 Replies
Feb 23, 2012
I posted a question similar to this not so long ago however I have trawled through the forums and could not find an answer...I am using Lightwindow which is a version of lightbox that can have ANY form of content and DOES support .swf files.I have linked the test link on my page to activate lightwindow and open the swf file. Light window opens the window to the correct size but does not display any content. If I go directly to the flash file then all the test images load.Here is the code for that link:
<a href="http://www.monsterbox.co.uk/ollie/lightwindow/gallery/gallery.swf" class="lightwindow" params="lightwindow_width=800,lightwindow_height=345" >Link Name</a>
I understand that something along the lines of
[code]........
View 1 Replies
Jan 15, 2006
So I read through Kirupa's XML/Flash thumbnail gallery tutorial and have since modified some of its actionscripting to display my online design portfolio. How do I make it so that 'LAUNCH PROJECT' is a link? Here is the modified Actionscripting (I have one of each for the 3 sections):
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;[code]....
As you can see at the bottom of the actionscript, I added a gotoURL action, hoping that simply by making <launch> read <launch action="gotoURL" variables="http:url...> that it would become a link. I, however, have had no such luck. Perhaps I have to add something more. How do I make it so that <launch></launch> has the ability to link to an URL?
View 2 Replies
Mar 5, 2009
i have an swf placed into a html doc - the swf creates thumbnails and links that create a sort of videowall effect - the links come via xml. i am using lightwindow to create an overlay that displays the links/images/video etc... so here is the problem - if i open it with firefox on a mac - and choose say the youtube link - it opens lightwindow brings in the flv briefly - then the flv vanishes leaving a white void where the player should.
but if i add the same link to the html and click it, that works as it should do - ie the youtube flv apprears and you can click and play it etc... Safari on a mac works a treat - and loads and then plays the flv. is this just a bug in FF for the mac - or mac&pc? doesn't FF like flash and youtube together or something? or is there a work around? my tester is here could any pc heads tell me if the lightwindow works at all on their windows browsers? and tell me what versions you are on?
View 2 Replies
Aug 26, 2004
I want to launch another app, in a separate window - like Excel or something . I can predict a hard coded path to it - like "c:myappapp.exe". Can AS do this?
View 2 Replies
Jan 24, 2011
I was wondering if there was a way to launch an external .swf from within the playing .swf?
I don't want the other swf to be inside of the currently playing one (like with the UILoader, I want it to be running as a completely separate instance of flash.
View 1 Replies
Aug 21, 2009
I am trying to use Media Encoder CS4 but it will not launch. It seems to get hung up on "ImporterQT.bundle".
View 1 Replies
Dec 3, 2009
I've been developing a Flash application that will be running on a touch screen monitor installed in a hospital. The touch screen is run by a Windows machine. I'm afraid I don't know much about the Windows world. I'd like to have my Flash application launch in Flash Player every time the cpu is rebooted so the client never has to worry about manually doing it.
View 5 Replies
May 18, 2011
I'm getting a PreloadSwf when launching my flash application in my browser.
The error message is: PreloadSwf paths must be local trusted: [bogus_path]
It's referencing a file that doesn't exist in a directory that doesn't exist. I've seen some posts on the web about how to configure PreloadSwf via mm.cfg, but my mm.cfg doesn't reference any path (just sets log levels).
How do I tell Flash Player to skip this preloadswf so I can launch my app?
View 4 Replies
Feb 22, 2010
How do i launched Terminal from air 2 passing arguments and command as well?
View 2 Replies
Feb 14, 2012
I use Flash Air to develop iOS games. It would be nice to be able to launch a browser from within your applications.
View 2 Replies
Apr 26, 2004
How to run an exe file using flash? it's like clicking a button then it will open the exe file
View 1 Replies
Aug 5, 2004
i need to be able to launch pdf files from a .exe off a cd. simple enough. the problem starts here.... when i wiew the movie using .swf or .exe some images shift a tiny bit and then shif back during some of the animations. (god knows why but it dosent look great) when viewing the movie over a browser however there is no such problem. i would like to launch a browser window with no toolbars and such fit to the flash movie that can launch pdf's. again, i can launch the .exe from the cd and furthermore launch the pdf's but some images shift for some reason.. is there anyway possible to get around the security features in flash that wont allow you to launch a local file from a .swf file?
View 1 Replies
Apr 9, 2005
I`m trying to get an URL launched by clicking on it - thing is though that I want to keep the URL list uptodate and maintained through XML.
PODlob`s fla suits the purpose very well, but I can`t get the URL to get launched.
View 3 Replies
Aug 27, 2008
I'm making a flash project that will end up as an .exe file on a CD..I was wondering if there was a way to launch a pdf in this file. I know on the web, I could use the:[code]but I don't think this will work in an .exe file? Does anyone have any way to accomplish this?
View 4 Replies
Apr 26, 2004
How to run an exe file using flash? it's like clicking a button then it will open the exe file
View 1 Replies
Apr 9, 2005
I`m trying to get an URL launched by clicking on it - thing is though that I want to keep the URL list uptodate and maintained through XML.PODlob`s fla suits the purpose very well, but I can`t get the URL to get launched.
View 3 Replies
Nov 29, 2005
We have created a standalone exe (flash with windows/mac "projector") file, and have it set to autolaunch when a cd is inserted, but would like for it to launch in full screen mode
View 6 Replies
Feb 11, 2009
Let's say the Flash doc is set up in the form of a webpage. Then I have 5 buttons on the left. Now, I have another Flash banner at the top of the page.I'd like each button to launch a different animation within that top container upon clicking.I'm having trouble getting the script to work. Someone told me to put the script on the timeline of the actual main webpage - not attach to the buttons (which I find odd) I haven't used ActionScript in years!Oh, and I placed a stop action in the first frame of each animation movie clip so that they won't auto-play when the page gets uploaded to the web.
View 5 Replies
Jan 15, 2010
I seem to remember that to debug in 8 you have the file open you wanted to play with and then went to "debug" then the UI would change to Debug mode and a swf would popup.
I'm in cs4 and trying to debug a simple 3 line trace statement and when I hit "debug" it changes to "debug mode" and I can move through breakpoints and see variables and stuff. However, it doesn't open a swf (so I can actually see the actual FILE) until the END of the program has run.
I assume it is supposed to open the SWF as soon as I hit "debug"
View 1 Replies
Jun 30, 2011
I have had Flash CS5 since it came out, I have updated the program regularly.When I open Flash it gives me the Unexpected File Format Error. Even though I am not opening any files.
View 1 Replies
Nov 7, 2007
I'm having difficulty debugging an ActionScript 3.0 project.When set to ActionScript 2.0, I'm able to debug just fine, but I'd like to use some 3.0 functionality. However, when choosing Debug > Debug Movie, the debugger launches (or at least the empty AS 3.0 debugger panels are displayed), but I receive the message "Debugger launch failed. Debug session will terminate.". Click OK and the debugger closes.
View 11 Replies
Oct 18, 2010
I have a completed Flash (AS2) project that's pretty involved. Now, I need to launch it from a hyperlink on an html page. I want the hyperlink to launch the ".app" or ".exe" file - not the html that Flash publishes. I don't want the user to view the project in an html/browser window but rather as its standalone projector/exe.
I tried a regular hyperlink like this[url]...but that doesn't launch the .app. Instead I got a browser screen showing the path to the app inside the "FLASH" folder. The app is viewed as a folder named "GUIDE.app". (weird) So I surmise that a regular hyperlink isn't going to do the job.
How do I launch a Flash projector or executable file from a hyperlink on a separate HTML page?
View 5 Replies
Feb 7, 2011
I'm trying to launch some files like a old director file from a button (res1) in my .swf file (I want it to open in a seperate window)
Code:res1.addEventListener(MouseEvent.CLICK, res1click);
function res1click(evt:MouseEvent):void {
var request:URLRequest=new URLRequest("acc.exe");
View 1 Replies
May 22, 2010
I have a swf file (a flash game). I want to run some script to open it in full-screen mode. I'm not attached to any browser, but I do run Linux, so a bash, or generic answer is what I'm looking for. I'm also open to building a lite browser application if need-be.
View 2 Replies
May 26, 2010
Is it possible to create a command line Abode Air app? I know thats not the intended use of the framework, but I have a lot of utility code written in as3, and I have a need to programatically run some utility functions from another app (not flash). I know I can pass command line parameters to the Air app, but I would like to avoid having a window pop up while the calculations are being made.
View 1 Replies
Jun 8, 2011
I'm developing an AIR application in Flash Builder (Flex) and I needed the option to communicate with a serial port on the computer. I want to be able to launch serproxy.exe when my application runs. I've tried two methods, and neither of them are working for me.First method:
var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
file.openWithDefaultApplication();
This proceeds to open the program, but then immediately closes it. No errors are thrown.Second method:
var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
[code]....
View 3 Replies
Jul 20, 2011
I have an Android AIR application (developed with Flex SDK 4.5.1) for which I need to block the Home Button, as the app is used by patients in a hospital without supervision, i.e. it is crucial that they cannot leave the app.
It seems that the only way to hijack the Home Button is to be registered as the default launcher, so that your own app gets the focus when home is pressed. This is easily achieved in the manifest, such as:
[Code]...
View 1 Replies