ActionScript 2.0 :: Opening Multiple Pop Ups At Same Time
Jan 23, 2009Im attempting to open 2 pop up windows from the same _btn (link). Does anybody know the proper java code to acheive this?
View 1 RepliesIm attempting to open 2 pop up windows from the same _btn (link). Does anybody know the proper java code to acheive this?
View 1 RepliesI want to load multiple files at one time; I mean that when the open dialog file comes up, I want to be able to select multiple files and then hold the path of them. I know the FileReference Class but it will only get one file at a time. so is there a way to do it??
View 1 RepliesI have 2 swf movies...
beach.swf
surf.swf
In beach.swf i have a button where when clicked i want to open surf.swf currently im using..
on(release){
loadMovieNum("surf.swf", 1);
}
This however opens the movie within the swf. how to open another swf, keeping the original open and run it not in a browser ?
Im always encountering this same bug since I got Flash CS5 everytime I open multiple files on Flash, my instance names lock in this case I have to restart flash and pray the instance names wont lock up again... It's really getting annoying because I could be working on up to 10 files at a time which forces me to individually open each file everytime I start my project.
View 1 RepliesI have a page (page1) with flash content that has an imbedded mc. The imbedded mc contains a group of thumbnail /buttons that bring up larger images (Thumb2 moves the playhead to frame 2 of the mc) there is also a unique button on each frame of the mc that should bring up a unique html page (a form) for that frame reference. When page 1 loads with the mc in it's default start position at frame 1 the form button works perfectly, however none of the other form buttons work and if I click on Thumb1 (which should be the start position mc frame 1) after clicking on any of the other form buttons, the form button for Thumb 1 no longer works. Everything else works as it should and I get no error codes.
I have the code for the form buttons located in the actions layer of the main timeline as follows;
TiaraFrames_mc.TSofaQAFrm_btn.addEventListener(MouseEvent.CLICK,TSofaQ AFrm);
function TSofaQAFrm(event:MouseEvent){
var TSofaQAFrmURL:String="CustomForms/Tiara/TSofaQA.html";
[Code].....
i use loadmovie() to load youtube videos inside my flash website but when i load another video the old one doesn't stop, so i tried unloadmovie to destroy it but it seems that i did a mistake in my code
This is how the code looks to stop the old one an load the new:
vloader.unloadMovie();
vloader.loadMovie("http://www.youtube.com/v/Alw5hs0chj0&hl=fr&fs=1hJ-mPcGtC");
How to do that? use other objects or classes, i only want to edit that code.
Note: I have an empty MOVIE CLIP called "vloader" where i load the video player.
On the site [URL] there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this?
From my analysis it is NOT:
1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.
2. Flash Cookies - The block still takes place if I disable flash cookies.
3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all.
It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
it is possible to open a gz or other format archive, which contains multiple files with flash and then process the files.i guess it should be possible with byte-array.i managed to open a gzipped xml file this way.however i am a little stumped on how to determine which file is what in the opened and decompressed archive.
View 4 RepliesOn the site oldnavyweekly.com there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this? From my analysis it is NOT:1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.2. Flash Cookies - The block still takes place if I disable flash cookies.3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all. It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
View 3 Repliesis there a way to drag multiple movieClips at the same time? Flash help explicitly says: Only one movie clip can be dragged at a time. After a startDrag() operation is executed, the movie clip remains draggable until it is explicitly stopped by stopDrag() or until a startDrag() action for another movie clip is called. anyone know of a way to do it anyway? maybe combining them in a dynamic mc or something?
View 3 RepliesI would like to play two videos (progressive), on top of each other. Nothing serious. But the second video contains multiple counters that has to play synchrone (with other words:simultaneously) with the first video.The second video (which is much smaller than the first) will preload much quicker and thereby starts playing earlier than the other video. Is there a way to start the video's at the same time and play them in progressive mode? (embedding is not an option because of the large filesize)
View 1 RepliesI have a bunch of MCs that when you click each individual one it will start to move up and down with a yoyo-ing tween. I would like all of the MCs to move up and down at the same time rather than start exactly when you click on them so they are moving at different times.
Picking up on something wvxvw said recently in another thread:[code]you shouldn't start several loading operations concurrently, you should wait for the first loading to complete and then start another loading, otherwise you are risking to get "request timed out".Had me wondering. I recently changed things around in several of my scripts when I found that running multiple loaders would speed my overall time spent loading by a significant amount (often halving the loading time).So I was curious for some more information and opinions on the matter.[code]
View 1 RepliesI am having a problem with a scripted animation. I am trying to use the tween class to send three objects across the screen at once. For some reason, this tests fine in "test movie" but the swf stops the second two tweens at their initial points and tweens only the first one. As you can see from the code, they all have different var names and object names.
var medTween:Tween = new Tween(logo3D4, "x", None.easeNone, 1200, -1000, 6, true);
var bigTween:Tween = new Tween(logo3D3, "x", None.easeNone, -500, 600, 8, true);
var smallTween:Tween = new Tween(logo3D2, "x", None.easeNone, 1000, -1300, 5, true);
How to link one tween to another? I need to make a multiple tween because the movement of the object is not in one line.
Simply, this code wont do
Code:
var tween_bus_x1:Tween
var tween_bus_y1:Tween
var tween_bus_x2:Tween
var tween_bus_y2:Tween
tween_bus_x1 = new Tween(bus, "x", None.easeNone, 302.2, 304.6, 200, false);
tween_bus_y1 = new Tween(bus, "y", None.easeNone, 1.6, 62.6, 200, false);
tween_bus_x2 = new Tween(bus, "x", None.easeNone, 304.6, 316.4, 200, false);
tween_bus_y2 = new Tween(bus, "y", None.easeNone, 62.6, 103.6, 200, false);
It only display the second movement. How to trick this?
I have to incorperate flash animations aswel. Im just wondering about a drag and drop function. I have a fair idea how to do a basic drag and drop function.
Message_MC.addEventListener(MouseEvent.MOUSE_DOWN,dragPoly);Message_MC.addEventListener(MouseEvent.MOUSE_UP,dropPoly);
function dragPoly(e:MouseEvent):void{ Message_MC.startDrag(); }function dropPoly(e:MouseEvent):void{ Message_MC.stopDrag(); }
I want to be able to drag multiple objects at the same time and also play a sound.is this possible?
if(Message_mc is clicked and dragged){
then drag Encryption_mc and Decryption_mc
also play ("Song.mp3")
}
play a number of FLV files at the same time on one SWF? Basically I have a brief to create a video banner with a number of FLVs of people playing at the same time but starting at different points in the videos. My concerns are with loading times, memory consumption and the starting of each FLV at a different point and looping it.
View 1 RepliesI was thinking can you call multiple functions at one time Like instead of
[Code]....
I'm trying to scale individual instances of a movie clip that I add to the stage one at a time. I can get it so that I can scale the most recently added, but I'd like to go back to the first ones and be able to scale them after I click on them. Essentially, how do I get a movie clip I click on to be the currentTarget - at least I think that's what I need.
Here is my code for adding the movieclips to the stage and being able to drag each one:
ActionScript Code:
var mc: _movieclip = new _movieclip();
var list:Array = [];
function addMC(event:MouseEvent):void{
for(var i:int=0; i<1; i++) {
mc = new _movieclip();
[Code] .....
I've tried using e.currentTarget and e.target sted mc in the scaleUp and scaleDown functions, but that just makes my buttons scale up and down, obviously. I've tried adding for loops similar to the addMC function to the scaleUp and scaleDown functions with no luck. Is there a way to tell the scaling functions to scale the movieclip I clicked on last?
Im trying to drag 2 seperate clips at the same time. 1 clip is a handle clip which exists in a container clip called "handles container", the other is a shape clip which exists in a container clip called "shapes container. I want to make it so that when the shape is pressed the handle appears on the center of the shape and when the handle is dragged the shape is dragged with it.
View 3 RepliesIts seems a problem I am having is to do with setIntervals in a while loop. I clear what seems to be the interval but as another interval is started before the last one finish I then have multiple intervals. I can close them all down with this...
for (i= checkImage;i>0;i--){
trace("clearInterval(checkImage) " +i);
clearInterval(i);}
But that ofcourse closes the rest down before they have done what I need.
I think my while loop needs to change? Here is the current while loop code....
function loadImages(){
while (imageWidthList[leftPictureNumber+imagesDisplayed] > 0 and xPosition +(imageWidthList[leftPictureNumber+imagesDisplayed]+(borderThickness*3)) < 700) {
var img_mcl:MovieClipLoader = new MovieClipLoader();
linkLayer = this.createEmptyMovieClip("link"+(leftPictureNumbe r+imagesDisplayed), _root.getNextHighestDepth());
[Code] .....
Is there a way that straight after the setInterval and the loadClip the function watchMyImageLoad is run to completion before continuing in the while loop. What I have seen is that the while loop continues until the condition has been met and then all the intervals are run?
I am currently building an application for children teaching them about the environment.I have a login and register function working for it allowing teachers to register first and then they would be provided with the option to register a required amount of children.how to go about registering multiple new users at the same time?
View 2 RepliesI'm a more desperate search for answers and need to load multiple images at the same time. I'm trying to use the same loader but don't know if this is best practice (and it isn't working). Ami I close?
[CODE]...
is it possible to swap depths for multiple movie clips at the same time? how about swapping for negative depths? or will that kind of thing lead me into probs later?
View 8 RepliesI am trying to adapt this search code to display the results one at a time.Right now it displays all the terms it finds all at once and separated by commas. How would I adapt the code so it displays one item or term at a time.
[Code]...
[Code]...
I have 2 attributes of screen node which are title and tasks. how can I access these 2 attributes at the same time in AS3 Is that correct: excel.chapter.screen.(@title == "lesson").@tasks
I have a CS4 document with many objects, motion paths over multiple layers. I want to scale everything, including the motion paths of each object. I've tried to do this by Clicking 'Edit Multiple Frames', then 'Selecting All Frames' and finally scaling everything via the Transform panel. Everything appears to have been scaled apart from the motion paths. Is there a way to do this?
View 2 RepliesI have a movie it is a triangle.I duplicate it and I want to hitTest on the first triangle movie clip and I added 3 different line movie clips on the 3 side of triangle.I tried to write a code something like that.
if(firstTriangle_mc.hitTestObject(line1_mc,line2_mc,line_3mc){
trace("Ok");
}
but I've got error.I think it is not allowed hitTestObject for multiple Movie Clips.So is there anyone have an opinion about it?What should I do?
I have developed a Player where I am using FMS to play MP3 files, it works great in normal scenario but when user keep on clicking new songs from Song List (List Component) then the player stated playing all songs. Which It should not do. Is there a way that we can unload previous song before loading new song.
View 5 RepliesCan I create multiple jpg images at one time to symbols in flash?
View 1 Replies