Making a piano/keyboard application and trying to figure out the best way to set this up .I plan on having a directory of sounds for each 'instrument' in my assets folder (piano1/C4.mp3,piano1/D4.mpg,...)Is there a way to import/embed all of these as an array? Also is there a way I can pass a variable to this class to indicate which folder I want to import these from? Something that would be ideal
var type = "piano2"; //passed from class being called by foreach(notes as note){ [Embed(source = 'assets/sounds/'+type +'/'+note+'.mp3')] private const C3:Class; public var c3:Sfx = new Sfx(C3); }
Or would it be a better idea to have a class for each of these "types" that pulls all notes?
Let me give the context first. A user opens a local html file which has a reference to a network url of an swf file to embed.
(1) If the embed swf requests a local image file , will Flash allow the request? ( 2) If the embed swf requests an image file on a non local url other than one of the swf file, will Flash check a crossdomain.xml file on the url?
I have this swf file, i don't have the .fla file for it. I need it to be able to play in my current .fla file when called upon. I also really need it to be embedded. Don't ask me why, but the client wants only one swf file, and if i load the swf in as an external file the program they use, will not be able to display this loaded swf file. My flash file works perfectly when i load it in as external and put it into a movieclip, but that's just not what my client wants.So i was thinking of embedding it, i don't know if i'm thinking of this in the wrong way, and maybe you all have some suggestions for me. I don't know how to embed it. i'm using flash cs3 and ActionScript 3. I tried importing it straight to my library and to my stage, but i end up with just a couple of graphic images that don't work at all. I've tried everything i know of, read all threats i could find about it, but it seems embedding is impossible or just not done. what could i do to fix this?
I imported a .mov file into a .swf file and it works great. Then I embedded the .swf file into a web page. Again, it seemed to work fine--at least works fine when I open it in a browser locally. However, after I upload everything to the server, the .swf file seems to be okay, but the embedded video no longer works. I triple checked that all of the links are correct, all of the files are uploaded (including the embedded video) but nothing works.
Warning: This is an adult site. I can provide the URL if requested.
I am trying to embed a swf file into another swf file in order to learn how to make a complete flash site but am having a little trouble doing it. I successfully used the loadmovie file to embed another swf file into my original but the effect only last for a minute. After that, if I try to press on the other buttons to embed another swf file, nothing happens. The following is a code I am using for one of the buttons.
on (rollOver) { tellTarget ("/rollover") { gotoAndPlay ("1text"); }
I'm writing the following code to embed an swf file into php file.
[AS] var so = new SWFObject("test.swf", "mymovie", "1152", "700", "8", "#FFFFFF"); so.addVariable("varurl", "http://www.google.com"); so.write("flashcontent");[/AS]
but I don't know how to access the variable "varurl" that i've added in the second line above. In flash 8 with AS2, I would just use _root.varurl. But it doesn't seem to work in AS3.
And i've stumbled on a problem i cannot solve. I have this swf file, i don't have the .fla file for it. I need it to be able to play in my current .fla file when called upon. I also really need it to be embedded. Don't ask me why, but the client wants only one swf file, and if i load the swf in as an external file the program they use, will not be able to display this loaded swf file. My flash file works perfectly when i load it in as external and put it into a movieclip, but that's just not what my client wants.
So i was thinking of embedding it, i don't know if i'm thinking of this in the wrong way, and maybe you all have some suggestions for me. I don't know how to embed it. i'm using flash cs3 and ActionScript 3. I tried importing it straight to my library and to my stage, but i end up with just a couple of graphic images that don't work at all. I've tried everything i know of, read all threats i could find about it, but it seems embedding is impossible or just not done. what could i do to fix this?
I have made a game that is a seperate .swf file from my flash website. How do I embed that .swf within the website. When I import it to library and drag it on to a page the game doesnt play, it just runs through the frames like a movie.
** edit the game reads from an xml file and also read and writes to mysql if that makes any difference?
I am trying to embed a swf file, that came with images in folders, on a website. I don't have the original flash file. It works when I upload the file: [URL]
When I embed this code in our website, I get error message about the images.
I am trying to embed a swf file, that came with images in folders, on a website. I don't have the original flash file.It works when I upload the file: [URL]When I embed this code in our website, I get error message about the images.
i 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="".
I'm trying to embed a .flv file in my site. I encoded it from a PAL .avi using FLME CS4 at the preset values for 'FLV - web small', although I've tried a ton of different sizes, framerates, bitrates, and keyframe distances.However I do it, the video plays nice and smooth in any offline player (WMP, Adobe Media Player, VLC, RealPlayer). Then I embed it into the site with Dreamweaver and preview it in IE8, Firefox and Chrome.
Firefox and Chrome play it beautifully, and IE8 is jittery, jerky and stuttery. It's not horrendous, but it looks like it's running at 12-18 fps instead of 25, and it's noticeable, and it doesn't look natural. Once it's embedded in the HTML it plays the same whether I'm previewing it through Dreamweaver with the .flv on my PC, or I'm getting it off the internet (look for yourself at my 'test' video at [URL] make it play as smoothly in IE8 as it does in the other browsers?
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
Is there anyway we can embed a .pls file in flash? I just trying to play a playlist from a shoutcast from an online radio station in a flash application!
Is 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
Is 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.
If you embed a flv file in a flash file(fla), then you publish it and get a swf file.
You send it to your friend the swf file.
When your friend opens the swf file, if he clicks on the part where there is a embedded video, There should be an error if you did not send him the embedded video.
But for my case, I have both fla file(source) and the swf file. When I run the swf file in flash, it runs smoothly. When I open the fla file and see, there is an embedded video but I dont have the embedded video source.
if I do not have the embedded video source, when i run the swf, there shoudl be an error where there is an embedded flv file but it seems to run that part as well.