Recognizing Start/end Of A User Interaction
Hi, I've to trap the beginning and the end of delivery of a FLV content (i.e. those on YouTube ) from a network point of view without control of server and client (it's not an interception activity... I'm not interested in the content itself).
It would be interesting to trap the user's stop/pause too, but I noticed using Ethereal/Wireshark that no signalling goes back-and-forth; probably it's possible to trap the "HTTP 200 OK" to assume the beginning of the stream but nothing more (probably due to the progressive download/buffering technology).
Have you any idea/help ?
Thanks a lot
Adobe > Flash General Discussion
Posted on: 03/14/2007 03:18:52 AM
View Complete Forum Thread with Replies
Sponsored Links:
[CS3] HELP: Recognizing User Inputs
I've done some basic Flash work, but I just started into programming in Flash and I'm already fairly frustrated. That being said, I just am really looking for some help with (I think) a pretty basic concept: taking user inputs from an input text box and going to a certain frame based on their inputs. It sounded so simple when I started, but for some reason Flash doesn't seem to be recognizing anything I input into my text box.
When I say I need help, I mean I need to know how to not only code what I need, but how to set up the properties of the text box and allow it to read my inputs.
Basically I need to evaluate a user input of up to 3 numbers, in this case, their age. Based on their answer, the timeline will skip to a certain frame. So far, I think I've determined that using a switch/case statement would be best and I pretty much know how to use that... but I cannot for the life of me get Flash to recognize the number I enter and use that in the statement.
This is what I have so far:
an input box (age_txt)
when a user clicks a button (submit_btn) it should run something like this code:
num = age_txt;
switch (num) {
case 20:
gotoAndPlay(26); break ;
case 40:
gotoAndPlay(27); break ;
case 60:
gotoAndPlay(28); break ;
default:
gotoAndPlay(29);
}
The hang-up seems to be in getting the input recognized. Please help!
Thanks,
Brandon
View Replies !
View Related
Creating User Interaction
Hey!
Im working on a fighter game. Right now I am trying to be able to control my characters with the keyboard. I have a Flash MX book, but for some reason, the actionscript that they tell me to use doesn't work in Flash MX Professional 2004. Perhaps because of the difference in Actionscript.
Anyways, I have searched the net, and tried to do it myself, but it dont find anything and it doesnt seem to work for me. So....I need help :P
Basically I have a movieclip that has the standing, crouching, jumping, and running animations. They are all seperated between 5 frames, and the running animation runs for a long line of frames. After every action, there is a stop so that in the Actionscript, I will make it play the part of the movie clip that I want. I think you understand what I mean.
It may be simple, but I am not exactly advanced in Actionscript, im in the process of learning.
If anyone could help it would be greatly appreciated.
Thanks
(BTW, please don't give me any welcome messages, Im not new, just made new account )
View Replies !
View Related
[F8] User Interaction Help Needed.
I'am trying to create a manual and would like to have the enduser click on check boxes after he has finished certain steps and only after he has completed all steps (ie. cchecked off all the boxes) on the screen does he have the ability to jump on to the next section. I am just having trouble with action script on this can some one point me in the right direction?
Thanks,
sven
View Replies !
View Related
Logging User Interaction
Hi,
I have made a flash standalone application which I'm running on a touchscreen computer open to the public. I'm getting several reports that the program keeps crashing- I have tried to reproduce the error but can't. Is there any way that you can output all user interaction in flash in some kind of external log file?
Thanks.
Lilalfyalien
View Replies !
View Related
Enable / Disable User Interaction
Hi everyone,
does anyone know how, or know a way you could disable / enable an entire flash movie and its children, based on certain events. Like say you have a custom event manager that dispatches an event to notify the movie if any content is being loaded somewhere, in order to disable the entire flash movie during loading time ?
any info would be cool.
cheers
View Replies !
View Related
Temporarily Disable User Interaction...
I just thought of something really cool and thought I'd share:
If you wanted to disable user interaction while something processes or something, you could do this:
Code:
btn.onpress = someFunc();
function someFunc(){
_root.onPress = function(){
//do nothing
}
//
//Put some code that needs no interuption here
//
delete _root.onPress
}
I think it's pretty slick, what do you think??
HTH Somebody out there ;)
View Replies !
View Related
Pausing Movie & User Interaction Issues
Hello All –
I have been going around and around in circles trying to find a script for what I thought would be an easy thing to do. Here’s where I’m at – I have a Flash movie that has five images. What I need it to do is automatically play through the movie and display each image for about 10 seconds then move onto the next image.
What is also needed is for the user to click on one of the five buttons so if Image 4 is showing the user can click on Button 2 to bring up Image 2 and then after pausing for the specified time the movie will resume playing and pausing.
Client Specifications: The images and text/link must be set up so that those elements can be updated externally. Right now this movie has the images being loaded with the Loader Component so that the five jpgs are loaded dynamically and the text/link is being loaded with the TextArea Component through the five txt files in the folder.
Each image is set up in its own Movie Clip and each clip contains a mask for the rounded corners and a fade-in for the beginning along with the image and text being loaded. So there are five movie clips.
My Problem: When you first load the movie it plays fine. However, when you click on a button – say the movie is displaying Image 4, click on Button 2 and it jumps back to display Image 2 and then the timing goes crazy. The movie starts playing faster and will even get to the point where it skips from Image 1 to Image 3.
Here is the movie: http://www.fractalrust.com/flash/
The Code: This code is on the first frame of the main timeline:
function wait() {
stop();
var myInterval = setInterval(function() {
play();
clearInterval(myInterval);
}, 10*1000);
}
This code is on the same frame as each movie clip on the main timeline:
wait();
I have gone through a lot of different scripts that I found and this is the only one that comes close to doing what I want. Not sure if the script I found is compatible with Flash 8, which is what I am using. If anyone could let me know if what I am looking to do is doable that would be great. Also if you want to take a look at the movie you can download it: http://fractalrust.com/flash/fiveheaders.zip
One last note – the person who asked me to do this got the idea from this site: http://aimtoday.aim.com/
It’s the Flash movie off in the upper right corner that has four rotating images and you can click on the buttons to jump to anyone of them.
Thanks in advance!
Kecia
View Replies !
View Related
Pause And Continue Linked To User Interaction
I'm building a looping flash movie which has a section that allows user interaction.
What I want to do is if there is no user interaction for the movie to play and loop as normal. However if the user clicks on the screen then the movie pauses to allow the interactive elements to be manipulated. Also after a set time of no user interactivity (say 30 seconds) the movie will resume playing.
Can someone suggest some code for pausing and resuming the movie?
Thanks
View Replies !
View Related
Flash TreeView Menu And User Interaction
Hi,
I've developed in Javascript a TreeView menu.
I would like to do the same in Flash/AS but i do not know where to start :-(
before to start i would like to know :
- if it is possible to make this TreeView menu dynamic ?
i mean by that that web developer could use this TreeView menu by adding
several nodes and children to this menu like :
MyFlashMenu.addChild("new node", "parent node", imageNode);
but i do not know if from web page it is possible to pass arguments to
flash.
thanks a lot,
A.
View Replies !
View Related
Want Custom Cursor To Act Opposite User Interaction...
Hi guys
Here's something for U math champions.
Is it possible to get the custom cursor MC to act opposite the users actions?
I want it to be opposite the center of the stage, lets say the real mouse cursor is 200px to the RIGHT of the center of the stage, but the custom mouse cursor is 200px to the LEFT... get it? And the same goes for the y coordinates...
I gave it a try, but can't seem to get it right, math never was my strong side
View Replies !
View Related
Tracking User Interaction - Flash Menu
I'm kinda new to AS and having a problem with a menu system I'm trying to create. I think I'm close but can't quite get it to work and not being sure about AS, I don't know if the things I'm trying are making it worse or better?? Can anyone can help??
The system I want to create needs to check if a button (and subsequently it's content) has been clicked/loaded before, if not the button function should be x.
If it has been clicked before and is in <= a certain position the button function should be y.
Else the button function should be z.
Can anyone point me in the right direction?? Sorry, my hosting has run out, so I have nowhere to post what I've done already...
Thanks in advance, much appreciated!!!!!!!
View Replies !
View Related
Page 2 - Tracking User Interaction - Flash Menu
Hi, try this out:
Code:
Pos1MC.bar.onRelease = function() {
if (ui.profileMC == undefined) {
xTargetPos1MC = Pos1Out;
Pos1MC.yTargetTitle = TitleDwn;
var amc = ui.Pos1MC.createEmptyMovieClip("profileMC", 1);
amc.createEmptyMovieClip("holder", 1);
amc.createTextField("msg_txt", 2, 10, 200, 200, 50);
amc._x = -530;
amc._y = -197;
amc.holder.loadMovie("profile.swf");
amc.onEnterFrame = function() {
if (this.holder.getBytesLoaded()>=this.holder.getBytesTotal()) {
delete this.onEnterFrame;
// get rid of the loading progress textfield
this.msg_txt.removeTextField();
} else {
// show how many bytes have been loaded
this.msg_txt.text = this.holder.getBytesLoaded()+" loaded";
}
};
} else if (this._x>=pos1In+1) {
// if already created and loaded, just set it visible
Pos1MC.bar.onRollOver = function() {
ui.xTargetPos1MC = pos1In;
ui.Pos1MC.yTargetTitle = Title1Up;
ui.profileMC._visible = false;
};
} else {
Pos1MC.bar.onRollOver = function() {
ui.xTargetPos1MC = pos1Out;
ui.Pos1MC.yTargetTitle = TitleIn;
ui.profileMC._visible = true;
};
}
};
When your coding within flash you can use the syntax checker. It's the little blue tick next to the format button, just above the code editor window. That pops up a window telling you what line the problem is on. Anyway the above is error free although it's hard to tell if the way I've worked it is how you want it!...
Lauri : have you tried contacting the forum admin? They might of stumbled on your problem before and may know a solution...
View Replies !
View Related
FLV: Start Load When User Clicks Play?
Hello,
It would be nice if anybody could give me a little help on this subject.
How would I tell Flash to not to load the FLV unless the user clicks on the play button? An example would be on YouTube site. I want the movie to only start loading/progressive streaming if the play button is clicked by the user.
And which code should I use?:
Code:
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
myFlvPlayback.play();
};
myFlvPlayback.addEventListener("ready", listenerObject);
myFlvPlayback.contentPath = "myvideo.flv";
And this one:
Code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("myvideo.flv");
I already have my own custom skin setup for the first code, so it would be awesome if I can figure out how to work it out with that one. Please help!
Thanks in advance.
View Replies !
View Related
How To Make SWF To Reload From The Start, Every Time User Reload/revist The Page.
Hi,
How can i make my flash SWF file to reload from the start every time when a user visit the site.
Like i dont want it to be saved in cache, i want to reload it from the start every time, because i have seen that once it is saved into cache, it just starts from the cache when we visit the site. So, i dont want it, i want it to reload again and again from the server whenever user visits.
I used the following meta tag:
<meta http-equiv="pragma" content="no-cache">
But it seems to be not working as the way it should. As when i re-load the page, the preload bar shows 100% loaded.
ANy idea???
Amir
View Replies !
View Related
As Not Recognizing A Mc
I'm finally doing my first AS3 project after lots of AS2. I was given a .fla by the graphic artist with a timeline full of graphics and movieclips, etc., but no AS other than some stop() functions. I'll write some classes soon, but for the moment, I'm working on the timeline.
There's a movieclip on the timeline to which I need to register an event listener. I gave the movieclip a name "div". But when I run the movie, I get the following error:
1120: Access of undefined property div.
I get this error for any movieclip that was already present on the timeline when I received the .fla if I try to reference it with Actionscript in any way, even including a trace() function. If I convert one of these symbol types to a Button, then AS properly recognizes them. But then I lose the functionality of those MCs.
If I create a new movieclip with the tool palette and put it on the stage, I can do what I want with it in AS without the errors.
It's like Actionscript can't see the preexisting movieclips, even though they have instance names.
Why would this be?
View Replies !
View Related
Recognizing Color
I have buttons to make an object("guy") turn different colors. Now I'm having trouble figuring out an action to find out what color it is and then play a frame if it is that color on a certain frame. can anyone help. it is probably simple I just dont know.
View Replies !
View Related
Recognizing Variables
I've been trying to get a conditional script to recognize the appropriate variable to follow in the script. Would their be an error in the syntax or in setting the variable vaolues that would prevent the script from being understood.
The script seems to be skipping the first questions variable altogether. Please help straighten me out.
View Replies !
View Related
[F8] Flash Not Recognizing My .FLA... HELP
i know this is a longshot, but i gotta ask...
I was working on one of my websites, and Flash pooped out on me for some reason (probably cause my cpu is about 1 day older than dirt), but i got the Debug/Close message, chose Close, then when i reopen Flash, and try to open the .FLA i was working on (which was a pretty intensive site), i get a "Unexpected file format" error...
does anyone have any clue of what i could even try to do to fix it??
even my latest backup is a week old and missing TONS of work...
TIA.
View Replies !
View Related
Not Recognizing XML File
I have a page that rotates through a series of static graphics with an animated sequence between each static image. I did not design this and am now having to make a duplicate copy of this with new colors in the animation and a different XML file to draw the images and titles from. You can see the working version here:
Working Version
I have gone into the action script where the XML file name is specified. I have changed the name to the new XML file name. I re-export the swf file and despite the XML file being in the same location as the original XML file, this simple change seems to break the animation and it freezes just before putting up the first information from the new XML file.
Non-Working Version
Actionscript is not my strong suit. I have gone through and compared the code and I can't find anything that would explain this problem. If anyone has any pointers on what might be causing this, I would be extremely greatful to hear from you.
Regards,
Andy
View Replies !
View Related
Need Some Pattern Recognizing Help..
Hey all,
Again, I ran into trouble making tetris. Please take a look at the swf attached. None of the controls work yet - press the blue button to start/pause.
Take a look at it, and you'll see that some blocks go through others (which isn't supposed to happen). The blocks are managed into arrays of "yes" or "no". If the blocks below the current moving tetris block are "no", then that current tetris block will continue moving down. If "yes", it will become purple and initiate a new tetris block.
Now, please feel free to browse through the fla to see the structure. Test the movie in Flash and look at the check "yes" or "no" process with the traced commands.
Something is seriously wrong, and I don't know what. There seems to be a pattern of the blocks that go through others, but I can't find it out. (the swf may need to be run 2 or 3 times before a bug appears).
Thanks for your time!
View Replies !
View Related
Need Some Pattern Recognizing Help..
Hey all,
Again, I ran into trouble making tetris. Please take a look at the swf attached. None of the controls work yet - press the blue button to start/pause.
Take a look at it, and you'll see that some blocks go through others (which isn't supposed to happen). The blocks are managed into arrays of "yes" or "no". If the blocks below the current moving tetris block are "no", then that current tetris block will continue moving down. If "yes", it will become purple and initiate a new tetris block.
Now, please feel free to browse through the fla to see the structure. Test the movie in Flash and look at the check "yes" or "no" process with the traced commands.
Something is seriously wrong, and I don't know what. There seems to be a pattern of the blocks that go through others, but I can't find it out. (the swf may need to be run 2 or 3 times before a bug appears).
Thanks for your time!
View Replies !
View Related
Recognizing Variables
When I load variables from a text file into my Flash movie, it works properly. But when I try to set up "If" conditions based upon the variables, it fails to read them correctly and I have to manually type the variables in.
Is there any way to fix this? All help is much appreciated.
View Replies !
View Related
Recognizing When An External Swf Is Loaded
How do I get the root movie to recognize when an external swf loaded into a target mc has finished loading?
My conditional statement seems to only be able to recognize the target mc, not the external swf.
if (_root.target._framesloaded >= _root.target._totalframes) {
_root.gotoAndPlay(26);
}
Thanks much!
View Replies !
View Related
Recognizing An External Swf Has Loaded
How do I get the root movie to recognize when an external swf loaded into a target mc has finished loading?
My conditional statement seems to only be able to recognize the target mc, not the external swf.
if (_root.target._framesloaded >= _root.target._totalframes) {
_root.gotoAndPlay(26);
}
Thanks much!
View Replies !
View Related
Recognizing Input Text
i have a game that ive made...... and there are multiples levels.
on the bigging screen i have an input text box with a button beside it . i want it so that when you put in the right password and click the button beside it.. it will go to a certain level(scene).
anyone know what i could do?
thanks
-striker
View Replies !
View Related
Recognizing Imported Variables
Hi all,
I've got a list of links that are imported from a text file via php.
The text file is formatted like this / &_level0.text1=Flashkit&_level0.link1=www.flashkit .com& /
It loads into the flash movie just fine and I can see that it is loaded because the dynamic text fields "text1" and "link1" display the proper text.
I use this code to import the names and urls of the links.
loadVariables(pathToLinksData+"?cacheKiller="+getT imer(), this, "POST");
I pass a variable at the end of the text file like this > /:Status="Done" < and in the fla there is a Dynamic text field called /:Status with the instance name StatusInstance.text (that's the only way so far that I can get flash to recognize that there is something in it).
My problem is counting them. If I manually enter the text in the fla it works fine, but If I import the values, flash thinks the value of "_level0.link1" is null or empty.
Here is the count code. It's a function.
if (StatusInstance.text == "Done") {
linkcount = 1;
countLinks();
}
function countLinks() {
while (linkcount>0) {
templink = eval ("_level0.link"+linkcount);
if (templink==null) {
/:total = linkcount-1;
break;
}
linkcount++;
}
}
Again, this works great if the variable values are not imported. I need it to work with variables and values dynamically loaded but flash can't see that "_level0.link1" is NOT empty.
whew. I dunno.
View Replies !
View Related
Loading And Recognizing Variables
Something is wrong here. But I don't know what.
I'm loading a text file like this
this.loadVariables("vis.txt");
the contents of the file will ultimately be many variables that will change but for now it is:
&Vis=1
I have a movie on the main timeline with Instance name: Vvisible1
then the code on frame 12 is:
if (Vis = 1) {
with (Vvisible1) {
gotoAndStop("on");
}
} else {
with (Vvisible1) {
gotoAndStop("off");
}
}
I change the variable in the text file and it doesn't change the frame to off. It's always on.
Please help.
View Replies !
View Related
Recognizing Htrm In An External .txt?
here is what I have
a movieclip instance name "content_updates" without quotes
inside that movie I have an empty dyanmic text field. var=text
and i have a text document
Code:
text=<p align="center">hello</p><p align="center">there</p>
what actionscript do i need on that movie clip to load that text properly (formatted)?
View Replies !
View Related
Recognizing MC's Frame (I Guess...)
Hi all!
Here's my problem: I have a MC on stage called cp. Inside the MC there's a button that shoud activate the MC on the first click and deactivate it on the second click. Basically the MC has a very simple animation of some square going down and stops when it reaches a certain frame (which has a stop(); action on it) and when the user clicks the button for a second time the square goes up. Obviously, the first frame of the MC also has a stop(); action on it. I tried to use the following code but it didn't work, there was no animation whatsoever:
code:
on (release) {
if (_root.cp._currentframe=1) {
gotoAndPlay ("_root.cp", 2);
}
else {
gotoAndPlay ("_root.cp", 32);
}
}
Any ideas how to make this thing work?
Thank you for your help!
View Replies !
View Related
Array Not Recognizing Objects
I have a code to create an array, then fill it with objects c1,c2,c3,c4,c5.......,cN.
objectcount = 14
for (myarray=new Array(objectcount), objectnumber=0; objectnumber<objectcount; objectnumber++) {
myarray[objectnumber] = ("c"+(objectnumber+1));
}
that seemed to work just fine. I used trace() and found the array to contain c1 through c14. btw, c1 through cN are movie clips.
then i have a code to change _x and _y for each object in the array.
for (i=0; i<objectcount; i++) {
myarray[i]._x = somenumber;
myarray[i]._y = someothernumber;
}
the behaviour of my movie and a trace action i tried made it evident that my code was unable to set the _x and _y properties on my array objects. a trace action asking for the _x coordinate of one of my objects returned blank.
trace("the _x value is " + myarray[5]._x)
that returned the _x value is
It seems as though it is treating my objects as something other than movieclips.
help please
View Replies !
View Related
[cs3] IE Not Recognizing Stop(); On Frame 1
I'm creating an ad that I want to publish to player v6. It has a stop action on frame 1. Firefox recognizes this and stops the movie, however IE just pauses and then plays. If I publish as v8 or 9, the problem disappears, but I really need to make this work with 6. Any suggestions? -mike
View Replies !
View Related
Recognizing A Word In A Sentence
hey all...
i need a script thar recognizes a specific word in a sentence.
lets say i have an input text area asking the visitors to answer a specific question. the question is "how are you". The visitor may answer "fine thanks" or just "fine" (or maybe something else). I want to recognize if the answer that is written in the input text area include the word "fine", and if so, do something in the movie when pressed the accept button (so the script must work on a button).
I must solve this with the variable method, because the rest of the movie works with xml, and i don't want to mix it up.
i worked it up with the folloving variable method, but it just works if only the word "fine" is written in the text field. I need smt. similar to this.
Code:
on (release) {
if (this.input_text_field=="fine") {
this.the_movie_clip.gotoAndStop(10);
}
}
any help will be appriciated...
View Replies !
View Related
Object Not Recognizing A MouseEvent
Alright, I made a scrollbar class. It creates a background rectangle, and a bar rectangle. If I add MOUSE_DOWN event to the whole MC it recognizes it, but if I add it to the rectangle, it doesn't. here's my code (I deleted some code so you can see easier):
Code:
package com.bizzark{
//import stuff here...
public class Scroller extends MovieClip {
private var rect:Rectangle;
private var slider:Shape = new Shape();
private var bg:Shape = new Shape();
public var sliderObject:Object;
private var slider_tween:Tween = new Tween(slider, "y", Elastic.easeInOut, slider.y, bg.height, 3, true);
function Scroller(){
slider.graphics.beginFill(0xFFC133, 1);
slider.graphics.drawRect(0, 0, 10, 60); // x, y, width, height
slider.graphics.endFill();
bg.graphics.beginFill(0xCCCCCC, 1);
bg.graphics.drawRect(0, 0, 10, 241); // x, y, width, height
bg.graphics.endFill();
addChild(bg);
addChild(slider);
}
private function positionMessage(e:Event) {
//taken out...
}
function moveIn(obj:Object, t) {
slider.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown); // THIS DOESN'T WORK
addEventListener(MouseEvent.MOUSE_DOWN, sliderDown); // THIS WORKS
slider.addEventListener("enterFrame", positionMessage);
addEventListener(MouseEvent.MOUSE_UP, sliderUp);
addEventListener(Event.RESIZE, resizeEvent);
addEventListener("enterFrame", watchPos);
checkNeed();
}
function sliderDown(e:Event) {
trace("DOWN");
}
///etc etc...
}
}
View Replies !
View Related
Recognizing Drawn Letters
What could be the easiest / best way of recognizing which shape a user draws? I'm making a game for kids and they are supposed to draw letters by dragging the mouse, like I, E, A, O and the scandinavian ones too, like Å, Ö.
Now I have a method where I have a transparent movieclip that's shaped like the real thing, only 10 px wide, and every time the user's mousedrag leaves that area I record that as an error. I also calculate the length of the drawing and check that the drawing starts and stops around the right places.
It's fairly accurate, but it's not working with letters that can't be drawn with just one line, like A or E.
I guess it wouldn't be that hard to modify it for that - but before I start it would be nice to hear if there's some better suggestions.
Thanks!
View Replies !
View Related
Recognizing If Someone Has Flash Installed?
I am building a web site for an advertising/marketing comapany and they want a flash banner and navigation at the top of the page. They also want a HTML-only version for some of their clients.
They suggested that I build a 'splash' page to offer a link to the flash and html pages.
However, I do not like that idea and was wondering if there is a script I can put on the main page to redirect them if a flash player is not found on their compter? That way clients can go straight to the main page, and if they can't view the flash navigation bar, it will re-direct them to the HTML pages.
Is what I am trying to accomplish possible? Are there any other solutions?
Thanks
Sean S.
View Replies !
View Related
Flash 8 Not Recognizing Fonts
I'm experiencing difficulties with Flash 8 not recognizing the majority of a font family.
Its strange because Photoshop & Illustrator recognize them & display them just fine.
The fonts involved my project include:
Helvetica
Helvetica Compressed
Helvetica Condensed
Helvetica Black
Helvetica Light
Helvetica Extra Compressed
Helvetica LT Std
Helvetica Neue
Helvetica Ultra Compressed
Of this list, Flash 8 is only recognizing:
Helvetica
Helvetica LT Std
Helvetica Neue
So at this point I'm having to literally type EVERYTHING out in Illustrator, export swfs, and import them into Flash.
This is obviously time consuming and makes simple text changes a pain.
I'm leaning towards the fact that this is a corrupt font issue, yet these fonts are available in every other software I've tried them in.
Has anyone else experienced this issue?
Any thoughts??
Thank you!!!
-eric
View Replies !
View Related
Recognizing A Loaded Movieclip....
What I'm trying to do is load a movieclip into another movieclip. I have a preloader set up that analyzes the load (the movieclip being loaded into) movieclips content and then displays the appropriate number. What I can't figure out is a way to hide this preloader once the load movieclip is completely loaded. I have used "===" in the past to compare total vs. bytes loaded, but this method seems to be hit and miss. Any hints?
Thanks in advance!
-Brock
View Replies !
View Related
FTP & IE Not Recognizing Latest Version
Hello,
Uploading my flash portfolio to my host. And anybody that has already looked at an older version of the site (including myself!) still gets the older site. I have erased my cache, my computer clock is correct. I open IE delete cache and type in URL and it goes to a version of my homepage that no longer exists. Doing my head in. - Cal
View Replies !
View Related
Hit Counter Not Recognizing Sessions
I have a hit counter in Flash that works, but you can reload all day long, and it continues to add +1.
Below is the code I am using. Any insight on how to make this only record unique viewers, it would be greatly appreciated.
I am calling a .php file into flash,
PHP Code:
<?php
$count = file_get_contents("count.txt");
$count = explode("=", $count);
$count[1] = $count[1]+1;
$file = fopen("count.txt", "w+");
fwrite($file, "count=".$count[1]);
fclose($file);
print "count=".$count[1];
?>
Textfile:
count=0
View Replies !
View Related
Flash Not Recognizing Fonts?
I have 10 variations of a font that I'm using for a Flash project. 6 of these are a true type font, and the other 4 have a big red "a" on them, and when I see the font it calls them a "type1" font. Never heard of that.
My problem is that Flash is only recognizing 5 variations of the font. 4 of them are true type fonts, the other 1 is a "type1" font.
Any ideas on how to make them all visible?
Thanks,
Brian
View Replies !
View Related
Page 2 - Recognizing Variables
i hate to ask, but do you think you could zip your 'bare bones' .fla and .txt files and upload it? it's prolly easier to understand what's going on (for me)... and btw:
in your text file it should be :
&boo=carnival
that should work.. but like i said. upload if you could
thanks,
bret
View Replies !
View Related
Desperate For Help, Flash Not Recognizing OnSoundComplete
I have a project I'm working on, a basic mp3 player. My problem is that the onSoundComplete event is never triggered. What it was doing when it was working was calling the playSong() function which starts a song, I commented that out and simply told it to write some text on the event, and it is just never triggered.
Here is the entire page of AS, it's not that long. Any help is greatly appreciated. Everything is working except for the onSoundComplete.
Edit: I wrote this in Flash Proffesional 8, and publishing it for Flash Player 7.
Code:
//Setup the sound object
var sObject:Sound = new Sound();
sObject.setVolume(75);
//Create an array that holds all our songs
var saUrl:Array = new Array();
var saTitle:Array = new Array();
var saSongID:Array = new Array();
var saImage:Array = new Array();
var saUserID:Array = new Array();
var saArtist:Array = new Array();
//Currently Playing Song
var sCurrentlyPlaying:Number = -1;
//Position of the music
var sPosition:Number;
//Length of the song
var sDuration:Number;
//Load the xml file
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes:Array = this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
saUrl.push(nodes[i].attributes.songurl);
saTitle.push(nodes[i].attributes.songtitle);
saSongID.push(nodes[i].attributes.songid);
saImage.push(nodes[i].attributes.songimage);
saUserID.push(nodes[i].attributes.userid);
saArtist.push(nodes[i].attributes.songartist);
//Check to see if this song is the selected song
if (playNowSong == nodes[i].attributes.song_id)
{
sCurrentlyPlaying = i - 1;
}
var songNumber:Number = i + 1;
}
playSong();
};
xml.load("http://www.website.com/music/mp3_xml.php");
//Play the mp3 file
function playSong():Void
{
sObject = new Sound();
sPosition = 0;
//Check to see if we are at the end of our list
if(sCurrentlyPlaying >= saUrl.length - 1)
{
sCurrentlyPlaying = 0;
}
else
{
sCurrentlyPlaying++;
}
if(saUrl[sCurrentlyPlaying] != undefined)
{
//Load the new song and set the title
sObject.loadSound(saUrl[sCurrentlyPlaying], true);
csTitle_txt.html = true;
csTitle_txt.htmlText = "<b>::Playing</b> <i>" + saTitle[sCurrentlyPlaying] + "</i>";
//Load the album art
_level0.albumArt_ldr.contentPath = saImage[sCurrentlyPlaying];
//Reset our volume button
vMute_mc.gotoAndStop(1);
//Finally update our play list
var varsObject = new LoadVars();
varsObject.id = saSongID[sCurrentlyPlaying];
varsObject.state = "play";
varsObject.sendAndLoad("http://www.website.com/music/update_played.php",varsObject,"POST");
//Start the meter bar
_level0.meter_mc.gotoAndStop(5);
}
};
sObject.onSoundComplete = function()
{
csTitle_txt.htmlText = "finished";
//_level0.meter_mc.gotoAndStop(1);
//playSong();
};
albumArt_ldr.onRelease = function()
{
getURL("http://www.website.com/community/profile.php?p_id=" + saUserID, "_blank");
};
View Replies !
View Related
Trivia Game Not Recognizing Commands
I'm building a "Who wants to be a millionaire" type game and I have to use keycodes instead of the mouse for selecting answers, advancing the question, etc. It works perfectly at the beginning....you hit the space bar to move from the "home" screen to the first question. You hit A, B, C or D as your choice of answers and that answer is highlighted. You hit "Enter" to see if you are correct or not.
The problem is that that's where it stops! I would like for you to then hit the space bar and continue to the next question until you get to question 4 where, if you're answer is correct, it's going to play a little movie clip, and if you're wrong, the game will start over. When everything was on the first frame, the space bar worked. I'm thinking that the commands for the space bar need to somehow become a function? When you jump to different frames, it just doesn't recognize the space bar commands anymore? Please help....I have about 1 week to figure this out and get it done! I can send my .fla file to someone if they can help me, but it seems that I can't get it small enough to upload!
Thanks!
View Replies !
View Related
Drawing Lines And Recognizing Shapes [CS3]
Hi everyone,
So I'm really new to flash, and need some help with a couple of things. I'm trying to create something where you connect together different stars and they create constellations, which then light up and say the name of the constellation when you have all the stars connected. Like a galactic connect-the-dots. Except I need some help with the coding of it. I've got my star graphics as buttons. I need to know how to draw a straight line, starting on the star button where you clicked it (How would I code it so that the line starts from the specific x/y position of the button? I don't want to go through every star and input each position, so i was wondering if there is some action to take the position of an asset and start from there), a straight line to the cursor, and then connect it to another star, if it is the correct one. If not, the line disappears. Thats easily done with an if/then statement, I think I can figure that one out myself. Seems fairly simple... Click a star, a (straight) line that is snapped to the button is drawn with the cursor and snaps to another star if it is in that particular constellation.
Also how would I make something happen once all of the stars are connected?
I have found some scripts online to draw lines with actionscript using your mouse cursor, but I can't find one that describes how to draw a straight line, starting with where you clicked and going straight to your mouse cursor.
Thanks guys, I'm sure I'll get the hang of this eventually!
View Replies !
View Related
Recognizing Fonts Under Common Files
I have stored all fonts under:
Program Files >> Common Files >> Adobe >> Fonts
All my Adobe Applicaitons read these fonts from this folder. So, I do not
have to load the fonts into the system fonts folder.
Is there a way to get Flash to read fonts from this folder?
I'm using Flash 8.
Thanks.
View Replies !
View Related
|