IDE :: Playing External Swf's In Rectangle?
Oct 10, 2009
I've got a flash site that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.
View 1 Replies
Similar Posts:
Oct 11, 2009
I've got a flash site [URL] that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.
View 2 Replies
Mar 8, 2010
For those of you still with me, I am tasked with making some scrollable content in Flash. Load in a TextFile using LoadURL(), then display it. To get the text, we've written our own class TextFieldExtended, which is basically just there to give the textfile location to the constructor and then have the class do the various steps of getting it and loading it for you.So I needed to get a Scrollbar, which I got hereThe thing is, it works with Sprites.After trying to get it to accept TextFieldExtended, I bumped into a block, since the scrollbar relied heavily on a Sprite property that TextFieldExtended didn't have or could have.
So I tried adding the TextFieldExtended instance to a Sprite instance using addchild.A problem occurs here that I do not know how to handle. It seems that a Rectangle is drawn and the Text is drawn on that. I say this because the scrollbar moves the Rectangle up and down a bit, but the text doesn't scroll, just the Rectangle it is positioned in and the text then moves along with it.My question: can this be fixed, or is does this implementation of scrollbars need a lot of adaptations before this is possible?
View 1 Replies
May 20, 2009
I draw a rectangle i should see a little bold circle to indicate a perfect rectangle, I seemed to lost mine, can somebody please tell me how to get it back!
View 2 Replies
Aug 2, 2011
I am trying to convert a rectangle(actually multiple rectangles) to a curved rectangle. I think it should be pretty easy but I guess i am stupid. Basically I would have a start position and stop position (many of these), and they would be converted to curved rectangles and follow in a cicrle around.
View 0 Replies
Jun 26, 2010
I would like to create a rectangle inside of a rectangle, starting approximately 15% inward from the right side of the other rectangle.
I know how to create rectangles with:
Code:
var newHotRect:MovieClip = new MovieClip();
newHotRect.graphics.beginFill(0x00FF00);
newHotRect.graphics.drawRect(0, 0, 100, 100);
addChild(newHotRect);
But how would I make another rectangle on top of that (the black one pictured) that is approximately 15% from the right?
I toyed around with .right, and .bottomright with no success. Can anyone lead me in the right direction? or even finding the x and y of the upper right or bottom right side of a rectangle?
View 10 Replies
May 20, 2011
how to respond when a rectangle hits another rectangle? I already know how to detect the collision, I just don't know how to respond to it. I'm just trying making a simple side-scrolling platform game where I have platforms I can walk on and bump against on all sides. I have searched everywhere and just can't find the tutorials I'm looking for.
View 6 Replies
Jun 8, 2009
Ive got a project with a fairly complex arrangement of menus and a narrated tutorial of sorts that is large (in terms of Mb) compared to the menus themselves. Since the tutorial is likely to be played only once, if at all, I don't want to load the asset unless needed. To do this I'm using the following code to load an external swf (the tutorial) and attach it to an mc container (mc_launch). A loader bar will be added later but for now it works, except: if the user navigates away from the tutorial (jumps to another frame in the menu timeline) the audio of the child attached to the mc_launch continues to play even though the instance of the mc_launch is no longer on stage. Shouldn't all the child objects of the container go away once the instance of the container is gone? If not, do I specifically have to execute a mc_launch.removeChild(loader) before navigating away from the instance of mc_launch?[code]...
View 5 Replies
Aug 24, 2009
I am fairly new to Flash and working with MX 2004 with Flash 2. I have tried several methods to play an external .FLV file. Some ideas from this forum and some from the Flash help system. Either I don't understand them and/or I am not implementing them correctly but nothing has worked. I have read of an FLVPlayback component and my system has a MediaPlayback component in the Component window. I have also seen yards of actionscript to play such files. Can anyone supply me with a basic/simple method, with code/example or buttons-to-push if necessary, to have an .SWF play an external .FLV via my MX 2004 system?
View 3 Replies
May 5, 2009
I've been trying to figure this one out for a couple of days now, and it's driving me nuts! I'm new to flash (I'm using CS3 with AS2), but I've managed to convert a template into an almost finished site. My problem is this: I've made an external slideshow swf which works fine if used by itself. It's saved as a flash 7 AS2 according to the program (Aleo Slideshow Gallery Maker) used to generate it. It's in the same directory as the main swf file. I'm not sure of the code to load and play the external slideshow swf with a button in the main swf file. Do I need to change the html as well as the swf script? I've tried all sorts of things, but I can't figure the script out on how to finish the flash to include the slideshow. The SWF files inquestion are attached - I'm just using sample iamages at the moment. When I go to the gallery page, I want to be able to click on the fly to load and play the slideshow.
Attachments:
slide_btn.swf (17.8 K)
backup70.swf (881.4 K)
View 3 Replies
May 5, 2009
stop();var pausePoint:Number = 0.00;var isPlaying:Boolean;
var soundChannel:SoundChannel = new SoundChannel();var sound:Sound = new Sound(new URLRequest("Sounds/Music_File_2.mp3"));
[Code]...
I am trying to play the .mp3 file called "Music_File_2.mp3" the music file is in a folder called "Sounds" 2buttons called Play_btn and Stop_btn plays and stops the music. Once the music playing if i click on the play button the music will pause.
Everything works fine when i launch the program though "Flash Player 10". but when i right click and open the .swf file with Internet explorer the whol project works fine, but the sounds would not play.
View 5 Replies
Aug 26, 2009
Does anyone have any clue on how to unload an external swf with all its sounds?
View 1 Replies
May 25, 2010
I am having a problem stopping external swf from playing. I am currently using FlashCS4 and publishing to Flash Player 10. I would really like to use the code
"loader.unloadAndStop();"
to stop the swf. I tried using it but I keep getting the following error:
1061: Call to a possibly undefined method unloadAndstop through a reference with static type flash.display:Loader.loader.unloadAndstop();
I read somewhere that since the swf files were published in Captivate (also using Flash player 10) I have to load the swf into a flash movieclip first then try the loader.unloadAndStop code.
fscommand("allowscale","false");
fscommand("showmenu","false");
//import flash.display.MovieClip;
var Xpos:Number = 220;var Ypos:Number = 105;
[Code] .....
View 7 Replies
Oct 4, 2010
Before the mp4 plays I have a preloader set up in Frame 1to preload the movie and play in Frame 3.
myLoaded = Math.round(getBytesLoaded()); myTotal = Math.round(getBytesTotal()); myPercent = myLoaded/myTotal;if (myLoaded == myTotal)
{ gotoAndStop(3);} else { gotoAndPlay(1);}
[code].....
View 5 Replies
Sep 2, 2011
so im bringing in a test external swf like so:
[Code]...
this simple external test swf has 10 frames. @ frame 1 theres a "intro" label, @ frame 5 theres a "stop" action, and on frame 6, theres an "outro" label. problem is that, when i click the button, it reloads the external swf and plays from frame 1.
View 3 Replies
Dec 19, 2011
I want to play a external SWF file (which is in server) in client side. It is working when I run through flash, but when double click on .swf it shows a dialog box:
Adobe Flash Player Security To let this application communicate with the internet click Settings.
So what settings do we need to change to play the swf file?
View 1 Replies
May 21, 2010
I have a big problem that the audio of the external swf keeps on playing on top of other swf after clicking another button.
I have about 22 external swf files that are called up after clicking on their respective button. However, the audio keeps playing on top of the new swf that is selected. It thought the "removeChild(loader);" would work but it doesn't remove the audio.
I don't know if this may be an issue, but along with every swf that plays there are 3-4 .flv videos that are included in the swf. I have included the code.
import flash.display.MovieClip;
var Xpos:Number = 220;
var Ypos:Number = 105;
var swf:MovieClip;
[Code].....
View 6 Replies
Oct 10, 2010
So I am loading an external swf clip into my project. When it finished playing, I want to remove it. How do I track when its finished playing?
View 4 Replies
Feb 16, 2007
Below is the action script to load an external .swf and display the preloader (typical 100 frame). My problem is that, the .swf will begin to play behind the preloader as the content is still loading, it will not wait for the content to fully download. I appear to have everything setup almost exactly like most of the MovieClipLoader tutorials i've seen and I cannot fix this problem.
Code: Select allvar myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
[Code].....
View 7 Replies
Nov 24, 2003
I need to tell a external movie (.swf file) to start play when I click on a button. I have made a site in dreamweaver where the topframe is in flash and the middleframe in html and the bottomframe in flash. I have 2 buttons on the topframe and I want when I click on one of them the
bottom flash file starts to play.
View 1 Replies
Jan 23, 2007
I am using MovieClipLoader to load a swf. The external swf has about 12 images on it that just show up one after another. But only the first frame displays.
My code:
[AS]
var empty_mc:MovieClip;
var mclListener:Object = new Object();
var myMCL:MovieClipLoader = new MovieClipLoader();
[code]....
View 11 Replies
Nov 24, 2003
I have made a site in dreamweaver where the topframe is in flash and themiddleframe in html and the bottomframe in flash.I have 2 buttons on the topframe and I want when I click on one of them the bottom flash file starts to play.
View 1 Replies
Mar 25, 2010
I have getting the following message when trying to play external mp3 files:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at playingExternalMp3_fla::MainTimeline/frame1()Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at playingExternalMp3_fla::MainTimeline/buttonFunction() at playingExternalMp3_fla::MainTimeline/load1()
These message appear in the output panel every time I slect the button for that sound file? Is there a linkage problem?
[Code]...
View 1 Replies
Nov 29, 2010
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 Replies
Oct 14, 2010
I have a flash application, some kind of a play-list that loads external SWF video player (I don't have code access to that external file), so users can watch the video or skip to another one. When user switches to another video new SWF file is being loaded.
The problem: If user didn't finish watching the video and skips to the next then I unload previous SWF file (unloadAndStop()) and load a new one. And because the previous SWF was playing it is not actually unloaded, it is still playing on the background (I hear two audio tracks: current and previous).
View 1 Replies
Jan 30, 2009
what I'm trying to put together is some code that will load in multiple flvs, buffer the vids and have them play one after the other in a loop. I have so far code that loads in an array of flvs but doesn't loop. Also the buffering stops the play back for a moment towards the end of the first video, not sure why but changing Flush into Full doesn't help. Anyone know how to add a buffer that plays after a % of the movie it buffered or will buffer movie one and then buffer movie two while the first movie is still playing? As for looping goes I need a listener waiting for the last video in the array to be completed, but not sure how to pull that off.
[Code]....
View 0 Replies
Sep 6, 2010
I need to load a external file as movieclip and play according to the mouse movements. External swf consit of panning sequence in which i have to stop in 122 frame when my mouse is between 250 and 1000 x position.
But my problem is the loaded movieClip plays fine in first time when i return to the position movieclip does not play good. animation becomes jerky.
here is my code
ActionScript Code:
package
{
import flash.display.MovieClip;
import flash.display.Loader;
[Code]....
the loaded swf file is about 2 mb and consist of diferent flv embede in timeline
View 1 Replies
Sep 12, 2010
Here is the external swf loader that is commonly used and which I used
ActionScript Code:
var xpos:Number = 4;
var ypos:Number = 4;
var swf:MovieClip;
var loader:Loader = new Loader();
var presvid:URLRequest = new URLRequest("presentation/presentation.swf");
loader.load(presvid);
loader.x = xpos;
loader.y = ypos;
addChild(loader);
The presentation.swf file plays well when I test the movie, but when I upload it to the internet to say swfcabin.com or deviantart, etc or any site which supports swf, the presentation.swf file doesnt play.
View 3 Replies
Oct 14, 2011
I'm a newbie to as3 and flash and i have created a as3 slideshow that imports external swfs into movie clips to be viewed on the slideshow but one of my external swf is a videoplaye So my problem is that I want to video to stop playing when you click to the next slide here is my code for the mainswf and the slide swf[code]...
View 0 Replies
Nov 15, 2011
I have 5 loaded swf files, I can play them one by one using "next" button. But now I need a "autoplay " button. My thinking is to dectect one swf finished, then call the "next" function, so it can be played automaticly. The thing is I don't know how to dectect one swf is finished playing.
View 9 Replies