Load Mc Into Random Stage Location
Hello,
I want to load a movie clip into a random location on a stage that is 1024 x 768... yes a screen saver... but I am not sure how to go about specifying random stage placement..... Can anyone help me out?
Thanks ahead of time for your help... JK
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 04-22-2005, 03:39 PM
View Complete Forum Thread with Replies
Sponsored Links:
Load Mc Into Random Stage Location
Hello,
I want to load a movie clip into a random location on a stage that is 1024 x 768... yes a screen saver... but I am not sure how to go about specifying random stage placement..... Can anyone help me out?
Thanks ahead of time for your help... JK
View Replies !
View Related
Load Mc Into Random Stage Location
Hello,
I want to load a movie clip into a random location on a stage that is 1024 x 768... yes a screen saver... but I am not sure how to go about specifying random stage placement..... Can anyone help me out?
Thanks ahead of time for your help... JK
View Replies !
View Related
Random Location For A Random Movie Clip
I have various movie clips which I need to appear in one of four locations randomly. I need the movie clip to also be random. I also need more than one movie clip on stage at the same time. I believe the following needs to be used:
Math.random
duplicateMovieClip
I also believ that the method needs to be generic. Apart from that I am stuck.
Any help/ideas are appreciated.
Hope my question makes sense?
View Replies !
View Related
AS3 Stage Location
I downloaded an image viewer from Flashden and I'm having issues getting it centered on my site. I'm new to AS and fairly new to flash so any help would be great!! The code seems pretty complex and its a separate .as file. I've looked all throughout the code, but can't seem to find any place to tell it to place the image gallery in the center.
The site is www.emliss.com/gallery.html
I've attached the .as file
Thanks
View Replies !
View Related
Movie Location On The Stage
Hi;
Can someone help me out? I am trying to load a movie into a flash document in a certain location. The defaul location overlaps my title and I would like to have it lower in the stage.
Thank you very much
Riyad
View Replies !
View Related
Location Of Swf On The Stage When Using Loadmovie
sup fellas,
im working on this website over here, im perhaps an advanced newbie. Anyway this is the first time I am going to attempt to use "loadmovie". I got the whole concept on how to do it. My only problem is the location that the external swf appears.
For example;
say i have a box on the stage (this is my level 0), i want an swf with image.swf to be called upon. It will load on top of the current swf (level 1). The code is great everything works, only problem is that the box and the img.swf are no where near eachother.
Is there anyway to make that img.swf appear directly above the box?
Can i decide on the postion that i want all of the "loadmovie" levels (swf's) to appear?
I ask cause on alot of websites on the net i see different things loading all over. Webagent007.con for example, it has like 10 things loading in different postions.
thanks
View Replies !
View Related
Obtain Nested MC's Location On Stage
Hi All -
I'm trying to get the X/Y stage location of a nested movie clip. However, all I can seem to obtain is the X/Y location of the clip relative to it's parent.
To clarify, let's say I have two movie clips, "MC_One" and "MC_Two."
MC_One - located on the main stage at position 50,50.
MC_Two - inside of MC_One, and located at position 10,10 (relative to MC_One).
In the Frame I have:
trace(_root.MC_One.MC_Two._x)
// this gives me "10" but what I really want is "60"
Is there a way to get MC_Two's position on the stage?
I'm guessing I am not referencing MC_Two correctly, maybe with "_parent" or something ? ? Any ideas?
ETA: I've added a sample file
Thanks -
Pete
View Replies !
View Related
GotoAndStop Depending On Location Of Mc On Stage
I used swift 3d to create a spaceship for use in flash. I decided to make a game where you fly through space from the veiw point of behind your ship. I have 9 positions of the spaceship. Ex: directly behind, behind slightly turned left, etc. for the different locations on the screen so it has a mock 3D movement. Now my question is how to designate a certain area of the stage as a place where the "SpaceShip" movieclip GoesToAndStops at the frame that would make it look like it rotated correctly. So basically I need to divide the stage up into 9 equal areas and when the spaceship enters an area it goes to a certian frame. How would i do this?
thanks
View Replies !
View Related
Movieclip - Button - Location On Stage
Fellow Gurus!
I am using Flash 8.
I rendered some boxes on the stage. One is for a menu and another is for graphics. The idea is to have a picture pop-up in the graphic box whenever one passes a mouse over a button in the menu (which is in the menu box).
I have added movie clips to each button’s mouse-over. The movie clips contain a picture (at least for now). Thus when you pass a mouse over the button, a picture pops up. That is the easy part.
Now, I could simply reposition the movie clip until it appears within the graphic box. My problem is – I have a bunch of buttons and they may or may not be placed in the menu in exact positions. If I were to change a button’s position, the movie clip’s position is relative to the button and not the stage thus it would have to be repositioned as well.
Therefore, the pop-up pictures within the movie clips which are within the buttons must all pop-up in the graphic box regardless of where I place or reposition the buttons.
Let’s say I have the graphic box located at x=500 and y = 120.
Let’s say the button’s name is First_btn.
Let’s say the movie clip’s name is OneTest_mc.
And, I can bring it on stage in order to add an instance name of perhaps TestOne.
Now, I have looked at localToGlobal and globalToLocal. I am not sure which one work for my situation.
I am assuming that I can add AS2 to the movie clip’s (OneTest_mc) timeline – if that is not where it goes - let me know.
I have looked at the various scripts on the Internet and all they do is confuse me, namely because they are rotating graphics, etc. In another words, they complicate the examples. What I need is a script to add to each button/movie clip to make them all place the pop-up graphic in the box regardless of where the button is located.
However, I do not just want a piece of script. I would appreciate some explanation of the code so I can learn from it – not just giving me a fish but teaching me how to fish.
Thanks in advance,
Bill
View Replies !
View Related
Nested MovieClip Location Relative To Stage
Hi All,
I have the need to calculate the x,y location of nested movieClips relative to the stage. For example, lets say ...
clipA is at 100, 100
clipB is nexted within clipB a and its x,y within clipA is 200,200
So visually clipB appears to be at 200,200 but when I trace ..
trace("clip a.b " + a.b._x +" "+ a.b._y);
I get ... clip a.b x,y >> 156 156
I need to find out clipB's x,y relative to the stage at 0,0.
Any ideas?
I could do the math on the width and height of each movieClip but what if I have multiple nestings? Me thinks there must be an easier way.
TIA,
RandyS
View Replies !
View Related
Random Location
hi guys,
I am making the following movieclip
several buttons and a plane which flies above a map.
I want to following to happen
I click on button 1 and the plane goes to location 1
I click on 2 and the plane goes tol ocation 2
I click on 3 and the plabe goes to....yes to location 3
I click on 4 and the plane goes to location 4
I click on 5 and the plane goes to location 5
etc..
it's easy to make if the user will use the buttons from 1- 5. Unfortunately this is not going to happen...the user will go from 1-3-2-1-4-3-5 or something.
But I want the plane to fly to the correct location...from every point
Unfortunately I have NO clue on how to start...I downloaded MX trial version now ( i have Flash5 experience, but i am not a good programmer)
Can somebody help me on the way?
Thnx!
Joris
PS. if somebody has a wordl map that is vector based and is willing to share it with me....please let me know, still looking for it
View Replies !
View Related
Send An Object To A Specific Location On Main Stage?
im still pretty new to the terminology for this program, so my attempts to search for this topic have been unsuccessful.
I have a movie clip within another movie clip and I want one of the objects in the embedded movie clip to end at a particular spot on the main stage. Is this possible?
thank you so much in advance.
View Replies !
View Related
Moving A MC To A Random Location
two questions actually....
1st...On a mouse over...I want a movie clip to move to a random location on the stage.
2nd...somewhat related...I want to be able to click...anywhere on the stage...and the movie clip goes there.
I know how to do this with "easing"....but I want the movie clip to follow a path...not a straight line.
In other words...if I had a maze....and I clicked somewhere in the maze....the movie clip would follow the maze to the location.
Too much to ask?
Any help would be appreaciated!
Thanks!
View Replies !
View Related
Random Location, But Not Overlapping?
I have a game that scatters letters around the stage and users have to use the arrow keys to move something around grabbing the letters in order.
This all works just dandy, but sometimes the letters over lap.
Is it possible to have them scattered randomly, but then move a bit more if they are touching another MC? Or just not stop if they are touching another MC?
I also want to build in some obstacles in the future and don't want the letters overlapping the walls and what not. I could prevent them from landing on the outer walls, but not things in the middle.
View Replies !
View Related
Moving A MC To A Random Location
I want to move a Movie clip....to a random location on the stage...based on when a user does a mouse over on the Movie clip.
In other words.....if I had a little box...in a movie clip...sitting on the main stage...and you mouse over it...I want it to "slide" to another location...but I want it to be totally random...
What type of code do I use?
Any suggestions would be appreaciated.
Thanks,
Mark
View Replies !
View Related
Moving A MC To A Random Location
I want to move a Movie clip....to a random location on the stage...based on when a user does a mouse over on the Movie clip.
In other words.....if I had a little box...in a movie clip...sitting on the main stage...and you mouse over it...I want it to "slide" to another location...but I want it to be totally random...
What type of code do I use?
Any suggestions would be appreaciated.
Thanks,
Mark
View Replies !
View Related
Move To A Random Target Location
hi!! i'm using flash five and i need some help with making the following happen.
a movie clips actions:
loop
pick a random number with math.random for x
pick a random number with math.random for y
loop:
head towards x and y one pixel at a time
until -> has reached x and y, then
loop
please excuse my crappy psuedo code, hope someone can help!
View Replies !
View Related
Problem Generating Mc In Random Location
I made a button with the following actionscript:
on (release) {
amount = 50;
while (amount > 0) {
duplicateMovieClip(_root.box, "box"+i, i);
setProperty ("box"+i, _x, random(275));
setProperty ("box"+i, _y, random(275));
setProperty ("box"+i, _xscale, random(50));
setProperty ("box"+i, _yscale, random(50));
i++;
amount--;
}
}
The point was so that when you clicked on the button it would randomly generate a movie clip of a falling box, in random locations and sizes. This code is pulled directly from flash's reference guide. I'm not sure what I'm doing wrong, but the clip is not generating.
View Replies !
View Related
Random Movies That Change Location
I'm trying to create a movie effect. I would like the movie to appear at a location then appear at a different location then appear at another location. Can anyone help? My code is:
this.attachMovie("movie1", "newMovie", 1);
this._X = 10;
this._Y = 10;
this.attachMovie("movie1", "newMovie", 1);
this._X = 20;
this._Y = 20;
View Replies !
View Related
MC Duplicate With Random Location In Set Range
Hey all!
Im having a bit of a problem with duplicating a movieclip.
Im an AS noobie, so dont kill me for stupid mistakes lol.
Heres what im trying to do:
I have a button, when the <Insert> key is pressed and if the variable money at root is higher or equal, then make the variable "vpill" equals 1 and duplicate the MC "pill".
Heres the code i have for that:
Code:
on (keyPress "<Insert>"){
if (_root.money >= 1000){
_root.vpill = 1;
_root.money -= 1000;
duplicateMovieClip(_root.pill, "pill"+1, _root.pill);
}
}
As for the MC "pill", what i want is if the variable "vpill" equals 1 then at a random location (in a set range), place the mc, and if hitTest is true with "player" then _root.speed -= 1; make "vpill" equal 0 and remove the duplicated MC.
Heres the code i have on "pill" MC:
Code:
onClipEvent (load) {
randomNum=function(Minimum,Maximum){
return Minimum+Math.random()*(Maximum-Minimum);
}
if (_root.vpill == 1) {
pillx = randomNum(220, 480);
pilly = randomNum(70, 330);
this._x = pillx;
this._y = pilly;
if (this, hitTest(_root.player)) {
_root.speed -= 1;
this.removeMovieClip();
_root.vpill == 0;
}
}
}
NOTE: Variables are all placed in the root.
Thx in advance!
If u dont understand something, feel free to ask. THX!
View Replies !
View Related
Have Random Motion But Ending At A Set Location?
Hi-
Say you have no more than (7) instances of a movie clip about to come on stage. Randomly changing the opacity, scale, and speed of each shouldnt be a problem right? There's plenty of info out there on how to do that.
BUT, how do you get the instances to move randomly (and er, differently) each time the sequence loads, but have them end (or "land") on the exact same spot each time?
ie - move around where ever you want for such-and-such specific amount of frames (or time), but make sure you stop right HERE when you get to the pre-determined end of the sequence.
Thoughts?
View Replies !
View Related
Import Random Image To Exact Location
I'm using Flash MX and I have 8 pictures, all 150x150 pixels, located in a specific directory, and I want Flash to choose randomly one and put it in an exact coordinates, with linkage if possible. Also, they are all alpha-transparent PNG. Can somebody please answer my question (for once...) and tell me how it is done exactly?
View Replies !
View Related
Import Random Image Into Exact Location
I'm using Flash MX and I have 8 pictures, all 150x150 pixels, located in a specific directory, and I want Flash to choose randomly one and put it in exact coordinates, and I want to import them from file and not include them in the library...
(the images are all alpha-transparent PNG)
Can somebody please answer my question and tell me how it is done exactly?
Thanks alot!
View Replies !
View Related
Movie Clips In Fixed Location But In A Random Position
When my movie loads I want my 6 movie clips (same shape different size) to be randomly located within a contained area (see dashed line box in attached movie). I would like their vertical centres to be randomly located with this area but there to be even space between each movie clip.
In other words each time the movie loads each movie clip would be in a different (random) position.
Can anyone help?
Thanks
Newtoo
View Replies !
View Related
Random LoadMovie Function - Problem With Location Of External SWFs
Hi,
I'm having a problem with embedding a Flash movie that loads an array of SWFs- specifically, ones that exist in the same movie as the .fla loader file.
When I move the external SWFs and .swf load_movie file into a separate directory from the HTML file, they do not load properly. I get just a white window, and am not sure how to solve this .
http://www.calit2.net/newwebsite/ind...nversion3.html
When I keep the SWF movie clips and load_movie.swf in the same (root) folder as the .html file, then everything loads properly, though. But this would extremely clutter up my directory!
The code is as follows:
MOVIE CLIP ON STAGE
Attach Code
onClipEvent(data){
//test to make sure it's completely loaded, when swf's load this way onData is called with each 'chunk' of data
if(bytesLoaded()==bytesTotal()){
this.onEnterFrame=function(){
if(_currentframe==_totalframes){
_root.loadNextMovie()
}
}
FIRST FRAME OF TIMELINE - ACTIONS LAYER
filename = ["agilent.swf", "amcc.swf", "ampersand.swf", "alliance.swf", "analog.swf", "avalon.swf", "att.swf", "archventure.swf", "boeing.swf", "awarepoint.swf", "broadcom.swf", "bigbangwidth.swf", "bluetitan.swf", "butterfly.swf", "broadleyjames.swf", "calamp.swf", "calbatech.swf", "calient.swf"];
loadNextMovie = function () {
trace("loadnext");
movieTarget.loadMovie(filename[random(filename.length)]);
};
loadNextMovie();
}
}
HTML CODE:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="168" height="113" id="load_randomMX" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="load/movie/load_randomMX.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="load_movie/load_randomMX.swf" quality="high" bgcolor="#ffffff" width="168" height="113" name="load_randomMX" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
I 'm not sure if there is a way in loadMovie to specify another folder, or the best way to solve this problem. I'm relatively new to Actionscript.
Any help is appreciated, thanks!
View Replies !
View Related
Random LoadMovie Function - Problem With Location Of External SWFs
Hi,
I'm having a problem with embedding a Flash movie that loads an array of SWFs- specifically, ones that exist in the same movie as the .fla loader file.
When I move the external SWFs and .swf load_movie file into a separate directory from the HTML file, they do not load properly. I get just a white window, and am not sure how to solve this .
http://www.calit2.net/newwebsite/ind...nversion3.html
When I keep the SWF movie clips and load_movie.swf in the same (root) folder as the .html file, then everything loads properly, though. But this would extremely clutter up my directory!
The code is as follows:
MOVIE CLIP ON STAGE
Attach Code
onClipEvent(data){
//test to make sure it's completely loaded, when swf's load this way onData is called with each 'chunk' of data
if(bytesLoaded()==bytesTotal()){
this.onEnterFrame=function(){
if(_currentframe==_totalframes){
_root.loadNextMovie()
}
}
FIRST FRAME OF TIMELINE - ACTIONS LAYER
filename = ["agilent.swf", "amcc.swf", "ampersand.swf", "alliance.swf", "analog.swf", "avalon.swf", "att.swf", "archventure.swf", "boeing.swf", "awarepoint.swf", "broadcom.swf", "bigbangwidth.swf", "bluetitan.swf", "butterfly.swf", "broadleyjames.swf", "calamp.swf", "calbatech.swf", "calient.swf"];
loadNextMovie = function () {
trace("loadnext");
movieTarget.loadMovie(filename[random(filename.length)]);
};
loadNextMovie();
}
}
HTML CODE:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="168" height="113" id="load_randomMX" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="load/movie/load_randomMX.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="load_movie/load_randomMX.swf" quality="high" bgcolor="#ffffff" width="168" height="113" name="load_randomMX" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
I 'm not sure if there is a way in loadMovie to specify another folder, or the best way to solve this problem. I'm relatively new to Actionscript.
Any help is appreciated, thanks!
View Replies !
View Related
Placing Random MC On Stage, With Random MC Inside
Hi guys
I have 4 movie clips in the library, each with 5 frames in them.
What I need, is at a random interval, one of these movie clips to be placed on the stage in a set place (each of the 4 will only appear on one particular place on the stage) and play through the frames.
Also, I need the item that is on each frame of each movie to randomly load from an array of 7 items, each with their own stored characteristics.
Anyone able to give me some pointers? im using mx2004
cheers
View Replies !
View Related
Problems Using Array To Place Movieclips In Precise Location But In Random Order
Hi everyone,
I'm trying to create a memory game for my kids at school (using Flash MX 2004 on a mac). You know where you have to turn over two cards at a time and try and match them. Obviously each time the game is played the cards need to be in a different location. I borrowed a piece of code for randomly loading movieclips without repeating from another file I had asked for help with previously, which worked very successfully. But I'm having problems adapting it to fit my needs.
I have placed empty 24 movieclips on the stage so that I can place the cards in nice neat rows. In frame 1 I used this code:
code: allLocations = new Array();
allLocations.push ("location1","location2","location3","location4"," location5",....etc);
Then on a start button I used:
code: on (release) {
randNum = Math.floor(Math.random()*allLocations.length);
nextLocation = allLocations.splice(randNum,1);
_root.attachMovie("card1","card1",1);
_root["card1"]._x = _root["location" +randNum]._x;
_root["card1"]._y = _root["location" +randNum]._y;
randNum = Math.floor(Math.random()*allLocations.length);
nextLocation = allLocations.splice(randNum,1);
_root.attachMovie("card2","card2",2);
_root["card2"]._x = _root["location" +randNum]._x;
_root["card2"]._y = _root["location" +randNum]._y;
randNum = Math.floor(Math.random()*allLocations.length);
nextLocation = allLocations.splice(randNum,1);
_root.attachMovie("card3","card3",3);
_root["card3"]._x = _root["location" +randNum]._x;
_root["card3"]._y = _root["location" +randNum]._y;
and so on....
This seemed to work at first but when I test my movie things go wrong. The incorrect number of movieclips are placed and sometimes moviecips are placed at (0,0) (where I don't have a "location").
Does anyone have any ideas, please?
Thanks,
Alun
View Replies !
View Related
Load Moive Location
hello all, im using flash 5.
I have a button, and its job is to load a movie called "home1.swf" and thats no problem, i have it load right on top of the movie with the button, which is what i want, but i cant get it to load to WHERE i want... like it just loads to the top of the page, how can i say... movie it down 200 pixels??
thanks in advance.
-cheers
View Replies !
View Related
Load .swf To A Specific Location
Hi all. Having a problem loading an external .swf to a specific location in AS3.
This ia the code I am using currently.
"
function iGoogle(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("get_this_info.swf"));
}
igoogle_btn.addEventListener(MouseEvent.MOUSE_DOWN , iGoogle);
"
I have tried to create a blank movieclip (info_space) and load it into there but I think AS3 is a bit different and can't get it to work. (see below)
"
function iGoogle(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("get_this_info.swf", "info_space"));
}
igoogle_btn.addEventListener(MouseEvent.MOUSE_DOWN , iGoogle);
"
If anyone could help I would really appreciate it. Would love to know how to load to specific x/y coordinates too if you know how.
Thanks in advance!!!
View Replies !
View Related
Load XML Location Through A Variable
I don't want to hard code the XML location in the flash. I would prefer to load it's location through a variable.
Below is how I load it now.
Code:
public var XMLURL:String = "slideLibrary.xml";
public function XMLCentral() {
var loader:URLLoader = new URLLoader();
configureListeners(loader);
var request:URLRequest = new URLRequest(XMLURL);
try {
loader.load(request);
} catch (error:Error) {
trace("Unable to load requested document.");
}
}
View Replies !
View Related
Location Of Thumbnails On Load
I've been able to get everything from the tutorial Photo Gallery XML with thumbnails to function except for one thing. When you first open the gallery the thumbnail images load on the right side and stop instead of loading on the left. Scrolling works fine once you engage the mouse.
Any suggestions?
View Replies !
View Related
MP3 Player With Load And Location Bar
Ok I have a new client who wants a small MP3 player with stop and play buttons, as well as a bar that shows the load status and the location of the sound...
How can I get this done, I know how to do it just not with the preloader bar and location bar.
I bascially want something like on this site:
http://www.deftcreative.co.uk/deft_hifi.htm
View Replies !
View Related
Load Movie To A Specific Location
I know this is elementary stuff for you flash action script buffs out there.. but, if you're so good.. perhaps you can tell me how do I load movie to a specified location in the movie?
I have a box on the upper right corner of the movie and navigations on the left.. I want to just load a movie in the box ..
help.. if you can.
View Replies !
View Related
LoadVariables From A Different Location Each Page Load
HI,
I have a very big problem with loading variables. My movie must load variables from many different places and I can not for the life of me find out how to do this.
Typically it would be:
loadVariablesNum("index.asp", 0);
However, the ASP programmer will be sending my movie variables as each new page loads, those pages never being the same one. SO, I can not specify "index.asp". My flash has to be able to get the variables from a different page every click. The movie is a flash menu, by the way, so each click would load a new page of the website (which passes variables).
Right now, he has it set up so his variables are sent to my .swf directly, but I learned it is impossible to load variables by targeting the .swf as the source. Please help, I'm losing my mind.
Thank you
View Replies !
View Related
Load Movie To Specific Location
I'm using a load movie function to load an external swf file. The size of the external file is smaller than the mother file. So I want this file to load up in a specific spot in the flash movie, which is inside another instance in the mother flash file. How do I go about doing this??
As of know the load movie just pops up in the top left corner of the main movie.
Thanks
Caleb
http://www.e-simpson.net
View Replies !
View Related
Load Image In Specified Location In Movie
Perhaps a simple request. How do I open an image(jpeg or gif) from a URL upon opening of a HTML web page and place it in a specific location in my flash movie. Here's a glimpse into the twisted mind a hopeless dreamer. Picture this, a flash animated "TV"(basically a border for my image), with a blank screen, now when the user rollovers on this sed "TV" a side screen sides out from behind this "TV" and displays text that describe that image you just moused over. I lack in displaying the image and text. Here what I need...
Upon opening of HTML page: (underlined I need help with)
- Start flash displaying a "TV" like image box w/ a jpeg or gif
loaded on the "screen" of the "TV"
- When the user mouse overs the "TV" or image a side screen slides
out and displays text to describe the image in the "screen"
of the side screen and the side screen retracts when the
user mouses off the "TV"
- When the user mouseclicks on the "TV" it opens another page,
but not a new window.--i can do this normally but not sure
I can still when i learn to open that image in the "TV"
Any thoughts?
View Replies !
View Related
Load Movie Into Location .swf Files
Hiya,
I would really appreciate some help - I've set up a background menu system for my website which loads different sections saved as .swf files.
Buttons are:
On (Release)
Load Movie (vstory.swf)
End on
I've stored all swfs in the same folder as the background movie and am loading the files in level 1 (assuming that the background movie is level 0). My variables are set to "don't send".
I"m still in Flash 4 and am having huge problems getting this to work for me. It says it can do it in the help section.... but won't work for me.
Could it be to do with the fact that my background menu system is an "Instance Movie" within another "Instance Movie" in this background swf?
Thanks sooooo much for your help. I'm pulling my hair out on this one!!
THANKYOU!!! :-)
Lydia :-)
View Replies !
View Related
Load Mc (jpg) And Give Size And Location....Help Me Please
I have a movieclip who contains a button with dynamic text. When i press it brings me an image (jpg).
How can i give it (image)size and location in the scene? Where the code goes?
Now i´ve got this code but it doesn´t work
loadMovie("image.jpg","_root.ver");
setProperty(_root.ver, _x, 115);
setProperty(_root.ver, _y, 195);
setProperty(_root.ver, _height, 200);
setProperty(_root.ver, _width, 200);
I really need it, if smb can help me please do it!
View Replies !
View Related
How Can I Load A Swf AND Connect To A Network Location?
I'm working on a fairly large framework application that consists of a large number of seperate files (swfs, stylesheets, xml etc etc) all being loaded in and then connecting to a remote server.
My problem is that when i compile all my library swfs with -use-network=false all is well - until i try a NetConnection.connect() call, when i get told i can't connect to an internet url from a local-with-filesystem swf.
Ok, so i created a .cfg file and placed it in the FlashPlayerTrust directory, indicating that i'm giving permission for everything in my 'deploy' directory to be trusted - which should allow it to do anything it like (load files AND connect to the network). But after doing that i no longer get any sandbox but my NetStatusEvent is never fired! I receive neither a success or failure message from the NetConnection... it just sits there and nothing happens...
Can anyone point me in the right direction, there seems to be precious little information about situations like this, just a lot of people asking similar questions...
Thanks
T
View Replies !
View Related
Movieclip Load Location And Static Variables
Hi
When I use the "loadMovieClip" it actually loads the (0,0) point of the new movie, to the center of the clip... is there any way to go around it beside changing the movie itself and playing with the _x property?
and another question...
is there a way to keep a static variable for all the frames? right now Im using dynamic text and modify it. but I bet I just missed the right way to do it.
Thanks in advance,
Niva
View Replies !
View Related
Button Needs To Load Movie But Also Specify Controller Location
I'm tryin to reduce the file size of my web site and as such need to put most of my info on seperate swf's usin loadmovie to load them in. The buttons presently have this code:
on (release) {
_root.gotoAndStop(85);
_root.controller1.targXpos2=1650;
}
on(rollOver){
_root.controller1.targXpos=182;
}
with the controller values being different for each button.
My question is is it possible to open the swf then direct the controller?
e.g
on (release) {
loadmovie{content.swf,1}
// (would not need this code) _root.gotoAndStop(85);
_root.controller1.targXpos2=1650;
}
on(rollOver){
_root.controller1.targXpos=182;
}
View Replies !
View Related
Load Text-location Via Embed/param Tag
i am lost in scripting! here is what i want to do:
i have a flash movie, that loads a text file with a number of variables. those variables contain strings, that are displayed in dynamic text boxes.
so far i have done that with loadVariables("text.txt",""); and that worked fine.
now i need to change two things:
1. i what to pass the location of the text file via the embed/param tag in the embedding html-document. Possible?
2. does flash see that there are several varibles in the text file, if not: how can i make flash recognize that there are several variables in the text file assign them to the according dynamic text box?
i'd appreciated your help!
View Replies !
View Related
Load External SWF In The Same Webpage But Different Location In The Page
Hi , i'm buikding a webpage and I have a SWF showing a map with several cities on it, each city is in fact a button with AS-
on (release) {
loadMovieNum ("mycity.swf", 2);
}
The problem I'm having is that opens in the same swf window, I would like to know what kind of AS to use to get opening -swf2- in a different location of the same web page. this is mostly to better use webpage layout since the combined -map and swf2- would be over 900px.
Any suggestions?If there is already a thread on this subject please let me know. Thanks.
View Replies !
View Related
Load Movie Make It Go To Specific Location
I'd like to load a movie (separate file) into an existing file, but I'd like to make it go to a specific location within the loaded movie.
Example: I have a home page file that has thumb nail images that I'd like to lnk to respective portfolio pieces from another file.
Is this possible to do with ActionScript?
View Replies !
View Related
Will GetURL Load The Same File From A Directory Thats Changing Location?
Wanting to know if I can use the get URL action to load files from a CD. I can get it to work on my system its just that once I specify a url location it will change depending on the drive name of the person viewing the CD...Any help?
All the files including the movie that is activating the getURL action will also be on the CD. Basically a website on CD.. Desperately need help...
Thanks
Cougar.
View Replies !
View Related
|