Loading a flex swf into a spry tab area
I have a spry tabbed panel in one of the panels I am
attempting to load an swf that I created using Flex builder. The
swf runs fine when run standalone but from within the spry tab
although it does load and run correctly I get a nasty error message
in both Firefox and Explorer :
Exception caught while loading
/azek-landing-page/bin-release/azekLandingPage.html: [Exception...
"Access to restricted URI denied" code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)" location:
"file:///C:/Sites/interstate/wwwroot/SpryAssets/SpryData.js Line:
94"]
I read somewhere that this has to do with Ajax and some cross
domain issue, but at this point I'm not sure what to do.
Any suggestions would be appreciated.
Thanks
Hi, You probably meant to post your thread in the Flash Forum or perhaps the Flex forum. I'm not sure, but this is the Flash Player Forum.
http://forums.adobe.com/index.jspa This gives the list of Forums.
Thanks,
eidnolb
Similar Messages
-
Flex swf in a spry tabbed panel
I have a spry tabbed panel in one of the panels I am
attempting to load an swf that I created using Flex builder. The
swf runs fine when run standalone but from within the spry tab
although it does load and run correctly I get a nasty error message
in both Firefox and Explorer :
Exception caught while loading
/azek-landing-page/bin-release/azekLandingPage.html: [Exception...
"Access to restricted URI denied" code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)" location:
"file:///C:/Sites/interstate/wwwroot/SpryAssets/SpryData.js Line:
94"]
I read somewhere that this has to do with Ajax and some cross
domain issue, but at this point I'm not sure what to do.
Any suggestions would be appreciated.
ThanksI have a spry tabbed panel in one of the panels I am
attempting to load an swf that I created using Flex builder. The
swf runs fine when run standalone but from within the spry tab
although it does load and run correctly I get a nasty error message
in both Firefox and Explorer :
Exception caught while loading
/azek-landing-page/bin-release/azekLandingPage.html: [Exception...
"Access to restricted URI denied" code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)" location:
"file:///C:/Sites/interstate/wwwroot/SpryAssets/SpryData.js Line:
94"]
I read somewhere that this has to do with Ajax and some cross
domain issue, but at this point I'm not sure what to do.
Any suggestions would be appreciated.
Thanks -
How can I load an external SWF into a movie clip that's inside other movie clip?
Hi.
I creating my first flash (actionscript 3.0) website but I'm
stuck with a visual effect I want to create.
I have a window on my website called contentWindow. Every
time you click a button this window is supposed to leave the stage,
load the requested content and return to the stage.
The sliding window is a movie clip with 83 frames, 21 to
enter the stage, 21 to leave the stage again, 20 for nothing (its
just to simulate the loading time) and 21 to return to the stage.
Now my goal is, when the user clicks on a navigation button,
the window exits the stage, loads an external SWF with the content,
and then returns to the stage.
I've the "window" movie clip with an instance name of
"contentWindow". Inside there is another movie clip with an
instance name of "contentLoader". The content that the user
requested should appear inside the "contentLoader".
Now, when the contentWindow leaves the stage, I get this
error message:
quote:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at rwd_fla::MainTimeline/trigger()
If I switch
"contentWindow.contentLoader.addChild(navLoader);" for
"contentWindow.addChild(navLoader);" it works fine, but the
external SWF doesn't move with the window.
How can I load an external SWF into a movie clip that's
inside other movie clip?Hi,
Recently, I have been putting together a flash presentation.
And I am just wondering if the following might help you, in your
communication with the said swf file:
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
onComplete);
function onComplete(event:Event):void
event.target.content.thinggy_mc.y -= 100;
Not the best example, but this allows you to target a mc
within an external swf file. I think if you look up this code, you
will have an answer ;)
Kind Regards,
Boxing Boom -
Loading an external .swf into an empty container
I'm loading an external .swf into an empty container.
Everything seems to work fine except when the .swf is loaded both
seems to be running extremely sluggish. The button rollovers are
slow, the page transitions..everything. I can't figure out why it
is doing this. Both .fla's have the same frame rate. Is there some
known reason why this might happen?well, we've tried that and it is actually a little bit worse.
Normally i test everything in a browser window anyway. I'm thinking
it might be a naming issue of some variable or something that is
the same for both fla's....not sure yet though. -
How do you load an AS2 swf into AS3?
I think this is the way around my dilemma. How do you load and AS2 .swf into an AS3 file?
thanks again!
Stevecheck that code in your last thread:
What is the code to load a .swf file in AS3 on the same layer? -
How to embed Flex swf into existing Flash?
Hello,
I am brand new to Flex, so I desperately need your help!
I have an existing Flash file, written in Flash 8. When I
open this file, it plays in Flash Player 9, the latest player I
have installed on my machine.
This Flash file tries to dynamically load about.swf, a stub
file created by the designer. It works.
I am a programmer, so I want to create my own about.swf in
Flex 2 and then substitue the existing about.swf written in Flash
with my about.swf written in Flex. The problem is that the existing
Flash file just displays a blank when I try loading about.swf
written in Flex.
Is there any way to load SWF file written in Flex 2 into an
Flash file written in Flash 8?
Thank you for your help!!!
EvgueniI think no.
Flash 8 uses Actionscript 2.0, but Flex 2.0 uses AS3. I think
these will be incompatible, as they use different VMs.
If the two swf's exist individually, in their res[pective VM,
you can communicate between them using LocalConnection.
Tracy -
Loading an AS2 Swf into an AS3 project
I have a need to be able to load legacy AS2 SWF's into a new
AS3 project. I know that this is not readily possible, because you
can only communicate between the two via the LocalConnection class.
So, what I have done is to create an AS2 proxy SWF. This SWF will
handle the loading of all legacy SWF's and act as a middleman to
pass the function calls between the pre-compiled SWF and the new
SWF using the LocalConnection class. The new SWF also needs to be
able to load AS3 SWF's, though.
Because of this, I have the need to detect the AS version of
the loaded SWF. If 1 or 2, then change the source to the
AS2Proxy.swf, if 3 then simply load it.
I have written the following code. My problem comes in when
the init event fires. Regardless of the compiled version of the
loaded SWF, it always traces 3 as the AS version.Alright, I solved this problem, only to come up with many
more.
To solve this problem, I needed to point to the loaderInfo
object of the UILoader's content. So:
simulation.content.loaderInfo.actionScriptVersion.
Now the proxy loads correctly, but I start getting errors
immediately. Let me paste some code to show the next steps:
First off. I immediately receive a StatusEvent error, though
the path gets sent into the proxy and loads correctly.
Next, when the complete event fires in the AS2 SWF - it sends
a completion back up to let the AS3 SWF know that it finished (and
any handling that needs to happen at that point.) I receive the
following error:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback loadSwf.
error=ReferenceError: Error #1069: Property loadSwf not found on
com.applied.flash.events.AS2Connect and there is no default
value. -
LoadMovie- loading an external swf into movieclip in AS3
Im extremely frustrated.........im trying to do something
that was once very simple, which has now become over complicated
unecessecarily.....i want to do a simple loadMovie type action and
load an external clip into a movieclip called ph. my AS2 code would
be:
loadMovie("ExternalMovieClip.swf","ph");
or
on(release) {
loadMovie("ExternalMovieClip.swf","ph");
This no longer works. Can somebody tell me the new code that
i would use with AS3 to do exactly what i just demonstrated? I
honestly dont even want to touch AS3. The only reason i want to use
it is because it makes skinning the components SOOOOOO much easier
than AS2. That is the one and only reason im trying to convert to
AS3. All the new load movie AS3 examples ive seen on google look
like half a page long to do what i used to do in 2 lines. There
must be a simpler and much easier way. I am a designer. It looks to
me like Adobe went back to making flash for programmers only again
leaving us designers out of the mix. Someone please help me, im
desperate. I also have other old code that im sure im going to have
to convert to AS3 for it to still work, and i may eventually need
help with that as well, but ill stick with this loadMovie problem
for now. Any and all help is appreciated. Thankshave a look here:
http://www.smithmediafusion.com/blog/?p=381
use this:
var i =new Loader();
i.load(new URLRequest(”yourSwf.swf”));
myMC.addChild(i)
myMC is the name of your clip on the stage.
Dan Smith > adobe community expert
Flash Helps >
http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv -
Loading an external SWF into movie?
I am trying to laod an SWF into and empty movie clip using no
human interaction. I.e the ovie laods once a certain point in the
timeline is reached.
Here is the code I have
Can anyone help?i dont see how that code would work at all, to be honest...
But, there are sooo many variations of a pre-loader, that it
wouldnt surprise me if it did work.
your formula is wrong. it should be...
Math.round((loadedbytes/totalbytes) * 100)
by your code i see that you are sending the playhead to the
frame equal to the ammount loaded.
In this case, you need the ammount loaded to be a WHOLE
number, and not decimal numbers, as you can't say
gotoAndPlay(5.22984749); for eg..
ok this code should go on the first frame of the SWF you are
loading into your main SWF.
If its not there...it needs to be there.
second: this pre-loader does what it's supposed to...but it
doesnt specify the "who" part of the code.
try thiese 2 alternatives..
loadedbytes = this.getBytesLoaded();
totalbytes = this.getBytesTotal();
frame = int(loadedbytes/(totalbytes/100));
if (frame > 100) {
frame = 100;
if (loadedbytes == totalbytes) {
// this takes you to the next scene
this.gotoAndPlay(5);
OR
this._lockroot = true;
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
frame = int(loadedbytes/(totalbytes/100));
if (frame > 100) {
frame = 100;
if (loadedbytes == totalbytes) {
// this takes you to the next scene
_root.gotoAndPlay(5);
let me know how you go. -
Loading an external swf into my parent swf?
Does anyone know how I can load an external .swf file into my
parent file? I have tried to use loader actionscript but think I am
using the incorrect script or putting it in the wrong place? If
anyone can tell me the script and where to/how to use it that would
be amazing? Thanksthanks GWD!
I am using the unloadMovieNum(); command, i have loaded the
child into level 5 of my parent swf. the parent has multiple scenes
this one with a layer with a stop(); action and another layer with
the loadMovieNum("portfolioone.swf", 5); script. it loads the child
perfectly. The child has a number of pictures in it and a back
button at the end. I have been adding the
on (release) {
unloadMovieNum(5);
script to the button which unloads the child but stops
because of the stop action in the first frame of the particular
scene within the parent. I want to be able to add a script to this
button which will take me back to a labeled frame in a particular
scene of the parent, I tried the this.removeMovieClip(); but
doesn't seem to be working for me, Thanks for the reply, hope you
can help me further?? -
Loading an AS2 swf into a AS3 project?
I have an AS2 swf that is merely an image gallery made with a few components. I tried loading this swf into an AS3 project I am working on and it seems to load in and play properly in my AS3 file. I'm not looking to communicate with the AS2 swf with AS3 code, I just want to display it and be able to use the component buttons in the AS2 file that play or stop the images from being played. I was wondering if using this will cause any potential issues in my AS3 project. It seems to render and work fine on my machine. Thanks
as2 swfs will play without problem when loaded into an as3 swf.
-
Loading an extranel SWF into movie
Hi
I'm trying to load an external SFW into my empty placeholder
moveiclip. I can achive this fine using buttons and an onClick
event, but how can I have this happen at the start of a movie clip
with no human interaction. The code I am trying is below but I am
just getting a blank SWF? Can anyone help?You don't actually need the onEnterFrame wrapper. Just put
the loadMovie code int he first frame of your movieclip. As soon as
it loads, it will run through all code there and execute it. Just
make sure that the target movie clip has actually been initialized
first!
Good luck! -
Spry Tabs are no longer showing after upload
I was just recently finished working on my website and had created a spry tab to use for 4 different forms. Now when I view the page, the tabs are not showing but the four forms are all on one page.
I remember seeing in split view </div> out to the side of my layout in layout view and I thought it was an extra div and deleted it. My guess is that's why my form is no longer showing the tabs.
Any help on where I need to add the </div> back in would be MUCH appreciated.
Here is the page http://www.munchkinsplace.com/custom-quote-form.htmlI removed all the content from each Tab and created a new page and inserted a new Spry Tab to compare the code but I'm still not seeing what is different. It appears that all my divs are correct. Am I missing the obvious?
Here is the page link
<div id="mainContent">
<form action="contactform.php" method="post" enctype="multipart/form-data" name="customquote" id="customquote">
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">Hair Bow</li>
<li class="TabbedPanelsTab" tabindex="0">Hair Bow Holder</li>
<li class="TabbedPanelsTab" tabindex="0">Tutus</li>
<li class="TabbedPanelsTab" tabindex="0">Diaper Cakes</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">Tab Contents 1</div>
<div class="TabbedPanelsContent">Tab Contents 2</div>
<div class="TabbedPanelsContent">Tab Contents 3</div>
<div class="TabbedPanelsContent">Tab Contents 4</div>
</div>
</div>
</form>
</div>
<p> </p>
<div align="left"></div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
<!-- end #mainContent --> -
Working on a thesis project due soon... Created flash actionscript 3.0 swf for home page, text plus image, previews beautifully in Flash Publish, stored in my root folder, previews great when I open it in the root folder, dragged and dropped it into my dreamweaver code page, within a spry widget framework, size is perfect. and upon view in design or browsers or browser lab, I just get a nice empty white box. In design view, I see the F symbol and when I click play in properties, I get a message that says "Unable to find the plug in that handles this media type. Dreamweaver looks in both the "config/Plugins folder and the plug in folder for each o your installed browsers". I have Flash Professional CS 5. Reinstalled it just in case that was the issue with the plug in and didn't resolve the problem. Dreamweaver version is CS5. Using a template with spry widget panels. Before I inserted the swf, the preview in browsers and browser lab was fine on the spry widget and background. PC is windows, 32 bit, with ms office suite 2010 upgrade on it. Appreciate any advice.
my first trace on the hz position and vt position outputs but the trace for "scroll positions" and "new scroll positions" is not outputting.
i recieve this output when i click the 'next' and 'back' buttons within the menu9.SWF.
[Event type="iwannaresetscrolling" bubbles=true cancelable=false eventPhase=2]
does this seem right?
import fl.events.ScrollEvent;
aSp.setSize(600, 350);
function scrollListener(event:ScrollEvent):void {
trace("horizontalScPosition: " + aSp.horizontalScrollPosition +
", verticalScrollPosition = " + aSp.verticalScrollPosition);
aSp.addEventListener(ScrollEvent.SCROLL, scrollListener);
function completeListener(event:Event):void {
trace(event.target.source + " has completed loading.");
// Add listener.
aSp.addEventListener(Event.COMPLETE, completeListener);
aSp.addEventListener("main swf", scrollResetListener);
function scrollResetListener(event:Event):void {
trace("Scroll positions", aSp.horizontalScrollPosition,aSp.verticalScrollPosition)
aSp.horizontalScrollPosition = aSp.verticalScrollPosition = 0;
trace("New scroll positions", aSp.horizontalScrollPosition,aSp.verticalScrollPosition)
aSp.source = "menu9.swf"; -
hello,
I am making a website for myself and am having an issue with loading an swf and commanding the swf to go to a certain frame. Bassically I have one page, that has 7 seperate small thumbnail images on it which are buttons, each is commanded to open an swf file labelled slideshow. The slideshow swf showcases the thumbnails seperatly in a much larger scale, then the user can look through the images using previous and next buttons.
this is the code i have so far:
on (release) {
loadMovie("meglarge.swf",target_f);
So each image or Button has this code on it. Then the movie "slideshow.swf" is loaded into the target destination "target_f"
Although each time you click on any button it starts directly on the first frame of the slideshow. Which is always the first pictue. I want the user to be able to click on any image on the main page and it will load that frame of the slideshow first, which can then be navigated to the other pictures using forward and back buttons.
I hope this makes sense, and i thank you in advance for the helpIn order to be able to control the loaded file you have to wait until it has fionished loading until you can command it to do anything. Using loadMovie does not support any ability to determine when the file has finished loading. You need to use the MoiveClipLoader class instead, where you can make use of the addListener method to detect when loading is complete. If you look up the MovieClipLoader.addListener method in the help documents there is an example there showing how to use it.
Maybe you are looking for
-
hey guyz! i have a requirement..... in one enhancement i have added some 7 fileds with check boxes in a screen of which 1 must be checked while creating WBS. if niether of them is checked we have to throw a message. 1) my Q is how can we check that 1
-
Hi, I have a query like this below which will return 25 rows when i run this in a SQL work shop when i execute this in Line graph it only shows data for 15 rows remaining 10 rows are missing please suggest me what would be the mistake Here no dates a
-
Hey everyone. I've got a question that I see has been asked many many times by others, and I'm sorry to repost the question. In the past, people who have asked about this issue were mostly interested in finding out how music can be transferred off th
-
Dynamic display based on pageName
Is there any way to dynamically pull content from Content Server based on the pageName? I've tried the following code, which apparently is invalid because you can't have nested xml tags. Is there any other way I can display some text based on the pag
-
MY ICLOUD EMAIL IS WRONG HOW DO I CORRECT IT
icloud email is wrong need to correct it?