ActionScript 1/2 :: Inserting A .swf Into A .fla?
Apr 8, 2009I am trying to insert an external music player "jukebox.swf" into a .flaI don't really know how to load a .swf into the project
View 9 RepliesI am trying to insert an external music player "jukebox.swf" into a .flaI don't really know how to load a .swf into the project
View 9 RepliesI'm pretty new to FLASH. I have created several swf, several are videos. I want to insert them into an fla and have them play automatically then loop.
I tried just moving the swf from my library to the work area, but the swf aren't playing correctly.
I am working on flash headers for a website. After I insert the swf file in DW and upload it, it looks fine in IE. However, in FF there is a gap under the header, so it doesn't look uniform.
View 3 RepliesI am doing a project for someone and we bought a template and I know enough to modify pretty much anything we need... until now.I want to do exactly what is listed here: [URL]But I can't figure out where to add the code. I'm not much for adding, so far I've been able to copy something in the library and modify it to do what I wanted but I have no idea what I can copy or modify for this.
View 1 RepliesI'm working on a Flash project that includes a number of buttons, each of which opens a Web page using the getURL function.I'd like to write the URLs into the XML file, then have the AS2 code reference those URLs.[code]
View 0 RepliesDoes anyone know the theory behind using javascript to insert your SWF files into the XHTML page, rather then the ("Insert.., Media.., SWF) way.
Is this a better way of doing it? whats the difference?
the Java looks like this:
<script type="text/javascript">
A[
var so = new SWFObject("here.swf", "", "100%", "100%", "9", "#000000");
so.addParam("scale", "noscale");
[Code].....
I'm currently developing a full flash site. I've made the dropdown navigation menu with flash also. However, whenever I insert or import it into the webpage .fla, nothing works. When I preview the navigation menu swf file it works perfectly, ie, the mouseover effects, however I lose all actionscript coding when I bring it into my webpage .fla, what am I doing wrong?
View 1 RepliesI have created a flash file that demo's how to use a certain WAP site that is already created. (HTM files with links etc.) - I would like to put this "site" on a cellphone screen in my flash movie to then be navigated as per the HTM files.
Basically is there a way i can EMBED this mini WAP site into my flash movie so that it will function as if in an IFRAME on a standard website.
everywhere i look i come accross with tutorials about how to load data from XML file to flash, but i havnt found any article how u insert or update data in xml from flash. how is it done? i need to insert texts from a textbox in flash into xml file after i press a submit botton.
View 1 RepliesI'm trying to insert an old banner ad into a new Flash site The problem is, the banner I made at 20 frames per second, and the Flash site is set to 41, so it literally plays the banner twice as fast.
View 2 RepliesI've made this swfContainer in which 'var defaultLoad links to the default swf... After that I've made 2 buttons that link to my swfContainer. The problem is that when I click my links randomly, the swf files just keep piling onto each other, making the site more and more slow!
How do I get my links to clear the container, while inserting a new swf file??
I've tried with both the unload and removechild functions, but I can't seem to figure it out.
[Code]...
I've just used the accordion component in flash to successfully load some external data into it.For the purpose I want to use it, the accordion is a good option.However, as you keep adding more and more elements into it (and, presumably, there will eventually be lots of them in this project), the headers start to take up more and more space, up to the point that you can't see the content.So yes, I made it so that the accordion adjusts its size depending on the number of elements it needs to display each time. And that works fine.BUT... then, there's a point where the accordion is just too big for the stage... so it doesn't fit, and you can't see part of it.I thought it would be possible to insert the accordion inside a ScrollPane, but I can't make it work.
The first step would be to put the accordion component inside a new MC. But when I do that and test the movie, I get a very weird behaviour of the component. It loads the content, but at first only half of the component shows up. Then when you click some items, they don't display properly and do weird things.Still, I went forward and tried to put that MC inside a scrollPane (gave the MC a linkage name, etc.), but still the scrollPane seems to display a "blank" accordion inside it, not the one with the content.Is it possible at all to get a working accordion inside a ScrollPane? If not, can you think of any other way to make the accordion component "scrollable" so that it can have whatever size is needed, and still be usable?
what is it called when you insert text from a variable in actionscript?
View 1 RepliesI am making a Layer contains 312 Key Frames that is made of 312 gif images (each image contains a specific detail for my movie).what I have done;
-I have made a Keyframe in Frame 1 (imported Det1.gif to stage)
-then Selected Frames 2 to 312 and pressed F6 (Made 312 Key Frames that they all contains Det1.gif)
-Now I am one by one, going to different frames and cicking on Det1.gif image, and click SwapImage.
Now that I am talking to you, I have Swaped 50 of them, But still I have a long way infront of me to go before I finish those 312 SWAP images one by one.
I have a template and I need to replace the images, and then to add the big size image and to make a link between them.
View 1 RepliesI have a problem with a function that inserts commas into a string... and then I want a textfield to reflect this string. The function is as follows:
var count:Number = 0;
var q2_Final:String;
var tempString:String = "";
[code].....
I have a created an exe file using CS5 Flash, with multiple imports of swf files into the exe. However, the following problems occur:
1. While the exe file is open, I import a swf file into the main program (exe), and when I wish to close the swf file, it closes BOTH the exe file and swf file. I have made a button to close the swf file, actionscript as follows:
on (release)
{
getURL("FSCommand:quit", true);
}
Is this wrong or ok? It does close the swf, but closes the exe file as well, and at the same time, and I do not want that.
2. While the exe file is open, I import a swf file, and through the opened swf file, I import another sfw file into the existing swf, which is opened in the exe file, and it seems like the first opened swf file disappears or becomes transparent. For importing swf files, the following actionscript was used:
on (release) {
loadMovieNum("Les2Alpes.swf", 12);
}
I come from the Delphi school. I was really used and pleased with Delphi grids with the plus features of InfoPower. Not just me, my users loves all features that include grids. Some motives for that are: With grids they have the ability to insert detail information using only the keyboard. Input, Tab, Input, Tab, Input Tab (automatically insert new row), input, tab, etc. They were able to simply click in a row and edit it´s data. They could navigate between records using only arrow keys. In my flex apps I´ve being working arround this quite often, sometimes using a popup to insert data, sometimes using repeater instead of grid. But now I really really need some intuitive, fast way for my users to insert this data.
I am trying to use DataGrid (or AdvancedDataGrid) with inline editors and I am living a real hell to do that. For the last 3 days I am struggling, tweaking and workarrounding in order to try to mimic the features that I had with Delphi.
Having all these problems and not getting substantial material to solve them makes me think the (now obvious) fact that it is just not the way grids are intended to work in flex. My question is: what are the patterns used in flex applications to make sequencial, intuitive, fast, keyboard only insertions in a detail?
I'm making a basic photo slide show for a website I'm working on. I have the following in place and working:
- One movieclip (images_mc) preloads all of the images before the main slideshow movieclip (player_mc) begins
- player_mc contains photo_mc which is the container for the image that is currently playing...it is animated on the stage and everything is setup that I can insert the first image and play it, then insert the second image and play it again
- I have an array full of pointers to the images_mc instances of the photos (mc_array)
- I'm having problems inserting the content from images_mc into photo_mc...I've done the following:
ActionScript Code:
photo_mc.createEmptyMovieClip("placeholder_mc", photo_mc.getNextHighestDepth());
trace(photo_mc.placeholder_mc);
photo_mc.placeholder_mc = mc_array[photoCounter];
[Code]....
The assignment on line 4 is causing the placeholder_mc to be completely rewritten, instead of duplicating the content from images_mc and inserting it into placeholder_mc. How do I duplicate the content into the placeholder? I've tried duplicateMovieClip() several times, but it always returned UNDEFINED, so maybe I'm not doing it right?
How do I insert the preloaded images properly?
I'm very new to actionscript and I managed to recreate the activity on this page successfully with different objects and 6 options instead of 4. [URL]However, I need to get a reset button in there so the student can retry when they come to the end of one cycle.
View 6 RepliesI have created a Carousel with CoverFlow where images are imported from Flickr. Now I would like to import images from an XML file so I replaced the relevant code with code from a past project that consisted of designing a Papervision 3D Carousel. The problem is that my CoverFlow Carousel consisted of a Cover with Bitmap images while my Papervision 3D Carousel consists of a plane that loads/saves images through BitmapFileMaterial. Flash does not seem to accept that I insert a BitmapFileMaterial into a cover.
It gives me error 1067 (translated from German to): Implicit change of a value of type org.papervision3d.materials:BitmapFileMaterial into an unrelated type flash.displayisplayObject. In my code below I commented next to the function that causes the problem.
PHP Code:
package {
import flash.display.*;
import flash.events.*;
import flash.display.Loader;
[Code].....
what is it called when you insert text from a variable in actionscript?
View 0 RepliesI have a portion of a project that is similar to a MS paint program and the user can create a picture/poster, etc. When they hit the continue button, I am able to scale down the picture they created (it is in a movieclip) and store it in an array to be returned later on in the project. The only problem is that when it is returned, sometimes the textboxes that they inserted will push the last word to a new line.ex. They type = "This is my poster Yeah!"it returns = "This is my posterYeah!"I was playing with converting it to a bitmap and then displaying that, but I've never used that so I'm unsuccessful
View 0 Replieshow to place a value into an array at a certain place rather than just pushing it to the end every time..ie..ActionScript Code:Code: Select allvar A:Number = 1 var B:Number = 2 var C:Number = 3 var tArray:Array = new Array(A,C);At a latter data via dynamics I want to insert a B into the array in the middle or where ever I chose.ActionScript Code://Something like this tArray.push(B) trace(tArray) //Results in 132 //But I would like it to trace 123;etc
View 3 RepliesI`m trying to use this candle light AS in another .fla. The moment I export the mc (and everything in it) it stops working.
View 7 RepliesI have a input text field on the stage and I want to insert text into that inputTF via a button. I can't use something like
Code:
add.onRelease = function(){
inputTF.htmlText = "hello world"
}
becase it replaces the user's inputed text. I want to just insert text where there "flashingType-dealy" is located (my apologies I don't know what it is called).
I think a starting point is using Selection
Code:
Selection.setFocus(inputTF);
Selection.setSelection(this.tempBegin, this.tempEnd);
//what else? //
Ok so what I have is an RSS (XML) file that has a bunch of weather data in it. I'm trying to take certain keywords from the XML and insert images into my movie accordingly. I know how to get the XML and find the strings I'm looking for, but I really have no idea how to get the images to come up. I have already inserted them into my library.
View 2 RepliesI have a banner I created with scrolling thumbnails across the bottom. I'd like to put a link on all the seperate thumbnails. Can i do that in flash?
View 3 RepliesI am attempting to write a utility class that, when fed a camel-case class name, will return it as a String with spaces inserted before uppercase characters. Basically, if I pass SomeClassName into it, it will return "Some Class Name".At the moment, the way I envisage it working is to loop through the String, comparing each char with an array of uppercase characters and, if it finds an uppercase character, I'd like it to insert a space before it.Have experimented with a variety of String methods but can't seem to get anything to work
View 6 Repliesdirect me towards a Flv encoder, for mac, that is capabale of adding/inserting cue points. Preferably free, or cheap.I have been searching all across google but all I can find is "Moyea Flash Video MX", which in it's mac version isn't even capable of adding cue points.
View 1 Replies