Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Satay Method



I have done much research on embedding flash components so that the site is XHTML Transitional valid, and the best solution I have found is the Satay Method. It works great, but it does not work in IE. Does anyone have any ideas or links. I already searched these forums and google, but the only solutions I have found will not work in IE. Here is the code that I am using, but is not valid:
HTML Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="index" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="flash/index.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flash/index.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
Here is the code that is valid, but does not work in IE:
HTML Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com /pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="300" id="movie" align=""> <param name="movie" value="movie.swf"> <embed src="movie.swf" quality="high" width="400" height="300" name="movie" align="" type="application/x-shockwave-flash" plug inspage="http://www.macromedia.com/go/getflashplayer"> </object>
Thanks so much for the help!



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-14-2006, 09:32 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

FlashVars And The Satay Method
I'm trying to pass vars into my Flash movie (which is satayed using a container clip) but they don't seem to be getting passed in


Code:
<object data="satay.swf?path=cityguides.swf" type="application/x-shockwave-flash" width="195" height="145" id="cityguides" align="">
<param name="movie" value="satay.swf?path=cityguides.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="menu" value="false" />
<param name="flashvars" value="&passedVar=123" />
</object>
I'm assuming that when I load the cityguides.swf movie into the root of the satay.swf movie, it wipes the vars too?

Has anyone experienced this before? Is there a workaround?

Flash Satay Method - Problems
I am using the Satay method to embed some flash into a website, and it was all working perfectly. All of a sudden though (I have no idea what caused it / changed), it stopped working in Firefox & Netscape. I'm using the KewBee Plugin Switcher in order to test, which could be an issue, but flash is working on other sites (eg. adobe.com)

Is anyone aware of any issues with these browsers? Here is the code I am using:

HTML Code:
<div id="headerflash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="470" height="230">
<param name="movie" value="flash/flashload.swf?path=flash/header.swf" />
<param name="bgcolor" value="#ffffff" />

<a href="aboutbeautyskin.php"><img src="images/noflashheader.jpg" width="470" height="230" alt="" /></a>
</object>
</div>

<div id="menuflash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="290" height="230">
<param name="movie" value="flash/flashload.swf?path=flash/menu.swf" />
<param name="bgcolor" value="#ffffff" />

<a href="aboutacne.php"><img id="imgmenuaboutacne" src="images/noflashmenu-aboutacne.jpg" width="141" height="115" alt="About Acne" /></a>
<a href="aboutbeautyskin.php"><img id="imgmenuaboutbs" src="images/noflashmenu-aboutbeautyskin.jpg" width="141" height="115" alt="About BeautySkin" /></a>
<a href="research.php"><img id="imgmenuacneresearch" src="images/noflashmenu-acneresearch.jpg" width="141" height="115" alt="Acne Vulgaris Research" /></a>
<a href="http://www.britebox.co.uk/"><img id="imgmenuotherprods" src="images/noflashmenu-otherprods.jpg" width="141" height="115" alt="Other Products" /></a>
</object>
</div>

Basically what I am getting is just the images - the stuff INSIDE the object tags.

Any ideas?

Passing Variables From Loader Movie To Loaded Movie, Flash Satay Method
I like the Flash Satay method for its clean integration and standards-compliance, however there are still some things I can't manage the way I want to... I'm trying to implement a working method to pass variables from the loader movie to the loaded movie. As you may know, the Flash Satay method uses a small SWF file which uses a bit of code to load the desired movie, all in order to allow IE browsers to retain streaming capabilities when rendering Flash content through the <object> tag. Basically it's just a small file with the following AS2 code in the first frame:

loadMovieNum(path, 0);

This means the c.swf file is ENTIRELY replaced at level0 with the desired movie, and any variables that were passed to the loader movie turn to smoke.

I'm trying to generate a querystring using all other variables the loader movie receives, and pass that along with the filename for loadMovieNum. This seems to be working very well in most cases, but whenever there's a URL in the querystring (even URLEncoded), BAM, everything turns to lowercase... EVERYTHING... here's an example:

c.swf?path=banner.swf&myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER

this successfully loads banner.swf in place of c.swf, with the following correct querystring appended

banner.swf?myLifeSUCKS=true&Icantbelieve=ITSNOTBUTTER

If I try:

c.swf?path=banner.swf&clickTag=http://www.myurl.com/&ANOTHER=variable

this successfully loads banner.swf in place of c.swf, but I end up with lower-cased querystring (all of it!!):

banner.swf?clicktag=http://www.myurl.com&another=variable

what happens to my capital letters?? I need these to remain case-sensitive as there is no saying how the loaded movies are programmed. The generally accepted convention for "clicktag-enabled" banners is to use _root.clickTag as the link button's URL...

Even URL-encoding the URL doesn't change this

For reference, here's the HTML snippet and ActionScript 2 code I use:
---- html ----

<object type="application/x-shockwave-flash" data="c.swf?path=banner.swf" width="728" height="90">
<param name="movie" value="c.swf?path=banner.swf" />
<param name="FlashVars" value="clickTag=http://www.google.com/" />
</object>








Attach Code

----c.swf----

var queryString:String = "";

for (var i in _root){
if (i != "path" && i != "queryString" && i != "$version"){
if (queryString) { queryString += "&"; }
queryString += i + "=" + _root[i];
}
}

if (queryString != "") {
loadMovieNum(_root.path + "?" + queryString,0);
} else {
loadMovieNum(_root.path,0);
}

























Edited: 10/01/2008 at 10:40:48 AM by Inzoum

Flash Satay Problem
i have found that the flash satay method at a list apart only works when the flash movie is in the working directory.

i want to put my flash movies inside a directory /includes/movie.swf

however when passing the /includes/movie.swf to the param tag it does not work

i think flash can not recognize the '/'

how can i use the satay method with a swf in a different directory?

TIA

Flash Satay With FlashVars
how do i use the flash satay method
http://www.alistapart.com/articles/flashsatay/

with flashVars instead of what they use?

my code is this

flash actionscript:
_root.loadMovie(_root.path,0);

html embed script:

[object type="application/x-shockwave-flash"
data="/includes/cont.swf?path=/includes/menunav6.swf"]
[param name='movie' value='/includes/cont.swf?path=/includes/menunav6.swf' ]
[/object]

ActiveX / Satay Test Requested
Howdy, I have a weird issue, all of a sudden a flash movie stopped working.

If you have a moment and you use Internet Explorer could you maybe check this out and tell me how many balls you see?

http://www.scraf.nl/flash/banner/balz.html

I have two, which I find unusual although I think it has to do with an automatic update of IE.

( It's possible that you won't see any at all, activeX lawsuit issue )

Works fine in Firefox btw.

Embedding Flash Into HTML - Satay Or SWFObject?
Hi,

Currently I’m using the Flash Satay method to embed Flash in my HTML code and I’m happy because it validates.

However now that SWFObject is the latest incarnation and also seems small and easy to set-up would it be wise to switch to this or stick with the Satay method?

Flash Satay And Dynmic Video With Flashvars
I am having some trouble understanding why I can't get flashvars to work using the Flash Satay method. I can load my Flash movie using flash Satay fine, but the url for the movie doesn't load at all. Here's the code I am using.

xhtml code:
Code:

<object type="application/x-shockwave-flash" data="http://www.mysite.com/Flash/General/container.swf?path=http://www.mysite.com/Flash/General/videoControl.swf" width="300" height="240">
<param name="movie" value="http://www.mysite.com/Flash/General/container.swf?path=http://www.mysite.com/Flash/General/videoControl.swf" />
<param name="flashvars" value="videoPath=http://myVideoServer.com/Flash/myvideofile.flv" />
<param name="wmode" value="transparent" />
<param name="flashVersion" value="9"/>
<param name="bgcolor" value="#FFFFFF" />
<p>You need <a href= 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW'>Flash</a> to view this content.</p>
</object>

video player AS (being loaded into container movie):
Code:

import mx.video.*;
player.skinAutoHide = false;
_root.player.contentPath = _root.videoPath;

container movie AS (this code is working fine, just here for reference):
Code:

_root.loadMovie(_root.path);

...again, the flashvars value is intended to be passed to the movie being loaded into my container clip (Flash Satay)

...any ideas?

Thanks!

Function In A Method Return True To Method's Caller?
I think I probably don't know the correct terminology to ask this question, but here goes:

In this example, can anyone tell me how to have the setComplete event function within the main method return true to the caller of the method, instead of just to the listener?


PHP Code:



    function loadAsset(target:MovieClip, asset:String, assetLoaderInfo:LoaderInfo): Boolean    {    var assetLoader:Loader = new Loader();    var assetURLRequest:URLRequest = new URLRequest(asset);    assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, setLoaderInfo);    assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setComplete);    function setLoaderInfo(event:Event)        {        assetLoaderInfo = event.currentTarget;        }    function setComplete(event:Event)        {        target.addChild(assetLoader);        return true;        }    assetLoader.load(assetURLRequest);    }

Function In A Method Return True To Method's Caller?
I think I probably don't know the correct terminology to ask this question, but here goes:

In this example, can anyone tell me how to have the setComplete event function within the main method return true to the caller of the method, instead of just to the listener within the method?

Many thanks!


PHP Code:



function loadAsset(target:MovieClip, asset:String, assetLoaderInfo:LoaderInfo): Boolean
    {
    var assetLoader:Loader = new Loader();
    var assetURLRequest:URLRequest = new URLRequest(asset);
    assetLoader.contentLoaderInfo.addEventListener(Event.OPEN, setLoaderInfo);
    assetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, setComplete);
    function setLoaderInfo(event:Event)
        {
        assetLoaderInfo = event.currentTarget;
        }
    function setComplete(event:Event)
        {
        target.addChild(assetLoader);
        return true;
        }
    assetLoader.load(assetURLRequest);

    }

Flash Satay? Viewing Flash Content
Is there any way of enabling older broswers(without a flash plugin present) to view flash content or to make flash mx content viewable in older flash players ie version 5 without having the users download or update a flash player? I have been told this is possible by using a Flash satay? but cannot understand how it would be possible. Can anybody enlighten me or am i being led astray?

Flash Satay: Flash Not Loading Properly
I have just used the Flash Satay method of putting my swf into my php page and all that shows up is a white space that is the size of my flash movie.

What part of it could I be doing wrong.

Right now I have added the embed tag just to get it up and will switch it out once I have figured out this problem...

The code I was using was this:

<object type="application/x-shockwave-flash"
data="c.swf?path=mediaPlayer.swf"
width="780" height="240">
<param name="movie"
value="c.swf?path=mediaPlayer.swf" />
</object>



and I have a c.swf that calls upon this:

_root.loadMovie(_root.path,0);

in the first frame.

Yet all I get is a white space that is the size of what my movie is supposed to be.

Any idea what is not working?

Thanks,

Brad

Embedding Flash In HTML (Flash Satay)
Would you point your browsers at The Flash Satay Experiment?

I am investigating browsers that work with the Flash Satay method of embedding Flash into a HTML page.

Thanks, Ant.

[AS2 OOP] Calling A Method In A Method
Hi everyone
i'm not quite sure how to phrase my problem, so i'll examplify:

Code:
class A{
function A(){
trace("construct");
}
private function moo(){
trace("moo!");
}
private function cow(){
trace("start mooing");
moo();
}
}
this does what I expect it to: construct, start mooing, moo!

Code:
class A{
function A(){
trace("construct");
}
private function moo(){
trace("moo!");
}
private function cow(){
trace("start mooing");
_root.onEnterFrame = function(){
trace("moo!")
}
}
}
this also does what I expect it to: construct, start mooing, moo!, moo!, moo!, ...

Code:
class A{
function A(){
trace("construct");
}
private function moo(){
trace("moo!");
}
private function cow(){
trace("start mooing");
_root.onEnterFrame = function(){
moo();
}
}
}
yet this doesn't, I'd expect it to: construct, start mooing, moo!, moo!, moo!, ...
yet the moo! moo! moo! doesn't appear, as if moo() never gets called it all.
so what I'm I doing wrong?

For... In ... Method
Hi all,
I have some problem with the

for( iterator in Object ) method

because it iterates on my Object returning properties in reverse order
In other words if I define a Object Person with

Fabio = new Person()

function Person(){
firstName = "Fabio"
birthday = "28-10-1970"
eyesColor = "Blue"
}

and then I use

for (i in Fabio){
trace(Fabio[i])
}

this method returns my Object properties in reverse order

eyesColor
birthday
name

instead of

name
birthday
eyesColor

Is there anyone who can tell me if it is possible to get my Object properties in the same order i defined them?

Any help will be very appreciated

GET Method
I have a PHP script that need two variables...
what is the correct syntax in flash ?



on (release) {
Status = "Beginning registration Process... Please Hold";
loadVariablesNum ("Register.php?RegName="+RegName ????&???? RegPassword="+RegPassword, 0);

}

thnx

A Method Of Self Help
This may sound odd, but for those who are budding flash developers, I think I found a way (aside from buying books and what not) to learn Flash MX commands rather well.

Open Flash MX, Press SHIFT+F1 (Reference), open the INDEX on the left, and one by one click on each and READ!

I've been doing this and what makes it all sink in is that I am writing what I read into a notepad file. The process of both reading and writing (seeing and doing) makes remember not only that object easier, but you know expand your thinking process when a problem presents itself.

Like you can get a eureka moment if a problem exists, and since you remember better what you read, you have an increased chance of formulating an answer with code.

Not only that, but you should try the code out. Set aside some time to test the code you're a little iffy on, and if that doesn't work, do a google search on ACTIONSCRIPT and the keyword you're having problems with.

I'm a forgetful person, and I've been doing these steps and learning SO MUCH. Hopefully it'll work well for others too.

& In Get Method
Hello!

I need to pass some text to display it in my .swf movie i'm using loadVariables to do this: http://myserver.com/content.php?id=1 but in this text there are some Baltic characters like õ, now php outputs it like this: text=ettev& #245;te and when my movie sees the & it treats it like another variable for example: text=tettevote&id=1 here are two variables text and id.

Is there a way around this?

Method In Other Method
Why if I call a method "makeFunction()" it works and if I call the same method fro the method "Down()" it doesen't work?

dynamic class SingleMovieClipEvents extends MovieClip {
private var movieClipPath_mc;
private var functionName;
private var args_array:Array;
private var theFunc;
public function SingleMovieClipEvents(mC:MovieClip, funNa, args:Array) {
functionName = funNa != undefined ? funNa : null;
args_array = args != undefined ? args : null;
movieClipPath_mc = mC != undefined ? mC : this;
setMovieClip();
makeFunction();
}
private function setMovieClip() {
movieClipPath_mc.onRelease = Down;
}
private function Down() {
this.gotoAndStop("down");
makeFunction();
}
private function makeFunction() {
if (functionName) {
theFunc = eval(functionName);
theFunc.apply(this, args_array);
}
}
}

WHAT's The Best Method? . . . .
Best Method for Text ?:

Ok, need a bit of help from some flash experts with a fair few applications under their belt, particularly ones that involved formatted text.

I’ve making an interface (application) that has about 6 different sections, video, multimedia, art, noise, bio’s and poetry text. So far i’ve basically got a “thumbnail” that you click, it then goes to the corrosponding frame in that scene and the movie/file needed loads into a movie/instance in that frame called “blank” (pretty creative naming huh? ;-)).

The interface its self is fairly bais, it stay with the style of graffiti and all things load on a brick wall, using graf fonts and a few tags etc. Most things work fine except for a few hiccups.

My problem is this:

I now have about 250-300 poems to get in to the interface, all with rich formatting (bold, italics, spacing, diff size fonts, etc) and all sent as DOCS. My thoughts were to do the following:
Convert all into RTF files using Appleworks (yes, I’m on a mac) or a similar converter (Vinc seems ok), import each one into Freehand since it seems to preserve most RTF and then bring the resulting SWF file into FLASH, paste it into a basic movie that has a simple scroll bar and then export that movie and name it appropraitely, move onto the next one . . .

I know it’s possible to load fomatted text into Dynamic text boxes from text files but I’ve so far not been able to get a handle on this (am using Flash MX) and I’m not sure it would be able to handle the “aligning” spaces, etc involved. The reason I’m using a scroll bar is that some poems are very long and won’t fit on the “WALL”, otherwise I’d just paste them in a graffiti font and leave it there.

Anyway, could ppl let me know of any pitfalls they see in this method, problems, etc or if anyone knows a better way (or has or has seen any examples of one) then please let me know. Have to get started on this soon and don’t want to be half way through it when some expert points out a brilliant stylish method that I hadn’t thought of that then makes me tear my hair out.

Thanks very much for any help or advice on this, it is GREATLY APPRECIATED.

Cheers

scart

Which Is The Best Method
Hi,

I would like to know, does anyone have any suggestions as to the best way to create a flash video gallery that can be used in a website.

I would welcome any samples or tutorials that may be available.

I would appreciate it very much.

Cheers

Best Method For:
Got a project I need help with and I need to know if the fallowing is possible and if so what would be the best method for accomplishing it.

Need:
Virtually I need to know how to build a small flash GUI that allows users to name their so called "projects" then click a button ("Build") that will copys/pastes a directory and name this copy what ever the user called it on this flash GUI.

Of course this Flash GUI will have to reside in the same folder as the directory its going to be duplicating. I just need to know if I should be looking at XML help or PHP or if action script might be able to do the whole copy and paste while naming actions.

Thanks.

Best Method For This?
hi all, im just creating a quick thing for my dad which has lots of objects on the stage and when the user hovers over an object he wants the object to turn red (50% tint) (the object can also be clicked to go to a different frame)
would it be best to have them all just as buttons, or as movieclips and addEventListeners to them all to the one function?
or is there a different way?
thanks
Dan

Key Hit Method?
Ive got this Key class, to replace what was lost with AS2 (Using AS3):


Code:
// Key.as
package {

import flash.display.Stage;
import flash.events.Event;
import flash.events.KeyboardEvent;

/*
* The Key class recreates functionality of
* Key.isDown of ActionScript 1 and 2. Before using
* Key.isDown, you first need to initialize the
* Key class with a reference to the stage using
* its Key.initialize() method. For key
* codes use the flash.ui.Keyboard class.
*
* Usage:
* Key.initialize(stage);
* if (Key.isDown(Keyboard.LEFT)) {
* // Left key is being pressed
* }
*/
public class Key
{

private static var initialized:Boolean = false; // marks whether or not the class has been initialized
private static var keysDown:Object = new Object(); // stores key codes of all keys pressed
private static var keysReleased:Object = new Object();
private static var wasPressed:Boolean = false;



/*
* Initializes the key class creating assigning event
* handlers to capture necessary key events from the stage
*/
public static function initialize(stage:Stage)
{
if (!initialized)
{
// assign listeners for key presses and deactivation of the player
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
stage.addEventListener(Event.DEACTIVATE, clearKeys);

// mark initialization as true so redundant
// calls do not reassign the event handlers
initialized = true;
}
}

/*
* Returns true or false if the key represented by the
* keyCode passed is being pressed
*/
public static function isDown(keyCode:uint):Boolean
{
if (!initialized)
{
// throw an error if isDown is used
// prior to Key class initialization
throw new Error("Key class has yet been initialized.");
}
return Boolean(keyCode in keysDown);
}

public static function isPressed(keyCode:uint):Boolean
{
if (!initialized)
{
// throw an error if isDown is used
// prior to Key class initialization
throw new Error("Key class has yet been initialized.");
}
if (wasPressed == false)
{
return Boolean(keyCode in keysDown);
wasPressed = true;
}else{
return false;
}
}

public static function isReleased(keyCode:uint):Boolean
{
if (!initialized)
{
// throw an error if isDown is used
// prior to Key class initialization
throw new Error("Key class has yet been initialized.");
}

return Boolean (keyCode in keysReleased);

}


public static function clearKeysPressed():void
{
keysDown = new Object();
}

/**
* Event handler for capturing keys being pressed
*/
private static function keyPressed(event:KeyboardEvent):void
{
// create a property in keysDown with the name of the keyCode
keysDown[event.keyCode] = true;

}

/**
* Event handler for capturing keys being released
*/
private static function keyReleased(event:KeyboardEvent):void
{

if (event.keyCode in keysDown)
{
// delete the property in keysDown if it exists
keysReleased[event.keyCode] = true;
delete keysDown[event.keyCode];

}

}

/**
* Event handler for Flash Player deactivation
*/
private static function clearKeys(event:Event):void
{
// clear all keys in keysDown since the player cannot
// detect keys being pressed or released when not focused
keysDown = new Object();
keysReleased = new Object();
wasPressed = false;

}
}
}
Anyone any ideas how i can add a Key Hit method, so it'll only register when the key is initially pressed, then it'll go back to false?

Best Method
For building my website, is it better to use getURL commands to load my other pages, or loadMovie commands and have it all be one happy .swf file?

AS3 Best Method
As of now, im using URLLoader to send a variable to a php file and use that to connect to mySQL, the php file then echos back an XML with the results. Once that is back in flash I parse it out and use the data. Once I receive the data my application begins to run extremely slow. I've removed the listener once the load has completed, i've tried loader.close(). So this is my question, is it possible to use the URLStream in this case? Will that have any effect? Or is there a better way to go about this. I'm only grabbing, as of now, about 10 values from the database, but there will be a lot more I need to get. So if it is lagging down to a crawl already, then something must be wrong.

There Is No Method With The Name ?
I have an .as file with the code:

Math.getMiddle = function(a,b){

...

}

I have a .fla file that includes the .as file and then trys to run the methods in the .as file. I get the error:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 357: There is no method with the name 'getMiddle'.

Anyone help?

What's The Best Method? . . . .
Best Method for Text ?:

Ok, need a bit of help from some flash experts with a fair few applications under their belt, particularly ones that involved formatted text.

I’ve making an interface (application) that has about 6 different sections, video, multimedia, art, noise, bio’s and poetry text. So far i’ve basically got a “thumbnail” that you click, it then goes to the corrosponding frame in that scene and the movie/file needed loads into a movie/instance in that frame called “blank” (pretty creative naming huh? ;-)).

The interface its self is fairly bais, it stay with the style of graffiti and all things load on a brick wall, using graf fonts and a few tags etc. Most things work fine except for a few hiccups.

My problem is this:

I now have about 250-300 poems to get in to the interface, all with rich formatting (bold, italics, spacing, diff size fonts, etc) and all sent as DOCS. My thoughts were to do the following:
Convert all into RTF files using Appleworks (yes, I’m on a mac) or a similar converter (Vinc seems ok), import each one into Freehand since it seems to preserve most RTF and then bring the resulting SWF file into FLASH, paste it into a basic movie that has a simple scroll bar and then export that movie and name it appropraitely, move onto the next one . . .

I know it’s possible to load fomatted text into Dynamic text boxes from text files but I’ve so far not been able to get a handle on this (am using Flash MX) and I’m not sure it would be able to handle the “aligning” spaces, etc involved. The reason I’m using a scroll bar is that some poems are long and won’t fit on the “WALL”, otherwise I’d just paste them in a graffiti font and leave it there.

Anyway, could ppl let me know of any pitfalls they see in this method, problems, etc or if anyone knows a better way (or has or has seen any examples of one) then please let me know. Have to get started on this soon and don’t want to be half way through it when some expert points out a brilliant stylish method that I hadn’t thought of that then makes me tear my hair out.

Thanks very much for any help or advice on this.

Cheers

scart

What Method Is This?
Hello all. I came across a cool newsfeed on
http://iblog.chubzz.com/ ANyone know how they did it..? its to the rigt asa you open up the site.

-R

Tried The Form Method?
assuming you know how to make a form in flash just have them enter their e-mail address and with the submit button add this

LoadVaribles ("/cgi-bin/formail.pl)

that should work or maybe learn how to add cookies to your site.

If this isn't the answer you where looking for maybe show me some of the code you have in place already.
Fox.

Try Two Method Of But None Works Well. Please Help
i got four button when press will play a number of 10 frames before loading a movie. i have try a few script already, but none works please help. below are the script.

first method:
on first frame: the "start" frame
show = false

on end frame"
show = true

on button:
on (release) {
gotoAndPlay ("start");
if (_root.show == true) {
loadMovieNum ("intro.swf", 1);
}
}
for this script nothing happen when it reach the frame with the show = true on it.

second method:
on button:
on (release) {
_root:a = "a";
gotoAndPlay ("start");
}

on last frame:
if (_root:a =="a") {
loadMovieNum ("intro.swf", 1);
}
for this method, it works in the begin. but i got four button so when i play the movie, it seem like all the movie just anyhow loads. when i press "intro", it play "event", when i press "event", it plays "main page"

please help any method to use

Best Transition Method
Although there are many ways what is the best way to transition.

Stripped down example would be having three balls-red, blue, and yellow. Clicking on the red ball enlarges it. Clicking on the blue ball enlarges it and reduces the red ball. Clicking on the yellow ball enlarges it and reduces the blue ball and so and so on.

I figure this principle should also apply to page and mc transitions.

Like I said I've seen many ways to do this but what is the cleanest, most efficient.

Tx,
slhangen

HitTest Method
I know that there are 2 formats that can be used for the hitTest method.

anyMovieClip.hitTest(x, y, shapeFlag);
anyMovieClip.hitTest(target);

I drew 2 circles on the stage. I make the first one draggable. How do I use the first format to hitTest? I wanna use the first method because I can set the shapeFlag. What I do not understand is what x and y values to put in.

Just Like To Check If This Method Is Available?
hi, i was wondering if i can control the % of hit of a frame, eg:

i made a game wheel of forture, and have 51 frame in it. i put a random gotoandstop action in frame 1, and wanted to control the hitrate of frame 10 so that it will not be so easily to hit that frame maybe say out of 100%, only got 10% of chances to hit that frame.

is that possible?

Best Learning Method....
Hey!

I'm sure this is a very redundant question, but what is the best method to getting very fluent in Flash? I have read thru the Visual Quickstart book and the built in tutorials, but is there a good method to follow to get very good at Flash? I've followed some of the tutorials here, but I sometimes find myself attempting ones that are way past my ability.

Thanks in advance!
Lee

Key IsDown Method In SWF
hello,

does Key.isDown(Key.LEFT) method work in a browser?
it doesn't seem to in my movie...

does anyone know how to?

thanks

reynard

Possible Alternate Method?
Take a look:

for (n=0; n<2; n++) {
duplicateMovieClip ("mc", n, n);
setProperty (n, _x, n._x + (n+1)*50);
set ("text" add n, n._x);
}

I would prefer naming the duplicated MCs: mc0, mc1, etc... but then I can't seem to get the setProperty to work--I've already tried several methods, but it doesn't wanna fly. Here's another:

on (rollOver) {
swapDepths(_root.top);
_root.top=_name
}

This code is in a button in above MC. I'm currently using a different method that uses levels rather than targets, but I'd like this to work (yes _root.top is defined before this is run). Why won't this go?
Thanks in advance...


B

Animation Method
I was wondering what methods were used when getting ready to do an animated short (or not-so-short).

I'm a complete novice with animation, the most I've ever done really was mini flip books.

Having enough trouble actually drawing, I find it even more difficult to animate in Flash while keeping perportions correct, and many other aspects that I find it difficult to name or describe.

What do you do when getting to animate people?

LoadVars Has A Dud Method
I've spent way too much time trying to get the loadVars.send method to work, it seems it will only pass vars if I post it to a new window, any attempt to send vars with out opening a new browser window did not work!

I was able to finally send vars using the sendAndLoad method, it send in the backgroud fine, then I just take the vars it returns and delete them, this is a crappy work around, has anyone else had this problem


MyVars.send("http://www..."); // does not send vars
myVars.send("http://www...", "POST") // no good eighter
myVars.send("http://www...","_blank", "POST") // works but opens a new window?

Is There Any Method That I Can Load A GIF...
hi friends !!


i have a lil prob...

is there any method in flash MX that i can load a GIF file in flash ....

like a JPG file with LoadMovie command..... ???

Get Time Method
hi friends...



em useing get time method to make a clock...

but i want to set my clock on a standard....

like....
i want to set it with my website (server time)....

or with GMT or anything like that !!!


can anyone help me ....

GetFrameNumber() Method Or Something Like It?
Hi,

I have a movie with multiple scenes. On the each of the scenes I have certain frames labeled. I would like to check _currentframe against the labeled frame, but don't know how to get that info, when the full movie is running (since the _currentframe is not relative to the scene playing but to the entire combination of all scenes).

is there a method or something like
getFrameNumber("labelname"),
that retuns an actual number, or some way to get this?

thanks in advance.
take it easy
ameet

Faster Method
I have a tile map that uses attatchMovie to add 20x20 tiles. This can be very slow if the tiles are detailed or the map is big. Would it be any faster to just use duplicateMovieClip...Or is there a better way?

The Most Optimum Method
hi!

can anyone advise me on the most optimum
method to come up with a totally flash website
(without sacrificing much of graphics & sound)

should i
-make different swf files for each content item/"page"??
-or shall i make it one whole swf file,with all
site content in it??


i would appreciate it if u would explain y one method is better
than the other(eg. in terms of download time.....etc)

thanx 4 your time!

tinonetic

Any Method To Using Flash?
Um, I'm just wondering, do you think it's better learning how to use Flash MX in classes or just getting information off the internet and stuff?

Are there nee differences betwee learning manually or going to special courses?

I just wanna know coz I'm 15 and I've been using Flash 5 since I was like 13 and MX at late 14, and I cant attend univerity or nothing so I kant learn any new tricks or anything

If so, could someone teach me how to actionscript?

add me if you kann teach me boardsliderguy@hotmail.com

Random Method?
I have two arrays: a Question Array and a multiple-choice Answer Array.

QuestionArray=("2 + 3", "4 + 6");
AnswerArray=("3","4","5","C", "6","10","8","B");

How can I use Math.round(Math.random()) to randomly generate a question with the correct multiple-choice answer, please?

Thanks in advance,
John

Method HitTest
As I read in the help of Flash MX, I've found that hitTest can be use in two style, one is two movie clip, another is a movie clip with a point. Also, in the help, it shows two swf sample about the different of two style.

The question is I can only use hitTest with the Bounding box (the bounding rectangle of the clip even though the shape is a circle), but what I want is only the shape (just like an circle as the shap i want is not a rectangle), can anyone help me about this?

I think it maybe involve "shape_flag", As I'm a beginner of action acript in Flash, can anyone help me?


the script in help(and what I'm using):
hitTest(_root._xmouse, _root._ymouse, true)[color=blue]

Method HitTest
As I read in the help of Flash MX, I've found that hitTest can be use in two style, one is two movie clip, another is a movie clip with a point. Also, in the help, it shows two swf sample about the different of two style.

The question is I can only use hitTest with the Bounding box (the bounding rectangle of the clip even though the shape is a circle), but what I want is only the shape (just like an circle as the shap i want is not a rectangle), can anyone help me about this?

I think it maybe involve "shape_flag", As I'm a beginner of action acript in Flash, can anyone help me?


the script in help(and what I'm using):
hitTest(_root._xmouse, _root._ymouse, true)

Method HitTest
As I read in the help of Flash MX, I've found that hitTest can be use in two style, one is two movie clip, another is a movie clip with a point. Also, in the help, it shows two swf sample about the different of two style.

The question is I can only use hitTest with the Bounding box (the bounding rectangle of the clip even though the shape is a circle), but what I want is only the shape (just like an circle as the shap i want is not a rectangle), can anyone help me about this?

I think it maybe involve "shape_flag", As I'm a beginner of action acript in Flash, can anyone help me?


the script in help(and what I'm using):
hitTest(_root._xmouse, _root._ymouse, true)

Copyright © 2005-08 www.BigResource.com, All rights reserved