External swf within external swf?
Hello..
I'm currently playing with a music player template that loads
the songs as external swf files.
Is it now possible to load this music player as an external
swf into my main flash website? So far I've managed to get it
loading in the right place, but then the songs don't play. :( If
there's anything crucial I need to know, please enlighten me, or I
can stick some code up here if it's perhaps not so obvious.
Cheers
x
Hey!
If you can play the song from the music player independently
but not while the music player is external: I'm going to go ahead
and say you're hitting a security issue.
I'm going to do some research then I'll post back here.
Thanks,
John
edit: try this
http://www.adobe.com/devnet/flash/articles/fplayer_security_04.html
Similar Messages
-
Using AS 3.0 to create a popup .swf within an .swf
Hi,
I need to have an .swf running for a game. Within this .swf there will be a "Help" button, which, when clicked, needs to create a new popup window from a different .swf file. The second .swf file must appear in a new window, in a separate popup, and not replace anything in the first .swf window.
I want to know how to do this in ActionScript 3.0. I don't need help with the button click event, but I do need help on how to make the popup appear. Any advice?
Thanks.use
navigateToURL(new URLRequest("yourswf.swf")); -
Hi,
Hopefully someone can help me with this...
I would like to embed a swf (call it swf 1) within my captivate 5.5 project (swf 2), but the catch is that swf 1 is interactive. More specifically there are pause points within the course where learners need to play around with roll-overs or other features before clicking a button to resume. There are a number of swfs going into swf 2, but I thought it best to focus on one for now.
The idea is to publish the main project (swf 2) with a skin and TOC and to be able to control progress all progress, including the progress within swf 1, using the playbar from swf 2 - i.e. if I click on the playbar at a certain point, it should take me to that point even if it is half way through swf 1.
I know how to add an animation to a slide and synchronise it with the project so that I can get that kind of playbar functionality. However, this only works if swf 1 plays from end to end without any interactivity. It doesn't seem to work when swf 1 pauses in the middle (in fact swf 1 barely even starts, before it vanishes again, leaving me watching the background of the slide that it was on). Alternatively, if I don't synchronise it, then the main project will continue on to the next slide regardless of whether swf 2 has finished or not.
So, the question is, how can I insert an interactive swf into the main project, synchronise it and retain the interactivity? Any helpful, not too technical suggestions?
Thanks.You won't be able to achieve this in Captivate without having advanced ActionScript 3 coding skills.
You are better advised to find another way of delivering the effect you want that does NOT involve nested SWFs. -
Hi.
A long standing client has requested that I create a fully
flash website to replace the site I created for them a few years
ago. I naively agreed, with quite a limited flash knowledge.
I can create the site as one flat file, but the initial
preloader would be loading the entire site which would take ages.
So I thought that if I have each section of the site on its own swf
file, I could open each one from within the initial flash site.
This means it would be loaded as an external entity if you like,
and the initial preloader would not load it which is the desired
result. Am I right? How do I do it? please say if i've lost you
with the above!!
STeveall you want is the loadMovie command - search the help docs,
this forum, or google - it's been used
for so long - oh and these tutorials:
http://www.kirupa.com/developer/mx/full_site.htm
http://www.kirupa.com/developer/flash8/best_structure_flash_site.htm
--> **Adobe Certified Expert**
--> www.mudbubble.com
--> www.keyframer.com
StevoUK wrote:
> Hi.
>
> A long standing client has requested that I create a
fully flash website to
> replace the site I created for them a few years ago. I
naively agreed, with
> quite a limited flash knowledge.
>
> I can create the site as one flat file, but the initial
preloader would be
> loading the entire site which would take ages. So I
thought that if I have each
> section of the site on its own swf file, I could open
each one from within the
> initial flash site. This means it would be loaded as an
external entity if you
> like, and the initial preloader would not load it which
is the desired result.
> Am I right? How do I do it? please say if i've lost you
with the above!!
>
> STeve
> -
Swf within a Swf scoring issue
I've created a flash file (my project) that is loaded into another swf (our player) file on our site. When I test the project file on my computer the scoring displays correct at the end of the lab. When it is loaded into our swf player on the site the score doesn't display. I'm at a lose for why this is happening. If someone could provide me with some direction I would be very thankful.
// Declare variable
var numOfCorrect:int = 0;
// Every time someone click the correct selection it adds one to the score
function correct(e:MouseEvent):void{
numOfCorrect++;
//I have a text box with the name yourScore
yourScore.text = numOfCorrect + " out of 5";
It is very basic code so I have no idea what is isn't working. My only guess is there is some kind of conflict once it is loaded into an external swf. What would I do in this case? Thanks.I seemed to have figured it out. I changed the text box from TLF Text to Classic Text and selected Dynamic Text. Also changed the Actionscript up a little.
instead of just:
yourScore.text = numOfCorrect + " out of 5");
i did:
addEventListener(Event.ENTER_FRAME, displayFinalScore);
function displayFinalScore(event:Event){
yourScore.text = String(numOfCorrect + " out of 5");
Not sure which of these things fixed the issue but it is working now. Thanks for the help though! Now I just need to figure out the issue with the drag and drop. -
I am creating a Captivate project, basically, as a shell with
5 slides. Within each slide, I would like to insert swfs that I
have previously published. As a result, each of the 5 slides will
play while the embedded/inserted swf plays within. Have you ever
tried to do this? It seems to work only if I don't include a
skin--but I would like to include a skin on each of the swfs that I
have inserted.
Any ideas? Thank you.quote:
Originally posted by:
jdmosley
How do you revert a project back to Captivate 3 when you hit
a Captivate 4 limitation? Is there a simple way? I made a ton of
changes in Captivate 4 and don't want to have to re-do them with
the previously saved Cap3 version of the project. Thanks!
You could copy/paste the slides from CP4 to CP3 - we just did
that with a project. It doesn't retain all the slides settings (I
think the buttons / goto slide etc) needed to be configured again,
but it still beats having to redo the project from scratch in CP3
;o)
quote:
Originally posted by:
isv2009
Thanks for your reply.
It seems to work whenever the embedded swf does not have a
skin... and not work with a skin on it. Have you tried both cases?
Sorry no I haven't tried this with swf's with skin. I just
saw that your original question actually stated that, but I missed
that part. I would imagine that a skin with a second playbar could
mess things up in Captivate.
If you have Flash skills an idea could be to make a simple
"loader shell" which loads the animation you wish to import. That
way the levels of the two playbars would be seperated even more and
perhaps it would work.
/Michael -
So I've been nesting a lot of MCs within each other.
What I want to do is have a basic "image gallery," so to speak, that links to about 6 other SWFs I already have made. For the life of me I cannot think of how to do this properly.
The main thing is the button and the goto function. Is that even the right function?
Hopefully someone understands. This is time sensitive. Thanks.I don't know if it matters, but I would avoid capitalizing Event in... Event:MouseEvent
because Event is a class just like MouseEvent
I get the impression you are using the UILoader component--fair warning, I tend to avoid using components, so I can only reference the help files to try tio help. If you mean that code is not working for you, then I think you have to use the load method to actually load what you identify as the source.
var swf:Array = new Array("flash1.swf", "flash2.swf", "flash3.swf")
obama_btn.addEventListener(MouseEvent.CLICK, obama);
function obama(Event:MouseEvent):void
media_mc.source = swf[0];
media_mc.load();
You may be able to replace those two lines in the function with...
media_mc.load(new URLRequest(swf[0])); -
Print button - captivate swf within falsh swf
Hi I have a nice problem and I hope someone might have an
answer for me.
I am making an interactive tool book. The design,
backgrounds, button etc are all in flash. I have also done a quiz
in captivate which has a bank of 50 questions but only 20 random
ones appear each time you do the quiz.
As you cannot import a random quiz captivate file into flash
I have made a movie clip titled container that the captivate quiz
swf. file loads into. This all works without a problem. However I
have to make a print button also in flash so the user can print
their result page (the result page is apart of the captivate file).
I have tried every print Action script I can think of;
however, none of them print the results. The page prints with all
the flash created objects (background, buttons etc) but it will not
print the end results page that appears in the movie clip titled:
container, which is located in the middle of the flash stage.
Although if I click print in the flash player file menu it
does......
Can anyone help me or have I confused you all??
From SezMarkus,
I use "this." in the Actionscript, but I don't think that's the problem. In the attached file you'll see my problem.
Downloadable from:
http://www.dorna.nl/captivate_widgets/example_passing_variables_cp4.zip
http://www.dorna.nl/captivate_widgets/example_passing_variables_cp4.zip -
A friend of mine told me that I can take and create a swf
file and then pull it onto another swf file (ex: creating a swf for
the buttons and then the pages) he said that I needed to use action
script and to create a container for the other swf to load into? I
can't get a hold of him and was wondering if anyone could provide
some help.Mr. Ocean wrote:
> A friend of mine told me that I can take and create a
swf file and then pull it
> onto another swf file (ex: creating a swf for the
buttons and then the pages)
> he said that I needed to use action script and to create
a container for the
> other swf to load into? I can't get a hold of him and
was wondering if anyone
> could provide some help.
check loadmovie and loadmovienum in your help files for
details on usage of these
actions.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Possible to make embedded swf (in another swf) fill browser?
I have an .swf which is set at 100x100 percent and fills the
browser window. I have an embedded .swf within this .swf, and I
would like to be able to have the embedded .swf fill the browser
window and remain fluid (for different screen resolutions). This
has to be done from the embedded .swf.
I thought if I could retrieve the stage details of the parent
.swf from within the embedded .swf, then I could use these to
resize the embedded .swf - but I haven't been able to do this.
I'm plum out of ideas. Can anybody give me any pointers?
Many thanks.I may have my terminology mixed up. I have a pre-compiled
.swf that allows embedding of .swf's from a seperate .xml file via
a LocalConnection API. -
Hello Guyz.
i am working on Macromedia Flash 8 and i just want to call a external SWF when i press the button within another SWF file.......but the second SWF file play Externely............can any one knows the code.... AS2try this
http://www.actionscript.org/forums/showthread.php3?s=&threadid=28123 -
Loading External Swf with Other Swf Dependencies
I'm trying to load an old project into a new project via swf. My old project had local external swf dependencies.In other words A.swf is the old project swf and it loads in B.swf and C.swf. I want to load A.swf into my new project. All the .swf file are local and will be loaded locally. Using the url and loader to load the old project's swf into the new project, I get an error that says that the stage must not be null. I have put A.swf, B.swf, and C.swf all within the same folder together in the new project. Is the correct approach? I'd like to know if this is even possible and if so how should I do it? Thanks in advance!
Hmm I don't believe I have targeted the stage. Here's my code below.
package ExergameShell.screens
import flash.display.Loader;
import flash.events.Event;
import flash.net.URLRequest;
import feathers.controls.Screen;
import starling.core.Starling;
import starling.events.Event;
public class Leaderboard extends Screen
private var url1:URLRequest;
private var loader1:Loader;
public function Leaderboard()
addEventListener(starling.events.Event.ADDED_TO_STAGE, init); // necessary for all screens
private function init():void
url1 = new URLRequest("A.swf");
trace(JSON.stringify(url1));
loader1 = new Loader();
loader1.load(url1);
//Starling.current.nativeStage.addChild(loader1);
//loader1.contentLoaderInfo.addEventListener(starling.events.Event.COMPLETE, resetFPS);
private function resetFPS(event:flash.events.Event):void
Starling.current.nativeStage.frameRate = 60; -
How may load an external (html) file in swf? Anyone!!!!!
hi all,
How may load an external html file in swf? such as google.com in a movieclip.
anyone may help me.........????????With Flash, you can't do this.
Just with FlashBuilder and Air (something like HTMLLoader , not sure now)
I mean loading in a movieclip..
Of course you can open a page to display in a browser. -
I cant seem to use external video in my swf!
why wont my video work live but work locally?
Hard to say for sure but first you need to make sure that you have uploaded all the related files... the player .swf, the skin.swf, the .flv video file, as well as any javascript Flash detection file used.
If you've done all that and still no go, post a link.
Best wishes,
Adninjastrator -
Cross Reference within external Database using XREF API
Hi Experts,
Can we do Cross Reference within external Database using XREF API uses JDBC to access the Oracle Database Stored Procedures in SAP PI? How to use a JNDI Data source to access the DB and how to do the Connection Pooling will be done by the SAP J2EE server? Kindly let me know step by step proceedings.
Regards
ArchanaHello Archana,
It can be done with a Lookup call in a mapping.
Here's a little article about the topic in the SAP wiki:
http://wiki.sdn.sap.com/wiki/display/XI/HowtouseCrossReferencewithinexternal+Database
With kind regards
Sebastian
Maybe you are looking for
-
How to see Shared Members in Smart View on Ad-hoc Analysis mode
Hi All, We are using Hyperion Planning v 11.1.1.3. For the alternate hierarchy we have created shared members. But in Smart View we are unable to see Shared members hierarchy in Ad-hoc analysis mode. Is this limitation in Hyperion Planning? Or Is the
-
So I posted this in the apple forums... No response and it's been a couple days... Anyon have any idea how to fix this? I'm using the latest OSX, with the latest CC versions. I'm using a late model Macbook pro. When I'm in photoshop and i use the alt
-
I'm not sure how to appear my campus to this list. I think our campus should occur in "Universities & Colleges". But all the 3 categories don't include my campus. See, Is there any setting in PSM? anybody know how? My campus site provider page is at,
-
Thai Characters printing in special character for regular thailand fonts
Hi Experts, In smartform, I hard coded THAI characters and I used the thai fonts (THANGSAN, THVIJIT, THDRAFT) in Character format to dispaly the THAI characters. Issue: In print preview, thai characters are displaying correctly for font style BOLD. B
-
IPad or MacBook Air for Writers
So, come March, with the anticipated arrival of the long awaited and less-rumored iPad 3, I will probably be joining the throngs of people eager to get my hands on and fall in love with another Apple device. But wait! As I mull over the decision to