Professional :: Put External SWF File To The Parent One
May 11, 2011I put external SWF file to the parent one. but everythin's working wrong now. How to let it work right. My code:
[Code]...
I put external SWF file to the parent one. but everythin's working wrong now. How to let it work right. My code:
[Code]...
i have a question. let say i have file1.swf , file2.swf, and file3.swf, how can i link this 3 files together,let say suppose file1.swf is the main content file, but as i load file2.swf, i want the file1.swf get replaced by file2.swf. How could i unload file1.swf at that time, so that my file2.swf will become the main content file?and again, when my current position at file2.swf, and i want it get replaced by file3.swf by clink on a button. so that the i can unload the file2.swf and let the file3.swf become the main content file.
View 13 Repliesi'm building a website using flash. i have a external swf file that i want to import into my website. i thought this would be an easy task but for some reason when i load the movie, it flickers. my website (parent swf) was build using 1.0. The external form swf was build using 3.0. My approach:
1.create an empty movie clip called mcForm
2.go to the mc clip page i want to pull the external movie into
3. within my actions layer, I call the following function loadMovie("main.swf", mcForm);
If i write:
LoadMovieNum("main.swf",0);
then the my main.swf opens correctly but closes the parent swf file. I wan the main.swf file to be embeded within the parent file.
I have two different external .swf files that are loading onto a parent, I have the same code on each, one works fine but the other one is giivng me this error,
TypeError: Error #1009: Cannot access a property or method of a null object reference.at aavar/frame1() at flash.display::MovieClip/gotoAndStop() at aavar/mouseA()my FLA still runs, but I would like to work out what is going wrong. I do not have any references to this function in my document class but it doesnt like it! What is going on here?
[Code]...
So I got two flash movies. A big one and a small one. I want to display the small one into the big one. Additionally I want the ability to resize it, load it at certain frame in the clip and apply some sort of tween/fade in effect to the loaded swf, but first things first.
View 2 RepliesI am trying to create a global function to reuse repetitively. It worked until I moved the function to the external .as file. The problem is with MovieClip(root) and MovieClip(parent). They do not work and cause errors.
[Code]...
im loading an external swf from my parent swf:loadMovie("external.swf", 4);now, on external.swf i have a dynamic textfiled, which should be updated from the PARENT swf:
this is on PARENT swf file:
this.onRelease = function() {
_level4.mytextfield.htmlText = "some text";
[code].....
I am trying to eliminate the Loader component from a project. Run locally, the Loader is sufficient to load-up the voiceover swf files that exist on many of the frames in the parent file. On the web, the short download delays at runtime due to the Loader are causing timing issues. I'm not sure if there is a way to preload multiple swfs into specific frames of a parent file so that they are available before runtime.
View 4 RepliesThis is a project I'm working on for a simple demo tutorial application in Flex. I am using mxml pages. You can see to the left that I will have my main application and then other mxml files (In the Examples Package) as the examples that will be loaded into the main application mxml. How can I dynamically pull the value from the object in the list to load the child mxml file into the container that I have further down in the application?
View 1 RepliesI have a parent swf which loads many child swfs (though only one is displayed at a time). My intention was to use the loaded SWFs document class to retrieve an array of objects to be assigned a tab index, combine this with the parent's own array of objects and apply sequential tab indices to them all. But what happens is actually that the parent's objects are assigned an index, but the external swf is unaffected. In fact, the external swf retains its automatic tab indexing, when I would expect that having set a value for InteractiveObject.tabIndex, automatic tab indexing would be disabled.
I've seen similar tales elsewhere. Most posts I've read are wanting to load an external swf, give it focus and loop through those objects, then close the swf and return to looping through the parent. However I would like loop through all objects as one. including manipulating the focus manager(s), and basically fiddling with every tab-related property I know.
I have a flash file .swf that uses an external .txt file. I have both documents and when I play the .swf in the player it works fine but when I import the Flash into Dreamweaver the .txt file doesn't appear in the flash.I have to get this site to launch by Friday and I have about 20 of these files to sort out.
View 5 RepliesI have 1 swf file which generated through 3rd party tool.Now I want to embed this file into empty flash file and want to save as new, I tried with following options,
1) import option ( File > Import ) but it is importing only Images and symbols. I want my original file as it in new file.
2) loader.load(), but this will load my external file at runtime only and to work smoothly it require both the files.
I want same but in design time, so I can add some extra functionality to it.Is it possible to embed external swf file as it is in new flash file in CS4?
I am working on a Vignette platform that doesn't support XML, so was told to place my swf file on an external server andcall it from that server in the html code. I have never done this before and need detailed instructions on how to get this executed
View 6 RepliesI have a webpage that currently display a powerpoint slides.The problem is that other can download the slides which I really dont want.
following issues:I dont want to convert the ppt slides to .swf then convert them to flash but rather let flash open the .ppt directly and display on the webpage.
A client is asking for a slideshow to embed into a web page. The slideshow will have a thumbnail bar with arrows on either side to switch to the next or previous batch of thumbnails.This slideshow needs to be linked to an external file that will contain pictures submitted by visitors to the site. The pictures will automatically generate thumbnails that will call a large version of the image when clicked on.My current knowledge about flash and AS3 coding does not enable me to do this. I wouldn't be surprised if it's not possible at all. It sounds like something that needs to be handled by a content management system.
View 2 RepliesI have purchased an image gallery program that works fine but I am struggling to make a very minor modification. I have asked the author for assistance but previous requests have met with no response so I am also asking my question here. This program has most of its logic in an external AS2 file. I have made some small changes to this file and want to save it under a new name. However, that would also require me to change the reference to the external AS2 file from within the fla file. That's where my problem lies. I can't find any code in the fla that contains such a reference.
If I try to publish an swf without this file in the required location it causes a compiler error thus proving that there must be a reference somewhere to that file. However, doing a search for this AS2 file in the 'current document' when viewing the fla file in Flash CS4 produces no results. Where else could this reference be hidden?
I have created a Flash Demo in AS3. I simply need to use the swf file to demonstrate a workflow. The file plays perfectly on my computer however when I sent it to my team, the content was replaced with 5 moving grey dots.The publish settings are at Flash Player 10. My team all have flash player 10 but no cigar.
View 1 RepliesI'm a total rookie working with flash and i'm wondering if theres a way to call in text from an external file. I'm building a news feed on my companies home page, and I'd like to be able to have my boss edit it easily 'cause he doesn't know how to use flash.
you can see it here... [URL]
I need to load files from the library of another .swf file (AS3). How to accomplish that?
View 1 RepliesThis is part of my ongoing issue with 6 video files in six Scenes.I have 6 videos there were imported as enbedded, one in each scene. the first four play but the second two do not.whichever order i place the scenes, it is always the last two that pause at the first frame.o try another approach, I linked instead to a video externally. This seems to work, but, when I click a button to go to another scene the audio from the previous scene is still playing when the new video starts.
View 22 RepliesI have figured out how to load an external video file - and I can play an imported audio file, but I can't seem to use either method to load an external audio file into an array.
Here is my audio code:
var tour_audio:Array = [tour1, tour2];
var my_num:Number= Math.floor(Math.random()*2);
var ChosenSound = tour_audio[my_num];
var playing:Sound = new ChosenSound();
playing.play();
Here is my video code:
var my_videos:Array=new Array ("link1.mp4", " link2.mp4", " link3.mp4", " link4.mp4");
var randomIndex = Math.floor(Math.random()*my_videos.length);
my_player.source = my_videos[randomIndex];
I tried "var tour_audio:Array = ["link1.mp3", "link2.np3"]; - but that did not work.
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 RepliesHere's my problem. I currently have a Flash banner on my website that displays artwork I have made. However, it currently just shows jpegs that are embedded into the Flash file. Is there a way that I can set up a directory in my domain and just have the flash file pull these external images, at random to display? Also, it should be noted that it shouldn't pull the same image twice. That would look silly I would make the files all the correct resolution and size, so resizing is not an issue. I know you can do this sort of thing with javascript, but I want more control and a more stylish appearance.
View 1 Replieslets say i want an external FLV flie to play using a component. How can I force at the end of the flv file to go to another frame/scene?So imagine an external video clip plays, once its finished your force to a screen that says "click to go to my website".is this possible? Or does the flv have to be imported to stage???
View 1 RepliesI have a movie clip called - contenct_mc ----------------inside this movie clip I have another movie clip called - Introduction_mc ------inside this mvovie clip There is another movie clip called - Footer_mc -------inside this movie clip on actions layer I have copied the below code to show clock.swf file....but the following code doesn't work
CODE:I am using Flash CS4 AS3
var R:Loader=new Loader();addChild(R);
R.load(new URLRequest("clock.swf"));R.x = 540;R.y = 205;
R.contentLoaderInfo.addEventListener(Event.INIT, RgrowLoader);
function RgrowLoader(evt:Event):void {
R.width = 200; R.height = 200;}
i have created a plain text files loads from an external file. I am facing one problem which is the text does not load unless someone select the button. I will like the text to show as soon as someone enters the page
//Plain text files loads from an external file
var textLoader:URLLoader;function loadStory(evt:MouseEvent):void{
textLoader = new URLLoader();
[code]....
How can I implement text on a button and a link for the buttonclick from a external XML or TXT file?
View 1 RepliesHow can I make my external loaded .SWF file smoothly disappear after 15 seconds? The following is the code to load an external .SWF file:
[Code]....
I want to make clock.swf file disappear from the page after 15 seconds using some smooth disappear effect.
[code]All clips are squared.Ok, on the PlayerPlane, there are little soldiers, which have hotkeys. The effect I'm trying to create is I want to position the GameStage so that the currently selected soldier appears in the center of the GameClicker clip.The GameStage is movable by the player (to scan other areas of the map)by holding the CTRL key, so it's easy to kinda lose track of where your players are.I have tried using localTo Global and globalToLocal techniques, but I think I'm lost on the actual math of getting the GameStage to move the correct distance so that the selected soldier is centered to the GameClicker.[code]
View 2 RepliesIs it best to load the preloader from external file or place it directly into an already existing movie?
View 3 Replies