Pointing To Multiple Folders
Our content sits in multiple folders and they get created on the fly. For instance, we have a multimedia/1001 folder with a file called 1001.flv. When we create a new flv, it automatically gets named the next in line a new folder under multimedia is created. Thus we would end up having multimedia/1002/1002.flv. Is there a way I can point to simply the multimedia folder by itself without having to manually tell it to look at each newly created folder that gets created?
Adobe > Flash Media Server
Posted on: 04/15/2008 12:01:39 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[f8]problem With Multiple .SWF Pointing To Same .as?
Hi Everyone,
I've spent a grueling 3 months with this problem and need help bad. I have a particular set of movies that point to the same .as file. The movie in question is an xml based picture gallery. My friend Brian did the programming, but now we cannot figure out this problem. If anyone out there would like the help a lost soul, please reply to this message as soon as possible. My boss is fit to be tied that the website is taking this long to get done and I'm at the end of my rope. The latest version of the site can be found at http://www.onyxtacular.com/gncweb/main.html
A copy of all the .fla, .as , .xml, and .jpg's can be found at http://onyxtacular.com/gncwebzip.zip
The first movie loaded works fine.... 6 thumbs are loaded in the visible area, the the thumbs scroll outside of the visible area as more thumbs are scrolled into the visible area.
The problem is the second time you load the movie or any of the other movies that use the .as file; the thumbs outside of this initial visible area are not scrolling into the visible area.
Thanks,
Loader Component - Prev/next For Multiple Folders
Hello, this is my first post! I am using Macromedia Flash 8 Professional.
Added a loader component to the stage with an instance name
"my_picldr"
Assigned this action to the first frame
var my_picldr:mx.controls.Loader;
Created a button with this action
on (release) {
gotoAndPlay(25);
my_picldr.contentPath = "gallery/carwash/carwash01.jpg";
}
I have already created two buttons which I would like to use for navigation of previous and next photos within the current subfolder only. In this case, the carwash folder. I'm planning to have other subfolders.
I'm don't know what kind of code I need, and where I should place it.
Thanks in advance!
Adding Multiple Sets Of Image Folders
Hi,
Would anyone please how can I customize the file so that I can load multiple image folders for different set of sub-menu button.
Right now, it is loading pictures from folder called "images"; I need to add more folders like images2, images3, and images4 that would play the same way as pictures from "images" folder.
http://www.4shared.com/file/57405756...4e/uxk3_2.html
Where exactly do I need to alter the variable. I am not sure how it adds the other image folders. Thank you in advance.
Quote:
import mx.xpath.XPathAPI;
//banner
_root.banner = new Array();
var xml = new XML();
function loadXML() {
xml.ignoreWhite = true;
xml.load(_root.xmlfile);
xml.onLoad = function(success) {
if (success) {
//Globals
var globalsx:String = "/banner/globals";
globals = XPathAPI.selectSingleNode(this.firstChild, globalsx);
_root.Timers = globals.attributes["timer"];
with (_root) {
imagewidth = globals.attributes["imagewidth"];
imageheight = globals.attributes["imageheight"];
speed = globals.attributes["speed"];
currentitem = globals.attributes["currentitem"];
radius = globals.attributes["radius"];
if (globals.attributes["playpause"] == "true") {
_root.playpause = true;
}
if (globals.attributes["imagelink"] == "true") {
_root.imagelink = true;
}
buttoncolor = globals.attributes["buttoncolor"].split("#").join("0x");
buttoncolor_onmouseover = globals.attributes["buttoncolor_onmouseover"].split("#").join("0x");
buttoncolor_onclick = globals.attributes["buttoncolor_onclick"].split("#").join("0x");
namecolor = globals.attributes["namecolor"];
descriptioncolor = globals.attributes["descriptioncolor"];
}
//Name
var namex:String = "/banner/item/name";
name = XPathAPI.selectNodeList(this.firstChild, namex);
//Description
var descriptionx:String = "/banner/item/description";
description = XPathAPI.selectNodeList(this.firstChild, descriptionx);
//Image
var imagex:String = "/banner/item/image";
image = XPathAPI.selectNodeList(this.firstChild, imagex);
//Url
var urlx:String = "/banner/item/url";
url = XPathAPI.selectNodeList(this.firstChild, urlx);
//Target
var targetx:String = "/banner/item/target";
target = XPathAPI.selectNodeList(this.firstChild, targetx);
for (i=0; i<name.length; i++) {
with (_root) {
_root.banner[i] = new Object();
_root.banner[i].name = name[i].childNodes.join("").toString();
_root.banner[i].description = description[i].childNodes.join("").toString();
_root.banner[i].image = image[i].childNodes.join("").toString();
_root.banner[i].url = url[i].childNodes.join("").toString();
_root.banner[i].target = target[i].childNodes.join("").toString();
}
}
}
};
}
loadXML();
Accessing Files/folders Inside Other Application Folders
How can I have an asc file from one application read text files in another applications directory?
I have multiple applications creating text files stored in a directory called docvid (this is my application directory). I also have another completely different application that needs to access these text file. How do I use the "sandbox" stuff to allow this other application to read these text files?
This code works fine:
custEmail = new File("/streams/"+userName+"/"+"email.txt");
but this doesn't
custEmail = new File("../email.txt");
It says:File operation open failed.
[HELP] MC Pointing To MC
hi
i'm creating a new game but i have this problem I cant seem to fix. its about this movie clip (which follows the mouse). I want that MC called "mouse" to point to another Movieclip on the screen called "Ball" . The Ball MC is simply a moving ball, but i want the mouse movie clip to keep pointing towards it. Now i tried some tutorials for pointing to mouse etc. but it simply doesnt work. I'm also using in this project actionscript 2.0 codes so this code has to work within actionscript 2. Can anyone please help me out on this one? it would be cool offcourse if the code was to fit simply 1 movieclip so i dont have to change the whole game :P. tnx in advance!!!
so basically problem =
- Movieclip to point to another Movieclip
- it has to be working with an actioncript 2 swf file
- it has to be limited within 1 movieclip if possible
tnx in advance all mighty flash guru
Pointing To A Scene..
THIS SHOULD BE EASY! ARGHH!!
I have this complex slideshow that loads photos and such and then I run into problems pointing at another SCENE??
How embarrasing.
Can anyone explain why this action script won't work?
this is in scene "intro" pointing to scene "scene 1" . The trace works but the playhead won't go to the scene.
code: onClipEvent (load) {
this.onEnterFrame = function ()
{
if ((_root.pic1.getBytesLoaded () > 0) && (_root.pic1.getBytesLoaded () == _root.pic1.getBytesTotal ()))
{
bytes = _root.pic1.getBytesLoaded ();
trace ("picture" + _root.pic1 + " loaded " + bytes);
trace (" all images are loaded");
gotoAndPlay ("Scene 1", 1);
delete this.onEnterFrame;
stop ();
}
};
}
thanks!
ComboBox - Pointing To A Url
Hi folks,
This is the first time using a ComboBox for my (Flash MX) and I'm trying to get it the different labels to point to different urls. Adding the labels is not a problem, but the data isn't working out for me. I checked the tutorials, I didn't see anything that could really help. Thanks in advance for any suggestions.
Need Pointing In The Right Direction...
I have a site that I made using FlashMX (not 2004).
http://www.pfcoterie.com
Nothing major.
Could some one point me in the right direction as to what I need to learn to make this site easy to edit for the end user?
I would like them to be able to add/edit upcoming events. Add pics to past events. And possibly edit other sections as well if they see fit....all while enabling them to keep their formatting.
Currently each section loads an SWF file when clicked.
And advice would be greatly appreciated as to how I can accomplish this in a way that is somewhat easy for the user.
Pointing To Another Timeline
Hopefully this is a simple one..
I have some buttons in a movie clip. This movie clip is sitting on the scene's main time line. I want one of the buttons when clicked to go to a labeled frame on the main time line. When applying the "goto" action, and choosing "frame label", it doesn't list the labeled frames from the main time line. How do get it to point to these frames??
thanks!
Pointing Arrows
How can you program an object (ie an arrow) to point at something no matter where the screen moves. I want the arrow to swivel to show the player where to go to get to the end but it can't be a simple 8-directional arrow, it has to move constantly around the center of the character mc. Sorry if this is hard to understand because I am not very good at expressing just what it is that I want but I need something like the arrow that points to the planet in this game http://www.miniclip.com/gravity.htm which is an awesome game, btw. Anyone have ideas???
Pointing To Files On CD-ROM
Our company has been called on more and more to develop interactive CD-ROMs using Flash (Director - no thanks). I need to know if and how Flash can open certain types of files like Quark files or if it is at least possible to open up an Explorer window to show where the files reside.
Up until this point, I have been using getUrl, but it is kind of clumsy since that really opens a browser window and then the browser attempts to open the file. Is there a better way to go about pointing people to raw video files, zipped files, Quark documents, etc.??
[F8] Menu Not Pointing
well I saw a menu i liked on here so im trying to intergrate it with my site and it is not pointing correctly. It looks right to me but i must be missing something.
http://nicoleparkerediting.com/DigitalEditing2.fla too big to upload
Variables Pointing Somewhere
so i am trying to make my variables do something in flash... help!
so i have the variables increaseing by one etc.
but how do i get them to actually lead me somewhere?
i would like the variable for 'male' which is at +1 to lead me to frame (so and so)
how do i do this?
through a button?
ie on (release)
if var_male ==1
gotoAndPlay (128)
do i do something like that?
or s it through a frame?
AS2 Vs. AS3: Pointing To An Instance?
Hi,
In AS2 it's possibly to point to an instance dynamically this way:
Code:
for (var i:Number = 0; i<=3; i++) {
var mc:MovieClip = this["ball"+i+"_mc"].dot_mc.border_mc;
mc._visible = false;
}
How to do the same in AS3?
Need Pointing In The Right Direction
hi ppl of the forum.
I'v got a puzzle and i'ts giving me a head ache, it go's somthing like this,
I have some buttons, and some MC's lined up verticaly, when pressed they make the MC's move on to the screen.
but what i want is the first button i press what ever it is, make the bottom MC move on to the screen, and then the next button i press make the next MC up move on to screen then when pressed again the make them movve off.
Make any sence?
If any one can point me in the right direction it would be a big help
thanx in advance
Cursor Pointing
hi all,
i'm trying to make a custom cursor point in the direction that the mouse is travelling. eg., when i'm moving the mouse left, i want the cursor to point left etc... i'm building a panorama where people can navigate round a building and zoom in on things, so this cursor would look really good.
if anyone could point me in the right direction that would be cool.
cheers guys
- D
Mouse Follow For Pointing Arm?
Another feature that I'd like to put into a webpage is a small character in the bottom-left of the screen whose arms points toward the mouse cursor - think of a Professor pointing at a chalkboard with a cane.
Is there a way to do this, but to LIMIT the area that the arm follows? In other words, how can I stop the pointing arm from going against nature and following the mouse to the other side of his body?
INTRO POINTING TO Default.asp
hi all,
just a simple quick question. I have designed a flash intro for a website and when it gets to the end of the intro or if "Skip Intro" is pressed it has point to "default.asp". Now the way I thought I would have to do it was to have a get url and then the site eg "http://www.xxxxxx.com/default.asp" but they have told me that they don't want this they said all I have to do is point straight to default.asp and they will put it all in the same folder, so then how would I do this, any help would be greatly appreciated,
thanks again,
Tom
Changing Pointing Cursor?
I'm working on a timeline with key dates. The client want text and pictures to appear when the mouse goes over the dates. I created a button for each date and added the text and pictures in the over frame of the button. So far it 's working great! I'll like to have the cursor stay as the default and not change to the pointing cursor! I don't want the hand with the finger when people go over the button! How can I change it?
Thanks!
Chris
Pointing To Variables In Sub .swfs
We have got a master .swf file containing a placeholder. At runtime
the placeholder gets filled with a sub-movie using the loadmovie cmd:
PH.loadMovie('mysub.swf') where we have PH set as a placeholder
The sub-movie contains a textbox instance called 'mytextbox'. What's the syntax for changing the contents of the textbox at runtime?
We are using
PH.mytextbox.text = 'new value'
but this does not seem to work.
Any help would be great!
Thanks,
Arrow Pointing To A Button
Hello, I need that an arrow point to one of the buttons that I have created around a circle (there are four buttons) when I move the cursor over one of them.
Please, help.
Movieclip Pointing Toward Mouse
I have a smiple movie clip that i want to always poitn towards a mouse
i have tried a few ways but they don't work HELP PLEASE
Pointing To The Right Movieclip (eval()?)
Hi guys!
This probably comes as a shock to most of you, seeing how often I post here, but I actually *AM* making progress!
My new problem has to do with referencing a movieclip using a string. I'm loading a number of .SWF files into runtime-created movieclips using the MovieClipLoader object. However, as you can see from the trace output in the code below, all my movieclip names resolve to "_level0.mc".
This is an easy one, right?
ActionScript Code:
/*
---[Trace output]-----------------
Now loading: flvswf.swf(0) into _level0.mc
Loading flvswf.swf: done
Now loading: bounceycurves 320x320 flvswf.swf(1) into _level0.mc
Loading bounceycurves 320x320 flvswf.swf: done
Now loading: movingshadecluster 320x320 flvswf.swf(2) into _level0.mc
Loading movingshadecluster 320x320 flvswf.swf: done
All loaded in 7 frames
----------------------------------
*/
var myMCL1:MovieClipLoader=new MovieClipLoader()
var myListener1:Object=new Object()
myMCL1.addListener(myListener1)
var Loading:Boolean=false
var AllLoaded:Boolean=false
var arrFilesToLoad:Array=new Array()
arrFilesToLoadPos=0
myListener1.onLoadInit=function(mc) {
trace("Loading "+arrFilesToLoad[arrFilesToLoadPos].Filename+": done")
Loading=false
if (arrFilesToLoadPos<arrFilesToLoad.length-1) {
arrFilesToLoadPos++ }
else {
trace("All loaded in "+LoadCounter+" frames")
AllLoaded=true }
}
myListener1.onLoadError=function() {
trace("Loading failed") }
AddToFilesToLoad=function(Filename,mcTarget) {
var objTemp=new Object()
objTemp.Filename=Filename
objTemp.mcTarget=mcTarget
arrFilesToLoad.push(new Object(objTemp)) }
var BlurCircle:MovieClip=this.createEmptyMovieClip("mc", this.getNextHighestDepth())
AddToFilesToLoad("flvswf.swf",BlurCircle)
var BounceyCurves:MovieClip=this.createEmptyMovieClip("mc", this.getNextHighestDepth())
AddToFilesToLoad("bounceycurves 320x320 flvswf.swf",BounceyCurves)
var ShadeCluster:MovieClip=this.createEmptyMovieClip("mc", this.getNextHighestDepth())
AddToFilesToLoad("movingshadecluster 320x320 flvswf.swf",ShadeCluster)
FrameCounter=0
LoadCounter=0
_root.onEnterFrame=function() {
if (AllLoaded) {
GoDoIt() }
else {
LoadCounter++
if (!Loading) {
i=arrFilesToLoadPos
mcTarget=arrFilesToLoad[i].mcTarget
Filename=arrFilesToLoad[i].Filename
trace("Now loading: "+Filename+"("+i+") into "+mcTarget)
myMCL1.loadClip(Filename,mcTarget)
Loading=true
// And now, the app freezes, waiting for the listener to react
}
}
}
GoDoIt=function()
{
FrameCounter++
BlurCircle._alpha=30
BounceyCurves._alpha=30
if (FrameCounter==30) {
BlurCircle._y=-40 }
if (FrameCounter==70) {
BlurCircle.stop() }
if (FrameCounter==79) {
BlurCircle.gotoAndPlay(40) }
}
Thanks in advance!
Peran.
Simple AS Pointing Question
So, home.swf is loaded onto background.swf. In frame 1 of home.swf, how do I point to an element on the _root of home.swf?
I can't say _root, because that points to the _root of background.sw... My mind is blanking, and I feel like I should know this. Any help?
Here's what I'm actually trying to do:
I've got home_image_mc on the home.swf. When it is clicked, it's supposed to cause some elements on background.swf move. The only thing is, I don't know what to put where _parent is, because I don't know how to point to itself (as described above).
Code:
var mc_9:MovieClip = _parent.home_image_mc;
mc_9.coords = [];
mc_9.coords.push({mc_9:_root.background_mc, endX: 0, endY: 0});
mc_9.coords.push({mc_9:_root.logotext_mc, endX: 91, endY: 416.0});
mc_9.coords.push({mc_9:_root.nav_mc, endX: 40, endY: 479.1});
mc_9.onRelease = function() {
for (var i in this.coords) {
this.coords[i].mc_9.endX = this.coords[i].endX;
this.coords[i].mc_9.endY = this.coords[i].endY;
this.coords[i].mc_9.endRot = this.coords[1].endRot;
}
_root.content_mc.gotoAndStop(30);
_root.nav_mc.gotoAndStop(30);
};
Disable The Pointing Hand.
How do i disable the pointing hand from showing up when i roll over a button in flash? Thanks in advance.
Two Domains Pointing To 1 SWF - ERROR
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")
However this did not solve the problem.
Any help please?!
How Can My Custom Cursor Know What It's Pointing To?
Hi All,
I'm working on coding a game and i've hit a roadblock.
So i've built a cursor that can only be controlled by the directional keys. I could like this cursor to cycle through a list of magic spells and when the user hits enter, that magic spell is invoked.
My cursor can cycle and move just fine. But How can my cursor truly know what its pointing to?
In other words....if the user has the cursor pointing to 'fire' and hits enter, How does that cursor know its was pointing to 'fire'?
any ideas/suggestions?
Start By Pointing Me In Right Direction
I am new to Flash....but have created a few movies...and other things. I would like to have create something that allows a user to view multiple movies when they click a button. I would like one viewing area, with buttons on top of that viewing area....and when a user selects a button, the movie plays below.
Can someone point me towards some sample code that might make this go quicker for me?
thanks,
Aberon
NEED POINTING IN RIGHT DIRECTION FOR NEWBIE
Hi all,
l'm new to this site and hoping someone could help me.
l'm creating a movie in which there is a nav_MC on the main stage. this nav_MC has 8 link buttons on it. all named btn1 through to btn8.
On the Main stage there is 8 different images all displayed at different points along the timeline. When you click a link on the nav_MC (e.g:btn6) l need the whole nav_MC to move to a pre-defined position on the main stage so it doesn't obscure the new background image being displayed on the timeline at fram 60.
The nav_MC sort of needs 8 different pre-defined co-ordinates.
l have researhced this a little but getting lost. its got something to do with listeners and tweens and mx.transitions.easing.Elastic.easeInOut
Does anyone or has anyone seen a tutorial on this subject or a free swf file that l can look at.
l found something similar on flashkit that a chap posted.
http://www.eggrollindustries.com/mxtween.swf
waiitng desperately.
thanks if anyone can help me.
Problem When Pointing SWF To CMS Managed FLV
Hi,
I'm having a few problems with my swf communicating with my flv. If anyone has suggestions that would be great.
I have the following actionscript in my flv:
var flvSource:String = src_flv;
video.contentPath = flvSource;
video.skin = skinSource;
And here is the code within my html page. I have uploaded the flv to a CMS so have to use a query to get its location etc (String src_flv), and this is where problem is occuring. As when I just FTP flv to server and point to it, there is no problem.
String src_flv = "http://servername/servlet/BlobServer?blobkey=id" +
"&blobwhere=" + videoID +
"&blobcol=url_flv&blobtable=Video&blobheader=v ideo/x-flv";
String src_swf = "http://servername/servlet/BlobServer?blobkey=id" +
"&blobwhere=" + videoID +
"&blobcol=url_swf&blobtable=Video";
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="450"
height="300"
align="middle">
<param name="allowScriptAccess" value="always">
<param name="movie" value='<%=src_swf%>'>
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<param name="FlashVars"
value="&skinSource=/futuretense_cs/Video/ClearExternalPlaySeekMute.swf&src_flv=<%=src_flv%> &autoPlay=false&autoRewind=false"
/>
<embed src=<%=src_swf%>
flashvars="&skinSource=/futuretense_cs/Video/ClearExternalPlaySeekMute.swf&src_flv=<%=src_flv%> &autoPlay=false&autoRewind=false"
quality="high"
align="middle"
bgcolor="#ffffff"
width="450"
height="300"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>
Pointing To A Scene Depending On URL (AS 2.0)
Hey guys,
I'm a recent browser of your forums, having recently been given the task of getting across basic flash development for my team.
I'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.
What am I missing, or have I gone about this entirely the wrong way?
Cheers for any help you can give.
Two Domains Pointing To 1 SWF - ERROR
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")
However this did not solve the problem.
Any help please?!
Start By Pointing Me In Right Direction
I am new to Flash....but have created a few movies...and other things. I would like to have create something that allows a user to view multiple movies when they click a button. I would like one viewing area, with buttons on top of that viewing area....and when a user selects a button, the movie plays below.
Can someone point me towards some sample code that might make this go quicker for me?
thanks,
Aberon
Why Is _root Pointing To A Different Scene?
Hi -
Total newbie here. Im having a problem. I have 5 scenes. On Scene 5 I have a movie. The movie contains a button and it has the code:
on(release){
_root.gotoAndStop(10);
}
now when I click the button it goes to Frame 10 of Scene 1 and not of Scene 5 which is where it is currently at...I thought _root referenced the current timeline? I have a feeling I'm just missing something but I can't figure out how to reference my current timeline...I've tried _parent as well but it's not working.
Thanks for the help!
focus
Flash Pointing To Another Frame.
I have two frames on my site.
I want to use a flash menu.
How do I get the flash to understand that it should load the new link in another frame?
Pointing To End Of Movie From Html Page?
Hi I have finished my site, it links to some html pages, on them I have it pointing back to the home page but dont want it to replay the movie. Is there a way to point to the last frame of the movie from the html page. would it take a movie clip, put into the html code, not sure how to do this?? any help would be appreciated.
Tator
Script For Pointing To A Movie Clip
Hi all,
I no this is simple but I can't get it to work. I have 3 buttons and they each want to point to a different keyframe in 1 movie clip.
This is what I have at the moment as a action on my button, about_content being my movie clip:
on (release) {
gotoAndPlay("about_content",20);
}
Can some one help me with the script (im sure im just being simple)??
Cheers
Jonny
Rotating A Movieclip -> Pointing To Mousepointer
Hi fellas. I've done this code but the clip seems ot be likea radian or maybe like 45 degrees off - it does not directly point to the mousepointer.. can anyone figure it out why it is like that?
onEnterFrame = function(){
var dx:Number = _xmouse - arrow._x;
var dy:Number = _ymouse - arrow._y;
var radian:Number = Math.atan2(dy,dx);
arrow._rotation = radian * 180 / Math.PI;
}
[F8] Movieclip Pointing To Mouse Cursor
How would you create the effect in this game: http://www.newgrounds.com/portal/view/375622
where the hero's gun/arms align up with the mouse cursor?
I'm guessing there is trigonometry involved and tracking _xmouse/_ymouse, but I'm not to sure. Any help is appreciated.
Here's what I have so far. I think the problem is in my math.
Any ideas.
Code:
onEnterFrame = function ():Void {
addScope();
var armY = _ymouse-this.hero_mc.arm_mc._y;
var armX = _xmouse-this.hero_mc.arm_mc._x;
var radians = Math.atan2(armY, armX);
this.hero_mc.arm_mc._rotation = radians*90/Math.PI;
};
function addScope():Void {
Mouse.hide();
scope_mc.onMouseMove = function() {
this._x = _root._xmouse;
this._y = _root._ymouse;
// updateAfterEvent used to refresh stage creating smooth cursor movement
updateAfterEvent();
};
}
Text When Pointing On A Button? Actionscript?
Is there any way where a certain text appears on a button when the cursor is pointing in that button? And when the cursor goes out of the button the text also disappears? Just like in this Mozilla browser, when i point my cursor on the refresh button, a certain text appears that says "Reload current page"
What code is that?
Help With Website Template And Pointing To PHP File
I purchased a website template from Dreamline Studio about 3-4 months ago. I'm just now getting around to setting it up. I have most of the site setup using the trial version of Adobe Flash. With their template, it came with a contact.php file. I downloaded a PHP editor and filled in the e-mail address as I thought I needed to but I have something wrong.
I called Dreamline and they pointed me to this website so I hope someone here can help. According to Dreamline their template is setup so all I have to do is put the contact.php file in the same directory and it will look at it for the e-mail info. Well, when I try to test the site (www.ITGuyz.net) the e-mail says it was sent but I never receive it. I'm not pro in Flash but I'm willing to learn.
I need to know how to make sure the swf file is pointing at the contact.php file and if I have the php file setup correctly.
Thanks!
Matt
Buttons In A Movieclip Pointing Back..
so i have a movieclip(padclip) which contains the navigation to my site. there are buttons with padclip that point to different moveclips. one of them being (btn101).. soo below is my issue
i tried using
_parent.btn101.gotoAndPlay();
but received the following error in debug.
1120:Access of undefined property _parent.
if i just use
btn101.gotoAndPlay();
i get the same error but its
1120: Access of undefined property btn101
also.. padClip is not in a folder while btn101 is in a folder..
any ideas?
Please Help Pointing To A Specific Frame In A Loaded Swf.
Hi everyone,
I 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.
Thank you in advance for your time!
macgirl
Please Help Pointing To A Specific Frame In A Loaded Swf.
Hi everyone,
I 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.
Thank you in advance for your time!
macgirl
Buttons In Movie Clips Pointing To Main... Help
Okay, this is a very simple and should be easy to solve problem... But I have tried everything with no luck!....
okay I have a button in scene 1... you click on it and it plays scene 2... scene 2 consists of a movie clip symbol... and within that is an animation.... at the end of an animation there is a button that should bring you back to scene 1...
for some reason... when i do the scripting to make it go back to scene 1.... and test it, it doesnt go to scene 1 but just replays the movie clip animation instead.... Why is this happening and how do I fix it!
2 Class Instance With Members Pointing To The Same Place...?
I'm using Flash MX 2004 Professional and this loks like a bug to me...
Here's the problem, i'm making a game and something strange is going on. I found out that when I create a new instance of a class, it comes with the data from the last one created. These are my classes...
class SquadManager - This class controls all the alien squads, I have just one instance. It has an array of squads:
var Squads:Array = new Array();
class Squad - This is the actual squad of aliens. it controls all its aliens, check if they are alive and give a power-up when they all die. It has an array of aliens:
var Aliens:Array = new Array(0);
class Alien extends MovieClip - This is an Alien. Here i do collision test, move it, etc.
Inside the SquadManager, I create random squads with this function:
public function spawn(type:String, x:Number, y:Number) {
var name = "squad_" + SquadCounter++;
var newSquad:Squad = new Squad(name,type,int(x),int(y));
Squads.push(newSquad);
}
And here's the funny part...
Every time I make a new isntance of Squad (the newSquad above), if I check the contents of the Aliens array in this new Squad, it contains all the previously created aliens of the last new squad.
And more... The Aliens array in all my Squads point to the SAME array. If I add or remove an element in one instance's Aliens, all the other ones are affected the same way, as they were pointing to the same array.
Because of this, all the aliens are speeding up when another squad is spawned, because I move them twice when I loop thropugh the squads.
I'm pretty sure there's no flaw here, in the Squad constructor, I print all its properties are they are undefined, but the Aliens array is being shared with all other Squads...
Please someone give me some light...
This is my game as it is now
Flash Menu Pointing To Anchors Outside Frame?
Hi,
I have a flash menu in the right frame and text in the left.
i can open the correct page in the left frame but i cannot dirrect it to an anhcor.
i understand from the macromedia site that i can get round this with javascript but i have never used it before.
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14339
this seems to have the info i need but I'm not sure what to do with it.
any help would be great! this is driving me bananas
|