ActionScript 3.0 :: External As3 Swf Loaded As Amv1movie In Flash Player 10.1.53.64.2
Jul 15, 2010
I've got a problem with new flash player 10.1.53.64.2 (activex component) on windows 7 and windows XP (vista was not tested) no matter x86 or x64. This problem doesn't not appear on previous versions of player such as 10.0.42.34 and lower 9.0.45. The problem is: when I load external movie it loads as amv1movie thought both swf's are in ActionScript3.
[Code].....
View 2 Replies
Similar Posts:
Oct 23, 2010
all of the other buttons on an external movie are workign but the volume slider is not...
when i load the external file (the mp3 player) it works fine.
Code:
/* volumeStartDragging(event:MouseEvent):void
* Returns a mathematical value that we can use to adjust the volume
* the value is the relation of the volume ball to the line
[Code].....
View 1 Replies
May 8, 2011
I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").
Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):
Main.badger.x
Main(root).badger.x
Stage.badger.x
I have also tried to access other vars and still nope..My class code is this:
Code:
package
{
import flash.display.MovieClip
import flash.display.Stage
[code]....
View 1 Replies
Feb 23, 2011
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
View 1 Replies
Nov 1, 2010
I'm have a flash movie where I let the viewer push a button to load an external SWF-which in itself is a video I converted to SWF. Once it loads via an empty movie clip into the main flash movie how can I add video player controls such as volume on the lower part of the stage of the main movie to control the externally loaded SWF?
View 1 Replies
Oct 7, 2010
Is it possible to make a flash player go full screen (not in browser)? Would there be any bug / error on different version of Flash player?
View 3 Replies
Nov 23, 2010
My flash works fine on every platform and every better known browser. However, now I have a small issue on flash 9.0 player, and looks like the main problem is with calling external javascript using externalinterface.Every time I call it for div resizing which resize my flash stage, flash "jumps" or "flickers".I`m not sure what could cause this, but it surely happens only when I use externalinterface and call outside JS F-N.
View 2 Replies
May 28, 2009
I am trying to figure out if it's possible to embed an external flash music player (in this case sound cloud) to play some of my own tracks in my flash site. I don't want to create my own player as the sound cloud player is really nice and also has stats.
View 2 Replies
Oct 5, 2010
I have a flash player with an external javascript interface: reloadData() I'm calling that function via Javascript when editing information on the page - basically to keep data on the page and in the player in synch. The reloadData() function works fine when the player is hosted locally. When we move it to the CDN (Amazon Cloudfront), the player loads successfully, but the external javascript interface no longer works - console.log(player) reveals the following:
<object type=,"application/x-shockwave-flash" data="[our_cloudfront_url].swf" width="920" height="404" id="player" style="visibility:visible;">
Uncaught TypeError: Object #<an HTMLObjectElement> has no method 'reloadData'
I know there are a lot of things that behave differently when working with items on a CDN, but we're using a CNAME to point to the cloudfront distribution
(buildid.ourdomain.net => distributionid.cloudfront.net)
View 1 Replies
Aug 27, 2011
I am trying to play an FLV file in a flash player but it is not working in IE9 and Chrome. Works in firefox though.url...Theres 2 videos in the above linked page. One uses a simple flash player while the other uses JW player.Both give a "video not found" error in IE9 and Chrome. Both work in Firefox 5 though.(the link to the flv file is given as text on the page)
View 1 Replies
Feb 24, 2012
I have a banner ad which contains an flv player. Due to size restrictions for banners at the site, I've found a player which I think will do the trick (chrometaphore). However, the site in question does not allow anything more than the actual swf for the ad, so I cannot include the com folder for the player and need to include all AS3 code in the swf file. I'm not a scripting genius, and wonder what it would take to include all the classes in the AS3 file contained in the swf. Is it possible? Does anyone know where I can find a VERY lightweight player whose entire code is contained in the fla?
[edit]: It just occurred to me that if the flv is on a remote server, could the com folder and files also be remote? Currently, the path for the com files looks like this:
import com.chrometaphore.display.video.colibri.Colibri;
import flash.media.SoundTransform;
What would that script look like if it was pointed to a remote com folder?
View 1 Replies
Mar 18, 2009
I have been working on this project in flash player 9 until two days ago when we needed to implement a few features that are only available in flash player 10, such as the FileRefrence.save() method. everything worked seamlessly when I change it to 10 except for one thing, when loading an as2 swf into my app. It works fine when previewing, but when I publish, the legacy swf does not appear.
here's my loading code,
Code:
private function loadExtSwf () {
imgLoader = new Loader()
loadFile="legacySWF.swf"
[Code]....
View 1 Replies
Apr 29, 2009
I'm having real problems with unloading external SWFs, I've spent 2 days looking for a solution and looking at this forum and using the code supplied and Flash help files and much much reading and trying, I still cannot achieve the desired results.I have a Menu.swf which hosts many buttons which loads External SWFs ... simple enough and fairly common.These External SWFs are the same size as the menu and so loads completely over the top of Menu.swf which is exactly what I want to happen.I have a button on these External SWFs which I want to, delete the External SWF from the Flash player's memory and remove all event listeners (which I guess will happen if the External SWF is deleted from memory)The reason why I want it to remove the movie completely from memory is that I have 18 items and by the time it loads the 18th item, the player is going slower then trying to swim in hummous.[code]
View 2 Replies
Nov 11, 2011
I want to send data generated by a flash module into an external executable in windows. From what I've learnt about interprocess communication, I think it is appropriate to use pipes in this case. I am using Flash professional CS5 and when a 'trace' command is used inactionscript the ouput will be displayed in the output window in flash professional. I think Flash pipes the data into the output window and if so is it possible to obtain the handle to that pipe. Is there a way by which I can write the output from flash player itself when the trace commands are executed or the data generated on an event directly into the buffer of a pipe.
View 1 Replies
Apr 3, 2012
There may be more than one answer to this, but I'd like to know if there's some technology out there that exists to handle Audio Processing / Playback in realtime, so that Flash can:
Interface with the technology / plugin to generate sounds with no delay or lag. Apply DSP effects (Reverb, Delay, Dynamic Range Compression / Expansion, Distortion, etc). Manipulate DSP parameters in realtime (sweeping an EQ filter's band or Q).
The most important thing of all, would be for this technology to be available to most users, as it would likely be used for Gaming environments or online Audio production, even. So far, Flash has a few ways to manipulate Audio Data, such as the SampleDataEvent, Andre Michelle's Popforge library, chiptune libraries like SiON, and possibly some other unheard of libraries.
I'm not really convinced though, that these methods are the optimal ways to create interactive sounds - sounds that change depending on game conditions, sounds that closely responds to the users actions. Nothing (that I've seen so far) easily allows developers to create or communicate with a DSP effect in order to manipulate the sound in this way, in realtime.
I know that Flash has the ability to communicate over sockets / ports, so perhaps there is an existing library that can communicate with an external plugin, and can be easily distributed to users at the same time.
Is there such an audio solution out there?
View 1 Replies
Jul 6, 2010
I have written a basic piece of code to load and unload different swfs, now on their own they're pretty smooth (opened independently) , but when you load and unload them a couple of times in the main fla, just like as a user would navigate through a website, it causes the whole flash player and the movies to slow down quite dramatically and looks very bad as if about to crash. Now i know this problem was reported in FP 9, but anyone else has encountered this in FP 10 as well ?
Here's how i load and unload the external SWFs using buttons :
Code: Select allbt1.addEventListener(MouseEvent.CLICK,onLoadClick);
function onLoadClick(evt:MouseEvent):void
{
[code]....
View 1 Replies
Apr 15, 2009
Code:
var slideNo:Number;
slideNo = 0;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
[code]....
View 3 Replies
Nov 19, 2011
I have a main fla file that loads a game (with a Loader) and adds it to the stage (addChild(myLoader)).Is there a way to step through/debug the loaded swf? If so, how? My game.swf breakpoints aren't hitting.
View 2 Replies
Jan 20, 2012
I need to render styled xml into a flash game. Here is what I tried, but the css style is not working:[code]for experiment I added a h1-style to my stylesheet and flash DOES render that correctly. So it might be to do with the span-tag or the class?
View 1 Replies
Oct 3, 2011
I'm trying to figure out how to add working links to an FLV video.
Seems like it might be possible to do this in Adobe Encore, but the documentation says: Note: Unless you set up privileges in Flash Player, the URL must be in the same domain as your Flash project.
Can anyone explain how to set up those privileges? I'd like to include active, clickabe links on my video to my site and to other sites that I reference.
View 2 Replies
Feb 8, 2010
How can be cloned shape loaded by Flex Action Script 3 from external swf (authored in the Flash CS4)?
View 3 Replies
Mar 4, 2010
I am using the 1.2 version of Uza's Global singleton (http://www.uza.lt/codex/as3-global-object/). The container swf stores some data and a link to a function in the "global" object.
Then another swf is loaded inside the container, it gets it's global instance with Global.getInstance();, and i suppose i can access the data and function stored in global by the container swf.
This works perfectly on localhost served by a webserver, but when i put the files on my external production server the loaded swf's global appears to not have anything stored by the container.
View 1 Replies
Aug 23, 2011
I´m loading some MP3 from an external URL. I need to wait to completely load the mp3 and then start to play it. Do you know how can I check when mp3 loads completely? This is my code:
var s:Sound = new Sound(new URLRequest("url.com/file.mp3"));
var channel:SoundChannel = new SoundChannel();
channel = s.play();
View 1 Replies
Jan 7, 2012
How do I get to the MovieClips within an externally loaded Movie Clip. Lets say I have a movie Called ONE in the swf I just loaded. How can I work with it alpha, position and other properties of the children of this clip? CODE IN MAIN TIMLINE:
[Code]...
Now its loaded I want to change the postino of the clip called ONE in the movie LoadedMC I just created.
View 1 Replies
May 28, 2010
I have a parent movie that can load various "overlays", which are externally loaded swf's. For several of these overlays now, when the overlay is loaded into the parent movie, any components it was using seem to disappear, or more precisely, use the parent movie's component (so if the parent movie doesn't have an instance of whatever component it is in it's library, then the child won't display anything.) I have been able to (sort of) solve the problem by creating an instance of whatever component it is in the parent, but this is undesirable, especially since different overlays may use different versions of the same component (i.e., skinned UIScrollbars.)
So, code in the parent:
Code:
public function drawOverlay (rID:String, payload:String, x1:Number, y1:Number, w:Number, h:Number, o:Number, bg:String, bc:String, bw:Number) : void
{
trace("SKIN - "+rID,x1,y1,w,h,o,bg,bc,bw);
[code]....
The child runs perfectly standalone (of course), and everything except components work fine when loaded. Everything is CS4/AS3. It seems like I have a rooting issue, where the root of the loaded swf is being linked to the root of the parent, but I don't know what to check out...
View 4 Replies
Apr 7, 2011
im loading an external AS2 swf into my AS3 swf with the Loader class. the external swf is driven by data.xmlwhen i hit ctrl enter, i get this error:Error opening URL 'file:///E|/portfolio/akram/data.xml'Heres the code im using, pretty standard;
var galleryFolder:String = "BgMotor";
var LoaderOne:Loader = new Loader();
var MotorSWF:URLRequest = new URLRequest(galleryFolder + "/banner.swf");
[code].....
View 3 Replies
Jun 4, 2009
I am using CS4 with AS 3.0... I want to implement both a freeware photo flash gallery and mp3 audio player that I found into my all-Flash website. Both of these require reading from an xml file to get their content. They both come with html embedding instructions, but I don't know about actionscript.
View 14 Replies
Mar 26, 2009
I'm trying to control a Flash video player with external Javascript commands using 'ExternalInterface.addCallback' but I'm not having any success. Here is the HTML code:
[Code]...
View 1 Replies
Aug 15, 2011
[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it.
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
Main FLA:
function removeF() {
removeChild(bigboreLoader);
}
[code]....
View 10 Replies
Mar 11, 2010
I currently pull an html file into our site via iframe. (due to various factors, I cannot host the information in the html on our site and need to host it elsewhere). Is it possible to use a loader or other method to pull this information into flash?
View 2 Replies