A Semi Newbie Question About External URL Linkage From Flash
I am currently trying to make an 'enter' button for the end of my pre site movie,and it keeps producing this error.I've tried all kinds of ways,looked through nearly all the relavent tutorials here at Flash kit,but still no conclusion.Where does this mysterious ',' or ')' go?
**Error** Scene=Scene 1, layer=buttons, frame=160:Line 2: ')' or ',' expected
{getURL(http://www.freewebs.com, window=_parent)
Total ActionScript Errors: 1 Reported Errors: 1
FlashKit > Flash Help > Flash Newbies
Posted on: 08-18-2004, 06:43 AM
View Complete Forum Thread with Replies
Sponsored Links:
Flash Semi-newbie Needs Help
um yeah, so I'm really, like extremely new to flash 8 so I haven't gotten the hang of how to do this:
How do you put a dynamic news box WITH a preloader on a flash file that I could control via a text file? I know you could do it in Flash 5 with Generator, but sadly, Generator went bye bye.
thanks in advance to the person (or people) that can help.
View Replies !
View Related
Flash MX Newbie, Flash 5 Semi-guru... Needs Help
Is there any other way to create motion tweens other than turning all of my would-be tweens into symbols? Or do I have to use about 200 symbols in my .swf files? If so... then I think i'll revert back to Flash 5...
Or any useful tuts on how to get started than those included with flash? Not many Flash MX tuts on this site either.
Thanks if you can help.
View Replies !
View Related
Semi - Newbie AS Question
Hi All!
I'm a Action script newbie, so please be gentle..
I'm making a navigation menu thingie-ma-bobber. heres the file:
http://xotex.net/jenni/beta_1.html
I have this function in keyframe 1 on main timeline.
var state=0
function setTopNav() {
if (_root.state != 0) {
_root.b1.gotoAndPlay("open");
_root.state = 1;
} else if (state == 1) {
_root.b1.gotoAndPlay("close");
_root.state = 0;
}
}
Then I have a MC that has three stops, at the begginning, middle (for closing) and end stop. The menu is supposed to tween down, then set a var and the on click again tween up smoothly, which it does not do (as u can see) it jumps up to the begginning. I prolly did not explain this very well, any help would be SUPER NEATO.
THanks!!
-- jenni
View Replies !
View Related
Semi-newbie Organizational Question
hi,
i am somewhat familiar with flash and AS, but have never done a full blown website with it, just messing around some small stuff. i'm starting on my 1st real site, and am not really sure how to go about dividing everything up and how it should work together in a site structure. i have a book, but it doesn't mention the best way to do this - i've seen a bunch of different opinions, and am wondering what people here think is the way to go: i will have a homepage that will contain about 10 sections, which will each probbaly have about 2-3 subsections.
one option was to do everything in nested movie clips, but for the size of my site, i imagine that the file would get too large since it will have to be downloaded all at once. another option i heard was to have every section, subsection, etc. in a different movie clip and embed them all in html files (separately) so that users could still use the back/forward buttons. is that really such a huge compatability problem that this is a preferred method?? also, when this is done, how far down in the hierarchy do you make separate swf's for each page? the last suggestion was to have the constant stuff (navbars, logos, etc) in an swf and use loadMovie to load each section (contained in its own swf) into an empty MC. that personally sounded like the best idea to me, but i have the same ? as above - how far down in the hierarchy do you have to go before you wouldn't have to make each "page" its own movie file?
apologies for the length - any help is extremely appreciated!
View Replies !
View Related
Menu Help...semi Newbie Question
I am trying to make some menus on my site that, when you mouse over them, flip up to reveal the name of the button. I want the flip to be similar to that of the Family Fued answers on TV...anyone remember that?
OK, I got that part working ok, but when my mouse is no longer over the button it just snaps right back to its original state...which its supposed to do. But, I want it to flip back over back to its original state, not just appear that way. any help is appreciated...I can elaborate more if I need to.
View Replies !
View Related
Masking Question... Semi-newbie
Hi folks, I'm trying to make credits for my game; a text mask that scrolls over a gradient. Basically, it's from this tutorial: http://www.flashvault.net/tutorial.asp?ID=96
I created it in a new movie clip, then put it on the stage. It looks fine until you preview the movie, and then you can see the gradient as if there's no mask.
Am I doing something wrong or impossible? I'd love any help!
Thanks *wave*
Sakka
View Replies !
View Related
Linkage In A External Swf
Hi I am using a 'export for actionscript' on one of my mc in a seperate swf.I am then try to refer to that mc in another movie ('controller').
eg. image_holder.attachMovie(alchemy, "current_prj", 2);
But for some reason it is not reconising/finding the source mc. if I put the movie clip that is being refered to inside the controller movie it works fine.
what am I doing wrong, can you still use linkage on external movies??
Thanks
Kaan.
View Replies !
View Related
Linkage With A External Swf ?
Hi I am using a 'export for actionscript' on one of my mc in a seperate swf.I am then try to refer to that mc in another movie ('controller').
eg. image_holder.attachMovie(alchemy, "current_prj", 2);
But for some reason it is not reconising/finding the source mc. if I put the movie clip that is being refered to inside the controller movie it works fine.
what am I doing wrong, can you still use linkage on external movies??
Thanks
Kaan.
View Replies !
View Related
Linkage For External SWF
Anyone know how to access an asset within an SWF loaded into a movieclip?
Say there's an asset with linkage 'obj' exported in assets.swf. If assets.swf is loaded into a movieclip within main.swf, can the 'obj' asset be accessed directly from main.swf?
eg code in main.swf:
Code:
createEmptyMovieClip( 'mAssets', 1 );
mAssets.loadMovie( 'assets.swf' );
// ... check assets loaded and then ....
attachMovie( 'obj', 'mObj', 2);
Thanks
View Replies !
View Related
External Library Linkage
how do you reference a movie clip in an external
library? i keep trying attachMovie("externalclip",...
and it doesn't work, even w/the linkage setup to an import that points the file. Do i need something else?
View Replies !
View Related
Preloading External SWF With Linkage
Hello! I am hoping someone on the boards will be able to help me with this problem. I am using a really pageflip cool program that someone was kind enough to write and share, that includes a preloader in a seperate swf file from the main swf. The problem is that the preloader does not seem to work. When I try to use the preloader it does not show, and just downloads the main swf. I am not completely sure, but I think the problem may be linkage since in the main SWF there are movies that use 'export in first frame'. If I uncheck this, then the movie will not run right. How do I get the preloader to load the movie before playing, and not just show a white screen during while the main swf downloads?
I have tried the various answers and tutorials on this site, but I can't get any of them to work right
Thank you for any help/direction you can give!
test url:
http://www.vividlilac.com/test3/
View Replies !
View Related
External Clips And Linkage
Here is the setup
MainMovie.swf (contains Lib item aClip)
|
Loaded.swf (loaded via MovieClipLoader)
What i'm trying to do is this
loaded.attachMovie("aClip", "attachedClip", 1);
This seems really simple to me but it doesnt work.
Does anyone have any insite to this?
Thx in advance
View Replies !
View Related
Linkage ID And External Swf Problem
Ok I am starting to finally get into AS3 and love it so far, except I ran into this problem and would greatly appreciate any help. Ok...
I have a file, "loader.swf". In its library I have a movieclip with a linkage id set to "Navigation". I am using a Document Class for loader.swf called "Base". Inside of Base.as I have setup a script to add the navigation from the library as such...
ActionScript Code:
var nav:Navigation = new Navigation();
addChild(nav);
This works fine. However, when I load in an external swf, the external swf does not recognize the library item "Navigation" and throws back an error.
ActionScript Code:
1046: Type was not found or was not a compile-time constant: Navigation.
1180: Call to a possibly undefined method Navigation.
The only solution was to put the Navigation movieclip in the external swf and then it works fine, but that seems like a terrible work around.
Anyone who might have some advice?
View Replies !
View Related
External Swf And Flv Linkage Issue
Anyone,
I have a presentation this afternoon. Everything is going to be presented through flash player 8, in office, from a laptop.
I'm using Pro 8, exporting my swfs to player 8, AS2, windows xp.
I have a swf (container.swf) that acts as a container for several other swfs holding the content.
The container.swf is located in a folder (presentation), while the externally loaded swfs are located in a folder (Base) located within the "presentation" folder. (basically, there are only two things in the presentation folder: container.swf and "Base" folder).
One of my external swfs (video.swf) contains an FLVPlayback component which points to an external flv (externalvideo.flv). The externalvideo.flv resides in the "Base" folder along with the video.swf. If I just open the video.swf, it will play the externalvideo.flv. However, if I open the container.swf and instruct it -through a button, whatever- to load the video.swf, it will not play the externalvideo.flv.
I can bypass this whole problem by just copying the externalvideo.flv, along with its skin, to the "presentation" folder so that the container.swf and the externalvideo.flv are in the same folder location.
However, I do NOT want the externalvideo.flv, or its skin, to be located here. I really need, for whatever reason, the "presentation" folder to only hold the container.swf and the "Base" folder.
Is there a way to get around the file structuring rules???
View Replies !
View Related
Using External .swf Linkage Audio
Because flash doesn't loop external mps file correctly, there is always a pause in the loop. The work around is to load the AIFF, or WAV, file into the .fla and let Flash compress the audio file, then the loop works without the pause. The problem with this is that when I have many music loops it takes a long time to publish and test, so in AS 2 I would publish .swfs that compressed the raw audio file and gave the audio file a linkage. Then I would load the .swf into the main .swf and access the loaded .swfs linkage file. The code looked like this:
_root.createEmptyMovieClip ("soundsMC",_root.soundsMC.getNextHighestDepth ());
instructionsContainer = _root.soundsMC.createEmptyMovieClip ("instructionsContainer", _root.soundsMC.getNextHighestDepth ());
instructions = new Sound (instructionsContainer);
instructions.attachSound ("instructions theme");
This worked perfectly. But this method does not work in AS3.
This is what I've tried in AS3:
Attach Code
public function initView ():void {
loader = new Loader ();
targetStage.addChild (loader);
loader.contentLoaderInfo.addEventListener (Event.INIT, loarderLoaded);
loader.load (new URLRequest("sound/fishhole_old.swf"));
}
//
private function loarderLoaded (event:Event):void {
trace ("loarderLoaded");
loader.contentLoaderInfo.removeEventListener (Event.INIT, loarderLoaded);
var ldrInfo:LoaderInfo = event.currentTarget as LoaderInfo;
var libMedia:MovieClip = event.currentTarget as MovieClip;
var FishHoleOldMusicMCClass:Class = libMedia.loaderInfo.applicationDomain.getDefinition("FishHoleOldMusicMC") as Class;
var music:FishHoleOldMusicMCClass = new FishHoleOldMusicMCClass();
//var music:Sound = new FishHoleOldMusicMCClass();
//var music:MovieClip = new FishHoleOldMusicMCClass();
music.play(0, 1000);
}
View Replies !
View Related
External Clips And Linkage
Here is my setup:
mc_MainMovie
|
mc_Loaded (Loaded via MovieClipLoader)
now i was trying to attach a lib item in mc_MainMovie (ClipA) to mc_Loaded
mc_Loaded.attachmovie("ClipA", "_clipA_", 1);
This doesnt seem to work.
Any ideas?
View Replies !
View Related
Actionscript Help On Semi-advance Flash
So I'm trying to create a flat carousel similar to the one located here http://www.square-enix.com/na/index_f2.html
(as a side note before reading the 2nd half, my trouble is with the thumbnail loop buttons)
I have created all the graphic elements, now I'm in the planning stage of the actionscript, and this is where I'm hitting some trouble, so if I could barrow some actionscript pro's mind that would be awesome.
My thought process is to create a movie clip and have it be replaced with images imported through an XML file (for easy updating). After this part I run into trouble, I'm planning on taking the MC that got replaced and duplicating it and running the MC's side by side, and when one goes too far to the left or right move it to the other end of the other MC, this way I create an infinite loop.
My Questions:
so like how would you make one of the MC's reposition it's self on the X axis to the end of the other movie clip once it has moved far enough left or right ? (also what is the method you would use to tell flash the limit that the MC is far enough left or right and it should reset it's self?)
How would you make each thumbnail button change the image on the main stage upon clicking the thumbnail button when all the images are imported through the xml document?
Thank you for help and time spent reading this.
if you have any questions, please ask.
thanks once again.
-Mark
View Replies !
View Related
Actionscript Help On Semi-advance Flash
So I'm trying to create a flat carousel similar to the one located here http://www.square-enix.com/na/index_f2.html
(as a side note before reading the 2nd half, my trouble is with the thumbnail loop buttons)
I have created all the graphic elements, now I'm in the planning stage of the actionscript, and this is where I'm hitting some trouble, so if I could barrow some actionscript pro's mind that would be awesome.
My thought process is to create a movie clip and have it be replaced with images imported through an XML file (for easy updating). After this part I run into trouble, I'm planning on taking the MC that got replaced and duplicating it and running the MC's side by side, and when one goes too far to the left or right move it to the other end of the other MC, this way I create an infinite loop.
My Questions:
so like how would you make one of the MC's reposition it's self on the X axis to the end of the other movie clip once it has moved far enough left or right ? (also what is the method you would use to tell flash the limit that the MC is far enough left or right and it should reset it's self?)
How would you make each thumbnail button change the image on the main stage upon clicking the thumbnail button when all the images are imported through the xml document?
Thank you for help and time spent reading this.
if you have any questions, please ask.
thanks once again.
-Mark
View Replies !
View Related
External SWF And Sound Linkage Problem
I'm making a game for a contest on Newgrounds, called the Rock Out Contest. Since there is a 10 MB limit on files, I decided to put all the levels on a different server. The levels are a SWF with the song embeded in it, along with some code which tells the main SWF what the level looks like. The problem I'm having is that I can't get the song to play. To make things more complicated, I have a external *.as file that I made which creates "Beats" whenever certain times pass in the song. Normally, I would set the song for the script by doing this:
Code:
_root.BSS.SetSong("Linkage ID");
This works fine if it's not coming from an external SWF. But I've tried these several codes, and none of them worked:
Code:
// External SWF, attempting to access SetSong function in script
_root.BSS.SetSong("Song");
trace(_root.BSS.BS_soundSong.duration); // undefined
Code:
// External SWF, attempting to overide SetSong function by modifying Sound variable
_root.BSS.BS_soundSong = new Sound(this.Song);
trace(_root.BSS.BS_soundSong.duration); // undefined
Code:
// External SWF, attempting to overide SetSong function by modifying Sound variable
var GameSong:Sound = new Sound(this);
_root.BSS.BS_soundSong = new Sound(this.Song);
trace(_root.BSS.BS_soundSong.duration) // undefined
The trace() functions actually don't work since I have to test the game on a remote server (due to sandbox errors, and Flash 8 Pro isn't allowing me to debug remotely), so I used input text fields to test it. The SetSong() function looks like this:
Code:
function SetSong (sGameSong:String)
{// Sets the song used for the game
BS_soundSong.attachSound(sGameSong);
}
I've been working on this problem for quite a while now, and I don't have much time left. I would greatly appreciate any ideas/sugguestions/help.
Thanks in advance
View Replies !
View Related
Variable Url In External Library Linkage?
I'm setting up a template that needs to import artwork for buttons. There are three different button sets to choose from. Each button set has 12 different movie clips in it, but not all of them are used in the same place at the same time. A shared library would be ideal, because i can choose only the items i need and attach them to the movie clips where they are needed. The template will be used by multiple clients, so the url won't be the same each time it is used. Is there any way to make the export and import url for the shared libraries a variable? Basically, i'm trying to load movie clips from a swf into the library, so if there is a better way to do this, any suggestions would help! Thanks very much.
View Replies !
View Related
External .swf Runtime Linkage .pngs AS3
Flash can compress .png files like Photoshop can compress .jpg files better than any other tool hands down.
I have 77 .png files that are 1.8 .megs on my c: drive after I imported them and setting the file compression under the "File > Publish Settings" to 75% for jpg and published the .swf with all the .png on the stage the file size is 350K that's about 20% of the original file size of the .pngs downloaded file by file with 77 separate request.
I can create linkage in the shared .swf and test the movie with code in the shared .swf to add the movieclip holders for each .png to the stage but when I load the shared .swf into the main .swf Flash acts like it can't create the classes based on the linkage I setup or that the MovieClip linkage doesn't exist.
I tried a test to have the shared .swf with all the .pngs and linked movieclips to add the assets to it's own stage and it works fine but that means a lot of my code and logic is included in the shared .swf that the designers need to add .pngs to. It's unfortunate AS3 sucks but I'm just about done with the project if I knew what a battle AS3 was going to be I would have stayed with AS2 my next projet will be AS2 no question non at all. Anyway I setup "class" linkage identifier for each .png with a movieclip holder for each image. The 20% of the size for the pngs and one request vs. 77 separate request makes it worth the extra effort of importing the images, creating a holder movieclip with linkage but the main .swf that loads the shared .swf with all the assets and linkage can't see or create the assets like the shared .swf can when I test it.
We need to have the main .swf get a handle of the linked .png assets and place them in the main .swf to load the assets to different parts of the main .swf. It's cute that the shared .swf can add the linked assets to it's own stage but not too useful. Also the way we deploy we cannot roll out a new release/build to update the .pngs but we can upload a new .swf to the asset server so the .pngs need to be in a separate .swf. I can get the shared MovieClip to add the linked assets to it's own stage when testing and when loading my problem is the main .swf that loads the shared .swf cannot create instances of the classes that are exported for runtime sharing using linkage.
If it is possible I would like to know how the heck you get a handle on a linked asset in an externally loaded .swf. Preferably without creating my own prototyped insane class consisting of mega libraries of external .as files. Just a way to reference MovieClips holding pngs that have linkage and are setup for runtime sharing. It really shouldn't be this hard it's a simple task in AS2. I'm not looking for a coding competition or some wild class to do the job I want a few lines of code to create an instance of a class then reference to the linkage/MovieClip holding the .png to addChild it into a target movieclip.
Attach Code
///// don't write a mountain of code to load a few images stupid ////
var swf_loader:Loader = new Loader();
var thePath:String = "CompressedPNGs.swf";
var theURLRequest:URLRequest = new URLRequest(thePath);
swf_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, populateTheUI);
swf_loader.load(theURLRequest);
function populateTheUI(event:Event)
{
var assetHolder_mc:MovieClip = new MovieClip();
assetHolder_mc.addChild(swf_loader);
addChild(assetHolder_mc);
//above adds the entire .swf to the stage
//I want to load each .png asset 1-by-1 into target movieclips
addChild(assetHolder_mc.linkeAssetName)
//this should but doesn't load the individual shared assets to the stage
}
Edited: 08/11/2008 at 04:13:18 PM by jeffjoneslive.com
View Replies !
View Related
Loading And External Linkage Library
I'm trying to load linkage items from a library in a different swf but I can honestly I do not have a clue how to... I've tried using attachMovie as well as loadclip to load the swf... then using attachMovie to attach the linkage item... This thing is frustrating lol. I know its possible I just cant figure it out
View Replies !
View Related
Semi Transparent Png Image Saveing In Flash 8
I am trying to save a png image which has different alpha value in it, but its taking 100% alpha value only. This image has 100% and 40% alpha value. Please advice. Thanks in advance.
part of my code:
var myBitmapData:BitmapData = new BitmapData(MainContainerMC._width, MainContainerMC._height, true, 0x00FFFFFF);
myBitmapData.draw(MainContainerMC);
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth(), "auto", true);
var saveTracker:MovieClip = _root.createEmptyMovieClip("saveTrack_mc", 123);
var counter = 0;
var i = 0;
saveTracker.onEnterFrame = function() {
for (var j = 0; j<=MainContainerMC._height; j++) {
var alpha:String = (myBitmapData.getPixel32(i, j) >> 24 & 0xFF).toString(16);
var red:String = (myBitmapData.getPixel32(i, j) >> 16 & 0xFF).toString(16);
var green:String = (myBitmapData.getPixel32(i, j) >> 8 & 0xFF).toString(16);
var blue:String = (myBitmapData.getPixel32(i, j) & 0xFF).toString(16);
if(alpha.length == 1){
alpha = "0" + alpha ;
}
if(red.length == 1){
red = "0" + red ;
}
if(green.length == 1){
green = "0" + green ;
}
if(blue.length == 1){
blue = "0" + blue ;
}
PixelValue += ("alpha:"+alpha+"#red:"+red+"#green:"+green+"#blue :"+blue+"#");
counter++;
}
perc = int((i*100)/MainContainerMC._width);
i++;
op.text = "collecting pixels value: "+perc+" %";
if (i>MainContainerMC._width) {
sendData();
delete this.onEnterFrame;
}
};
View Replies !
View Related
Button In Flash And Variables In External Text File? Newbie Here
I hope this makes sense...
On the main stage of a flash site I'm working on there is a text phrase (that is actually a button) that pulls the text from an external .txt file, with a "latest news" headline. Right now I have the flash link set to a general "latest.news.html" file.
My QUESTION: Is it possible to insert or pull from a text file the actual file name, or “link name”, and have the flash link set to this “variable” so that when the user clicks on the text phrase, they go to that file in question? For example, in a text file, include the variable, “051003.html” and have the text phrase click event set to this page?
I'm using FlashMX 2004.
TIA!
View Replies !
View Related
External Stylesheet Font Linkage Question
hi...i am trying to embed a font that will be coming from and external stylesheet. I have to embed this font because i have never seen it until i received this project, and thus, it has to be exactly this font that loads into the movie. I read this from the help:
Quote:
If using CSS styles to set fonts for TextFields or components, set the font-family CSS property to the name of the embedded font. The font-family property must contain a single name and not a list of names if you want to specify an embedded font.
I understand the above to mean, the font in my css must be called the same name as the font's linkage name in the library. My question is, in the stylesheet, must the font contain quotes, or can it go in without.
Code:
.norm{
font-family:WhackyFont;
/*or font-family:"WhackyFont"; */
font-size:10px;
color:#FFFFFF;
}
View Replies !
View Related
Access A Linkage Clip From An External Class
I have a simple FLA which contains a movie clip in the library. The clip has a linkage Class of "Ball". I know that to get this clip onto the stage I can simply type the following on the main timeline:
Code:
addChild(new Ball());
Doing that places the clip on the stage at runtime. Yea! Now, here is where my problem is. I delete the above code and make an instance of an external class that I have. For demonstration purposes we call the class "MyClass". So now on my main timeline I have the following:
Code:
var myClass:MyClass = new MyClass();
Here is what "MyClass" looks like currently:
Code:
package{
import flash.display.MovieClip;
public class MyClass extends MovieClip{
function MyClass(){
var ball:Ball = new Ball();
addChild(ball);
}
}
}
This produces no errors and nothing on the stage. I have tried "import Ball;", etc. Can someone tell me how, from the external class, to reference the symbol in the library which I have assigned a linkage (Ball) to in order to display it on the stage?
It was pointed out to me that adding "MyClass" as the Document Class will make this work. Is it the only way?
You can access the files being used here or attached to this thread: http://www.pixelfumes.com/uploads/flashClassTest.zip
View Replies !
View Related
External Preloader Library Linkage Issue
Hey Everyone,
So I recently ran into a real frustrating problem when I was trying to make an external preloader for my swf, and I thought that I would share it here so that someone else won't have to go through what I did.
Anyway, my original goal was to make a simple external preloader swf with nothing in its library, that would load my main swf that had all the resources in its library. After I got it all coded, I kept getting a reference error at runtime when I tried to run the preloader.swf file saying that variable such and such is not defined. The variable that it referred to was in fact, defined in the library of main.swf.
Main.swf would run fine on its own, and preloader.swf could load other swf's fine if I just substitued the name. So I was really at a loss as to what was causing the problem. But after banging my head against the wall for several hours, I finally found the answer.
What I had done when I did the preloader was I just made the preloader.fla and the preloader.as file and put them both in the same directory with all the source code for my main swf. The problem with this was that when I compiled the preloader it must have got "confused" and tried to link in some of the classes (.as files) that I had in there for my main.swf. Then when I ran the preloader it thought that several variables in the main.swf were not defined.
So the solution to this issue was just to move the preloader.fla and the preloader.as into its own directory with just the main.swf (no source code for main). I compiled the preloader in there and it worked fine!
So the moral of the story is...if you are doing an external preloader make sure you keep it in its own directory when you develop it, or you can run into linkage type issues.
View Replies !
View Related
Flash 8 Text, Etc. Gone Haywire -- Seems Like A Semi-common Problem. Please Help.
I've seen some posts in which Flash developers are using Flash 8 and are targeting Flash Player 8 when they publish and are having trouble -- like their SWFs are no longer functional and their text (static, dynamic, and otherwise) flat out disappears.
For me, this happens even when the test machine has Flash Player 8 installed, so I'm baffled. So I have to save my .SWFs for Flash Player 7. As a result, I can't use any new Flash 8 features -- like "anti-alias for readability," which I would really like to use for a specific client.
My apologies if this has been answered in other posts, but I did do some searching and found mostly frustrated developers.
Thanks and Happy New Year.
-Scott
View Replies !
View Related
Semi-New To AS, Need Some Help.
Ok,
I've been working with Flash for a long time. Since Flash 5 . However, I've mostly just done animations and things of that nature. Fun little cartoons that hardly required actionscript and when it did it was very simple stuff.
I know basic button stuff and I can tween using scripts. I can also use AS good enough to build simple websites. However, I'm not much of a programmer, especially when it comes to OOP.
It looks to me like AS3 is amazingly powerful compared to what used to be there (or at least Adobe is doing a better job marketing it than Macromedia did). I really want to get a handle on this and become an Actionscript pro.
Does anyone know of anywhere I can grab some free tutorials or documentation (besides adobe's) that can help take me from basically beginner to AS3 pro?
View Replies !
View Related
Newbie, Loading External Swf's
Ok as the title said i'm new to flash and I have the following problem!!!
well i made a flash site that load external swf's and everything works, but what i dont get is how can I start the first external swf automatic without clicking on a button! as and example
I have the following swf:
main in there I load mov_1, mov_2 etc but to load the first swf(mov_1) i have to click a button, is there a way to get around this??
well anyhow i thx u in advance!!
View Replies !
View Related
[F8] External Linking - Serious Newbie
Hi all,
I am extremely new to Flash and find myself working on customizing a few pre-structured Flash games to try to become more familiar with the program. I am trying to use the "play again" button in the game to launch a different .swf file (same game, different theme/version). In a different chat room, the very nice "jAQUAN" posted this message:
Quote:
Originally Posted by jAQUAN
If you want to load a different .swf into the running flash movie, you use loadMovie() or the more advanced movieClipLoader object.
All you need is a target movie clip on the stage with an instance name applied. It's contents will be replaced by the .swf you import.
If your target clip was named myTarget_mc and you wanted to load different_file.swf the script would be.
Code:
on(release){
myTarget_mc.loadMovie("different_file.swf");
}
I've copied the quote here so that maybe someone in this "newbie" chat might be willing to show me a bit more grace and help me understand what seems to be GREAT help.
thanks in advance.
View Replies !
View Related
Semi - URGENT
i'd like to know or be pointed in the direction of a tutorial on how to do the following....
say there are objects a - x lined up horizontally across a flash movie. I'd like to create the effect that when your mouse moves one way the horizontal bar of objects moves the opposite way, but in my situation i dont want the horizontal bar of objects to stop moving, it just keeps scrolling at a fairly fast speed...
hope this was clear. all help appreciated!!!
View Replies !
View Related
Semi - Dynamic
i've been told that flash 5 may generate small text files
i would like to set a 3 variable form (3 imput text fields)in flash that generate
a text file.
now , my question is, how do i set the botton actions to accomplish my goal?
where may be located the new file (text file)?
and then , how can i call the values from an online output text field?
thanks
tulex
View Replies !
View Related
Semi-intelligent
hmmm i was looking on wireframe´s( http://www.wireframe.co.za/large.htm(section 6 )) site and i tripped ower something i liked... semi-intelligent crowd.. how do i do somthing like this ???? the creatures have a life of thier own????
THX Mike
View Replies !
View Related
Semi-install...?
Hi!
I have a great game and I was looking for a way to let my users install it. I was guessing if I could find out how to move a file I could find out the .swf's directory and move it to the desired location. I have no clue how to do this though...any healp would be great, thanks.
View Replies !
View Related
Semi N00b Help
Last edited by unkn0wn : 2003-05-18 at 14:20.
Hey guys.... i was tired of boring ass websites... so i learned flash the other day.... im ok at it but not anywhere near this sstuff...
removed is my site....
Can anyone please help me or send me a fla file so i can learn from it ... on how to make a full flash website.... with menues and all... kinda like this one....
View Replies !
View Related
Flash Linkage
quite piss off with actionscript....-_-
i have an sound clip in the library, i linkage to export for actionscript and export in first frame is checked.
It turn out my preloader dont start, i figure it out tat the sound clip is making it to stop and after around 80 percentage of loading, the preloader start at 80% then load to 100%..
if i uncheck the export in first frame, the preloader start at 1% then to 100%...but the sound clip is not loaded into the movie...-_-
can somebody help me on this problem...
thxs
View Replies !
View Related
Old Newbie's Preloader For Multiple External SWF's
Trying to load external swf and found OLD NEWBIE's preloader. My only problem is I need to load 3 external swf's at level10, level20, level30. His example is for only one external swf.
Basically I'm trying to preload a site that is structured like this:
content.swf -- on level 10
nav.swf -- on level 20
intro.swf - on level 30
I've looked at his code and am wondering should I just load all three swf's into the same container clip? Here is his code:
// Hides displayed elements
this.reelmc._visible = false;
this.loadbar._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("sound.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
if(!isNan(percent)){
// trace(percent+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
container.stop();
} else {
// trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
loadMovieNum("sound.swf",0);
}
}
stop();
View Replies !
View Related
Newbie Loading External Text
While reading posts I came across Sateri's post on external text, which got me thinking about loading text for later in my own project. After reading through lots of tutorials I have finally managed to get it working, my only problem is that if there is more text then fits in the box, it cuts the end off
How can I create a scrolling box to allow a greater amount of text, or is this very complex. sofar my code looks like this: (very basic, but it works ... at the moment)
Code:
txtVars = new LoadVars();
txtVars.onLoad = function(){
bob.text = txtVars.myText;
}
txtVars.load("text.txt");
Thanks, sillyfishyboy
View Replies !
View Related
Can Anyone Help Me? How Do I Fade? Semi-Transparent?
You may have seen this message in another section but I need help bad!
My problem is this,
I can't get my scenes to fade into one another.
Could this be because I need to use the semi-transparent fill?
Problem is, I don't know how use semi-transparent fills either.
Someone help me!
P.S: In case you didn't notice, I'm new to Flash 5!
Thanks
Flashman
View Replies !
View Related
Semi-transparent Gradients?
Hi there! Very much a newbie to the Flash world, but in downloading sample movies and picking them apart for ideas, I came across something very interesting. In the movie found here:
http://www.flashkit.com/movies/Inter...39/index.shtml
-- it looks like the creator used a semi-transparent gradient to fill the inner-circle layer. I disected the movie a thousand ways in Flash, and that's the only thing I could come up with. I didn't even realize it was possible -- and when I tried to recreate the semi-transparent gradient look in my own movie, all I could do was a solid gradient, so I'm lost. Any ideas?
Thanks!
Jess
View Replies !
View Related
Animation Semi-looping?
Is there a way to make a animation half looping? What i mean is I want a text message to come scrolling out of no where and then i want it to just keep flashing. But when i did it it flashes for like 5 seconds and it goes back to where it started and loops and loops... I have trouble understanding what i said too =(
View Replies !
View Related
Semi Dynamic Menu
Hi all,
I have run into a bit of a wall. I have a semi dynamic menu (static graphics bar that populates fields from a sql db via php)
All works well my Headers load , all the sub menu items load, the external url links work, great.
Only problem now I would like the sub items to rather do internal actions within my flash file(mostly go to frames).
AS
************************************************** ****
First frame loads the data from my PHP document into a movieclip called "data"
************************************************** ****
Frame three
stop ();
with (data) {
for (i=1; i<=numMenus; i++) {
numLinks = (eval("menu"+i+"Links"))*1;
set ("_root.menu"+i+".numLinks", numLinks);
for (j=1; j<=numLinks; j++) {
theTitle = eval("menu"+i+"Link"+j+"Title");
set ("_root.menu"+i+".link"+j+".theTitle", theTitle);
theLink = eval("menu"+i+"Link"+j+"Url");
set ("_root.menu"+i+".link"+j+".theLink", theLink);
}
}
}
************************************************** ****
I know that the evaluation above has to be tweaked. But am not sure how to convert from url to Actionscript function
Looking forward to any help
Kindest
View Replies !
View Related
Semi-transparaent Masks
Help:
I need to learn how to create what appears to be a kind of semi-transparant masking effect. I am an intermediate Flash 5 user and have created a number of small animations using a variety of techniques and some ActionScript but I can't figure out how to do this. Any help would be greatly appreciated.
The end results should be as follows.
1. begin with an image in first layer.
2. have a semi-transparant retangle slowly extend halfway across the image from left to right, but the leading 1/2 inch or so should be a transparant gradient so that near the edge of the rectangle it is almost totally transparent. ( I presume this is done with a mask - this is the part I dont't know how to do)
3. Have text revealed (from left to right)over top of the semi-transparent rectangle, but again, the masking effect seems semi-transparent on the leading 1/2 inch so the text appears to have a semi-transparant gradient as its being revealed.
Perhaps the best thing, if you wouldn't mind, is to look at a sample here: http://www.dayspring.com/ecards/predesign.asp Click on the category link that says "Christmas" and then select the first Flash show in the "General" category, the one with the little girl looking downward.
When you hit the "Click to Play" button you will see this technique used repeatedly in this Flash animation.
I'm really stuck on this one..., my client wants this effect and I'm up the creek without it.
Thanks so much,
Rudy Pohl, Ottawa
View Replies !
View Related
Semi Dynamic Menu
I'm looking to create a menu from a local stored text file. The text file will contain the type of file (say 1 to 5) which will be replaced by an icon, the text that will appear on the button and the URL/File the button will link to.
What is the best way to set it up in Flash?
Being a newbe I guess some sort of array/list which is then stripped appart and delivered to screen. Anyone with any good ideas/tutorials that would help me with my quest.
Cheers in advance
Rob H
View Replies !
View Related
Semi-random Movement
Hi!
I'm trying to make a flash intro for a site and am having a hard time coming up with a solution to this problem. Basically, there is a line of photos coming from the left side going to the right. In the background there are veritical lines, and horizontal lines. The lines look as though they are moving randomly. The horizontal ones moving up/down, the vertical ones moving left/right. When a photo gets in the center of the page, I need the lines to zoom in towards it. And as it moves off of the center, the lines need to go back to the semi-random movement.
I was going to tween all of this but obviously there is a pattern here. My question of course is... How can this be done?
My rough guess... Make a horizontal line MC, and a vertical line MC. Write some code to make them move slowly in a random nature, maybe randomly duplicate a few.
Make a clip that slides MC's of photos across the screen. Some how make the active photo clip "talk" to the closest vertical/horizontal lines and tell it to come closer to grab it while it's moving toward the center.
Uh, OK that's as far as I can get!
Can anyone possibly help me by showing me HOW to do this?
Thanks a lot for any help at all!
Matt
View Replies !
View Related
|