Load a swf-access network only
I have created a main swf which can access local files only
to load another swf that can access network only;
the two swf are all in local,when I test it in Flash CS3 ,it
is OK;but when play the main swf in my computer ,it can not load
another swf file(access network only) ,thanks for your help!
Im trying to accesing to the functions of Slide4.swf in http://b.elementfx.com/ from other server, in the same server i call the functions and it works, but it doesnt from other.
Similar Messages
-
Newbie issue - swf (accessing wsdl) only works from bin-debug
I have a Flex project accessing a CFC Webservice.
When i try to run it or debug it or put it on the server (swf), i get zero - it just waits for the web service and returns nothing.
BUT! when i click on the swf in the bin-debug, it actually works - i get the data back from the webservice.
I tried copying the whole dir to another spot - and it doesn't work.
Any ideas on this one?!Update: Found this post and tried adding local and webservice URL to Flash player 'safe sites' but no go.
http://stackoverflow.com/questions/1454038/flex-application-works-in-bin-debug-but-not-in- bin-release -
How to setup the guest network just access internet only (not touch in internal server)
I had setup the AirPort Extreme in basic and guest network, but observed the guest can access to our server currently, for the security issue, we can setup the guest network to access internet only? pleae advice and thanks
By default, a properly configured Guest network on the AirPort Extreme only allows network clients to access the Internet. No access to the "main" network's resources should be available.
This is assuming that the AirPort Extreme is the only or "main" router in your current network configuration. -
Accessing resources in loaded/external SWFs
I've been looking around for an effective way of solving this
issue, but without much like. What I'm trying to accomplish is
creating a container for my newest Flash site in main.swf and
loading other swf files that provide resources that modify mcs,
functions etc. of the main.swf. I plan to have main.swf hold my
background, logo etc. then each subrelated page as contact.swf,
index.swf to be placed on top of that swf.
I did find this thread:
http://www.kirupa.com/forum/archive/index.php/t-241538.html
but all I managed to get from it is how to reference elements in
the child from the parent using Loader.content. What I'm trying to
figure out is how to reference from the child to the parent. ie. if
I want to modify the background of the main.swf which is contained
in a function called changeBackground().
To add some more complexity I am trying to keep as much of my
code in .as files that are placed in the Document class. So for
each main.fla I have a main.as and index.fla is index.as. In my
index.as script I need to determine how to access objects/functions
contained in main.as.
I HOPE that I've explained that all properly. If I'm being
confusing or using inappropriate terms - apologies.First, you need a loadComplete function in your icMain class
to get called after the swf is loaded. You set up that relationship
already in this line:
indexLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loadComplete);
so you need this:
private function loadComplete(event:Event):void
then, move these functions into the loadComplete function as
you have to wait until the swf is loaded before setting the
reference:
var indexPage:indexPage = indexLoader.content as indexPage;
indexPage.icMain = this;
In your indexPage class, you need to move your set mainSWF
function outside of the indexPage function. Also, the type of
object you are passing, according to your code, should be icMain.
So, instead of this:
public function indexPage():void
public function set mainSWF(icMain:MainSWFDocumentClass):void
_icMain = icMain;
Do this (notice I changed the name of your variable to avoid
name conflict. using the convention of starting class names with a
Capital letter would help too):
private var _mainSWF:icMain;
public function indexPage():void
public function set mainSWF(mainSWF:icMain):void {
_mainSWF = mainSWF;
Here is the rewritten icMain class:
package
public class icMain extends Sprite
public function icMain():void
var indexRequest:URLRequest = new
URLRequest("index/index.swf");
var indexLoader:Loader = new Loader();
indexLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
loadProgress);
indexLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loadComplete);
indexLoader.load(indexRequest);
private function loadComplete(event:Event):void
var indexPage:indexPage = indexLoader.content as indexPage;
indexPage.icMain = this;
And here is your rewritten indexPage class:
package {
public class indexPage extends Sprite
private var _mainSWF:icMain;
public function indexPage():void
public function set mainSWF(mainSWF:icMain):void {
_mainSWF = mainSWF; -
Out of the blue, my ITouch is unable to access my wireless network ONLY when my PC is on (the PC is connected via Ethernet cable, and has no wireless capabilities that I know of). What gives? When the PC is turned off, everything is totally fine. I\m stumped.
Does the iOS device connect to other networks?
Does the iOS device see the network?
Any error messages?
Do other devices now connect?
Did the iOS device connect before?
Try the following to rule out a software problem:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on your router
.- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
I suspect a problem with your router. Try changing the security. First use no security as a test.
- iOS: Recommended settings for Wi-Fi routers and access points
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Error reads. Could not access network location %APPDATA%\\
Could not access network location %APPDATA%/
With that particular variety of 1606 (it's a 1606 error message even though the 1606 error message number isn't returned by the iTunes installer), the following Microsoft document is worth a try:
[You receive an "Error 1606" error message when you try to install or remove a Microsoft program|http://support.microsoft.com/kb/886549] -
How to Open or load the swf file only in Java application
Hai.,
How I Secure my Flash SWF files(AS2 and AS3).?
The SWF files are only work through java application. When the java call the swf file that time only it will work otherwise it won't work including browsers also..I attached the file to this post. It would be great if you could send me the pdf version of the block diagram. It's not totally finished, but that doesn't matter, I can complete it in school.
Thank you, really, thank you.
I know that this is not the purpose of this forum, but it was the easiest solution for my problem.
Attachments:
Programma transportmiddel.vi 129 KB -
Design/gallery website - loading external SWF asset on splash page
Hello all,
This forum has been such a help with my website, i've found the answers to hundereds of questions but I've hit a bit of a brick wall and I wonder if anyone can help me.
I have recently built a website http://www.intivision.co.uk/ using illustrator/flash/flash catalyst. It's still a work in progress and I'm happy with the gallery pages and general functionality but I'm having major issues with my splash/load screen and a few other niggles.
The animation on the front page is a looping photo gallery i created in flash (as a .SWF) and imported into Catalyst. It is designed to play (and loop) indefinately after 2seconds of loading the title page. Half the time I access the site the animation does not load at all and just shows a blank screen and my logo. It will appear once the page is refreshed. A very bad first impression.
I have a feeling this is because the SWF is externally loading the asset (which is only 350kb). Is there a solution or a way to imbed this animation so the entire project won't 'play' until this intro is loaded?
Thanks - Tom
ps Any other comments would be greatly appreciatedThanks for taking your time! Much appreciated.
I like not complicated :-) So it is now loading from the start - stretching over the whole timeline. How do I controll the visibility during the "HOME" = that is invisible?
This is the code I use to load the external swf:
var Xpos:Number=0;
var Ypos:Number=0;
var swf:MovieClip;
var loader:Loader=new Loader();
var defaultSWF:URLRequest=new URLRequest("main_movie_241x700.swf");
loader.load(defaultSWF);
loader.x=Xpos;
loader.x=Ypos;
addChild(loader); -
Good evening all,
I think this is a complex issue.
I have adobe air application which loads a SWF I made.
Inside this SWF I have used the "component LOADER" to load
something with "ContentPath=image.jpg" for example.
But the swf loaded in the Adobe air works, but does not load
the "ContentPath image"...
(it does load and display it when it this swf is run outside
adobe Air)
I need it to be dynamic like this, so if eventually I Include
it in the package it won't help much...
I just intend to replace an image background from this loaded
swf file!
Thanks!
Edit:
At this time of the editing, I fear and realize
something....I have been using Actionscript2 for the .SWF file,
could it be why it does not works???
If its problematic, is there a simple way like telling it to
read actionscript2, rather than transforming everything??
edit2:
I found this on the official AIR FAQ:
Will Flash version 8 and below SWF files run in Adobe AIR?
Yes. However, the Adobe AIR APIs are only exposed to Flash
content via ActionScript 3 / AVM2, and thus Flash 8 / AVM1 SWFs
will be able to run, but they will not have direct access to the
Adobe AIR APIs.
source:
source
faq Adobe
it seems it should works!!??
Edit3:
nope I confirm at least some code made in Actionscript2
works.
I am sure this code needed to be changed for working in
actionscript3, so "actionscript2" code works in Adobe Air.
The problem of not loading my image must come from something
else!!??Good Morning all!
Hilarious....
I tried so much to think maybe Adobe Air does not like a SWF
using actionscript2, or it does not load any "external image from a
swf", etc...
None of that!
I just in FLASH in the ComponentLoader....I did put simply
the ContentPath at "myimage.jpg"....
Of course I had to use the absolute path like
"c:\\myfolder\\myimage.jpg"
Of course aswell it works now!!! -
Flash builder doesn't load on flash player 11,only version 13
Hi everyone
I developed a swf player on flex builder 4.5, over flex sdk 4.6, using the minimum version required by the sdk(11.1)
But for some reason, the script code only works fine on flash player 13.
What am i missing?
On the flash player 11 this is written by swfobject.js
<object id="CorePlayer" name="CorePlayer" width="0" height="0" type="application/x-shockwave-flash" data="assets/CorePlayer.swf"><param name="allowscriptaccess" value="*"><param name="allowfullscreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="endpoint=&hash="></object>
And this is the javascript code using swfobject.js way:
var swfVersionStr = "11.1.0";
var xiSwfUrlStr = "playerProductInstall.swf";
var flashvars = {
endpoint: "",
hash: ""
var params = {
allowscriptaccess: "*",
allowfullscreen: true,
wmode: 'transparent'
var attributes = {
id: "CorePlayer",
name: "CorePlayer"
swfobject.embedSWF("assets/CorePlayer.swf", "flashContent", "0%", "0%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);
swfobject.createCSS("#flashContent");
But doesn't load corePlayer.swf on the networks resources from chrome.
Any ideia about this issue please thanks for your attention!!
Also some others tecnichals settingsFrom: Bill Boggs
Sent: 01/04/2014 1:13 PM
To: [email protected]
Subject: Re: Flash player doesn't load on PBS sites
Hey Mike,
Those folders do exist. I did a clean install, checked to make sure those folders were there, but still get the same results with video on PBS sites. Seems to work everywhere else though. When I right click on the player space, besides the flash player settings and “about” links, there is also an “about JW player” link, if that means anything.
Bill -
Can I load a swf into my Flex app that loads other swf's?
The code below loads an AS2 swf into my Flex mobile for IOS app and it works. If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
initialize="init()">
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
private var loader:Loader = new Loader();
private var myComponent:UIComponent = new UIComponent;
private function init():void{
myComponent.percentHeight = 100;
myComponent.percentWidth = 100;
loader.load(request);
myComponent.addChild(loader);
player.addElement(myComponent);
]]>
</fx:Script>
<s:Group id="player"
height="100%" width="100%"/>
</s:Application>
But if that AS2 swf loads other swf's, they don't load or display. My FlashBuilder debugger reports no errors or security sand box violations. I'm using the most elemental code in my AS2 swf so as to not cause problems. This is it in its entirety:
this.onLoad = function(){
_root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app. They also load and run fine if I cut out the AS2 swf and access directly from my Flex code. So I know there isn't a path issue. More likely not accessing the right layer in the AS2 swf from Flex or something. Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console. When run console just reports:
[SWF] SwfMobile.swf - 2,639,761 bytes after decompression
[SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
Is there something inherently wrong with loading swf's that load other things? Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue. Just the act of embedding a swf that loads other things seems to be the problem.Ah, yes. Using an AVM1 SWF could prove difficult...
I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
*a few moments later*
Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
Keep me posted! -
hi,
i want to create a symbol "rootSymbol" with several instances
(e.g. "instance1_a", instance2_a", "instance1_b") of other symbols
(e.g. "aSymbol", "bSymbol") in it. let's say, i am not a developer
(in fact i am, but let us assume that i am not) and i am just using
the flash cs3 ide. i'd like to deliver a ready made swf(+swc)-file
to give it to the developer.
my questions are:
1) what should i do to make my instances become accessible
for the programmer, which only gets my swf+swc?
2) from the point of the developer: What is the best way to
load the swf and place the "rootSymbol" on the stage (addChild, so
far so clear) and get access to the instances? (without getting
referenceerror 1056 e.g.)
thank you
cu markusIn addition to James answer, I would also point out that any
object you create in your SWF is an object that can be referenced
by a developer using a statement like:
var inatance2_a:rootSymbol = new rootSymbol();
addchild(instance2_a);
If you choose to do this, you will have to change the linkave
on your symbol (right-click on the symbol in your asset library and
choose Linkage...). Check the box labeled Export for ActionScript
and make sure that the class box says rootSymbol.
Hope this helps. -
Loading External SWF and setting variables
Hello Everyone.
I'm sure you are all a where of the FlashVars attribute for
Flash embeds which holds variables for SWF's when they are
rendered. I'm attempting to load an External SWF dynamically
from within my own SWF and need to provide it with the values
normally stored in the FlashVars. For the example below I
wait until the External SWF is completely loaded using the
onLoadInit event from moviecliploader and then i attempt to
set the required variables that the loaded SWF needs. This works
great in test and debug mode (ie. Test Movie and Debug Movie
from the Control menu), but when i publish my FLA to SWF and run
the SWF the variables will NOT get set in the loaded External SWF.
From my readings ive people have mentioned that the player is only
able to access Methods of an External SWF. If this is the case then
how do they expect people to set the FlashVars of dynamically
loaded SWFs? I investigated the loadVariables procedure as well and
had the same results in test mode and was wasn't reliable because
of timing issues.
The sample source is below... if anyone has any ideas or has
come across this issue before, I would really appreciate some
insight.
Thank you in advance for your time.
var loader_mc:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
loader_mc.addListener(mclListener);
mclListener.onLoadProgress = function(target_mc:MovieClip,
numBytesLoaded:Number, numBytesTotal:Number) {
// DO NOTHING
mclListener.onLoadComplete = function(target_mc:MovieClip) {
// DO NOTHING
mclListener.onLoadInit = function(target_mc:MovieClip) {
// WORKS IN TEST MODE NOT IN PUBLISH/SWF MODE
target_mc._root.param1 = "value1";
// WORKS IN TEST MODE NOT IN PUBLISH/SWF MODE
_level0.container_mc.param1 = "value1";
this.createEmptyMovieClip("container_mc",
this.getNextHighestDepth());
container_mc._lockroot = true;
loader_mc.loadClip("somecoolflash.swf", container_mc);I've tried that as well and it behaves the same as onLoadInit
... Works when i test but doesnt when i publish to a swf. I think
this is security related and the flash player just cant write to a
loaded swf and set variables. -
Window 8.1 system unable to access network shares via VPN connection
Is there something inherent to Windows 8.1 that prevents it from accessing shares on a domain?
I know that it cannot join a domain, but does that also mean that it cannot access shares which are on a domain?
My problem is that I have several user that are running windows 8.1 that are connecting to our network via a VPN.
The users have domain accounts but their computers as windows 8.1 cannot joined to the domain.
So to access network shares they have to use their domain credentials to create a VPN connection.
Once connected the user can RDP to systems on the domain using their domain accounts, so I know that their user names/passwords and permissions are correct. They can access these systems using the computer name, so I don't feel that I have a DNS issue.
They can see the shares on our file server, but when they try to access their departments shared file, they receive an access denied message. There are a few shares that are completely wide open, shared to all users and all departments but they cannot access
those shares either.
You can ping the file server, from the the client when they are connected to the VPN but you just cannot access any of the shares.
So...
I am thinking that it has something to do with windows 8.1 and not being able to join a domain, but I cannot find anything to explicitly support this thought.
Other users running a variety different OS (windows 7, OSX, Linux) can all access the shares without any problems via the VPN, so I am a little stumped.I have done some more testing and oddly enough I can map a drive if I use the IPaddress, but not the computer name, when checking the check box "connect using different credentials"and providing they users domain credentials.
This seems to point to a DNS issue, one would think, but I can hit the file share server by name \\fileserver.dev.lan
I can see all the shares, so dns seems to be fine right?
So I don't understand why I can map a drive using do the IPaddress and not the machine name, but yet I can see and ping the server by name?
When I try to create a mapped drive by machine name I receive the following message:
Windows cannot access \\fileserver.dev.lan\all
You do not have permissions to access \\fileserver.dev.lan. contact your network administrator to request access.
But if I use the \\x.x.x.x\all using the very same user and password I get connected with no problem.
This only seems to happen on windows 8.1, which leads me to think that has something to do with OS.
I am thinking about upgrading to windows 8.1 pro, but I don't want to go though the hassle and expanse is the OS is not the problem. -
I use Network Solution's Website Tool Builder to manage several websites. Since upgrading Firefox to 5.0.1, some of the pages no longer load and therefore I can't edit them. The sites come up okay in the browser, but not in NetSol's editor. When I called their tech support, they said it was a Firefox problem. They said I need to use Firefox 3.6...Is there a way for me to get a copy of that version of Firefox?
I need to access Network Solutions website builder too. It isn't compatible with Internet Explorer v9, Chrome v13, or Firefox v5! I believe Firefox v6 is out now. This is a Network Solution's problem. What's involved in rolling back? Can you still get add-ons, plugins, and extensions for such an older version? You can't save your personal preferences can you?
Maybe you are looking for
-
Possible bug when creating multiple detail view objects
using jdev 11.1.1.0.0 to build jsf/adf applications. I wanted to report what seems like a bug in 11g. I have a parent table which has two child tables. After creating the appropriate entities, associations, views, and view links, the app module looks
-
I've just updated my iTunes to 11, and now my playback shuts off on Apple TV after a few songs. My Apple TV is up to date and everything worked just fine yesterday. I've restarted everything and think I've checked all settings that might affect
-
I have a MuVo Slim GP MP3 Player and have problem with his memory size. One Day I turn on my player and he show me 0 music. I connect it to my computer and he recognize it. But the Memory dri've dont opening like hdd dont have a partition. I have cha
-
Subtitle missing in iMovie export
I imported an m4v file into iMovie in order to normalize the volume as well as add chapters, and export it as a file. My source file has subtitles, but my destination (exported file) doesn't. After trying back and forth, I figured out that it all has
-
I have updated the safari to 6.1.2(8537.74.9)
I have updated the safari to 6.1.2(8537.74.9) and in preferences->security tab, allow all other plugins option is not visible as it was there in the prrvious version of safari. I think due to this some of my applications (flash/flex) are not working.