ActionScript 2.0 :: Get The Url Loads Silently In The Flash?
Sep 20, 2007
i've made a flash page and I want when a user view my flash a url loads in the flash silently i've tryed getURL method but when the URL loads in the flash the page changes but I don't want the page change .think I want to log user IP by loading a php or sth like that.
- I don't want to use iframe outside of the flash like getURL("http://myurl","htmlframe");
- I don't want to to solve it in html codes (OUT of the flash).
I just want the url loads silently in the flash.
View 8 Replies
Similar Posts:
Jun 1, 2011
I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- [URL] The PHP code that I'm connecting to is available as a download from this site - as well as instructions about how to use it in Flex. And this is what I've written in ActionScript:-
[Code]...
View 2 Replies
Apr 30, 2009
I'm trying to write a Silverlight control that hosts a Flash camera and microphone (since Silverlight doesn't support these things natively, worse luck). I've written a short little Flex application ("WLocalWebCam.swf") which handles the camera, and exposes two external methods: connect(uri:String, streamName:String), and disconnect(). I can call these successfully through JavaScript as follows (simplified to remove error handling, etc.):
function connectWebCam(webCamID, rtmpUri, streamName) {
var flashCam = getWebCam(webCamID);
flashCam.Connect(rtmpUri, streamName);[code].....
View 1 Replies
Mar 28, 2009
Everything is embedded in an HTML site. The HTML loads a preloader that then loads the actual flash movie. Inside this movie I created a few buttons, inside a scroll bar movie clip. I want the buttons to load a whole new movie inside the same html. The code I'm using in the button is simply:
on(release) {
loadMovie("new_movie.swf", 0);
}
The problem is that it works beautifully in the Flash movie tester but doesn't do anything when tested inside the browser, embedded in the HTML. I think the problem is that the HTML embeds as an object the first movie, the preloader for the menu movie, not the menu movie itself.
View 3 Replies
Sep 16, 2011
I'm developing an application and because of certain design restrictions I have to do it in Flash. This application communicates with another one done in c++, but just because I need a couple strings, so I thought it would be easy to write them to a .txt file and parse it. But the only way I've found so far is adding a browse event handler and select the file manually. That's no good for me, I need the file to be read automatically given a path, something like:
var data:ByteArray = fileRef['C:whateverPath'];
var loader:Loader = new Loader();
loader.loadBytes(data);
View 3 Replies
May 1, 2009
I have a large FLA (about 13 MB) which used to compile fine.
Recently, when I try to publish it, the AS 3.0 files are not getting compiled (Generated size report says 10 bytes for AS3 code) and the swf just keeps blinking (due to the unavailability of the class code for the components). When I tweak around a bit with the class path (and finally restoring it to where it was), sometimes it works
Is there any reason, why the compiler would silently fail. Does flash have any cyclic dependency problems (like in old include statements in C). I somehow see this as a compiler crash. I know there might something wrong with my code but it doesnt show any error.
View 2 Replies
Nov 28, 2006
I have a very simple Flash app that is basically just a set of links for a company home page. I've used getURL to direct the users to a number of web sites (e.g. Google, a train timetable website, a telephone directory website - and so on). It works fine when I run the swf directly on my test PC. However, when I run the html file (produced by the Flash Publish function), rather than the swf file, the app works but nothing happens wjhen I click on the links. It is as if getURL was being ignored.
I have tried this using swf files saved in Flash 8 or Flash 7 versions, and in IE 6 and 7 browsers. The purpose of the app is to provide the users with links, but as none of the links work it is pretty useless.
View 5 Replies
Jul 21, 2010
I have this weird issue while compiling my .fla file : it won't use the Document class. Here is the document class. (note that the parent class EditorPlugin extends Sprite).[code]...
View 1 Replies
Jul 30, 2010
Our Flash app has to load 50 or so files from a remote destination. Under normal network conditions, this is no problem. However some of our users started to report that the application "stopped working" during the loading phase. After some tests where we decreased the network quality to a point where 1 out of 3 packets were dropped in bursts, we managed to reproduce the error reports. Looking at firebug, it appears as if a few of the files (1 to 3 out of the 50) begin loading but never complete. No errors are raised in ActionScript and there is no apparent pattern in which files fail to complete.
Has anybody run into situation before and found a cause and or fix to deal with these situations ?It's not too hard to write something that manually verifies if loaders stop loading and restart the loading process, but I was wondering if we're simply not listening to the right error events (right now we listen to progress, complete, and IOErrors) or if there are other solutions ?
View 5 Replies
Feb 23, 2010
have this flash xml menu that loads external swf files like this:
Code:
<item title="ABOUT"content_path="http://mysite.com/folder1/folder2/folder3/about.swf"target=""mouse_rollover_color="0xFFFFFF" mouse_rollout_color="0xDDDDDD" />
and I have this swf file with cms that I'd like for this menu to load. Currently the swf file load external text using this code:
Code:
if (contenturl1 ne "") {
loadVariablesNum(contenturl1 + "/" + userid + "/content.txt", 0);[code].....
but when the xml menu loads this swf file its structure loads but not its data.I tried using :
Code:
this._lockroot = true;
in the loading swf main time line but it did not work.I should also mention that the dynamic data that loads onto the swf that is to be loaded by the menu, resides not in it main time line but 4 movie clips deep .I don't know if that makes a difference or not.
View 1 Replies
Jun 7, 2011
I said that it doesn't works cause I forgot to start apache, but it works so fine!
ps. I can't fine a buttom to close the topic, but my problem is solved! If is necessary to close the topic.
View 2 Replies
Aug 25, 2011
I have a script that saves a movieClip as a jpg and saves it on the server. however when it runs it opens the actual page to show the image. I want it to just "do its thing" without opening a html page as I dont need it to.The function I think that needs changing is:
ActionScript Code:
public function save(source:MovieClip, name:String):void
{
[code].....
View 1 Replies
Jun 25, 2009
I have an animated logo swf file that loads and runs once on the home page every time the page loads. The logo has been updated to appear in three different colour schemes. I want one scheme to load and when the page is refreshed or revisited, one of the other colour schemes to load in its place. They can appear in any random order, just a different one to the one that played before reloading.Can someone point me to an answer or tell me how to do it? I have found a way in JavaScript but this only works on plain images, not swf files.
View 6 Replies
Oct 5, 2007
I want to activate Flash Fullscreen mode when flash movie loads in the browser. Without activating it through button clicks. I tried for this using this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
goFullScreen();
But it is not working this way, it is working when I put this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
[Code]....
View 3 Replies
Dec 2, 2011
look @ the source for this page [URL] It works great in all Webkit/Mozilla browers but in IE 9 we can only see the top half of the swf and in IE 8 it doesnt load @ all. I searched all the other threads and nothing seems to work
View 1 Replies
Apr 25, 2009
I'm not sure what's going on...basically, I have a flash file that loads images from a xml file and this works fine without any problems. But when I try to load the swf file into html, the images only load if the html file is in the same folder as the swf.I'm not sure if this is related to a problem with the xml link in the swf file or something else... this is how the xml is being called from the swf:
Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
[code]....
View 1 Replies
Jul 12, 2009
I am using CS3. I am having trouble viewing my FLASH content online. It loads fine in DW locally, but once on the server I have the following errors: Webpage error details
[Code]...
View 1 Replies
Apr 7, 2011
I tried to load flash on emulator, it does not loads but when I tried it with my HTC device it worked. I tried it with both gingerbread emulator and froyo emulator.. flash does not works.... while flash pluggin is installed on both emulator.
View 2 Replies
Oct 13, 2009
I am loading an xml file using AS2.0. On Mac, all the elements load completely, but as soon as I run it on Windows, only the first element of type item loads. When I run it on Mac, the elements are loaded in and all item's are separate buttons. When I run it on Windows, only one button appears and its name is ch1. Virgin Group Holdings. None of the other item elements load. I don't have a Windows versions of Flash to work on, so I cannot debug.Is there another way to determine if this has to do with the XML file loading incompletely or with the depths of the Movieclips? Here is the URL
Here is my XML:
<?xml version="1.0" encoding="UTF-8"?>
<menu>
<item link="vgh" name="ch1. Virgin Group Holdings" movie="VirleoGH">
[code]....
I am now running this file from a remote server (Linux box), but still only the first element loads on Windows, with no siblings. On Mac, everything loads fine, I am at a dead end, my deadline (draft #2) for this is in about 12hours and I still need to get a night's rest in. Does anyone have the slightest inkling what this could be? Any pointers or advice will be cordially accepted. The url.
I am now debugging in Windows and have found that the XML file does get loaded completely eventually. What is odd is that I trace the _x and _y values of all the movieclips, and all change constantly to an acceptable value, but still only the first-added movieclip is visible on the stage. I have traced their depths which do in fact differ, they are enabled (traced), they are _visible (traced that also), everything works perfect on Mac, except when I run it on Windows, so clearly, Flash Player in Windows in doing something unexpected, has anybody encountered this before?
View 3 Replies
Sep 2, 2010
I installed Slideshow pro, with swfobject here: [URL] The flash loads but the images do not. I have double checked the image paths to death and they appear to be correct. Here is the html:
[Code]...
View 2 Replies
Nov 22, 2010
I have a video player swf which loads in a flv file via flashvars. This works perfectly, but when it reaches the end it loops ie Goes back to start and plays again. This only happens when it is embedded in a page because when I press cntl+Enter to preview as swf alone it works.
[Code]...
View 2 Replies
Oct 25, 2011
My Flex application is required to load a SWF file externally. This SWF file has a popup. How could I ensure the popup is at the middle of my Flex application and modal?
Edit: The popup component is owned by SWF file (through a "Show more" button) and is not just an Alert. The SWF file is provided by third party. Any update on the SWF file and its popup component do not require re-compilation.
View 2 Replies
Nov 1, 2005
I am trying to figure out how to run a php file when a flash file is opened on a site or ran. the php file has no output or anything to do with the flash, it just needs to be run to update the mysql database. I need the script to be run from my site even if the flash is on another site, but i do not want to show that it is being run. I want it to be a hidden thing. Is there any way possible to do do this with flash?
View 2 Replies
Nov 21, 2005
the best way to do it but i have a preloader the loads an external swf that loads 2 external swf files. one on layer o and the other 1.it seems to load the swf on layer 1 twice.url...if i run the swf that loads the 2 external swf files by it's self and the same problem happens.mouse over the navagation button and then mouse over the close button and follow the animation down to were it turns back into the navagation button. sometimes the close stays up.if i run the swf file that just contains the navagation it dosen't happen.
View 2 Replies
Jul 16, 2010
I have a simple html splash page which when clicked goes to another html page with my flash object in it. When I click the first page the flash runs the whole animation and loops it continuosly. Id like it to just stop at fram 0 when it loads!
View 2 Replies
Feb 24, 2011
So I embedded a basic flash movie as per: [URL]
It loads fine in IE, but the flash player in Chrome cannot load the movie. Flash works fine on other sites in Chrome, so what's wrong with this HTML?
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
[Code].....
View 1 Replies
Jul 4, 2011
Since i'm having some issues with a sandbox here, i'm looking for a little workaround that should work to proxify the assets loaded by a remote swf.Currently after loading a remote swf, and trying to draw a bitmap i get the following error: Security sandbox violation: BitmapData.draw: http://urlhere cannot access http://remotehost/clothes/bg/bg_10438411_bg.swf. This may be worked around by calling Security.allowDomain.
Now, i want to see if it's possible to catch & change the swf's that the remote swf loads. So i can load them through a php file and then into the swf instead. Basically editing the URL that it loads the swf from.
View 1 Replies
Oct 5, 2011
I have a Flash map on my page. My problem is that when the page loads for a while I can see the alternative content and then the map.
[Code]...
View 1 Replies
Feb 7, 2012
In my app, I load multiple xml files. And to load those, I always create a new URLLoader. Nothing special. The first file works fine, the second one does, too. The third one, however, reports to have loaded fine, but the data it holds is actually the data of the second file. The current workaround is to load the third file twice, which somehow works... weird.
[Code]...
View 1 Replies
Dec 16, 2010
I am running an swf on my localhost and it loads another swf from an external site. It gives me the following error:Connection to [external site] halted - not permitted from [localhost]localfile.swf.I have included the localhost directory in my Global Security Settings, as well as the local file. swf, so it should be trusted and allow the external link.
View 0 Replies