Jump to content


Photo

Urgente - Como Fazer Loop Infinito Em Action Script?


  • Faça o login para participar
9 replies to this topic

#1 pensa

pensa

    Turista

  • Usuários
  • 59 posts
  • Sexo:Não informado

Posted 14/06/2007, 11:42

Preciso fazer um loop infinito... mas se eu simplesmente faço:

while(1 == 1)
{
teste = 2;
}

o Flash diz que esse loop pode travar o micro e não executa.

então eu fiz isso:

function checa_validade()
{
frame_atual = this._currentframe;

//calcular frame ideal
tempo_ideal = var_a - var_i;
frame_ideal = ( tempo_ideal * 30 );

tempo = setInterval(checa_validade(), 1000);
}

checa_validade();

desse jeito até executa mas não ocorre o loop.. o SetInterval não funciona....
Alguém pode me ajudar?
Valeu!
Renan

#2 adriano182

adriano182

    Normal

  • Usuários
  • 94 posts
  • Sexo:Não informado

Posted 14/06/2007, 12:30

cara, usa um onEnterFrame....

tipo:
this.onEnterFrame=function(){
  trace("loop")
}

Experimente!
Adriano dos Anjos
Desenvolvedor Flash
adriano@ag2.com
AG2 | Agência de Inteligência Digital
------------------------------
www.ag2.com.br

#3 Pedropauloalmeida

Pedropauloalmeida

    Fale ao motorista somente o indispensável

  • Usuários
  • 1376 posts
  • Sexo:Masculino
  • Localidade:Santo André SP

Posted 22/06/2007, 01:00

Mas não vai funcionar mesmo.

De onde diabos surgiram as variáveis "var_a" e "var_i" ?????


Abraços.

pp

#4 Saruman

Saruman

    Veterano

  • Usuários
  • 1112 posts
  • Sexo:Masculino
  • Localidade:São Paulo, SP

Posted 03/07/2007, 17:18

Na verdade o erro está aqui:
tempo = setInterval(checa_validade(), 1000);

Deveria ser:
tempo = setInterval(checa_validade, 1000);

Isto porque o primeiro parametro do setInterval é o método que deve ser chamado, e o que você está fazer é chamar o método o que são duas coisas bem diferentes.
import Profile;

var saruman:Profile = new Profile();

saruman.nome = new String("Tiago S. Kaneta");

saruman.localizacao = new Array("São Paulo","SP");

#5 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 21/09/2017, 21:45

Buy Zithromax At Walgreens cialis Viagra 110 Mg
Mixing Amoxicillin Wine Together Buy Celexa From Canada
Tretinac Kaufen <a href=http://cialtobuy.com>cialis buy online</a> Cheap Brandname Viagra
Cephalexin Dosage Canine Pounds cialis online Propecia Nioxin Treatment
Apply Propecia Indometacina In English For For Sale
Buy Plavix <a href=http://cialtobuy.com>cheap cialis</a> Viagra Vancouver
Achat Cialis En Suisse cialis buy online Viagra Per Auto
Pet Buy Wellbutrin With No Prescription My Canadian Pharcharmy Online
Amoxil 500 Mg <a href=http://cialtobuy.com>cialis</a> Kamagra Nebenwirkungen

#6 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 19/10/2017, 05:22

Reputable Online Pharmacists buy viagra online Cyproheptadine No Rx
Buy Viagra Online With American Express Amoxicillin 500 Tv viagra Viagra Kosten Mit Rezept Viagra Or Cialis With Works Best Precio Propecia

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 02/11/2017, 06:01

Cialis 10 Mg Cost Walking Pneumonia Zithromax viagra online Amoxicillin 1000mg Kamagra Oral Jelly Inhaltsstoffe

#8 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 02/11/2017, 07:32

Buy Zithromax levitra 20mg Viagra Generico Italia Si Puo Avere Viagra Et Forum

#9 iapedlok

iapedlok

    Expert

  • Usuários
  • 538 posts
  • Sexo:Feminino
  • Localidade:Balaclava

Posted 02/11/2017, 16:05

Discounts! consumer product reviews progect12.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Ulefone Metal Android 6.0 5.0 inch Corning Gorilla 3 Screen 4G Smartphone MTK6753 Octa Core 1.3GHz 3GB RAM 16GB ROM Fingerprint Scanner GPS OTG 136.39$5 pcs pack mixed colors artificial curly tail maggots grub worm fishing lures soft grubs 6 ( 0.52 $)Lenovo Vibe P1 Case High Quality with holder Protector TPU+Hard Back Case Cover for Lenovo Vibe P1 Smartphone Free Shipping ( 2.80 $)отзыв рецензия книгаVOYO VBook V3 Ultrabook-249.49 $MQ-5 High Sensitivity LPG Gas Sensor Detection Module ( $2.87 )Original SJCAM Foldable Selfie Stick-5.47 $1pcs bunny tiger fox sloth sleep mask rest travel relax sleeping aid blindfold ice cover eye ( 3.98 $)коленвал хондаболт затяжкаMIXZA TOHAOLL Ocean Series 16GB Micro SD Memory Card ( $3.90 )Deep Wave Brazilian Hair 4Pcs Curly Brazilian Virgin Hair Extensions Brazilian Curly Virgin Hair Brazilian Deep Wave Human Hair ( 51.33 $)Piccadilly - Silver Studded Bracelet Watch ( 85.44 $)battlefield 3 торрент механикиHaritonov-Gormli. Video nokauta (Video) 4bb.jpg
Discounts! 10 best beauty products

progect12.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Luxury handbags women bags designer female bag hobo tote set top-handle shoulder bags handbag+messenger bag+purse sac a main ( 86.80 $)
Winter jackets mens 2016 new stylish slim fitness quilted long sleeve cotton-padded solid thick parkas xxxxl n439 ( 39.98 $)
Casual women's hooded long sleeve drawstring striped hoodie ( 12.59 $)
Volodin nazval usloviya vozvrasheniya Rossii v PASE
Trendsmax Custom ANY Length 568mm Byzantine Box Mens Chain Boys Stainless Steel Necklace Fashion Jewelry KNM21 ( 7.99 $)
Monterey Black Suede Belt ( 124.60 $)
car seat covers set black faux fur cute car interior accessories cushion styling winter new plush car pad seat covers for car ( 25.00 $)
фирма леомакс интернет магазин какие товары рекламирует
Women Bra Casual Padded Bra Crop Top Women Vest Stretch X16 ( 3.24 $)
Luffy 4x4 silk base full lace front human hair wigs with baby hair body wave virgin brazilian glueless silk top full lace wigs ( 142.56 $)
2016 New women bohemia necklace&pendants multicolor statement choker necklace za antique tribal ethnic boho jewelry mujer bijoux ( 5.99 $)
Manga print silk square scarf ( 89.87 $) DSquared2
Online store elite brand of Swiss watches is to buy original wrist watches from the best brands in the time salon Consul.ru
2015 new guitars 40-7 40 inch high quality acoustic guitar rosewood fingerboard guitarra with guitar strings ( 132.05 $)
Iggy honey mustard leather clutch ( 163.26 $) Diane Von Furstenberg


1bb.jpg

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 24/11/2017, 05:36

Cialis Preise Polen Buy Online levitra coupon free trial 40 Pills For 99
Cialis Precio En Espana 75 Mg Sublingual Tadalafil viagra Que Efectos Produce El Viagra Half Dose Propecia
Viagra Para Hombres Sexulay Trasmited Infections Treated With Keflex Hydrochlorothiazide Visa Arun viagra online prescription Active Ingredient Propecia Order Valtrex With No Prescription
Cod Generic Isotretinoin Direct Discount Amex Accepted Roaccutane Buy Cialis Sin Prescripcion viagra Erectile Dysfunction Medication Prices




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq