Actionscript 3 :: Capture Frame Of External Swf And SecurityDomain?
Mar 22, 2012Is there any way of capturing frame as a bitmap of swf loaded with different security domain than the main app?
View 2 RepliesIs there any way of capturing frame as a bitmap of swf loaded with different security domain than the main app?
View 2 RepliesI have two swfs:application swf p2p client swf that allows to load data using rtmfp replicationtechnology (through cirrus service)The main idea is to have one p2p loader on the certain domain that will able to work in p2p network without asking many times for permission for each domain, so for instance:
application 1 (http://domain1.com/app.swf) |
application 2 (http://domain2.com/app.swf) | <--> p2p data loader (http://domainp2p.com/p2pcli.swf)
[code]....
I am building a chromeless player with Actionscritp 3 and got the following error when I play certain videos.
[Code]...
My app can search youtube videos .The error message shows up all the time and some videos can still be played....but some can't... I already have
[Code]...
I'm implementing an Augmented Reality application for android using Flash. In order to get the application working on my Android Phone (nexus One) the Phone Camera must be activated as well. So I need 2 layers one for the background which is the feed of my phone camera and an other one on top of it which is the view from away3d in this case.So setting up a BitmapData object to hold the information of the most recent webcam still-frame I can make this work.
If I use papervision3D library and FLARToolkit we setting up the BitmapData using the following part of the code found from this video tutorial:
//import libraries
import org.libspark.flartoolkit.core.raster.rgb.FLARRgbRaster_BitmapData;
import org.libspark.flartoolkit.detector.FLARSingleMarkerDetector;
[code]....
I created text field. Instance name of the text field is answer_txt01. When I enter the right answer "red", it should go to frame 2. However regardless of right or wrong answer, it goes to frame 3. How do I capture the user's answer on frame 3?
answer = answer_txt01.text;
answer_btn.onRelease = function() {
if (answer == "red") {
gotoAndPlay(2);
} else {
gotoAndPlay(3);
}}
i want to capture a <tab> press on a frame action, not a mouse. how do i...
[Code]...
i want to capture a <tab> press on a frame action, not a mouse. how do i...
key.TAB = function(){
that's what i have to start..
I'm new to actions script. I creating a presentation in which I'm loading external FLV movie files. I have a Navigation menu to go to the different chapters (every chapter is a FLV movie File)This is what I need, when a FLV movie finish I need some action in the frame to take me to next frame where I have the next FLV chapter.if is any help I upload a sample FLA with some FLV for reference.
View 9 RepliesI creating a presentation in which I'm loading external FLV movie files. I have a Navigation menu to go to the different chapters (every chapter is a FLV movie File) what I need? = when a FLV movie finish I need some action in the frame to take me to next frame where I have the next FLV chapter.I upload a sample FLA with some FLV for reference.
View 4 Repliesload an external jpg in frame 2 with a command in frame 1? Very important to my project to get at least a yes or no.
View 4 RepliesI have an application swf that loads a big external swf with all GUI components/assets (skin) in it.I want to display a progress bar during loading of the external asset swf file but the images for the progress bar are also included in the external swf file.Is it possible to load only a portion of the external swf before loading the rest. The idea is to load the progress bar images from the external swf, then construct the progress bar and than load the rest of the swf. I was thinking to put it on different frames. Frame 1 containing the progress bar graphics and frame 2 the rest of the assets.
View 3 RepliesI've got two buttons and when I press one I want it to goto and stop on next frame of a loaded swf. there's different swfs loaded so I can't specificate the name of it.I've tried:
Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("arrow.swf");
myLoader.load(url);
this loads the arrow buttons fine, but i can't get the goto and play next frame on the external swf loaded to work. ive tried:
Code:
var swfTimeline:MovieClip = myloader.content as MovieClip;
swfTimeline.nextFrame();[code].............
i have a main swf and on the 1st frame, aside from the preloader script....etc...i have a loadMovieNum action on there....it loads an external swf with music in it.now i want it so that when the playhead passes through another frame(frame 10) i need it to go to frame 2 of the external swf which has the music in it. ive tried EVERYTHING i could think of but it doesnt work. i KNOW its simple but i dunno..... i mean it works far as loading in the ext.swf from the AS on frame one but not the AS on frame 10 that tells it to go and play ext.swfs frame 2.
View 2 RepliesI made a flash website and had one page load an external swf.
In this external .swf are thumbnails that link to another page (frame) all within the external swf. when you go to these pages there is a 'back' link which links back to the main external swf frame.
My problem is this: let's say i click a thumbnail in the external swf and it goes to the respective thumbnail page, and then i dont click the 'back' button but instead click another link of the main flash website - then i go back to the page that loads the external swf and instead of going to the main frame of the external swf it stays at the page i was previously on.
How do I get the link on the main flash website which loads the external .swf to always load on the first frame of the external swf?[code]...
I have an empty swf (container) where my external swfs get loaded and unloaded. I have two swfs - Activity 1 and Activity 2 (each contain an activity to complete on several frames).
The user is able to click back from activity 2 to activity 1, but they get to the beginning of the activity instead of where they were last (last frame on swf). I would like to be able to click the back button and go the last frame on the swf being loaded.
So, how do I load an external swf and then go to the last frame in it? But I don't want this to happen everytime I go to activity 1. Only when you click the back button from activity 2.
I've got a .fla with different buttons. when I klick them different loaders loads ext swfs.
Code:
var myloader4:Loader;
this.revista.addEventListener(MouseEvent.CLICK, movie4Click);
function movie4Click(event:MouseEvent):void {
gotoAndStop("white");
var myrequest:URLRequest=new URLRequest("rec.swf");
myloader4 = new Loader();
myloader4.load(myrequest);
stage.addChild(myloader4);
Underneath the loaders on the label "white" I have to buttons, next and prev. I want to, when I press them, to go to the next frame of the loaded swf. I've got 6 diff ones. (myloader1-myloader6).
I have two flash files, say a.swf and b.swf.a.swf is the main swf file, embedded in an HTML page for a webpage. There is a preloader in a.swf too. In b.swf, when I click a specific button I need to load a.swf, but not from the preloader, from the content. To be precise, the content starts from Frame 24 of a.swf (obviously Preloader ends in Frame 23). I believe, the frame 24 has to be loaded in a.swf when I click the button in b.swf.
View 2 RepliesI have a .swf being loaded into a main.swf using the following:
var ld:Loader = new Loader()
ld.load(new URLRequest("nameofsecond.swf"))
addChildAt(ld, 0)
The above is in the second frame of my main.swf timeline. I'm looking for a way, using as3, to code a preloader in the first frame of the main.swf that counts the number of bytes loaded in the secondary .swf and goes to and plays the second frame of the main.swf when all the bytes have loaded.
I've got another little hitch that I've come accross in the project that I'm currently assembling. From time to time I need to load swf files at specific frames & seem to have hit a brick wall.
[code]...
It loads the right swf, but at frame 1, when I want tp load it at frame 18
I am trying to capture a still frame from an (any) external swf file, by using my own flash movie as a proxy to load it and hand information regarding the Stage onto javascript. I want to keep it as wide compatible as possible, so I went with AS2 / Flash 8 for now.[code]...
View 2 RepliesI am building an on-line game for autistic children, and I am facing a problem where I load a SWF to play a mini game. Although when the mini game is over I want to go back to the original SWF (and a different scene to which I left.)
I use:
var request:URLRequest = new URLRequest("hidenseek.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
stop();
To load the swf, although I can't figure out how to unload it on a frame, and then on top of that take it back to original SWF to a new menu?
A work around could be to just have the new menu in the loaded SWF? Could I unload the original SWF or do I have to always keep it open?
i have an external swf in one html page, which i would like another swf from a different page which contains a button, to navigate to. [code]how would i implement the button to navigate to a specific frame in calendar.swf of calendar.html?
View 1 RepliesIm going to make a page in flash as3, and now I have build the most of it. I will now load an external swf into the main swf, to save people for too must waiting time... my issue with normal words: I want to have a number of buttons. When you click on button 1 the first external swf load with a fade animation. Now when I would see whats behind button 2, is should animate the first swf out and remove it from the stage, to save wating time.... and the same should happend if i have 5 menu buttons...
[Code]...
I am loading external file swf at frame 30 (as one of my pages). When I click button at example 50 or 61 (another pages) how do I remove the loader. I've got lots of errors.
View 1 Repliesbut how can i load an external swf into a movieclip, but i want that external swf would start on frame 10 (for example), instead on frame 1.
I have this external swf loading to movieclip1, and there's a button that makes the same external swf to load to movieclip2, but now i want it to load and start on frame 10...
I want to make a preloader what can i use for anything in the page. The problem is that if i write the load movie action, all frame will be loaded.is it possible to load just a frame of an external.swf?
View 1 RepliesI have external swfs that loads in a container on a main swf. When I press a button on the main swf, I would like to load a specific frame from an external swf.Here is what I have so far:
[code]...
I have a main movie (main.swf) that has an empty movieclip that calls for an external swf that we'll call imageclip1.swf. Now, I have a preloader set up in the imageclip1.swf, however, it doesn't want to move to the second frame after it's loaded when it's loaded into the main.swf. It works fine when I test it by itself. The actionscript (AS2) in the first frame imageclip1.swf:
[Code]...
What ends up happening is that it moves to frame 2 in main.swf. So I don't know what the problem is. I've tried every target scheme I could think of (_root, level0, this). I'm pretty green when comes to AS, Also, what would be the correct way to access the different hierarchies (i.e main.swf from imageclip1.swf)?
I have two files
main.swf & nav.swf.
In main.swf I have two frames on Layer1 "s1" & "s2"
On Layer2 I used the following scripts to load nav.swf
PHP Code:
loadMovieNum("nav.swf", 10);
Which works perfectly fine.
But on nav.swf ( external file ) I have two buttons on the stage. On the 1st button I have used the following script to go to "s1" frame which is on the main.swf
PHP Code:
on (release) { _root.gotoAndPlay("s1");}
I have used the following script to go to "s2" frame which is on the main.swf
PHP Code:
on (release) { _root.gotoAndPlay("s2");}
Which seems to be not working fine. I have also attached those two fla files.
Is it possible to load an external swf and specify a frame within that swf to jump to? and can you jump to an X Y coordinate as well?
View 3 Replies