ActionScript 3.0 :: Embed 2 Separated Swf Files In A Html - Make Them Talk With Each Other?
Dec 4, 2009if i embed 2 separated swf files in a html, how can i make them talk with each other? does it use javascript?
View 3 Repliesif i embed 2 separated swf files in a html, how can i make them talk with each other? does it use javascript?
View 3 RepliesNeed to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:
[Code]...
In main.swf I loaded file.swf as:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("file.swf");
When main swf loaded in HTML with an absolute link like:[URL].. It reports 404 error loading failed of file.swf
Because it looks for file.swf at current web host.What's the best way to do this without hard code absolute url in main.swf?
I have spend hours searching it over internet but i have found only codes which solves this problem in Action Script 2.0 like this http:[url].........and i want to solve it out with action script 3.0. My problem is that i simply want to communicate between two separated .swf files in one HTML page.
View 4 RepliesI'm trying to get a .swf (a game, with three total .swf files: main, title, game) onto my site and am having a problem. I understand how to actually do it and make it run (publish as HTML, copy/paste code in Dreamweaver, etc..), but my problem is having multiples .swf files and them not loading. When I embed code for one of the files, the page will play that .swf file and won't load the next .swf file (Main just contains a loader that loads title, Title will load the game .swf when prompted, Game will run). If I just 2x click the .swf files in my folder it will work, as will an .exe, but can I make it so each .swf file will play in HTML?
View 12 RepliesI'm an animator by trade and don't have a ton of experience with classes or any advanced programming. Here is what I'm dealing with:
I isolated the code that I'm trying to work with so I don't have to post all the code on here because there is a ton of it. It's in two separate .as files in the same folder, BaseClass.as and Nav.as
::BaseClass.as::
package classes {[code]...........
Basically I need to put an external interface call where I'm currently tracing "THIS IS WHERE THE CODE NEEDS TO GO" that tells the external interface a new page is being loaded. I was wondering if anyone had any advice trying to get these two .as files to talk to each other.
I was wondering how to accomplish this. I have a .swf embedded into an html file with html links on the top. Within the .swf file I have a continue button that takes the user through all the frames. Is it possible to include some kind of code so that when they reach the end of the .swf the "next" link will become initiated and take the user to the next .html page. I am working with captivate is this feature in captivate? If anyone could point me in the right direction or share some wisdom it would really make my day
View 1 RepliesI have a Parent.swf that has 3 Child.swfs. Child1.swf, Child2.swf and Child3.swf loaded onto Loader1, Loader2 and Loader3, respectively. How can I click a button on the Child2.swf and have it affect Child3.swf? I have alread searched a bit on these forums and found some code. I can put
[Code]....
I haven't scripted in AS3 is a while and can't remember having these issues. Perhaps it's because I've been using less strict languages like lua, ruby/php, and java that has made this difficult to get back into.
I am trying to make classes talk to each other and am using folders in an attempt to make things a bit easier for me to track.I have a document class in the base folder known as Main and right now one other class located in com/Game/ known as NewGame.as
Now the issues I am having is basically the Main.as sets up the stage. Puts on the starting buttons, interface, etc. The NewGame.as is called from the Main when the NEWGAME button is clicked. I have gotten that working properly, a few hang ups on error 1061.
[Code]...
I am trying to make a swf talk to another swf on a web page, i.e. to separate flash pieces would be able to pass information back and forth to each other on a page. I have some thoughts on how this might work, but I am curious if anyone has done this before, and or what you would think the best way off achieving this would be. Haven't found much about this topic on the web...
my initial thought would be to have flash update something like an xml file via a webservice, then have the other piece constantly look for a change in information, but that seems forced.
Following embed code is from [URL] but it doesn't work in Internet Explorer 8. Firefox no problems. Any recommendations for improvements?
[Code]....
UPDATE 2010-05-14: If I'm not mistaken HD.se uses Flowplayer and all those flasvars are for that. Perhaps someone here is good with Flowplayer? I've never used it myself.
on (release){getURL("client.htm", "_self");}
my button script. it work well when test the flash but it doesn't work after embed in html or test in html.
need add some script into html to active the flash?
I need to allow users to preview audio files for purchasing. I have CF pages that return records form a SQL database. Each record contains the same swf file however, each swf file points to a different mp3 for previews of different audio examples. So far, everything is working fine. My problem is that I need to be able to stop the sound from one swf when I click to play a second swf .The only solutions I see in Flash forums deal with loaded swf files. These are not loaded files they are separate files within a page. The question is: How do control one swf from another swf in the same page.The following items have not worked: soundChannel.stop();,soundMixer.stopAll()
View 2 RepliesI'm trying to place html elements over a flash video which must be rendered with wmode="direct" (video occupies entire window with html UI to be laid over it, anything other than direct makes CPU usage surge).
I've tried using an iframe to include the flash video, but I'm still unable to place any elements over it. Is there a workaround to achieve this?
Without including swfobject.js can only swf files be loaded through html.And if so is there a common tag for all the browsers.
<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
[code]...
I have some avi movie files. I want to incorporate them into my flash intro.
View 2 RepliesIn my effort to learn AS3 I have begun coding a game (as most people do, I guess) and I want to embed swc's I have created in the Flash IDE to use in Flash Develop. I've read a lot of tutorials online on how to do it but they either don't work or a few I cant wrap my head around. The movieclip that is being exported to swc has been set to AS3 and checked for Actionscript exporting. The base class is set to Movieclip.
View 1 RepliesOur company uses Flash software from another vendor, written in AS1.They have a plugin ability, so you can embed other SWF files.Now, we have written a AS3 flash app, to be used as plugin. We can visually see the SWF file, and all things on the stage. But no AS3 code actually runs.Is there any possible way to run this AS3-written SWF in a AS1 written SWF?
View 1 RepliesIs it possible to embed an swf or html file within another swf ...without using ActionScript?
View 2 RepliesI want to embed all xml files of a given folder. For now I'm doing something like this:
[Embed(source="../somefolder/file1.xml", mimeType="application/octet-stream")]
private var MyClass1:Class;
[Embed(source="../somefolder/file2.xml", mimeType="application/octet-stream")]
private var MyClass2:Class;
[Code]....
The list of XML files will grow to 10+ files, so I'm looking for a more elegant and dynamic way to embed those files.
The files should be embedded on compilation, to load them via URLLoader is not an option.
I tried to follow the augmented reality tutorial but I got stuck pretty soon. Is there a way I can embed the pattern and camera files in the flash-ide or do I need to have flex for this?
View 3 Repliesi have created a few images that motion in from the left and stay on screen. i would like to use these as buttons on an html site. i know how to embed the swf file into the html scr but how do i/ can i add html code to this so they work as buttons, i.e the <a href="".
View 2 RepliesI'm very new to Flash and most of the other Adobe Utilities. I'm trying to create a SWF file that I can embed in a web page. I've created a file by importing a .flv, then exporting it to create the swf. When I embed it in my web page (on an external server), I get nothing displayed using Internet Explorer. When I tried using Firefox, I get a message that basically tells me it can't find the FLV file. The reason seems to be that the SWF file is looking for the FLV on my local disk(where I imported it from in the first place). It obviously is not going to find that file on the web server. So... I need to address this in one of two ways[code]...
View 3 RepliesI have googled for this, but they give different answers that only confuse me.Here goes: I have an .SWF MOVIE that I want to show in my html website that I created with Flash 8.I want to show this movie on a certain page (page 3). How do I embed that .swf movie into a specific part on my page?
View 3 Repliesthe situation is :there is a mov file.In the file there is a car,and when you dragged the mouse,the car can move with the mouse.But after importing the flash,the mov can play.but the mouse can't work.So I embed the mov into the html,and then want to embed the html to the flash.Can this work?
View 2 RepliesHow To Embed SWF In HTML?
View 4 RepliesSo I do the usual html publish to copy the code and there's no < embed > tag in the code... only the usual < object > with it's params.
So I mess around with the options of the html publish dialog and no luck, still exports without the embed tag.
So I think.. "hmm that must be a problem with the template of flash cs5" and I go to dreamweaver cs5 and try the insert media > swf option... and still no < embed > !
Did something change in the world where we don't need anymore the embed tag?
I want to play some flash videos in my desktop application are there any tools (library,jar file, class... etc) to embed flvs in any java forms?
View 2 RepliesIs it possible to embed the flv file in to the flash like other files(images, swf), so that i can handle this in as3 as programmaticaly in the same way as FLVPlayback component? I know the way to add flv file by creating FLVPlayback component. But in this case we always need to depend on the source path of corresponding file. I am not able to find any kind of solution for this. As second way I have imported flv file to the library and created the instance of this but there is some problem with the synchronization of audio with video. Also in this case I am not able to handle this flv in as3 as programmatically.
View 2 RepliesI'm trying to embed my flash player on my Soundclick soundclick page, but it just doesnt appear. A blank white space appears where it should be, and when you right click it says "Movie not loaded...". I'm using the below embed script which works FINE wherever else I use it but just not soundclick, and i've embedded stuff on there before with success.[code]...
View 2 Replies