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
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?
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???
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.
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
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?
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?
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?
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.
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.
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?
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?
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.
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?
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.
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
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.
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"
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.
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.
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?
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.
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.
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;
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: