ActionScript 3.0 :: Interaction Between Swf File And Webpage?
Mar 9, 2012
I have a swf file with some images inside. What I want is to update the information displayed in my webpage without refreshing the whole page.In the simplest way explained I know how to do this using a simple link using jquery:
However, what I exactly want is the same effect by clicking on the images that move around in my swf file:
// Depending on the image you click on the swf file, the page should display different info in the same div
target_mc.onRelease = function() {
if (ruta.indexOf("AP") != -1){
I have a swf file with some images inside. What I want is to update the information displayed in my webpage without refreshing the whole page. In the simplest way explained I know how to do this using a simple link using jquery:
However, what I exactly want is the same effect by clicking on the images that move around in my swf file:
[Code]...
What I've found out till now is that this is ActionScript 2.0 and not 3.0. I suppose I'm getting closer to the solution with this ;). I'm fairly new in all this stuff.
I have a .swf file. From there I use a MovieClip witch is associated with a class. The information is inside of a separate .as file. On Runtime i create several instances of this object. This all works. Now I would like to let functions inside of th .as file give access to variables set in the action layer on frame 1 where i handle the code that is associated with the .swf file. Or the other way around. Is there a way to manage this communication?
The code flow is as follows: user clicks 'download details' button on the page -> on button click handler a call to a RPC method is made using s:CallResponder -> RPC method generates and returns a URL from where to download the file -> the success event handler of the CallResponder gets the url where FileRefrence.download() is used to download the file but throws following error:-
Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
I want to open a file dialog via FileReference.browse() but I get #2176 error which means that this action can only be invoked upon some user interaction. I'm aware of security considerations but in my scenario I have a thin flash movie which merely displays an image and the whole UI is in javascript (I heavily use javascript <-> actionscript communication).
So the question is - do you think it would be possible to invoke FileReference.browse() upon the user interaction coming from javascript?
my problem is related to website resolution problem i develop a drop down menu from a software "flash menu lab". Then i embed it on a web page, it correctly show in 1024*768. but when i go to high resolution it does not move width automatically it show menu similar to 1024*768 i hope you got my problem...! remember i fixed width to 100% but it is not working...! this is my code
I need to play a FLV file on a web page, but I don't want it playing in a visible player. That is I don't want there to be the usual Play button and no frame. I want it to work and look much like this link: [URL]. It is similar to those infamous "Mac vs PC" videos which occasionally play on the home page of [URL]. My flash ability in this area is limited. (I'm a Joomla pro but not a flash pro.) Looking at the source code, I see various swf controller file links, and some javascript, I think.
I have no idea what is in the swf files that may or may not be making it all work. First of all I don't even know if it is possible for a FLV file to play above html and then disappear revealing the html when it is finished playing. I assume with the swf and javascript and divs this is possible, but am not sure.Ideally I would love the complete code if possible. Or links to where I can find out how to do it.
Is it possible for 2 separate .swf files embeded in a html page influence the other? For example - button.swf is located in the middle of a web page and animation.swf is at the top. Can I code button.swf to have animation.swf gotoAndPlay frame 2?
its got a bunch of .fla, .swf and .html files which i just have to edit with my information. pretty easy.I uploaded all the files to my server and everything works great.so ive been editing the .fla files, inserting my pictures and information then publishing the .swf files and putting them back on the server and everthing looks great.
* The problem is that after uploading my last .swf file my webpage stopped working... i can see the front page put it doesnt load and when i click on my links it doesnt go to them.When i open the .swf file i get this ERROR:
It looks like the .swf file is looking xml/menu.xml on the server but for some reason the path is all wrong and the path appears to be to my Mac and not the server.
I am working on an AS3 file for one of my webpages, in Flash it is 660 x 2800 pixels in size, which is relatively large, and to view the entire file contents i need to have a zoom level of 40%! Once publish as an SWF file and uploaded to my webpage, the file appears very small!! I expand the file to as large as possible on the webpage and the file still appears undersized. Obviously I wish it to fill the whole content area.
As the site will be totally in flash, there is no use of JavaScript required. So, what is the best way to embed a SWF file into a web page without using JavaScript. And why do you consider it to be the best one?
I bought this flying birds MOV file from istockphotos and now I'm stuck trying to implement it into my webpage, I want it to run like a flash file, every few seconds but I can't seem to be able to import it into Adobe Flash, I tried using the code below but it does not allow me to do much and is not transparent:
I need to make a Flash animation fullscreen. After a bit of research it seems I can only feasibly do this via a browser, since the Windows 7 preview does not support fullscreen.
I followed the steps of this website; [URL]
However, I'm having a problem embedding the flash file into a simple HTML document. The file is called "LaBoheme.swf" and is stored in the same directory as my HTML file. Hence, here is my code;
<html> <body> <h1>Test Heading</h1>
[Code]....
The problem is simply that the flash animation does not appear. I get the feeling I'm making a rookie mistake here
I have got a game swf file and I am trying to load the file into my main webpage. However, the website works fine until I try and play the external game.
I can move the character around the screen but when I press the space bar on the keyboard it jumps to the website and the game is still playing in the background layers behind.[code]...
I've been looking around like a forensic scientist piecing together information for my latest project. Basically I need to display a particular webpage within my flash file... Now I know flash can display simple HTML, but nothing complex and nothing from an external source... BUT I know flash can also handle PHP - obviously. The page I need to load is a wordpress website, a combination of PHP codes and simple HTML snippets... but what I couldn't find was a way of inserting the snippets into a control box or movieclip on my page (actually run the PHP code to fetch HTML snippets).
I ve uploaded flash file with transparent background to my web page. Set background transparency in html code of page. Purpose of this flash is to represent main meny, so it contains few buttons, in up and over stage everything is ok but when i press mouse some strange doted line appears around flash, on click out of flash zone line disappear i want to remove that doted line.
I have a Flash file, which uses AS 2, that is displayed in 2 individual html pages. When I click a link in the file, I would like to, if possible, determine the name of the page that it is inside of. Is there a way to determine which of the 2 HTML pages my Flash file is being called from?
Making simple player to allow viewing on website.Adding flv file to create a published player.Works fine after publishing on local system as long as the flv is located in the same directory as the swf player.When copying to a website, it seems the player does not know how to find the video file.
I have an AS2 Flash file that is displayed within 2 different HTML pages. I want to determine, when I click on a link, which of these pages the Flash file is in. Is this possible? Is there a way to determine the parent page's name? If so, how do I do this?
Background: I am trying to create a website that is easily updateable by a non-html savy user. I figure I can load the content of my flash page from a notepad file within the same directory.I would prefer to not make the editor use a FTP program, so I figure the best method is a webpage where the person can log in and type the updated text and have it create a new notepad file and overwrite the old one. I am not sure if this is technically flash or simply a html question, but does anyone know how to go about doing this
I'm trying to pull in dynamic text from a txt file and display in a web page. The text works great when I view the .swf, but when I place the .swf in a web page the text no longer appears. I'm using loadVariables("text.txt", ""); in my ActionScript and text.txt is located in the same directory. I have embedded the fonts and I'm using Flash CS5 and I have selected Classic Text/Dynamic Text.
I made a flash effect for my friend's site and he won't let me get the flash back after a fight. I can see the effect on the homepage of his website. Is there any way I can get the flash to an fla file on my computer? Is there any way I can find the swf file on his websites system and convert it to an fla?
what is the code needed to create a simple .swf file that once double-clicked on opens and all it has inside it's window is an iframed website (scrolling and resizing are optional), basically a simple flash mini-browser if you will, with no navigation features of any kind just the ability to click inside and maybe refresh the page...