ActionScript 2.0 :: When Externaly Loading An Swf, Pointing To A Particular Frame?
Aug 30, 2004if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 Repliesif you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 Repliesi was curious, (cause this would help me a lot) > if you are loading an external swf to a target or container or what have you, can point it to a particuar frame or scene in that swf?
View 5 RepliesI have a dropdown menu that I'm learning to use from a tutorial. It's just a little over my head and am wondering if someone could help me. Here's my situation:
1) The menu has the title, DESTINATIONS. Submenu dropdown are a list of CONTINENTS. Rolling over CONTINENTS show COUNTRIES. This works.
2) Clicking on a Country should:
A) load an external swf into an empty movie clip :: Works!
B) go to the COUNTRY specific frame within that loaded movie clip. :: Doesn't work!
Here is a sample code from this menu, where it defines the fields that populate the menu:
var menu_0 = ['Destinations',['Africa#destinations1.swf|Rwanda#destinations1.swf |Uganda#destinations1.swf|Kenya#destinations1.swf| Madagascar#destinations1.swf|Botswana#destinations 1.swf',
'Asia#destinations1.swf|Japan#destinations1.swf|In diat#destinations1.swf']]
Could someone help me figure out how to direct the link in the menu in a specific frame in an externally loaded swf? I can do this on a 'normal' button using placeFrame, but because I'm unfamiliar with how this particular menu is made, I don't know how to implement what I know.
I suspect I'm doing something silly here. Keep getting a #1009 error pointing towards the fadeOut function on frame 2. Here's the scoup, TIA! Frame 1: Clickable Logo that sends the playhead to frame 2
[Code]...
I have made a banner in which i want to load an image but i want to control it's visibility via xml. want to be able to show or hide this image whenever i want to .
View 4 RepliesI have swc library, which I use for skin assets, and I link this swc externaly (load on runtime before any usage of swc classes and put it into proper application domain).The problem occure when I use swc classes in my application as base classes and run app (compilation is ok). In this case I get #1014 Verify error - class not found. (the code which e.g. instantiate those base classes is never executed before swc is loaded, but seems Flash Player makes some verifying).[code]When I don't use swc classes as base classes, everything is ok.
View 3 RepliesDoes anyone know how I would load up a flex application and on load the application would open on a different tab within the application. The only thing I can think of is sending a parameter into the application to tell it where to go, but how does the app load that tab then?
View 1 RepliesI've developed a quick video player that pre-loads, auto-plays and then finishes with a frame at the end that allows the user to play the video again, but a recent discovery is that the video reloads as a user browses through a few fields on the site (represent via string at the end of the URL).
What I'd like is that if you arive at index.aspx it starts the video at the preloader, but if you then move onto index.aspx?ID=1234 it goes straight to the scene with the replay function. The AS I'm using at the moment in the first scene is:
if (_url == "http://www.mydomain.com/index.aspx") {
gotoAndPlay("Preloader", 1)
} else {
gotoAndPlay("Replay", 1)
}
but I'm getting nothing from it.
I have two domains pointing to the same swf. So I have domain "A" and "B" where my swf (site) is hosted at "A". Domain "B" loads site "A".
The swf loads some vars from a DB, when seeing site directly at domain "A" I have no problems, but when seeing with domain "B", my site just freezes....giving an error at the Browser and I have to close. This is for FF and IE.
At first I thought this was cross domain policies, so I have put at my swf the following code:
Code:
System.security.allowDomain("B")
I have a scroll component that I use to scroll through a long movie clip that loads a list of 3 text fields from an XML file (each item is called Li and some of the fields include a unique bID (b1, b2, b3 etc) pN, Da etc. on XML load I use a loop to populate the movie clip with the primary information fields creating a list of each <Li> Item in the list by showing the first three fields in that item. Now I would like to add a button to each item that allows the user to see the complete information in that list item. This button should either generate a new movie clip (or make a current one visible) and populate that new movie clip with information taken from said list item. What I don't seem to be able to figure out is how does AS3 handle this, how do I either generate or add a button that will know that if this button is clicked it should get the information from the corect XML list item.
View 2 RepliesI am working on our new website and have purchased an animated flash template. I have very limited experience of Flash and use Dreamweaver as my every day web tool.
I have modified most of the template but have a frustration with some animated buttons pointing to the same page even though I think i have programmed CS5 to point it to different pages. In the middle of each page is 3 boxes which have 3 Read me buttons... each should point to a different page.
[URL]
It has absolutely got me beaten. I have copied the buttons and their animations, renamed all elements of the button but something is clearly linking them together.
I have a quick newbie question (I just switched to AS3) : I have two clips in the library that are exactly the same in structure, just that the design changes. Two different characters lets say. Now, I'd like to apply a class to them, and that class is going to be 100% the same for both, how can i do to have the two clips pointing to the same class...? For the moment what I did is save my class with another name, but I guess it's a bit lame...
View 5 Repliesi have an mp3 player that works well but when i click on the loader bar, plays from that clicked part, time is also updated, but the scrubber is way to far from the that clicked part of the loader.how can i make the scrubber points exaclty to part when a user seek from the loader bar?
View 6 RepliesI have a scroll component that I use to scroll through a long movie clip that loads a list of 3 text fields from an XML file (each item is called Li and some of the fields include a unique bID (b1, b2, b3 etc) pN, Da etc. on XML load I use a loop to populate the movie clip with the primary information fields creating a list of each <Li> Item in the list by showing the first three fields in that item. Now I would like to add a button to each item that allows the user to see the complete information in that list item. This button should either generate a new movie clip (or make a current one visible) and populate that new movie clip with information taken from said list item. What I don't seem to be able to figure out is how does AS3 handle this, how do I either generate or add a button that will know that if this button is clicked it should get the information from the corect XML list item. I hope this makes sense?
View 2 RepliesCode:
button.addEventListener(MouseEvent.CLICK, myButtonAction1);
function myButtonAction1(e:MouseEvent):void {
for (var i:uint = 0; i < 9; i++){
var ray:RaySpark = new RaySpark(i*15)
addChild(ray);
[Code] .....
The blue lines should each be pointing at a circle, what did i do wrong?
why my "nieuws.swf' is not going to frame 2 or not showing at all when i press the button with the second piece of code on it? The nieuws.swf has a stop on frame 1 and on frame 2. I can see it right away when i take away the first stop. I use the function playNieuws, to make it all happen.
[Code]....
I have used the simple script below on several Flash animations to restart the movie by clicking on the last frame. It works fine, but does not show the interactive cursor (the pointing hand). How can I alter the code below so that the browser shows the hand when the visitor moves the cursor over the paused movie?
stage.addEventListener(MouseEvent.CLICK, function(){ gotoAndPlay(1); });
I'm trying to make a real simple flash menu, and I am using the "Squirrel Finder"-tutorial as a base. Problem is, when I trace my variables desc and swfURL they are correct, and the numbers on the buttons work fine as well, only when I click on the buttons all of them point to the last post in my XML, i.e., buttons 1,2,3,4,5 all point to swf 5.
Code:
function skapaMeny(menu_xml) {
var proj:Array = menu_xml.firstChild.firstChild.childNodes;
for (var i=0; i<proj.length; i++) {
var desc = proj[i].firstChild.childNodes;
var swfURL = proj[i].firstChild.nextSibling.childNodes;
[Code] .....
I have an application swf that loads a big external swf with all GUI components/assets (skin) in it.I want to display a progress bar during loading of the external asset swf file but the images for the progress bar are also included in the external swf file.Is it possible to load only a portion of the external swf before loading the rest. The idea is to load the progress bar images from the external swf, then construct the progress bar and than load the rest of the swf. I was thinking to put it on different frames. Frame 1 containing the progress bar graphics and frame 2 the rest of the assets.
View 3 RepliesI'm working on a mock project (no real client involved) and just sent the site out to some friends to view and give feedback. All of them saw what I was seeing and said it looked great. One person however, said the site looked like it was loading in weird. He sent me a video of what he was looking at. It seems like the contents of my 3rd frame are already loaded in at frame one and the ones that load in dynamically in frame 3 never come in at all. Lots of things going wrong here. Below is a link to the live site and a link to a zip file containing all working files. Inside the zip is also a couple of video files, one is a video of what the site should look like (Vid1.mov) and the other is a video of what my friend was seeing (Vid2.mov).
[URL]
This link is a zip file of all working files: (please keep in mind that I am pretty new to AS3 and realize that my files might not be built in the best way possible - just trying to get it to work at this point)
[URL]
I'm working on a mock project (no real client involved) and just sent the site out to some friends to view and give feedback. All of them saw what I was seeing and said it looked great. One person however, said the site looked like it was loading in weird. He sent me a video of what he was looking at. It seems like the contents of my 3rd frame are already loaded in at frame one and the ones that load in dynamically in frame 3 never come in at all. Lots of things going wrong here. Below is a link to the live site and a link to a zip file containing all working files. Inside the zip is also a couple of video files, one is a video of what the site should look like (Vid1.mov) and the other is a video of what my friend was seeing (Vid2.mov).This link is a zip file of all working files: (please keep in mind that I am pretty new to AS3 and realize that my files might not be built in the best way possible - just trying to get it to work at this point)
View 3 RepliesI have two separate slideshows in my document. The slideshow on frame 1 uses ixia_works.xml, the slideshow on frame 5 uses ixia_windows.xml. wrote all of my slideshow code on frame 1 and created a variable to hold the xml file. On frame 5 I assigned the new value of the variable. The slideshow on frame 1 works perfectly; the slideshow on frame 5 won't even load.
Code on frame 1:
//in order to work with tweens, necessary to import tween classesimport fl.transitions.Tween;import fl.transitions.TweenEvent;import fl.transitions.easing.*;
[Code].....
Way to stop the pointing hand cursor from appearing when the mouse rolls over a Flash button?
View 13 RepliesI'm working on a mock project (no real client involved) and just sent the site out to some friends to view and give feedback. All of them saw what I was seeing and said it looked great. One person however, said the site looked like it was loading in weird. He sent me a video of what he was looking at. It seems like the contents of my 3rd frame are already loaded in at frame one and the ones that load in dynamically in frame 3 never come in at all. Lots of things going wrong here. Attached is a video of what the site should look like (Vid1.mov) and a video of what my friend was seeing (Vid2.mov).
Also, the link below shows the site live: [URL]
This link is a zip file of all working files: I realize that my files might not be built in the best way possible - just trying to get it to work at this point) [URL]
If I have a movie clip that has an onRollOver event, how do I turn the back into a pointing cursor from the gloved button cursor?
View 2 Repliesnormally the mouse pointer is the arrow.When it's over something with an on(press) event or some such, it turns into a "pointing finger."
Is there any way to force it to change to some other icon?Specifically, I have a draggable movieclip that I'd like to control with a "grabbing hand" pointer, but Flash insists on making it a "pointing finger,"
i have a orgin server and 2 edge servers and a load balancer
first off im confused in each edge server i set them to be remote, rtmp and changed the routeentry to <RouteEntry>*:*;96.44.***.***:1935</RouteEntry> on both servers
orgin server is just local
what my question is im streaming to orgin and its getting sent to 1 edge and other edge is doing nothing no traffic the stream i set it this way url:
'rtmp://173.254.***.***/live/live_test',
which is the 1 edge thats working if i setup another channel pointing to the other edge server ip adresss it doesnt work.. what am i doing wrong isnt all this supposed to be load balanced or am i missing steps...or did i do it wrong on the flash player config.
i've been trying to figure out how to load a frame in a swf by clicking on a button from another swf file ,i not sure the code .i got a swf. named as aboutus.swf then in it there is a button in a movieclip in which you click it , it should go to Services.swf frame 25 which is a movieclip.
View 2 RepliesI have been at this for two days and I've tried every suggestion on this website. Either AS3 says it doesn't support it (such as _root, TellTale) or I'm not coding the suggestion right because the code is getting ignoredI get the swf to load fine just not to a specific frame. I need the loaded SWF to start on ("Page_19") or its frame #.
var myLoader:Loader=new Loader();
btn_forward.addEventListener(MouseEvent.CLICK, loadMain);
function loadMain(myevent:MouseEvent):void {
[code].....
Working in Flash5 - I have an swf file thas like a movie screen the I want movies (external swf) to load into-but I want these movies to fit within a particular area centered on the screen.To test this out I have created 3 animations photo1.swf thru photo3.swf and the screen photogaller.swf.The photogaller.swf starts at a blank screen and has a forward and back button. In the forward button I have this code modified appropriately for each frame:
//this is in frame 2
on (release) {
unloadMovie ("photo1.swf");
[code].....