ActionScript 2.0 :: Call A Fram On One Swf From Other Swf?
Mar 12, 2002How to call a fram on one swf from other swf?
View 1 RepliesHow to call a fram on one swf from other swf?
View 1 RepliesI am using different keyframes in my document to represent different pages on my website. However, when I change the document length, this changes all of the pages. How do I give each page a different size? I want some pages to be longer as I add more content to those pages.I'm sing CS4, flash 9, and action script 3
View 7 RepliesI have a project i'm doing for school making a game with a tile back ground and duplicate movie clips for the dudes. and when i go to a new empty fram the crap is still on there i need it off i know the remove movie clip thing but the back ground it is made like
[Code]...
I need a AS to make a movie jump to a random Fram
View 3 Repliesi have some actionscript that makes a
ExternalInterface.call('someFunction');
call.is it possible to reference the html object that made the call to someFunction directly using the ExternalInterface.call call?
Assume that the object that makes the call also has some Callbacks (via ExternalInterface.addCallback) that are accessible via javascript.
Currently:
Actionscript source
ExternalInterface.call("someFunction");
ExternalInterface.addCallback("someCallback",someASfunction);
[code]....
I'm trying to use ExternalInterface.Call to call a JavaScript function to launch a lightbox window. So far I have this:
AS3:
flash.external.ExternalInterface.call("launchLB", "" + aUrl + "");
JavaScript:
function launchLB(url) {
alert(url);
[Code]....
I get the alert but I can't get the lightbox window to display. When my as code makes the ExternalInterface call I get what looks like a page refresh and a blank browser window.
I'm trying to get the AS3 Flash remoting example found here: [URL]. and I keep getting this error: Code: Select allError #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion at amfphp1_fla::MainTimeline/frame1() Here's the code I'm trying:
[Code]....
I'm having trouble simulating a click call to a button(displayObject) thats generated via an API call( youtube as3 API). I have not seen any mention of security reasons as to why I can not simulate a click as long as something is registered with a click handler. Basically I checked to make sure the button made is listening to a mouse click event with:
trace(generatedButton.hasEventListener(MouseEvent.CLICK)) which returns true
I proceed to than call this:
generatedButton.dispatchEvent( new MouseEvent(MouseEvent.CLICK, true) );
And nothing happens yet if I physically click the button it works. Is there some security measure that prevents something from being fake clicked unless its origin is strictly from the system mouse?
I even set a timeout call on the click function and moved my cursor over the button and let it fire in case it was an issue of the mouse having to over the object but still nothing. I am kind of stumped at this point.
I have an enterFrame action that I use on a graphic:
[Code]....
Because I want to use the above code more than a few times, I tried to make it a function.
[Code]....
But for some reason the function call does not work when I call it via an action on a graphic where initially the code worked when it was explicitly written and not called as a function.
Code:
onClipEvent (enterFrame) {
fadeOut();
}
why this is not working.I have an application with a new class I just created. The class loads, but will not call it's own internal function.
package com.parkerandkent.components.classic.photogallery {
import caurina.transitions.Tweener;
import flash.display.MovieClip;[code]....
"Test 2" will not fire here.And I get this error message:
CallTag.as , Line 10 1180: Call to a possibly undefined method init.
I need to get a javascript var in my Flash application. I like to be able to just set a variable in the javascript (client constraints) rather than define a function.
Can this be done? I am trying to use the ExternalInterface.call()
AS:
ExternalInterface.call("function(){return window.someVar}", null);
JS:
var someVar = "Test";
This does not work and I suspect it is because the ExternalInterface.call() does not like the anonymous function.
I have a function defined in JavaScript like so:
function fadeBack() {
alert("fadeBack called");
};
I call that function from my Flash file like so:
import flash.external.*;
flash.external.ExternalInterface.call("fadeBack");
This works in both Safari and Chrome, but for some reason Firefox won't ever call the function. Still, I can't figure this out. How can I fix it?
Does anyone know if there is a way to call a dispatchEvent call from inside of a static function?
View 2 RepliesWe have been given some code that does a URLRequest call which is really slow to respond, so I was looking to make it pull the data from the page, as it is already on the page.[code]I have tried to replace it with this (actionscript is definitely not my forte):[code]I am using addCallBack as that is what the editor suggested via autocomplete, unfortunately it doesn't seem to work. Unfortunately I cannot go back to the developer at this time.The error message is:Call to a possibly undefined method addCallback through a reference with static type flash.external:ExternalInterface
View 3 Replieshave a node that has an asfunction embedded - won't work. if I change the a href to a web page- it works fine. If I try to call a custom function it doesn't call it at all.
View 1 RepliesJS-to-AS3 callbacks work in kinda asynchronous way right? So for example if I ask SWF to download some file, which may take some time (depending on the size of that file), and while it downloads it, ask it to do some other operation (suppose SWF has several callbacks for various purposes), what happens in this case? Does SWF continue to download file and handle my second request in a different thread maybe, or it crashes, or throws some error? I know this is a good case for some testing, but I wonder if anyone has already done that, or maybe there is public info on the case that I cannot find?
View 1 RepliesI have an issue with my eventListeners with the URLLoader, but this issue happens in IE, not in FF.
public function getUploadURL():void {
var request:URLRequest = new URLRequest();
request.url = getPath();[code]....
The issue is that my getBaseURL gets executed automatically after I have executed the code at least once, but that is the case only in IE. What happens is I call my getUploadURL, I make sure the server sends an event that will result in an Event.COMPLETE, so the getBaseURL gets executed, and the listener is removed. If I call the getUploadURL method and put the wrong path, I do not get an Event.COMPLETE but some other event, and getBaseURL should not be executed.
That is the correct behavior in FireFox. In IE, it looks like the load() method does not actually call the server, it jumps directly to the getBaseURL() for the Event.COMPLETE. I checked the willTrigger() and hasEventListener() on _loader before assigning the new URLLoader, and it turns out the event has been well removed.
I simplified my code. To sum up quickly: in FireFox it works well, but in IE, the first call will work but the second call won't really call the .load() method; it seems it uses the previously stored result from the first call.
I have a function in Flex which has three function in it.
public function update():void
{
A(); \Dispatches a event with Remote Call
[code].......
I'm trying to call a javascript function from a flash movie. I'm using IE.
This one works:
AS3: ExternalInterface.call("test();");
Javascript:
function test()
[Code].....
...it says "undefined" insted of alert(666)...it seems that if i use a field in the function it simply stops working. (I'm accessing the page [URL]
I have a class. I can call the constructor (initialize the class), and the constructor can then call a function/method inside it's own class (so I know it works), but when I try to call the same function/method myself from the instance of the class I just initialized, I get an error.
View 3 RepliesI have a Flex and Java application and i am using BlazeDS between flex and java. Generally my application works fine. I observed when ever i try fetch data little faster(not giving gap between two fetch commands) then i am getting the error "Server error :faultCode:Channel.Call.Failed faultString:'error' faultDetail:'NetConnection.Call.Failed: HTTP: Failed'"
I guess when ever load is increasing on BlazeDs, i am getting the error. I am calling the java service using following code
[Code]...
make a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.
[Code]...
can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?
It's possible call java script or javascript from pdf?
View 1 RepliesI don't know why I am surprised, but I tried calling in an AS3 swf from AS2 and no workie. It was a fairly simple animation. I know the two cannot communicate directly, but if one can't call in the swf in:[code]The fountain.swf was created using Papervision3D.
View 9 Replies[url]...but i need to control movie clips also from js.
secondly is it possible to call css from js. I mean keep css inside the js function, is it possible?
I'm trying to pull in an swf into an empty movie container from another movie clip. I have a button in a movie clip but it's trying to pull from another movieclip outside of the one I'm calling from, how do I ask it to call for another movie clip that is embedded 3 movie clips from the root?
Here's what I have:
Code:
on (release) {
_root._parent._parent._parent.contentbox.loadMovie("contact/contact.swf");
}
I've never tried this before and can't get it to work.
i've created a static image thumbnail gallery that calls to an xml gallery to load the larger images... but im not sure how to do it without loading an xml for each gallery which has a fade/slideshow timer in each xml.
how can i include all the galleries in the same xml?
this is the code to mickey moused together - but im going to end up with 29 xmls..
onEnterFrame = function () {
if (_root.colbig == 1) {
images_xml = new XML();
[Code]....
The thing is, someone from kirupa (Gl1tch) helped me out with this and I got it working.BUT this only works for 1 URL (as far as I understand what's going on here) but I need 2 URLs.I'll try to explain better with some code:
PHP Code:
[code]...
Here you can see I'm loading the @US part of the XML, but there's also an @CHN part and that needs to be added to flipArray.sideB (like I commented out in the code).
I want to do something quite simple, but am new to AS3 and the changes since AS2.I want to click a button (play_btn)Then when this happens it opens a SWF (movie.swf) into a placeholder (placeholder_mc) onto the stage. That's it!
play_btn.addEventListener(MouseEvent.CLICK, placeholder_mc);
function placeholder_mc(event:MouseEvent):void{
trace("pressed");
loader.load(new URLRequest("movie.swf"));
}
In two movieclips how to call myfunction(parameter) so that the function loads only when it initializes like the onLoadInit method
myfunction.onLoadInit = function(parameter) {
trace("parameter==" + parameter);
}
I want to call a fucntion that does something like the above from the first mc while the function is declared in the second.