Mc.play () mc.stop () and swf file loaded AS2 works do not?
Hello
I am trying to load the swf file in another field using MovieClipLoader AS2 and then try to play and stop the parent SWF swf file load but it does not work on the field. It is working perfectly fine in pc local url i.e. file:///C:/Users/Sunil/Desktop/test/index.html (work as expected)
But same time I put my setup all embed in html page then it doesn't work. Please see the newsletter link below.
http://divinestreaming.com/projects/test/ - does not
file:///C:/users/Sunil/desktop/test/index.html (Work as expected)
Rest all the AS2 MovieClip properties work as expected but play() and stop() does not.
If I put the swf file in the same domain, then it works as expected but even time when I try to load the SWF to another area of my field so he doesn't.
Please tell us how to solve this problem.
Best regards
Sunil
you have errors in your tracing instructions, but who must be artifacts of forum or your code would not work locally.
in any case, you should probably a Security.allowDomain () statement in your loaded swf file.
Tags: Adobe Animate
Similar Questions
-
index.html - SWF file doesn't work is not in the browser
The navigation button on my page intro Flash/SWF (www.benscarrillustration.com) does not work in web browsers. Who do not properly.
I have the following 3 files in my cPanel Manager of files...
1 index.html
2 Ben Scarr Illustration.swf
3 Ben Scarr illustration.html
<! DOCTYPE html >
< html >
< head >
< meta charset = "UTF-8" >
< link rel = "shortcut icon" href = "" / avatar.ico "type =" image/x-icon">"
< title > Ben Scarr Illustration < /title >
< style type = "text/css" media = "screen" >
HTML, body {height: 100%; background-color: #ffffff ;}}
Body {margin: 0; padding: 0; overflow: hidden ;}}
#flashContent {width: 1214px; height: 100%; margin: auto ;}}
< / style >
< / head >
< body >
< div id = "flashContent" >
< object type = "application/x-shockwave-flash" data = "Ben Scarr Illustration.swf" width = "1214" height = "717" id = "Ben Scarr Illustration" style = "float: none;" vertical-align: middle ">"
< param name = "movie" value = "Ben Scarr Illustration.swf" / >
< param name = "quality" value = "high" / >
< param name = "bgcolor" value = "#ffffff" / >
< param name = 'play' value = 'true' / >
< param name = "loop" value = "true" / >
< param name = 'wmode' value = 'window' / >
< param name = "scale" value = 'showall' / >
< param name = "menu" value = "true" / >
< param name = "devicefont" value = "false" / >
< param name = "salign" value = "" / > "
< param name = "allowScriptAccess" value = "sameDomain" / >
<a href=" http://www.Adobe.com/go/getflash ">
<img src=" http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt ="Get Adobe Flash player"/ > "
< /a >
< / object >
< / div >
< / body >
< / html >
Once more, accessing the http://benscarrillustration.com/benscarrillustration.swf returns a 404 not found error. The Flash file is not * where your code says it is.
The browser is looking in the folder root of your remote site for this file. Is that when you see when you look in the remote side of the files Panel?
-
Photoshop does not open all the files on my Imac it will open work and recent files very well but will not save. I have the latest version. What is "cleanmymac3" that prevents the loading of files?
I must add that when I try and open a file, it freezes and I have to force photoshop completely.
Try resetting your Photoshop preferences.
-
SWF files no longer works Flash8
Hello
I downloaded my swf for the web file. It is a video clip. Some of the swf file loads on the web (the part of the text) when I click on a button to load it, but the video does not appear? See page 2 of the link below
www.geocities/suddentlyisee.com
I load some swf files with video clips before, which worked perfectly, but suddenly stopped working?
Thank you
PaulI have published my web site to a new web host and flv & swf files work fine.
Thanks again for your help.
Paul -
I'm already thinking how in Adobe Lightroom for synchronization between my PC where I save and edit files of my work and my I phone6. Someone can tell me how to extend this synchronization to my Mc Book Air, can not quite understand.
Thank you!
Marcelo
Marcelo,
to make it quite clear, Lightroom can't sync between two desktop computers. It can synchronize between only one computer and one or more mobile devices. Synchronization between computers has been a very requested feature, but Adobe has not given us yet. You will need to designate one of your computers as your main machine mounting and synchronization here. There are tricks to get all changes from one computer to another in phase, but these are not negligible and may corrupt catalog if you're not careful.
-
with firefox 43 yahoo and yahoo mail doesn't work does not correctly
With the help of win 7 and firefox 43.0.1, I have 4 computers and now all have problems with yahoo and yahoo mail doesn't work does not correctly. Loading sites, but most of the features are missing and clicking on what whether changes to the lists of text. I have disabled flash / anti-spam etc., cleared cookies and cache and even firefox loaded down once again and have upgraded, no help. I'm forced to use IE now.
I tried Yahoo support, they said try Firefox... In any case, it's Firefox and I found a solution using the 'Refresh Firefox' button. Whatever the problem was fixed on two of my computers so far. Got to update my setting again but it's 10 m, compared to the 10 hours I spent trying all that is nothing.
Thanks for the help!
-
HTMLLoader local content (SWF files) loading problems
Hello guys,.
I'm just to complete my request but I have a problem.
I am developing a desktop air app.
I use HTMLLoader to load SWF files local when you user tries to access a specific content on the application.
I accomplished successfully, but the loaded SWF file also load other files (assets and xml with translations files) and it does not work.
When a SWF file is loaded it will stop just on its own screen of loading (loading XML files).
All this happens on my CustomNativeWindow:
(my CustomNativeWindow 'overlays' the main application)
public function CustomNativeWindow() { var nativeWindowInitOptions:NativeWindowInitOptions = new NativeWindowInitOptions(); nativeWindowInitOptions.systemChrome = NativeWindowSystemChrome.NONE; nativeWindowInitOptions.renderMode = NativeWindowRenderMode.DIRECT; nativeWindowInitOptions.resizable = false; nativeWindowInitOptions.maximizable = false; nativeWindowInitOptions.minimizable = false; super(nativeWindowInitOptions); alwaysInFront = true; this.activate(); } public function setProperties(contentName:String, contentURL:String, posX:Number, posY:Number, stageWidth:Number, stageHeight:Number):void { this.stageHeight = stageHeight; this.stageWidth = stageWidth; this.contentURL = contentURL; this.contentName = contentName; this.x = posX; this.y = posY; this.width = stageWidth; this.height = stageHeight; this.title = contentName; this.addEventListener(Event.RESIZE, onWindowResize); SWFHTMLLoader(); } private function SWFHTMLLoader():void { //REQUEST LOAD URL var request:URLRequest = new URLRequest(contentURL); //HTML LOADER SWF htmlLoader = new HTMLLoader(); htmlLoader.width = stageWidth; htmlLoader.height = stageHeight; htmlLoader.addEventListener(Event.COMPLETE, onHtmlLoaderComplete); htmlLoader.load(request); stage.addChild(htmlLoader); } private function onHtmlLoaderComplete(e:Event):void { trace("NATIVE WINDOW HTMLLoader complete"); onWindowResize(); } private function onWindowResize(e:Event = null):void { if (htmlLoader) { htmlLoader.width = stage.stageWidth; htmlLoader.height = stage.stageHeight; } }
Probably something related to security?
How can I fix?
Is a bit urgent... deadline is coming...
Thank you!
It is probably related to a path problem.
What is contentURL?
If it is anything other than swfname.swf, you have a problem.
-
How can I control position to look for SWF files loaded by the class Loader?
I created a grid of buttons that, when clicked, will load a specific swf and each swf, I would like to play in a certain part of the scene. When to use the Loader class:
var my_loader:Loader = new Loader();
my_loader. Load (new URLRequest ("abc.swf"));
addChild (my_loader);
the swf file is always displayed at the top left. Is an attribute of the individual SWFS that I am loading, or can I address the position in the main sequence?Thank you-
Sean
...
addChild (my_loader);
my_loader.x = 500;
my_loader.y = 250;
-
How to determine the total number of images in the external .swf file loaded
I have to be able to load both external .swf files and make them play in order. To do this, I need to know the number of images in the first .swf file so I can check _currentframe against _totalframes to determine when he is finished playing so that I can load another.
Most of the stuff I see indicate that _totalframes on an external .swf can be determined by loading the .swf in a container clip and then check using a listener in the .onLoadInit. Like this:
------------------------------------------------------------------------------------------ ----------------------------
this.createEmptyMovieClip ("tester_mc", 1);
var mcListener:Object = new Object();mcListener.onLoadInit = {function (target_mc:MovieClip)}
target_mc.onEnterFrame = function() {}
If (this ._currentframe > = this ._totalframes) {}
trace ("total frames =" + this ._totalframes);
delete this.onEnterFrame;
} else {}
trace (target_mc._currentframe + "OF" + target_mc._totalframes);
}
}
}var test_mc:MovieClipLoader = new MovieClipLoader();
test_mc. AddListener (mcListener);
test_mc.loadClip ("Ad_Group.swf", tester_mc);------------------------------------------------------------------------------------------ -------------------------------------
Unfortunately, this doesn't seem to work. The trace will always return a total number of frames of 1.
I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.
I would appreciate any ideas on how to raise the total number of frames of an external .swf file or, Alternatively, put it another way when it's done playing. (Not only the loading, but play until the end.)
TIA,
C
I guess it's because the container clip has only 1 frame, and the external .swf timeline seems to be ignored.
I wouldn't imagine. My guess is that the main scenario for the external swf file has only 1 frame and the rest of the animation is inside a movieclip in this timeline. You publish this swf? Can you open the FLA and check how many images is open on the main timeline?
The approach that you have mentioned is about what there is. But he knows check a chronology. If there are many nested movieclips, it may be impossible to understand what timeline you really want to be 'THE' full chronology.
If you have the FLA, you can have the video call function on the _root timeline which tells the main swf that has completed a movieclip or something like that.
Also, I have in my head somewhere that I recently saw something that someone made similar to this one, but do not remember... If it appears in my head that I will post.
-
How to limit a swf file loaded in a scene or a layer?
I imported a swf file in my main swf file, but I want to limit the file that I imported to a layer of surden and managers / scene.
Can someone show me a nice easy way to do this? -Thanks in advance!
The code I've used so far is:
import flash.ui.Mouse;
var myLoader:Loader = new Loader();
var url: URLRequest = new URLRequest ("myexternalfile.swf");
myLoader.load (url);
addChild (myLoader);
(optional)
myLoader.x = 550;
myLoader.y = 100;
I corrected, thanks for trying to help me
I used the code:
If (myLoader! = null)
{
myLoader.unloadAndStop ();
removeChild (myLoader);
myLoader = null;
}
-
want to roll over the button and swf file appears
Hello
I have a talking head who is in swf format. I would like to have a "button" that says "display head talking talking head/hide» When I hover over or click on the button, I select the SWF to appear or disappear. Audio talking head would go through the whole slide regardless of if the user chose to see it or not.
When I tried slidelet etc. only allows me to download images and not the swf files. Counsel on how to can reach above would be appreciated. I am currently using C3, but if you have the C4 solution would gladly agree to add to the "why should I update list": - >
Thank you, Ellen
Hi Elllen
I don't understand. The slidelet allows you to insert an animation, that could be your talking head.
The only problem I see with this is the audio. I think you could simply attach audio to the slide itself and not to the talking head. Then he would play regardless of whether or not the head showed. But if the head were no-shows and the user made appear, the head would be out of sync.
See you soon... Rick
-
If I work online and leave for a few hours and then go back and go open a new tab or even reload an existing tab or go to a new Web site using an already open tab, the only thing I get is the "circle of rotation of the dead." Then I have to exit out of FF. Then when I go to reopen FF, I get a window that says that FF is always open, even if it's not and I want to stop it, so I click Yes. While I am able to open FF, but always get a message that says that my user profile could not be loaded properly, so I click on that and reopen again. Then it finally opens and I am able to work fairly well until the same problem recur.
I don't really know what has changed, but I never had this problem, I could let FF open days and come back and then open a new tab well and start working again.
Make sure that your Java (not JavaScript) is up to date
Check out Java and find obsolete Versions {web link}60 version update release date 8 August 18, 2015
Type of topic: addons< enter > in the address bar to open the Add-on Manager.
Access key; < Control >(Mac: < command >) < shift > has)On the left side of the page, select Plugins.
Make sure that the ones you want to use is on Ask or Allow.Go to the web page. Once the page loads, mouse to the address bar
and left click the icon. A window to display information of site should
developed. Select more information. Now select permissions. In the
menu, make sure that those you want to use is on Ask or Allow. -
Computer stops and exports files
original title: started the will not start it will stop. I have to keep trying to start I had Windows 7 installed be my pc keep dumping files. and turns off and start it up is not started it will work until I stopped and try to restart the pc. . so, I install window visia. back in my pc. and it's always the same. then tonite it came with this file system check on C one of your disks needs to be checked for Consustencey
Type of memory in the start search box, and choose Diagnostic memory. This willtake a few minutes.In computer discs right click and chooseProperties, then Tools tab, and then click check now. Check the two boxes thenOk. Reset. This will take from one day to the next.After running chkdsk (which did above) click on start - all thePrograms - Accessories - right on command prompt and choose Run asAdministrator. Typesfc/scannow--..--"pinkly" wrote in message news: e0b05ada-b936-44e5-8374-2165dfc05032...> I had Windows 7 installed my pc keep dumping files. and turns off and> started them upward is not started it will work until I stopped and try to> restart the pc. . so, I install window visia. back in my pc. and it still> does the same thing. then tonite it came with this audit on C file system> that your need for drives to be checked for Consustencey -
Muse is able to support .swf files? If so how the world operate? I have a premade slideshow that one that I really like and two don't want to recreate. I would use it in Muse. Can someone help me with this? You can view the slide show on the link below. Thank you!
Penny
http://webspace.Westwood.edu/student/PennySloan/psDesign/portfolio/designs/index.html
Hi Penny
Yes, you can add swf files in your site page by using html or add the active file.
You can find more details with these details:
http://forums.Adobe.com/message/5126169#5126169#5126169
http://forums.Adobe.com/message/5087131#5087131
http://www.YouTube.com/watch?v=5in4swnIFsw
Thank you
Sanjit
-
Several external swf within a main swf file loading.
Hello
I'll build a Web site that loads multiple SWF files in a main swf. I also want some sovereign wealth funds to unload when I click on the button located on it.
could someone help me on this please.
Currently, I am only able to load a swf with this code, can I somehow load more that just a default swf? You can see the code below:
var swf:MovieClip;
var loader: Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swf/gallery.swf");
Loader.Load (defaultSWF);
addChild (loader);to load more than 1 swf at any time, you have more than 1 charger.
Maybe you are looking for
-
Y3P Win10 reinstall with the original MS OS. Product keys and how to do it?
Hello I got a new Y3P. First I updated to Win 8.1 installed to Win10. It seems that I'm not able to run some Adobe programs and overall (probably because of all this that awful bloatware) it seems that my OS might be corrupted somehow (even if the la
-
All my customer audits are reverse collated. How can I get the OfficeJet Pro 8630 to print at the back to the front. My old HP printer gaveme a print command option. I find that on this printer. HELP I do not have the time to reverse the order on
-
Transfer pictures Z5 Compact for Macbook
Bridge for Mac successfully. Connection successful transfer photos. Small window shows photos, photo to Mac transfer. After completion Photos opens, but nothing is there. If I select the folder of images on photo to Mac transfer. Someone got experien
-
I have a Compaq laptop with Vista Home Premium and when I use DVD maker, what it crashes once I have load video to it. I can't choose a menu style or burn the DVD. My question is what can I do to fix this? Can I reload my Vista disk maker DVD, or w
-
Focus on the multiple field - like task and Notepad
Hi all, I would like to implement it is something like Notepad. I am interested in the thing in particular is that it shows the development in two places, in this case, mainly on the textfield and the ListField. When the user types TextField is popul